From 4578665d0cf051ab02cd6079f6c47f939d34f78e Mon Sep 17 00:00:00 2001 From: zhangdi <1104545947@qq.com> Date: Wed, 27 May 2026 16:46:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/firstOrder/components/inDialog.vue | 72 ++++++++++--------- src/views/firstOrder/components/outDialog.vue | 38 +++++----- 2 files changed, 56 insertions(+), 54 deletions(-) diff --git a/src/views/firstOrder/components/inDialog.vue b/src/views/firstOrder/components/inDialog.vue index 8ab8760..f8526fb 100644 --- a/src/views/firstOrder/components/inDialog.vue +++ b/src/views/firstOrder/components/inDialog.vue @@ -123,24 +123,7 @@ - - - + + + + + + + + + + dept.departmentId === this.inBatchForm.department ); - const deptName = selectedDept ? selectedDept.department : ""; - // this.sizeForm.inTableData = res.data.result.map((item) => ({ - // ...item, - // IdDemandEndld: this.inBatchForm.batchType, - // department: deptName, - // })); const processedData = res.data.result.map((item) => { // 计算剩余可出库数量:申请数量 - 已出库数量 // 如果字段不存在,默认为 0 const appQty = Number(item.applicationQuantity || 0); const outQty = Number(item.outboundQuantity || 0); const defaultQty = appQty - outQty; - + if (this.inBatchForm.optionType === "YH"){ + item.department = selectedDept.departmentId + item.departmentName = selectedDept.department + } return { ...item, IdDemandEndld: this.inBatchForm.batchType, @@ -823,6 +822,7 @@ export default { this.dialogVisible = true; this.batchTableData = res.data.result; } else { + this.getStatistics(); }