diff --git a/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue b/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue index 98eaf0c31..5f6cfd7b7 100644 --- a/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue @@ -399,7 +399,12 @@ const tableSelectionDelete = (selection) => { tableData.value = tableData.value.filter(item => !selection.includes(item)) } // 主子数据 提交 -const submitForm = async (formType, data) => { +const submitForm = async (formType, submitData) => { + + let data = {...submitData} + if(data.masterId){ + data.id = data.masterId + } data.subList = tableData.value // 拼接子表数据参数 try { if (formType === 'create') { diff --git a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue index 73a2a8755..6356d6b13 100644 --- a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue @@ -419,7 +419,9 @@ const tableSelectionDelete = (selection) => { // 主子数据 提交 const submitForm = async (formType, submitData) => { let data = {...submitData} - data.id = data.masterId + if(data.masterId){ + data.id = data.masterId + } data.subList = tableData.value // 拼接子表数据参数 try { if (formType === 'create') { diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue index a7e6d3719..7710b396a 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue @@ -643,7 +643,9 @@ const tableSelectionDelete = (selection) => { const submitForm = async (formType, submitData) => { let data = {...submitData} - data.id = data.masterId + if(data.masterId){ + data.id = data.masterId + } data.subList = tableData.value // 拼接子表数据参数 data.subList.forEach(row=>{ row['expireDate'] = row['validityDays']?addDay(row['produceDate'],row['validityDays']).valueOf():''