Commit e032320d by chenwq

```

feat(withdraw): 添加批量驳回功能

在积分提现列表页面添加批量驳回选项,并完善相关错误提示信息,
包括选择记录验证和操作流程控制。
```
1 parent 2d88a807
...@@ -942,7 +942,7 @@ export default { ...@@ -942,7 +942,7 @@ export default {
ids: [] ids: []
}, },
isImport: false, isImport: false,
batchOptions: ['批量审核', '批量付款', '批量生成批次'], batchOptions: ['批量审核', '批量付款', '批量驳回', '批量生成批次'],
keyOptions: ['一键审核', '一键付款'] keyOptions: ['一键审核', '一键付款']
} }
}, },
...@@ -1152,12 +1152,22 @@ export default { ...@@ -1152,12 +1152,22 @@ export default {
} }
} }
} else { } else {
if (!this.ids || this.ids.length == 0) { const errorObj = {
this.$message.error('请选择需要生成批次的【积分提现】记录') 2: '请选择需要批量驳回的【积分提现】记录',
3: '请选择需要生成批次的【积分提现】记录'
}
if (type == 'batch' && (!this.ids || this.ids.length == 0)) {
this.$message.error(errorObj[index])
return return
} }
switch (index) {
case 2:
break
case 3:
//批量生成批次 //批量生成批次
this.handleAllBatch(false) this.handleAllBatch(false)
break
}
} }
}, },
//canApprove=false的时候就提示只能选待审核的,付款的时候canPay=false就提示只能选待付款和受理失败的 //canApprove=false的时候就提示只能选待审核的,付款的时候canPay=false就提示只能选待付款和受理失败的
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!