Commit bc3aee63 by chenwq

```

feat(withdraw): 添加限制门店订单支付确认功能

- 在handlePay方法中增加skipLimitConfirm参数控制支付流程
- 新增hasLimitStorePayOrder方法检查是否包含限制门店订单
- 新增confirmLimitStorePay方法实现二次确认弹窗
- 对于限制门店的订单,在支付前进行二次确认提示
```
1 parent 5592cd06
......@@ -1543,7 +1543,13 @@ export default {
this.showPassDialog = true
},
//付款
handlePay(row) {
handlePay(row, skipLimitConfirm = false) {
if (!skipLimitConfirm && this.hasLimitStorePayOrder(row)) {
this.confirmLimitStorePay(() => {
this.handlePay(row, true)
})
return
}
if (row) {
this.operaForm.select = false
this.ids = [row.id]
......@@ -1565,6 +1571,21 @@ export default {
}
this.isPay = true
},
hasLimitStorePayOrder(row) {
const rows = row ? [row] : this.operaForm.select ? [] : this.selectedRows
return rows.some(item => item.limitStoreFlag == 'Y')
},
confirmLimitStorePay(callback) {
this.$confirm('注意:所选数据中包含限制门店的订单,是否通过审批?', '二次确认', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
callback && callback()
})
.catch(() => {})
},
getAdmin() {
this.$apis.withdraw.getAdmin({ channel: this.payForm.channel }).then(res => {
if (res) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!