Commit 15f8a3b0 by chenwq

fix(物料分配): 修正取消分配时的过滤条件

原过滤条件使用 id 字段,但实际需要根据 goodsId 和 filmRollNo 组合判断。
现改为同时匹配 goodsId 与 filmRollNo 来正确移除已取消分配的物料项。
1 parent af6251a5
...@@ -583,7 +583,7 @@ export default { ...@@ -583,7 +583,7 @@ export default {
// 取消 // 取消
cancelAllocation(row, index) { cancelAllocation(row, index) {
console.log(row, index) console.log(row, index)
this.chooseDataList = this.chooseDataList.filter(item => item.id != row.id) this.chooseDataList = this.chooseDataList.filter(item => item.goodsId != row.upgradeGoodsId && item.filmRollNo !== row.filmRollNo)
}, },
/** 保存/作废/提交申请之前,表单校验等 /** 保存/作废/提交申请之前,表单校验等
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!