Commit 9ca27d71 by qinjianhui

fix: 发货、质检优化

parent fb5dc182
......@@ -38,8 +38,9 @@ export default function useShipment(callback?: () => void) {
})
}
let rowData
const code1 = code?.split('_')[0]
for (const item of orderList.value) {
rowData = item.productList?.find((jj) => jj.subOrderNumber === code)
rowData = item.productList?.find((jj) => jj.subOrderNumber === code1)
if (rowData) break
}
if (rowData) {
......@@ -84,9 +85,10 @@ export default function useShipment(callback?: () => void) {
shipmentLoading.value = true
const res = await getOrderBySubOrderNumber(code)
if (res.data) {
const code1 = code?.split('_')[0]
for (const item of res.data.productList || []) {
item.count = 0
if (item.subOrderNumber === code) {
if (item.subOrderNumber === code1) {
item.count =
(item.num || 0) -
((item.shipmentNum || 0) - (item.notPassNum || 0))
......
......@@ -109,7 +109,7 @@
class="item"
>
<ElButton type="success" is-dark @click="reGenerateManuscript"
>重新下载稿件</ElButton
>更新稿件</ElButton
>
</span>
<span v-if="statusCode === 2 || statusCode === 3" class="item">
......
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