From 8479f4c72f72ac098123e9ed64363244455f1589 Mon Sep 17 00:00:00 2001 From: sunzehua Date: Tue, 29 Oct 2024 09:17:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Print/printModal.vue | 2 +- .../operation/invoiceApply/detail/index.vue | 43 +++++++++++++------ .../operation/invoiceIssue/detail/index.vue | 2 +- src/views/taskmanage/components/pdf.vue | 2 +- src/views/taskmanage/components/taskData.vue | 7 +-- src/views/taskmanage/index.vue | 3 -- 6 files changed, 36 insertions(+), 23 deletions(-) diff --git a/src/components/Print/printModal.vue b/src/components/Print/printModal.vue index 9e619bae..f962e78e 100644 --- a/src/components/Print/printModal.vue +++ b/src/components/Print/printModal.vue @@ -1,6 +1,6 @@ -
+
{{ 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 @@
-
+