|
|
@ -349,7 +349,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
if (toManagementPrecision.value == 'BY_BATCH') { |
|
|
|
if(row['fromBatch']==''){ |
|
|
|
row['fromBatchFormItemType'] = 'FormDate' |
|
|
|
row['disabled_fromBatch'] = false |
|
|
|
row['disabled_fromBatch'] = true |
|
|
|
} |
|
|
|
|
|
|
|
} else if (toManagementPrecision.value == 'BY_QUANTITY') { |
|
|
@ -728,9 +728,9 @@ const submitForm = async (formType, submitData) => { |
|
|
|
return |
|
|
|
} |
|
|
|
let batchList = tableData.value.filter(item=>item.fromBatchFormItemType&&item.fromBatchFormItemType == 'FormDate' && item.toManagementPrecision == 'BY_BATCH') |
|
|
|
let noBatch = batchList.find(item => !item.fromBatch) |
|
|
|
if(noBatch){ |
|
|
|
message.warning(`${noBatch.itemCode}没有填写批次,请填写`) |
|
|
|
let noToBatch = batchList.find(item => !item.toBatch) |
|
|
|
if(noToBatch){ |
|
|
|
message.warning(`${noToBatch.itemCode}没有填写到批次,请填写`) |
|
|
|
return |
|
|
|
} |
|
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
|