|
@ -131,6 +131,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
newRow['projectCode'] = item['projectCode'] |
|
|
newRow['projectCode'] = item['projectCode'] |
|
|
newRow['uom'] = item['uom'] |
|
|
newRow['uom'] = item['uom'] |
|
|
newRow['subSettleQty'] = item['subSettleQty'] |
|
|
newRow['subSettleQty'] = item['subSettleQty'] |
|
|
|
|
|
newRow['ship'] = item['ship'] |
|
|
tableData.value.push(newRow) |
|
|
tableData.value.push(newRow) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
@ -386,10 +387,14 @@ const submitForm = async (formType, submitData) => { |
|
|
try { |
|
|
try { |
|
|
if (formType === 'create') { |
|
|
if (formType === 'create') { |
|
|
if(tableData.value.length <= 0){ |
|
|
if(tableData.value.length <= 0){ |
|
|
message.warning(`子表明细不能为空!`) |
|
|
message.warning(`子表明细不能为空!`) |
|
|
basicFormRef.value.formLoading = false |
|
|
basicFormRef.value.formLoading = false |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
if(tableData.value.find(item=>item['ship']!=tableData.value[0]['ship'])){ |
|
|
|
|
|
message.warning(`相同客户代码不同发货至地点不允许混合创建,请单独创建`) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
await SaleShipmentMainApi.createSaleShipmentMain(data) |
|
|
await SaleShipmentMainApi.createSaleShipmentMain(data) |
|
|
message.success(t('common.createSuccess')) |
|
|
message.success(t('common.createSuccess')) |
|
|
} else { |
|
|
} else { |
|
|