驳回
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m1s

This commit is contained in:
2026-06-26 18:14:37 +08:00
parent 1baa6d87cf
commit 99de03604d
4 changed files with 26 additions and 9 deletions

View File

@@ -178,9 +178,9 @@
<ElFormItem label="充值单号">
<span>{{ currentRecharge?.recharge_no }}</span>
</ElFormItem>
<ElFormItem label="拒绝原因" prop="reject_reason">
<ElFormItem label="拒绝原因" prop="rejection_reason">
<ElInput
v-model="rejectForm.reject_reason"
v-model="rejectForm.rejection_reason"
type="textarea"
:rows="3"
maxlength="500"
@@ -241,6 +241,7 @@
import PaymentVoucherDialog from '@/components/business/PaymentVoucherDialog.vue'
import VoucherUpload from '@/components/business/VoucherUpload.vue'
import { buildAgentRechargeActions } from './agentRechargeActions'
import { formatRejectionReason } from './agentRechargeDisplay'
defineOptions({ name: 'AgentRechargeList' })
@@ -366,6 +367,7 @@
{ label: '状态', prop: 'status' },
{ label: '支付方式', prop: 'payment_method' },
{ label: '支付通道', prop: 'payment_channel' },
{ label: '驳回原因', prop: 'rejection_reason' },
{ label: '创建时间', prop: 'created_at' },
{ label: '支付时间', prop: 'paid_at' },
{ label: '完成时间', prop: 'completed_at' }
@@ -412,7 +414,7 @@
})
const rejectRules = reactive<FormRules>({
reject_reason: [{ required: true, message: '请输入拒绝原因', trigger: 'blur' }]
rejection_reason: [{ required: true, message: '请输入拒绝原因', trigger: 'blur' }]
})
const createForm = reactive<{
@@ -434,7 +436,7 @@
})
const rejectForm = reactive<RejectAgentRechargeRequest>({
reject_reason: ''
rejection_reason: ''
})
const rechargeList = ref<AgentRecharge[]>([])
@@ -541,6 +543,13 @@
showOverflowTooltip: true,
formatter: (row: AgentRecharge) => row.remark || '-'
},
{
prop: 'rejection_reason',
label: '驳回原因',
minWidth: 180,
showOverflowTooltip: true,
formatter: (row: AgentRecharge) => formatRejectionReason(row.rejection_reason)
},
{
prop: 'created_at',
label: '创建时间',
@@ -789,7 +798,7 @@
// 拒绝对话框关闭后的清理
const handleRejectDialogClosed = () => {
rejectFormRef.value?.resetFields()
rejectForm.reject_reason = ''
rejectForm.rejection_reason = ''
currentRecharge.value = null
}
@@ -804,7 +813,7 @@
rejectLoading.value = true
try {
await AgentRechargeService.rejectAgentRecharge(recharge.id, {
reject_reason: rejectForm.reject_reason
rejection_reason: rejectForm.rejection_reason
})
ElMessage.success('拒绝成功')
rejectDialogVisible.value = false