From 37f83da6ba89dae2caaa04bc0d755337ad14fef5 Mon Sep 17 00:00:00 2001 From: yujinlong Date: Thu, 31 Oct 2024 15:05:16 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=B4=A2=E7=A8=8E=E7=AE=A1?= =?UTF-8?q?=E7=90=86-=E6=8A=A5=E9=94=80=E5=8D=95=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- package.json | 1 + src/components/ActionBar/index.vue | 83 ++- src/components/Form/src/types/form.ts | 2 +- src/hooks/web/common.ts | 2 +- src/hooks/web/usePage.ts | 4 +- src/layouts/default/tabs/index.vue | 6 +- src/store/modules/app.ts | 9 + src/utils/commonUtil.ts | 19 +- src/views/financialTax/bankJournal/api.ts | 1 - .../financialTax/bankJournal/columns.tsx | 10 + src/views/financialTax/expenseAccount/api.js | 151 ----- src/views/financialTax/expenseAccount/api.ts | 103 ++++ .../financialTax/expenseAccount/columns.tsx | 111 ++-- .../expenseAccount/detail/columns.tsx | 264 ++++++++ .../detail/components/RejectModal.vue | 103 ++++ .../detail/components/SearchTable.vue | 228 +++++++ .../detail/components/columns.tsx | 159 +++++ .../expenseAccount/detail/index.vue | 569 ++++++++++++++++++ .../financialTax/expenseAccount/index.vue | 223 ++++--- .../financialTax/incomeInvoice/columns.tsx | 19 + src/views/taskmanage/index.vue | 15 +- 22 files changed, 1756 insertions(+), 328 deletions(-) delete mode 100644 src/views/financialTax/expenseAccount/api.js create mode 100644 src/views/financialTax/expenseAccount/api.ts create mode 100644 src/views/financialTax/expenseAccount/detail/columns.tsx create mode 100644 src/views/financialTax/expenseAccount/detail/components/RejectModal.vue create mode 100644 src/views/financialTax/expenseAccount/detail/components/SearchTable.vue create mode 100644 src/views/financialTax/expenseAccount/detail/components/columns.tsx create mode 100644 src/views/financialTax/expenseAccount/detail/index.vue diff --git a/index.html b/index.html index babf7cb7..989c57d9 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ /> <%= title %> - + + + diff --git a/src/views/financialTax/expenseAccount/detail/components/SearchTable.vue b/src/views/financialTax/expenseAccount/detail/components/SearchTable.vue new file mode 100644 index 00000000..9b411b52 --- /dev/null +++ b/src/views/financialTax/expenseAccount/detail/components/SearchTable.vue @@ -0,0 +1,228 @@ + + + + diff --git a/src/views/financialTax/expenseAccount/detail/components/columns.tsx b/src/views/financialTax/expenseAccount/detail/components/columns.tsx new file mode 100644 index 00000000..f09c8108 --- /dev/null +++ b/src/views/financialTax/expenseAccount/detail/components/columns.tsx @@ -0,0 +1,159 @@ +import { BasicColumn, FormSchema } from '/@/components/Table' +import moment from 'moment' +import { numberThousandFormat } from '/@/utils/commonUtil' + +export const invoiceCodeList: LabelValueOptions = [ + { label: '全电发票(铁路电子客票)', value: '51' }, + { label: '全电发票(航空运输电子客票行程单)', value: '61' }, + { label: '全电发票(增值税专用发票)', value: '81' }, + { label: '全电发票(普通发票)', value: '82' }, + { label: '全电纸质发票(增值税专用发票)', value: '85' }, + { label: '全电纸质发票(普通发票)', value: '86' }, + { label: '增值税电子普票发票', value: '026' }, + { label: '增值税电子专用发票', value: '028' }, + { label: '增值税普通发票', value: '007' }, + { label: '增值税专用发票', value: '004' }, + { label: '税控卷票', value: '025' }, +] +export const invoiceStatusList: LabelValueOptions = [ + { label: '蓝票', value: '00' }, + { label: '红票', value: '01' }, +] + +export const columns: BasicColumn[] = [ + { + title: '发票号码', + dataIndex: 'invoiceNumber', + width: 200, + }, + { + title: '发票类型代码', + dataIndex: 'invoiceTypeCode', + width: 200, + customRender({ text }) { + return invoiceCodeList.find((el) => el.value === text)?.label || '' + }, + }, + { + title: '开票日期', + dataIndex: 'invoicingDate', + width: 140, + }, + { + title: '合计金额', + dataIndex: 'totalAmount', + sorter: true, + width: 100, + customRender({ text }) { + return numberThousandFormat(text) + }, + }, + { + title: '合计税额', + dataIndex: 'totalTax', + width: 100, + sorter: true, + customRender({ text }) { + return numberThousandFormat(text) + }, + }, + { + title: '价税合计', + dataIndex: 'totalWithTax', + width: 100, + sorter: true, + customRender({ text }) { + return numberThousandFormat(text) + }, + }, + { + title: '发票状态', + dataIndex: 'invoiceStatus', + width: 100, + sorter: true, + customRender: ({ text }) => { + return invoiceStatusList.find((el) => el.value === text)?.label || '未知' + }, + }, + { + title: '开票人', + dataIndex: 'invoicer', + width: 80, + sorter: true, + }, + { + title: '原发票号码', + dataIndex: 'originalInvoiceNumber', + width: 200, + // sorter: true, + }, + { + title: '购方开票名称', + dataIndex: 'buyerInvoiceName', + width: 200, + ellipsis: true, + // sorter: true, + }, + { + title: '购方开票税号', + dataIndex: 'buyerInvoiceTaxNumber', + width: 200, + // sorter: true, + }, + { + title: '销方开票名称', + dataIndex: 'sellerInvoiceName', + width: 130, + // sorter: true, + }, + { + title: '销方开票税号', + dataIndex: 'sellerInvoiceTaxNumber', + width: 200, + ellipsis: true, + // sorter: true, + }, + { + title: '是否已获取详情', + dataIndex: 'isDetailObtained', + width: 120, + align: 'center', + // sorter: true, + }, + { + title: '销方识别号', + dataIndex: 'sellerIdentificationNumber', + width: 200, + // sorter: true, + }, +] + +export const searchFormSchema: FormSchema[] = [ + { + field: 'invoiceNumber', + label: '发票号码', + colProps: { span: 4 }, + component: 'Input', + }, + { + field: 'buyerInvoiceTaxNumber', + label: '购方开票税号', + colProps: { span: 4 }, + component: 'Input', + }, + { + field: 'buyerInvoiceName', + label: '购方开票名称', + colProps: { span: 4 }, + component: 'Input', + }, + { + field: 'invoicingDate', + label: '开票时间', + component: 'RangePicker', + colProps: { span: 4 }, + componentProps: { + allowClear: true, + }, + }, +] diff --git a/src/views/financialTax/expenseAccount/detail/index.vue b/src/views/financialTax/expenseAccount/detail/index.vue new file mode 100644 index 00000000..5deb0a0c --- /dev/null +++ b/src/views/financialTax/expenseAccount/detail/index.vue @@ -0,0 +1,569 @@ + + + + diff --git a/src/views/financialTax/expenseAccount/index.vue b/src/views/financialTax/expenseAccount/index.vue index 3700c712..04f18c5c 100644 --- a/src/views/financialTax/expenseAccount/index.vue +++ b/src/views/financialTax/expenseAccount/index.vue @@ -1,73 +1,82 @@