From 00f53e360f0ba144ee3150a05c9897d147fc1a1b Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Wed, 25 Jun 2025 10:35:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=AE=B0=E8=B4=A6=E6=89=A3=E6=AC=BE?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wallet/wallet-recharge-invoice.ts | 4 +- .../wallet/wallet-recharge-apply/form.vue | 2 +- .../wallet/wallet-recharge-apply/index.vue | 146 ++++++------------ .../wallet-recharge-apply/print-dialog.vue | 41 ++--- 4 files changed, 69 insertions(+), 124 deletions(-) diff --git a/src/api/wallet/wallet-recharge-invoice.ts b/src/api/wallet/wallet-recharge-invoice.ts index e09696b..885b86c 100644 --- a/src/api/wallet/wallet-recharge-invoice.ts +++ b/src/api/wallet/wallet-recharge-invoice.ts @@ -15,11 +15,11 @@ export function getInvoice(query: any) { /** * 绑定发票 */ -export function bindInvoice(query: any) { +export function bindInvoice(data: any) { return request({ url: "/wallet/walletRechargeInvoice/bind-invoice", method: "post", - params: query, + data: data, }) } diff --git a/src/views/wallet/wallet-recharge-apply/form.vue b/src/views/wallet/wallet-recharge-apply/form.vue index 8a9722d..0ab2fdd 100644 --- a/src/views/wallet/wallet-recharge-apply/form.vue +++ b/src/views/wallet/wallet-recharge-apply/form.vue @@ -13,7 +13,7 @@ diff --git a/src/views/wallet/wallet-recharge-apply/index.vue b/src/views/wallet/wallet-recharge-apply/index.vue index 1d0e38e..226755b 100644 --- a/src/views/wallet/wallet-recharge-apply/index.vue +++ b/src/views/wallet/wallet-recharge-apply/index.vue @@ -1,7 +1,8 @@ - + @@ -10,60 +11,47 @@ - + - + - + - {{ $t("common.queryBtn") }} + {{ $t("common.queryBtn") + }} {{ $t("common.resetBtn") }} - + 导 入 - + 删除 - + - + @@ -110,97 +98,53 @@ - + - + 数据 - + 申请 - + 编辑 - + 开始处理 + icon="delete" text type="primary" v-auth="'wallet_walletRechargeApply_del'" + @click="handleDelete([row.id])"> 删除 - + 打印发票 - + - + @@ -367,7 +311,7 @@ const previewInvoice = async (row: any) => { try { getReceiptDataLoading.value = true const res = await getInvoice({ id: row.id }) - if (res.code == 0 && printDialogRef.value) return printDialogRef.value.openDialog(res.data) + if (res.code == 0 && printDialogRef.value) return printDialogRef.value.openDialog(res.data, row.id) } catch (error: any) { useMessage().error(error.msg) } finally { diff --git a/src/views/wallet/wallet-recharge-apply/print-dialog.vue b/src/views/wallet/wallet-recharge-apply/print-dialog.vue index 8ac1d91..08c93dd 100644 --- a/src/views/wallet/wallet-recharge-apply/print-dialog.vue +++ b/src/views/wallet/wallet-recharge-apply/print-dialog.vue @@ -6,7 +6,9 @@ - {{ formatDate(new Date(receiptData.time), "YYYY年mm月dd日") || " 年 月 日".replace(/ /g, " ") }} + {{ + formatDate(new Date(receiptData.time), "YYYY年mm月dd日") || " 年 月 日".replace(/ /g, " ") + }} No. {{ receiptData.code || "0000000" }} @@ -17,12 +19,9 @@ 交款单位(或个人) - + ref="deptOrUserInput" /> @@ -58,26 +57,27 @@ 收款单位(盖章) - + 收款人(签名) - + 备注: - + - + 第一联 存根联 @@ -93,15 +93,14 @@