|
@ -340,12 +340,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
}).then((res) => { |
|
|
}).then((res) => { |
|
|
toManagementPrecision.value = res[0].ManagementPrecision |
|
|
toManagementPrecision.value = res[0].ManagementPrecision |
|
|
}) |
|
|
}) |
|
|
if (fromManagementPrecision.value == 'BY_QUANTITY' && toManagementPrecision.value == 'BY_BATCH') { |
|
|
if (toManagementPrecision.value == 'BY_BATCH') { |
|
|
row['fromBatchFormItemType'] = 'FormDate' |
|
|
row['toBatchFormItemType'] = 'FormDate' |
|
|
row['disabled_fromBatch'] = false |
|
|
row['disabled_toBatch'] = false |
|
|
} else { |
|
|
} else if (toManagementPrecision.value == 'BY_QUANTITY') { |
|
|
row['fromBatchFormItemType'] = '' |
|
|
row['toBatchFormItemType'] = '' |
|
|
row['disabled_fromBatch'] = true |
|
|
row['disabled_toBatch'] = true |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
row[formField] = val[0][searchField] |
|
|
row[formField] = val[0][searchField] |
|
@ -701,10 +701,10 @@ const submitForm = async (formType, submitData) => { |
|
|
message.warning('从库位和到库位不能相同') |
|
|
message.warning('从库位和到库位不能相同') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let batchList = tableData.value.filter(item=>item.fromBatchFormItemType&&item.fromBatchFormItemType == 'FormDate') |
|
|
let batchList = tableData.value.filter(item=>item.toBatchFormItemType&&item.toBatchFormItemType == 'FormDate') |
|
|
let noBatch = batchList.some(item => !item.fromBatch) |
|
|
let noBatch = batchList.some(item => !item.toBatch) |
|
|
if(noBatch){ |
|
|
if(noBatch){ |
|
|
message.warning('请选择从批次') |
|
|
message.warning('请选择到批次') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|