Commit 1b912fe7 by qinjianhui

feat: 导出生产单

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