diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index 4b1114023..0c850f78d 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -109,9 +109,14 @@ if(formField=='ppNumber'){ // 获取子表数据 getBomDisassemble - PurchasePlanDetailApi.getPurchasePlanDetailList({ number: val[0]['number']}).then(res => { if (res) tableData.value = res; tableData.value.forEach(item=>{ item.batch = item.toBatch - item.qty = 1 - }) }).catch(err => { console.log(err) }) + PurchasePlanDetailApi.getPurchasePlanDetailList({ + number: val[0]['number']}).then(res => { + if (res) tableData.value = res; + tableData.value.forEach(item=>{ + item.batch = item.toBatch + item.qty = 1 + }) + }).catch(err => { console.log(err) }) } formRef.setValues(setV) }