From 39c2e05121e6a9ac75ffba314af2177b7e205d58 Mon Sep 17 00:00:00 2001 From: zhongzm Date: Wed, 18 Jun 2025 19:54:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=B4=A6=E5=8D=95=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E7=A7=BB=E5=8A=A8=E7=AB=AF=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/langs/en-us.ts | 3 +- src/locales/langs/zh-cn.ts | 3 +- src/views/billing/bill/index.vue | 85 +++++- src/views/billing/billservice/index.vue | 6 + src/views/billing/pay/index.vue | 360 ++++++++++++++++++++++++ 5 files changed, 446 insertions(+), 11 deletions(-) create mode 100644 src/views/billing/pay/index.vue diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index 5c62906..a72333a 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -648,7 +648,8 @@ const local: any = { endpoint:{ access:"current client", records:"Historical client", - cdrlrecords:"Internet records" + cdrlrecords:"Internet records", + bill:'Bill records', }, cdrlrecords:{ total:'Total', diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index b4bdf6d..23bbe2c 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -678,7 +678,8 @@ const local:any = { endpoint:{ access:"当前设备", records:"历史设备", - cdrlrecords:"上网记录" + cdrlrecords:"上网记录", + bill:'账单记录', }, cdrlrecords:{ total:'共', diff --git a/src/views/billing/bill/index.vue b/src/views/billing/bill/index.vue index 7b41be1..478f3e4 100644 --- a/src/views/billing/bill/index.vue +++ b/src/views/billing/bill/index.vue @@ -12,6 +12,10 @@ import type { Api } from '@/typings/api' import { SimpleScrollbar } from '~/packages/materials/src' import { Card as ACard, Tag as ATag } from 'ant-design-vue' import { useElementSize } from '@vueuse/core' +import { + EyeOutlined, + DownloadOutlined +} from '@ant-design/icons-vue'; import axios from 'axios' const router = useRouter() @@ -121,8 +125,8 @@ const { columns, data, loading, getData, mobilePagination, searchParams } = useT key: 'invoiceNumber', dataIndex: 'invoiceNumber', title: t('page.bill.invoiceNumber'), - align: 'center', - width: 150 + align: 'left', + width: 120 }, { key: 'invoiceTime', @@ -138,6 +142,7 @@ const { columns, data, loading, getData, mobilePagination, searchParams } = useT title: t('page.bill.amount'), align: 'center', width: 120, + responsive: ['md'], customRender: ({ text }: { text: number }) => { const formattedAmount = Number(text).toFixed(2) return `${currencySymbol.value}${formattedAmount}` @@ -149,6 +154,7 @@ const { columns, data, loading, getData, mobilePagination, searchParams } = useT title: t('page.bill.billType'), align: 'center', width: 120, + responsive: ['md'], customRender: ({ text }: { text: Api.Bill.BillRecord['type'] }) => { const typeMap: Record = { 0: { color: 'blue', label: t('page.bill.types.package') }, @@ -162,8 +168,7 @@ const { columns, data, loading, getData, mobilePagination, searchParams } = useT key: 'invoiceFile', title: t('page.bill.actions'), align: 'center', - width: 150, - fixed: 'right' + width: 60, } ] }) @@ -229,6 +234,10 @@ const handlePreview = async (record: Api.Bill.BillRecord) => { } } +const handleBack = () => { + router.push('/billing/billservice'); +}; + onMounted(() => { fetchCurrencySymbol() getData() @@ -239,7 +248,22 @@ onMounted(() => {
{ :loading="loading" row-key="id" size="small" + :expandIconColumnWidth="24" :pagination="{ ...mobilePagination, total: mobilePagination.total, @@ -266,6 +291,42 @@ onMounted(() => { getData(); }" > +