From 3a33ba5eb23bdefbfbb4b3ed480179992bc73124 Mon Sep 17 00:00:00 2001 From: zhangrenyuan <18990852002@163.com> Date: Thu, 16 Oct 2025 14:56:17 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E9=A9=B3=E5=9B=9E=E7=9A=84?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=A1=86=E6=96=B0=E5=A2=9E=E5=AE=8C=E6=AF=95?= =?UTF-8?q?=EF=BC=8C=E9=A1=B5=E7=A0=81=E7=9A=84=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/audit/bean/beanAudit.vue | 73 +++++++++++++++++++++------------- src/views/audit/gold/rechargeAudit.vue | 20 +++++++++- src/views/audit/gold/refundAudit.vue | 44 +++++++++++++------- 3 files changed, 93 insertions(+), 44 deletions(-) diff --git a/src/views/audit/bean/beanAudit.vue b/src/views/audit/bean/beanAudit.vue index 687d448..4f01a24 100644 --- a/src/views/audit/bean/beanAudit.vue +++ b/src/views/audit/bean/beanAudit.vue @@ -101,12 +101,14 @@ - + - + + + - + @@ -156,7 +156,7 @@ const activeTimeRange = ref('') const sortField = ref('') const sortOrder = ref('') const checkTab = ref('pending') -const rejectVisible = ref(false) +const rejectDialogVisible = ref(false) const reason = ref('') const rejectRow = ref({ id: null @@ -380,7 +380,7 @@ const handleReject = async () => { } await API({ url: '/beanAudit/status2', data: params }) ElMessage.success('驳回成功') - rejectVisible.value = false + rejectDialogVisible.value = false await get() cancelClicked.value = false await getStats() @@ -389,6 +389,30 @@ const handleReject = async () => { ElMessage.error('操作失败') } } +// 处理驳回取消操作 +const handleRejectCancel = () => { + rejectDialogVisible.value = false +} +// 处理驳回关闭操作 +const handleRejectClose = () => { + rejectDialogVisible.value = false +} +// 这个防抖好像还不能放在定义之前(handleApproveConfirm) +const throttledHandleApprove = _.throttle(handleApproveConfirm, 5000, { + trailing: false +}) +// 显示驳回对话框 +const showRejectDialog = (row) => { + if (!hasbeanWaitReject) { + ElMessage.error('暂无权限') + return + } + rejectRow.value.id = row.id + reason.value = '' + rejectDialogVisible.value = true +} + + const getToday = async function () { const today = dayjs() const startTime = today.startOf('day').format('YYYY-MM-DD HH:mm:ss') @@ -507,19 +531,7 @@ const format3 = (num) => { // 每三位添加逗号 return num.toLocaleString('en-US') } -// 这个防抖好像还不能放在定义之前(handleApproveConfirm) -const throttledHandleApprove = _.throttle(handleApproveConfirm, 5000, { - trailing: false -}) -const showRejectDialog = (row) => { - if (!hasbeanWaitReject) { - ElMessage.error('暂无权限') - return - } - rejectRow.value.id = row.id - reason.value = '' - rejectVisible.value = true -} + // 获取地区,修改为级联下拉框 const getmarkets = async function () { try { @@ -570,6 +582,11 @@ onMounted(async () => {