fix: update some files
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m44s

This commit is contained in:
luo
2026-08-18 17:36:41 +08:00
parent 93f67967c5
commit d9d07422a9
38 changed files with 1140 additions and 728 deletions

View File

@@ -12,6 +12,7 @@ interface BuildAgentRechargeActionsOptions {
onViewPaymentVoucher: (row: AgentRecharge) => void
onConfirmPayment: (row: AgentRecharge) => void
onReject: (row: AgentRecharge) => void
onTriggerApproval: (row: AgentRecharge) => void
}
export const buildAgentRechargeActions = (
@@ -24,6 +25,14 @@ export const buildAgentRechargeActions = (
row.approval_source === 'wecom' ||
row.approval_source === 'legacy' ||
(row.approval_instance_id !== undefined && row.approval_instance_id !== null)
const approvalStatusEmpty = row.approval_status === undefined || row.approval_status === null
const canTriggerApproval =
approvalStatusEmpty &&
![
AgentRechargeStatus.COMPLETED,
AgentRechargeStatus.REJECTED,
AgentRechargeStatus.CLOSED
].includes(row.status)
if (
row.payment_method === 'offline' &&
@@ -31,7 +40,7 @@ export const buildAgentRechargeActions = (
options.hasAuth('agent_recharge:view_payment_voucher')
) {
actions.push({
label: '查看支付凭证',
label: '支付凭证',
handler: () => options.onViewPaymentVoucher(row),
type: 'primary'
})
@@ -50,6 +59,14 @@ export const buildAgentRechargeActions = (
})
}
if (canTriggerApproval && options.hasAuth('agent_recharge:trigger_approval')) {
actions.push({
label: '补发审批',
handler: () => options.onTriggerApproval(row),
type: 'primary'
})
}
if (
!hasApprovalRecord &&
row.status === AgentRechargeStatus.PENDING &&