feat(inbound): handle batch duplication gracefully, support spec search, and auto-fill historical locations

This commit is contained in:
DXC
2026-04-08 09:41:04 +08:00
parent c58a0a6d14
commit 9380508a89
9 changed files with 141 additions and 15 deletions

View File

@ -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}】,请核对。`)
}
}
}

View File

@ -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}】,请核对。`)
}
}
}

View File

@ -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}】,请核对。`)
}
}
}