From 25b7b840d3204e1fd113bcc4526993b096db5851 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Wed, 25 Jun 2025 16:33:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=80=89=E6=8B=A9=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wallet/wallet-recharge-invoice.ts | 12 ++ src/components/Select/SelectWalletInvoice.vue | 112 ++++++++++++++++++ src/components/index.ts | 2 + .../wallet/wallet-recharge-invoice/index.vue | 19 +++ 4 files changed, 145 insertions(+) create mode 100644 src/components/Select/SelectWalletInvoice.vue diff --git a/src/api/wallet/wallet-recharge-invoice.ts b/src/api/wallet/wallet-recharge-invoice.ts index 885b86c..862bc04 100644 --- a/src/api/wallet/wallet-recharge-invoice.ts +++ b/src/api/wallet/wallet-recharge-invoice.ts @@ -1,5 +1,17 @@ import request from "/@/utils/request" +/** + * 根据申请id获取发票详情 + * @param id 申请id + */ +export function invoiceSelect(query: any) { + return request({ + url: "/wallet/walletRechargeInvoice/select", + method: "get", + params: query, + }) +} + /** * 根据申请id获取发票详情 * @param id 申请id diff --git a/src/components/Select/SelectWalletInvoice.vue b/src/components/Select/SelectWalletInvoice.vue new file mode 100644 index 0000000..934cde4 --- /dev/null +++ b/src/components/Select/SelectWalletInvoice.vue @@ -0,0 +1,112 @@ + + e && getOptions()" + @change="change"> + + + 向 + {{ v.payeeDept }} + 汇款 + {{ displayPrice(v.totalPrice) }} + 用于充值 + -创建于{{ v.createTime }} + + + + + + diff --git a/src/components/index.ts b/src/components/index.ts index 27ac25a..500b525 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -35,6 +35,7 @@ import SelectRole from "/@/components/Select/SelectRole.vue" import SelectCabinet from "/@/components/Select/SelectCabinet.vue" import SelectMchCatory from "/@/components/Select/SelectMchCatory.vue" import SelectCanteenSupplier from "/@/components/Select/SelectCanteenSupplier.vue" +import SelectWalletInvoice from "/@/components/Select/SelectWalletInvoice.vue" // 第三方组件 import ElementPlus from "element-plus" @@ -91,6 +92,7 @@ export default { app.component("SelectRole", SelectRole) app.component("SelectCabinet", SelectCabinet) app.component("SelectCanteenSupplier", SelectCanteenSupplier) + app.component("SelectWalletInvoice", SelectWalletInvoice) // 导入全部的elmenet-plus的图标 for (const [key, component] of Object.entries(ElementPlusIconsVue)) { diff --git a/src/views/wallet/wallet-recharge-invoice/index.vue b/src/views/wallet/wallet-recharge-invoice/index.vue index 15305db..f85bb66 100644 --- a/src/views/wallet/wallet-recharge-invoice/index.vue +++ b/src/views/wallet/wallet-recharge-invoice/index.vue @@ -1,6 +1,25 @@ + + + + + + + + + + + + + {{ $t("common.queryBtn") + }} + {{ $t("common.resetBtn") }} + + +