feat(inbound): handle batch duplication gracefully, support spec search, and auto-fill historical locations
This commit is contained in:
@ -1146,6 +1146,11 @@ const onMaterialSelected = (val: number) => {
|
||||
// 更新表单校验规则
|
||||
updateInspectionRules()
|
||||
checkHistoryAndSetMode(item.id)
|
||||
// 自动填充历史库位
|
||||
if (item.history_location) {
|
||||
form.warehouse_location = item.history_location
|
||||
ElMessage.info(`已自动带入该物料的历史库位:【${item.history_location}】,请核对。`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1038,6 +1038,11 @@ const onMaterialSelected = (val: number) => {
|
||||
form.material_type = item.type
|
||||
form.category = item.category
|
||||
form.unit = item.unit
|
||||
// 自动填充历史库位
|
||||
if (item.history_location) {
|
||||
form.warehouse_location = item.history_location
|
||||
ElMessage.info(`已自动带入该物料的历史库位:【${item.history_location}】,请核对。`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1037,6 +1037,11 @@ const onMaterialSelected = (val: number) => {
|
||||
form.unit = item.unit
|
||||
form.material_type = item.type
|
||||
checkHistoryAndSetMode(item.id)
|
||||
// 自动填充历史库位
|
||||
if (item.history_location) {
|
||||
form.warehouse_location = item.history_location
|
||||
ElMessage.info(`已自动带入该物料的历史库位:【${item.history_location}】,请核对。`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user