Commit 07f089f5 by chenwq

fix(sendBack): 修复取消退款时错误删除数据的问题

使用filter替代splice来确保正确删除指定ID的数据项,并添加console.log调试信息
1 parent a836c565
...@@ -532,7 +532,8 @@ export default { ...@@ -532,7 +532,8 @@ export default {
// 取消 // 取消
cancelRefund(row, index) { cancelRefund(row, index) {
this.chooseDataList.splice(index, 1) console.log(row, index)
this.chooseDataList = this.chooseDataList.filter(item => item.id != row.id)
}, },
/** 保存/作废/提交申请之前,表单校验等 /** 保存/作废/提交申请之前,表单校验等
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!