From 715811c3cca4fac74e2502bc1842cf20216323d9 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 7 Feb 2025 09:01:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scrap-auditing/components/home-pages.vue | 46 +++++++++++++++---- 1 file changed, 38 insertions(+), 8 deletions(-) diff --git a/src/views/claimAndRefund/secondStore/scrap-auditing/components/home-pages.vue b/src/views/claimAndRefund/secondStore/scrap-auditing/components/home-pages.vue index c9e53e9..28ce5cd 100644 --- a/src/views/claimAndRefund/secondStore/scrap-auditing/components/home-pages.vue +++ b/src/views/claimAndRefund/secondStore/scrap-auditing/components/home-pages.vue @@ -292,10 +292,38 @@ export default { }, onAuditing(code) { + // this.$confirm('请确认审核结果?', '提示', { + // confirmButtonText: '通过', + // cancelButtonText: '驳回', + // type: 'warning', + // }) + // .then(async () => { + // const res = await auditSeconfScrapApi({ + // status: 1, + // code, + // }) + + // if (res.code === 200) { + // this.$modal.msgSuccess('已通过') + // } + // }) + // .catch(async () => { + // const res = await auditSeconfScrapApi({ + // status: 2, + // code, + // }) + // if (res.code === 200) { + // this.$modal.msgSuccess('已驳回') + // } + // }) + // .finally(() => { + // this.getList() + // }) + this.$confirm('请确认审核结果?', '提示', { + distinguishCancelAndClose: true, confirmButtonText: '通过', cancelButtonText: '驳回', - type: 'warning', }) .then(async () => { const res = await auditSeconfScrapApi({ @@ -307,13 +335,15 @@ export default { this.$modal.msgSuccess('已通过') } }) - .catch(async () => { - const res = await auditSeconfScrapApi({ - status: 2, - code, - }) - if (res.code === 200) { - this.$modal.msgSuccess('已驳回') + .catch(async (action) => { + if (action === 'cancel') { + const res = await auditSeconfScrapApi({ + status: 2, + code, + }) + if (res.code === 200) { + this.$modal.msgSuccess('已驳回') + } } }) .finally(() => {