From fe9ceb5bf5a3ec05974b358e401829af3d732ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Tue, 29 Oct 2024 09:14:12 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=BE=80=E6=9D=A5=E5=8D=95=E4=BD=8D=20?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=85=A8=E7=A7=B0=20=E5=A4=8D=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/baseinfo/infoclient/TenantAuditStepModal.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue index 413db78b..00fa26be 100644 --- a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue +++ b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue @@ -169,11 +169,7 @@ --> -
+
{{ form.statusText }}
@@ -822,12 +822,19 @@ function openTemp() { }) } function handleApply() { - ApplyAudit({ ids: [route.query.id] }).then(res => { - if (res.succeeded) { - createMessage.success('操作成功') - getDetail() - } - }) + if (!loading.value) { + loading.value = true + ApplyAudit({ ids: [route.query.id] }).then(res => { + if (res.succeeded) { + createMessage.success('操作成功') + getDetail() + } else { + loading.value = false + } + }).catch(() => { + loading.value = false + }) + } } function handleNew() { go(`/invoiceapplyDetail?type=add`) @@ -863,12 +870,20 @@ function init() { }) } function handleWithdraw() { - Withdraw({ ids: [route.query.id] }).then(res => { - if (res.succeeded) { - createMessage.success('操作成功') - getDetail() - } - }) + if (!loading.value) { + loading.value = true + Withdraw({ ids: [route.query.id] }).then(res => { + if (res.succeeded) { + createMessage.success('操作成功') + getDetail() + } else { + loading.value = false + } + }).catch(()=>{ + loading.value = false + }) + } + } function handleAddLabel(val) { tempContent.value += '[' + val.displayName + ']' @@ -1133,7 +1148,7 @@ function mergeByCurrency(arr) { const result = {}; arr.forEach(item => { if (result[item.currency]) { - result[item.currency].applyAmount += item.applyAmount ; + result[item.currency].applyAmount += item.applyAmount; result[item.currency].applyAmount = Number(result[item.currency].applyAmount.toFixed(2)) } else { result[item.currency] = { currency: item.currency, applyAmount: Number(item.applyAmount.toFixed(2)) }; diff --git a/src/views/operation/invoiceIssue/detail/index.vue b/src/views/operation/invoiceIssue/detail/index.vue index 6a37ddc1..c5249bb8 100644 --- a/src/views/operation/invoiceIssue/detail/index.vue +++ b/src/views/operation/invoiceIssue/detail/index.vue @@ -77,7 +77,7 @@
-
+