fix:组盘、入库相关业务修改为混料

This commit is contained in:
zhouz
2025-07-23 13:07:32 +08:00
parent efea91d120
commit 514f45ab5a
9 changed files with 100 additions and 33 deletions

View File

@@ -230,7 +230,22 @@ export default {
}
},
materialChoose(row) {
this.form.tableData = row
debugger
// 对新增的行进行校验不能存在相同物料批次
row.forEach((item) => {
debugger
let same_mater = true
this.form.tableData.forEach((row) => {
debugger
if (row.material_code === item.material_code && row.pcsn === item.pcsn) {
debugger
same_mater = false
}
})
if (same_mater) {
this.form.tableData.splice(-1, 0, item)
}
})
},
async insertEvent(row) {
this.dtlShow = true

View File

@@ -24,4 +24,12 @@ export function edit(data) {
})
}
export default { add, edit, del }
export function getAllGroupInfo(data) {
return request({
url: 'api/group/getAllGroupInfo',
method: 'post',
data
})
}
export default { add, edit, del, getAllGroupInfo }