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(); }" > +