Commit 47dac5a6 by chenwq

```

feat(withdraw): 新增积分提现一键支付限制门店校验功能

新增 checkAllPayLimitStore API 接口用于校验积分提现一键支付的门店限制,
并在支付流程中集成异步校验逻辑,确保在批量操作时能够正确检查门店支付限制。

具体变更包括:
- 在 withdraw.js 中添加 checkAllPayLimitStore API 方法
- 修改 handlePay 方法为异步函数并添加 await 调用
- 更新 hasLimitStorePayOrder 方法以支持批量校验场景
- 调整导出列表包含新添加的 API 方法
```
1 parent 86b60e7d
...@@ -173,6 +173,16 @@ const integralAllpay = params => { ...@@ -173,6 +173,16 @@ const integralAllpay = params => {
returnAll: true returnAll: true
}) })
} }
// 积分提现一键支付限制门店校验
const checkAllPayLimitStore = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.all.pay.limit.store.check`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 积分提现向管理员发送验证码 // 积分提现向管理员发送验证码
const getSms = params => { const getSms = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.admin.sms` params.method = `scrm.api.shopmall.integral.transfer.out.admin.sms`
...@@ -435,4 +445,4 @@ const getAdmin = (params={}) => { ...@@ -435,4 +445,4 @@ const getAdmin = (params={}) => {
sign: true sign: true
}) })
} }
export default {getListPayLevy,getListPaymentEntity,getChannelList,getChannelTree,payApprovalAgain,getChannelAccount,approvalDetail,removeApproval,getPaymentEntityList,applyApprovalOA,getApprovalLog,getApprovalPage,generateBatchCount, integralorderBatch,getPayAmount,getAllPayAmount, integralAllOut, integralAllpay, getList, bindTag, deleteTag, getTagTree, saveTag, getBrandList, getProvinceList, getAdmin, orderExport, integralpay, integralApprove, integralOut, batchReject, getSms, getMerchantList, getDetails, uploadXlsx, handleSaveImport, getBalance, getSettleAmount,getChannel ,checkRecordsTransferType} export default {getListPayLevy,getListPaymentEntity,getChannelList,getChannelTree,payApprovalAgain,getChannelAccount,approvalDetail,removeApproval,getPaymentEntityList,applyApprovalOA,getApprovalLog,getApprovalPage,generateBatchCount, integralorderBatch,getPayAmount,getAllPayAmount, integralAllOut, integralAllpay, checkAllPayLimitStore, getList, bindTag, deleteTag, getTagTree, saveTag, getBrandList, getProvinceList, getAdmin, orderExport, integralpay, integralApprove, integralOut, batchReject, getSms, getMerchantList, getDetails, uploadXlsx, handleSaveImport, getBalance, getSettleAmount,getChannel ,checkRecordsTransferType}
...@@ -1150,7 +1150,7 @@ export default { ...@@ -1150,7 +1150,7 @@ export default {
let data = await this.checkRecordsTransferType(type) let data = await this.checkRecordsTransferType(type)
this.payForm.transferType = data.transferType this.payForm.transferType = data.transferType
this.payForm.mode = data.mode this.payForm.mode = data.mode
this.handlePay() await this.handlePay()
} }
} }
} else { } else {
...@@ -1543,8 +1543,8 @@ export default { ...@@ -1543,8 +1543,8 @@ export default {
this.showPassDialog = true this.showPassDialog = true
}, },
//付款 //付款
handlePay(row, skipLimitConfirm = false) { async handlePay(row, skipLimitConfirm = false) {
if (!skipLimitConfirm && this.hasLimitStorePayOrder(row)) { if (!skipLimitConfirm && (await this.hasLimitStorePayOrder(row))) {
this.confirmLimitStorePay(() => { this.confirmLimitStorePay(() => {
this.handlePay(row, true) this.handlePay(row, true)
}) })
...@@ -1571,8 +1571,14 @@ export default { ...@@ -1571,8 +1571,14 @@ export default {
} }
this.isPay = true this.isPay = true
}, },
hasLimitStorePayOrder(row) { async hasLimitStorePayOrder(row) {
const rows = row ? [row] : this.operaForm.select ? [] : this.selectedRows if (!row && this.operaForm.select) {
const res = await this.$apis.withdraw.checkAllPayLimitStore({
...this.tableSearchForm
})
return res
}
const rows = row ? [row] : this.selectedRows
return rows.some(item => item.limitStoreFlag == 'Y') return rows.some(item => item.limitStoreFlag == 'Y')
}, },
confirmLimitStorePay(callback) { confirmLimitStorePay(callback) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!