Commit 1b912fe7 by qinjianhui

feat: 导出生产单

parent 1162a0de
...@@ -111,7 +111,8 @@ ...@@ -111,7 +111,8 @@
<div <div
v-if=" v-if="
(status === 3 || status === 4 || status === 2) && (status === 3 || status === 4 || status === 2) &&
item.shipmentNum === 0 (item.shipmentNum === 0 ||
item.num !== (item.shipmentNum || 0) - (item.notPassNum || 0))
" "
class="order-list-expand_item_info_title" class="order-list-expand_item_info_title"
> >
......
...@@ -91,6 +91,11 @@ ...@@ -91,6 +91,11 @@
>打印生产单</ElButton >打印生产单</ElButton
> >
</span> </span>
<span v-if="statusCode === 2" class="item">
<ElButton type="success" dark @click="exportManuscript"
>导出生产单</ElButton
>
</span>
<span class="item"> <span class="item">
<ElButton type="warning" @click="addInternalTag" <ElButton type="warning" @click="addInternalTag"
>添加内部标签</ElButton >添加内部标签</ElButton
...@@ -122,7 +127,7 @@ ...@@ -122,7 +127,7 @@
class="order-list-expand" class="order-list-expand"
:style="{ width: `${thOrderDetailWidth + 50}px` }" :style="{ width: `${thOrderDetailWidth + 50}px` }"
> >
<ProductInfo :row="row" :status="statusCode"/> <ProductInfo :row="row" :status="statusCode" />
<template v-if="row.productList.length > 2"> <template v-if="row.productList.length > 2">
<div class="order-list-expand_more"> <div class="order-list-expand_more">
<span @click="openAll(row)"> <span @click="openAll(row)">
...@@ -261,6 +266,7 @@ ...@@ -261,6 +266,7 @@
label="订单详情" label="订单详情"
header-align="center" header-align="center"
class-name="th-order-detail" class-name="th-order-detail"
min-width="800"
> >
<template #default="scope"> <template #default="scope">
<div class="order-detail"> <div class="order-detail">
...@@ -297,20 +303,20 @@ ...@@ -297,20 +303,20 @@
</ElTableColumn> </ElTableColumn>
<ElTableColumn <ElTableColumn
label="实付款" label="实付款"
width="350" width="280"
header-align="center" header-align="center"
></ElTableColumn> ></ElTableColumn>
<ElTableColumn <ElTableColumn
label="内部标签" label="内部标签"
width="350" width="280"
header-align="center" header-align="center"
></ElTableColumn> ></ElTableColumn>
<ElTableColumn <ElTableColumn
label="时间" label="时间"
width="350" width="280"
header-align="center" header-align="center"
></ElTableColumn> ></ElTableColumn>
<ElTableColumn label="操作" width="200" header-align="center"> <ElTableColumn label="操作" width="100" header-align="center">
</ElTableColumn> </ElTableColumn>
</ElTable> </ElTable>
</div> </div>
...@@ -473,6 +479,7 @@ import { ...@@ -473,6 +479,7 @@ import {
getOrderTabData, getOrderTabData,
confirmProductionOrder, confirmProductionOrder,
printOrder, printOrder,
exportOrder,
addInternalTagApi, addInternalTagApi,
loadSendOutList, loadSendOutList,
getLogList, getLogList,
...@@ -697,6 +704,15 @@ const printManuscript = async () => { ...@@ -697,6 +704,15 @@ const printManuscript = async () => {
showError(e) showError(e)
} }
} }
// 导出生产单
const exportManuscript = async () => {
try {
const res = await exportOrder()
window.open(filePath + res.message)
} catch (e) {
showError(e)
}
}
// 添加内部便签 // 添加内部便签
const addInternalTag = async () => { const addInternalTag = async () => {
if (selection.value.length === 0) { if (selection.value.length === 0) {
...@@ -861,16 +877,16 @@ const onChangeCurrentRow = (item: ProductList) => { ...@@ -861,16 +877,16 @@ const onChangeCurrentRow = (item: ProductList) => {
display: flex; display: flex;
} }
.order-operate { .order-operate {
width: 200px; width: 100px;
} }
.order-time { .order-time {
width: 350px; width: 280px;
border-right: 1px solid #eee; border-right: 1px solid #eee;
} }
.order-memo { .order-memo {
width: 350px; width: 280px;
border-right: 1px solid #eee; border-right: 1px solid #eee;
} }
...@@ -895,7 +911,7 @@ const onChangeCurrentRow = (item: ProductList) => { ...@@ -895,7 +911,7 @@ const onChangeCurrentRow = (item: ProductList) => {
} }
.order-actual-payment { .order-actual-payment {
width: 350px; width: 280px;
border-right: 1px solid #eee; border-right: 1px solid #eee;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment