From 18c638d03b8e18eace46e0f9d94a124eb7af0ad3 Mon Sep 17 00:00:00 2001 From: qiuyuan Date: Tue, 30 Dec 2025 16:49:57 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E4=BD=99=E9=A2=9D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 7 + .../admin/account/cost/balance/index.vue | 830 ++++++++++++++++++ src/views/admin/index.vue | 1 + 3 files changed, 838 insertions(+) create mode 100644 src/views/admin/account/cost/balance/index.vue diff --git a/src/router/index.ts b/src/router/index.ts index b3c53c8..480e066 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -233,6 +233,13 @@ const routes: RouteRecordRaw[] = [ component: () => import("@/views/admin/account/cost/myOrder/index.vue"), }, + + { + path: "balance", + name: "balance", + component: () => + import("@/views/admin/account/cost/balance/index.vue"), + }, { path: "myMoney", name: "myMoney", diff --git a/src/views/admin/account/cost/balance/index.vue b/src/views/admin/account/cost/balance/index.vue new file mode 100644 index 0000000..94d23c1 --- /dev/null +++ b/src/views/admin/account/cost/balance/index.vue @@ -0,0 +1,830 @@ + + + + + \ No newline at end of file diff --git a/src/views/admin/index.vue b/src/views/admin/index.vue index 47d8279..c07b34e 100644 --- a/src/views/admin/index.vue +++ b/src/views/admin/index.vue @@ -61,6 +61,7 @@ const menuItems: MenuItem[] = [ visible: true, children: [ { path: '/layout/admin/myMoney', name: '费用总览', visible: true, disabled: false }, + { path: '/layout/admin/balance', name: '余额管理', visible: true, disabled: false }, // 消费明细设置为不可见 { path: '/layout/admin/exchange', name: '算力点兑换', visible: false, disabled: false }, { path: '/layout/admin/myMoneyDetail', name: '消费明细', visible: false, disabled: false }, From 68d5b3bb1462a299b61de52a5684347782072c66 Mon Sep 17 00:00:00 2001 From: qiuyuan Date: Tue, 30 Dec 2025 17:15:58 +0800 Subject: [PATCH 2/6] 1 --- src/views/admin/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/admin/index.vue b/src/views/admin/index.vue index c07b34e..050e3ea 100644 --- a/src/views/admin/index.vue +++ b/src/views/admin/index.vue @@ -65,7 +65,7 @@ const menuItems: MenuItem[] = [ // 消费明细设置为不可见 { path: '/layout/admin/exchange', name: '算力点兑换', visible: false, disabled: false }, { path: '/layout/admin/myMoneyDetail', name: '消费明细', visible: false, disabled: false }, - { path: '/layout/admin/myOrder', name: '我的订单', visible: true, disabled: false }, + { path: '/layout/admin/myOrder', name: '订单明细', visible: true, disabled: false }, { path: '/layout/admin/flow', name: '账单明细', visible: true, disabled: false }, { path: '/layout/admin/coupon', name: '优惠券(待开发)', disabled: true, visible: true }, { path: '/layout/admin/invoice', name: '发票(待开发)', disabled: true, visible: true }, From 876358ea28bc861c58837574f4e406154e25fe26 Mon Sep 17 00:00:00 2001 From: qiuyuan Date: Tue, 30 Dec 2025 17:21:53 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/account/cost/myOrder/index.vue | 379 ++++++++++++++++-- 1 file changed, 351 insertions(+), 28 deletions(-) diff --git a/src/views/admin/account/cost/myOrder/index.vue b/src/views/admin/account/cost/myOrder/index.vue index d9e34da..c094eeb 100644 --- a/src/views/admin/account/cost/myOrder/index.vue +++ b/src/views/admin/account/cost/myOrder/index.vue @@ -33,8 +33,31 @@ - + +
+ + + 批量去开票 + + + 已选择 {{ selectedRowKeys.length }} 条记录 + + +
+ +
+ + +
+
+ 流水号: + {{ currentInvoiceRecord?.serial_number || '-' }} +
+
+ 交易时间: + {{ currentInvoiceRecord?.created_at ? dayjs(currentInvoiceRecord.created_at).format('YYYY-MM-DD HH:mm') : '-' }} +
+
+ 交易金额: + ¥{{ currentInvoiceRecord?.real_amount || '0.00' }} +
+
+ 确认要为该订单申请发票吗? +
+
+
+ + +
+
+ 已选择 {{ selectedRowKeys.length }} 条记录进行批量开票 +
+
+ 合计金额: + ¥{{ selectedTotalAmount.toFixed(2) }} +
+
+ + + +
+
+ 注意:批量开票将为所有选中的订单统一生成一张发票。 +
+
+
+ \ No newline at end of file + +/** + * 单个去开票 + */ +function handleSingleInvoice(record: any) { + currentInvoiceRecord.value = record + singleInvoiceModalVisible.value = true +} + +/** + * 确认单个开票 + */ +async function handleSingleInvoiceConfirm() { + singleInvoiceLoading.value = true + try { + // 这里调用开票API + // await invoiceApi.createSingleInvoice(currentInvoiceRecord.value.id) + + // 模拟API调用延迟 + await new Promise(resolve => setTimeout(resolve, 1000)) + + message.success('开票申请已提交成功!') + singleInvoiceModalVisible.value = false + + // 刷新列表 + getPageList() + } catch (error) { + message.error('开票申请提交失败,请稍后重试') + } finally { + singleInvoiceLoading.value = false + } +} + +/** + * 批量去开票 + */ +function handleBatchInvoice() { + if (selectedRowKeys.value.length === 0) { + message.warning('请先选择要开票的记录') + return + } + batchInvoiceModalVisible.value = true +} + +/** + * 确认批量开票 + */ +async function handleBatchInvoiceConfirm() { + batchInvoiceLoading.value = true + try { + // 这里调用批量开票API + // await invoiceApi.createBatchInvoice(selectedRowKeys.value) + + // 模拟API调用延迟 + await new Promise(resolve => setTimeout(resolve, 1500)) + + message.success(`批量开票申请已提交成功,共 ${selectedRowKeys.value.length} 条记录`) + batchInvoiceModalVisible.value = false + + // 清空选择 + selectedRowKeys.value = [] + selectedRows.value = [] + + // 刷新列表 + getPageList() + } catch (error) { + message.error('批量开票申请提交失败,请稍后重试') + } finally { + batchInvoiceLoading.value = false + } +} + + + \ No newline at end of file From 086b4761dba958f2601c9efeddc61968fdfad736 Mon Sep 17 00:00:00 2001 From: qiuyuan Date: Wed, 31 Dec 2025 10:01:12 +0800 Subject: [PATCH 4/6] 1 --- .../admin/account/cost/myOrder/index.vue | 731 ++++++++++++++---- 1 file changed, 579 insertions(+), 152 deletions(-) diff --git a/src/views/admin/account/cost/myOrder/index.vue b/src/views/admin/account/cost/myOrder/index.vue index c094eeb..de1d5fe 100644 --- a/src/views/admin/account/cost/myOrder/index.vue +++ b/src/views/admin/account/cost/myOrder/index.vue @@ -96,83 +96,300 @@ - + -
-
- 流水号: - {{ currentInvoiceRecord?.serial_number || '-' }} +
+ +
+
+ + 订单信息 +
+
+ + +
-
- 交易时间: - {{ currentInvoiceRecord?.created_at ? dayjs(currentInvoiceRecord.created_at).format('YYYY-MM-DD HH:mm') : '-' }} -
-
- 交易金额: - ¥{{ currentInvoiceRecord?.real_amount || '0.00' }} -
-
- 确认要为该订单申请发票吗? + + +
+
+ + 发票信息 +
+ + + + + + 普通发票 + 专用发票 + 电子发票 + + + + + + + 个人 + 企业 + + + + + + + + 个人抬头 + 公司抬头 + + + + + + + + + + + + + + + + + + + + +
- + -
-
- 已选择 {{ selectedRowKeys.length }} 条记录进行批量开票 -
-
- 合计金额: - ¥{{ selectedTotalAmount.toFixed(2) }} -
-
- - - -
-
- 注意:批量开票将为所有选中的订单统一生成一张发票。 -
-
+ + + + + + + + + + + + + + + + +
\ No newline at end of file From a23bff7a3d8a799a1caae5d6f70f4516dccf700f Mon Sep 17 00:00:00 2001 From: qiuyuan Date: Wed, 31 Dec 2025 11:27:23 +0800 Subject: [PATCH 5/6] 1 --- src/router/index.ts | 6 + .../admin/account/cost/deposit/index.vue | 540 ++++++++++++++++++ .../admin/account/cost/invoice/index.vue | 56 +- src/views/admin/index.vue | 4 +- 4 files changed, 550 insertions(+), 56 deletions(-) create mode 100644 src/views/admin/account/cost/deposit/index.vue diff --git a/src/router/index.ts b/src/router/index.ts index 480e066..48496dd 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -246,6 +246,12 @@ const routes: RouteRecordRaw[] = [ component: () => import("@/views/admin/account/cost/myMoney/index.vue"), }, + { + path: "deposit", + name: "deposit", + component: () => + import("@/views/admin/account/cost/deposit/index.vue"), + }, { path: "exchange", name: "exchange", diff --git a/src/views/admin/account/cost/deposit/index.vue b/src/views/admin/account/cost/deposit/index.vue new file mode 100644 index 0000000..5666b7a --- /dev/null +++ b/src/views/admin/account/cost/deposit/index.vue @@ -0,0 +1,540 @@ + + + + + \ No newline at end of file diff --git a/src/views/admin/account/cost/invoice/index.vue b/src/views/admin/account/cost/invoice/index.vue index e2a22f2..84411fe 100644 --- a/src/views/admin/account/cost/invoice/index.vue +++ b/src/views/admin/account/cost/invoice/index.vue @@ -1,60 +1,6 @@