|
@ -339,6 +339,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
locationCode: val[0][searchField] |
|
|
locationCode: val[0][searchField] |
|
|
}).then((res) => { |
|
|
}).then((res) => { |
|
|
toManagementPrecision.value = res[0].ManagementPrecision |
|
|
toManagementPrecision.value = res[0].ManagementPrecision |
|
|
|
|
|
row.toManagementPrecision = toManagementPrecision.value |
|
|
}) |
|
|
}) |
|
|
if (toManagementPrecision.value == 'BY_BATCH') { |
|
|
if (toManagementPrecision.value == 'BY_BATCH') { |
|
|
if(row['fromBatch']==''){ |
|
|
if(row['fromBatch']==''){ |
|
@ -704,10 +705,10 @@ const submitForm = async (formType, submitData) => { |
|
|
message.warning('从库位和到库位不能相同') |
|
|
message.warning('从库位和到库位不能相同') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let batchList = tableData.value.filter(item=>item.toBatchFormItemType&&item.toBatchFormItemType == 'FormDate') |
|
|
let batchList = tableData.value.filter(item=>item.fromBatchFormItemType&&item.fromBatchFormItemType == 'FormDate' && item.toManagementPrecision == 'BY_BATCH') |
|
|
let noBatch = batchList.some(item => !item.toBatch) |
|
|
let noBatch = batchList.find(item => !item.fromBatch) |
|
|
if(noBatch){ |
|
|
if(noBatch){ |
|
|
message.warning('请选择到批次') |
|
|
message.warning(`${noBatch.itemCode}没有填写批次,请填写`) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|