|
|
@ -238,6 +238,7 @@ const updateTableData = (tableList)=>{ |
|
|
|
newRow['uom'] = row['uom'] |
|
|
|
newRow['poNumber'] =row['number'] |
|
|
|
newRow['supplierCode'] =row['supplierCode'] |
|
|
|
newRow['qty'] =row['orderQty'] |
|
|
|
//生产日期 到货日期 默认当天 |
|
|
|
newRow['produceDate'] = dayjs().valueOf() |
|
|
|
newRow['arriveDate'] = dayjs().valueOf() |
|
|
@ -600,6 +601,13 @@ const submitForm = async (formType, submitData) => { |
|
|
|
if(data.masterId){ |
|
|
|
data.id = data.masterId |
|
|
|
} |
|
|
|
let isThen = tableData.value.some(item => { |
|
|
|
return parseFloat(item.qty) > parseFloat(item.orderQty) |
|
|
|
}) |
|
|
|
if(isThen){ |
|
|
|
message.error(t('ts.收货数量不可以大于订单数量!')) |
|
|
|
return; |
|
|
|
} |
|
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
|
formRef.value.formLoading = true |
|
|
|
try { |
|
|
|