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" - /> + > + + @@ -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()