From 4b5cbe4dc5c42c7b2294dcb6220837156445f0fe Mon Sep 17 00:00:00 2001
From: zhang_li
Date: Tue, 27 May 2025 11:01:45 +0800
Subject: [PATCH] =?UTF-8?q?YT-2652=E8=A6=81=E8=B4=A7=E8=AE=A1=E5=88=92?=
=?UTF-8?q?=E3=80=81=E4=BE=9B=E5=BA=94=E5=95=86=E5=8F=91=E8=B4=A7=E7=94=B3?=
=?UTF-8?q?=E8=AF=B7=E7=9A=84=E6=98=8E=E7=BB=86=E9=A1=B5=E9=9D=A2=EF=BC=8C?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E2=80=9C=E7=AE=B1=E6=95=B0=E2=80=9D=20?=
=?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA=EF=BC=9A1.=E8=A6=81=E8=B4=A7?=
=?UTF-8?q?=E8=AE=A1=E5=88=92=E6=98=8E=E7=BB=86=EF=BC=9A=E7=AE=B1=E6=95=B0?=
=?UTF-8?q?=3D=E8=AE=A1=E5=88=92=E9=87=87=E8=B4=AD=E6=95=B0=E9=87=8F=20/?=
=?UTF-8?q?=20=E9=87=87=E8=B4=AD=E6=A0=87=E5=8C=85=E6=95=B0=E9=87=8F?=
=?UTF-8?q?=EF=BC=8C=E8=AE=A1=E7=AE=97=E7=BB=93=E6=9E=9C=E4=B8=BA=E6=95=B4?=
=?UTF-8?q?=E6=95=B0=EF=BC=8C=E5=90=91=E4=B8=8A=E5=8F=96=E6=95=B4=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../supplierdeliver/purchasePlanMain/index.vue | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
index 725d5e109..fcaf7e333 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
@@ -116,8 +116,13 @@
fieldTableColumn="poLine"
@detailOpenForm="detailOpenForm"
@handleSubmitForm="handleDetailSubmitForm"
+ @detailBasicFormOnChange="detailBasicFormOnChange"
- />
+ >
+
+ {{ Math.ceil(Number(row.planQty) / Number(row.purchaseStdQty))}}
+
+
@@ -1068,8 +1073,16 @@ const handleSelectionPublish = async ()=>{
// 数字输入-改变事件
const inputNumberChange = (field, index, row, val) => {
console.log('inputNumberChange', field, index, row, val)
- row.planQty = row.boxQty * row.purchaseStdQty
+ if (field == 'boxQty') {
+ row.planQty = row.boxQty * row.purchaseStdQty
+ }
}
+const detailBasicFormOnChange =(field, val) => {
+ if (field == 'boxQty') {
+ detailRef.value.formRef.formRef.formModel.planQty = detailRef.value.formRef.formRef.formModel.boxQty * detailRef.value.formRef.formRef.formModel.purchaseStdQty
+ }
+}
+
/** 初始化 **/
onMounted(async () => {
getList()