From 0f488cb6d1a48855fb5b9d3baf63fb6bd4281ce1 Mon Sep 17 00:00:00 2001 From: weiwei Date: Wed, 2 Jul 2025 11:18:09 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=8F=91=E7=A5=A8=20?= =?UTF-8?q?=E5=AD=98=E6=A0=B9=E8=81=94=20=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wallet/wallet-recharge-invoice/index.vue | 2 +- src/views/wallet/wallet-recharge-invoice/print-dialog.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/wallet/wallet-recharge-invoice/index.vue b/src/views/wallet/wallet-recharge-invoice/index.vue index 793e7eb..5387277 100644 --- a/src/views/wallet/wallet-recharge-invoice/index.vue +++ b/src/views/wallet/wallet-recharge-invoice/index.vue @@ -78,7 +78,7 @@ icon="printer" text type="primary" - :loading="loading" + :disabled="loading" @click="previewInvoice(row)" > 查看发票 diff --git a/src/views/wallet/wallet-recharge-invoice/print-dialog.vue b/src/views/wallet/wallet-recharge-invoice/print-dialog.vue index c7c25df..db565e6 100644 --- a/src/views/wallet/wallet-recharge-invoice/print-dialog.vue +++ b/src/views/wallet/wallet-recharge-invoice/print-dialog.vue @@ -87,11 +87,11 @@ -
+
From 24155690ca42a03a4fd40be7996eae79ebeffc59 Mon Sep 17 00:00:00 2001 From: weiwei Date: Wed, 2 Jul 2025 15:57:15 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=AF=BC=E5=85=A5loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Upload/Excel.vue | 1 + .../wallet/wallet-recharge-invoice/print-dialog.vue | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/Upload/Excel.vue b/src/components/Upload/Excel.vue index 8ba036f..b1d47b6 100644 --- a/src/components/Upload/Excel.vue +++ b/src/components/Upload/Excel.vue @@ -140,6 +140,7 @@ const handleFileSuccess = (response: any) => { * 提交表单,触发上传 */ const submitFileForm = () => { + state.upload.isUploading = true uploadRef.value.submit() } diff --git a/src/views/wallet/wallet-recharge-invoice/print-dialog.vue b/src/views/wallet/wallet-recharge-invoice/print-dialog.vue index db565e6..19e5d51 100644 --- a/src/views/wallet/wallet-recharge-invoice/print-dialog.vue +++ b/src/views/wallet/wallet-recharge-invoice/print-dialog.vue @@ -165,7 +165,7 @@ const loading = ref(false) const loadingBack = ref(false) const receiptRef = ref(null) const deptOrUserInput = ref(null) -let timer = null +let timer const isStamping = ref(false) // 盖章动画开关 const receiptData = ref({ id: "", @@ -210,7 +210,7 @@ const handleClose = () => { timer = null } -// 发票退回 +// 发票作废 const backInvoice = async () => { if (!receiptData.value.picUrl) { useMessage().error("请先盖章") @@ -357,17 +357,17 @@ defineExpose({ @keyframes stamp-in { 0% { - transform: translateY(-100px) scale(2) rotate(0); + transform: translateY(-100px) scale(2); opacity: 0.2; } 60% { - transform: translateY(-10px) scale(1.5) rotate(0); + transform: translateY(-10px) scale(1.5); opacity: 1; } 100% { - transform: translateY(0) scale(1) rotate(0); + transform: translateY(0) scale(1); opacity: 1; } } From 61c5d76651dcef6c0f8ea011b048d702c1f43858 Mon Sep 17 00:00:00 2001 From: weiwei Date: Wed, 2 Jul 2025 16:00:00 +0800 Subject: [PATCH 3/3] --- .../wallet-recharge-apply/upload-excel.vue | 50 +++++++++++++------ 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/src/views/wallet/wallet-recharge-apply/upload-excel.vue b/src/views/wallet/wallet-recharge-apply/upload-excel.vue index d208ebd..b0c7fbf 100644 --- a/src/views/wallet/wallet-recharge-apply/upload-excel.vue +++ b/src/views/wallet/wallet-recharge-apply/upload-excel.vue @@ -3,19 +3,36 @@ - + - +
{{ $t("excel.operationNotice") }} @@ -24,8 +41,13 @@ @@ -41,8 +63,7 @@ - + @@ -161,10 +182,11 @@ const handleFileSuccess = (response: any) => { */ const submitFileForm = async () => { if (form.bizType != "1") { + state.upload.isUploading = true uploadRef.value.submit() return } - const valid = await dataFormRef.value.validate().catch(() => { }) + const valid = await dataFormRef.value.validate().catch(() => {}) if (!valid) return try { state.upload.isUploading = true @@ -173,7 +195,7 @@ const submitFileForm = async () => { useMessage().success("导入成功充值") emit?.("refreshDataList") } catch (error: any) { - console.error(error); + console.error(error) useMessage().error(error.msg || "新增充值数据错误") } finally { state.upload.isUploading = false