From 943017caad62887cacfdbb402d985b815ffaf991 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Thu, 19 Dec 2024 16:48:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B6=E5=93=81=E5=AD=90=E4=BB=B6=E6=8A=A5?= =?UTF-8?q?=E5=BA=9F=E7=94=B3=E8=AF=B7-=E6=9B=B4=E6=94=B9bom=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E4=B9=8B=E5=90=8E=EF=BC=8C=E7=BC=96=E8=BE=91=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E7=9A=84=E6=95=B0=E9=87=8F=E6=9C=AA=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productscrap/productscrapRequestMain/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index d6d803a05..d92ed7b45 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -346,6 +346,7 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> { } return } + detatableDataBom.params.masterId = row.id detatableDataBom.params.itemCode = row.itemCode detatableDataBom.params.bomVersion = row.bomVersion detailQty.value = row.qty @@ -384,7 +385,10 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> { // } // }) // }else { + if(formType.value != 'update'){ + //编辑的时候直接取接口返回数据 item.qty = item.bomQty * row.qty + } // } // const obj = await banchBomPage(row.fromLocationCode, item) // console.log('obj',obj) @@ -871,7 +875,9 @@ const handleHandle = async (id: number) => { /** 添加/修改操作 */ const formRef = ref() +const formType = ref('') const openForm =async (type: string, row?: number) => { + formType.value = type tableData.value = [] // 重置明细数据 detatableDataBom.params = []; // 重置Bom请求参数 lsBomSave.value = true