From c01fe5b003ceda84c2bceb2825f62432d272294a Mon Sep 17 00:00:00 2001 From: shilei <965026003@qq.com> Date: Fri, 22 Nov 2024 17:01:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BC=80=E7=A5=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/orderManagement/invoice/index.ts | 70 +++ .../orderManagement/invoice/InvoiceForm.vue | 170 ++++++++ .../system/orderManagement/invoice/index.vue | 401 ++++++++++++++++++ 3 files changed, 641 insertions(+) create mode 100644 src/api/system/orderManagement/invoice/index.ts create mode 100644 src/views/system/orderManagement/invoice/InvoiceForm.vue create mode 100644 src/views/system/orderManagement/invoice/index.vue diff --git a/src/api/system/orderManagement/invoice/index.ts b/src/api/system/orderManagement/invoice/index.ts new file mode 100644 index 0000000..f4ccfcc --- /dev/null +++ b/src/api/system/orderManagement/invoice/index.ts @@ -0,0 +1,70 @@ +import request from '@/config/axios' + +// 开票 VO +export interface InvoiceVO { + // id + id: number + // 用户编号 + userId: number + // 开票金额 + actualPay: number + // 状态 0未开票 1开票中 2开票完成 + invoiceStatus: number + // 开票订单号:多个订单用,分割 + orderNo: string + // 发票类型:1企业 2个人 + type: number + // 订单类型:1换电订单 2站外充电订单 + orderType: number + // 文件表id + infraFileId: number + // 发票抬头 + invoiceTitle: string + // 税号 + dutyNumber: string + // 注册地址 + registeredAddress: string + // 开户行 + bankOfDeposit: string + // 开票联系人姓名 + contactPerson: string + // 开票联系人电话 + contactNumber: string + // 电子邮箱 + emailAddress: string + // 开户行账户 + openBankAccount: string +} + +// 开票 API +export const InvoiceApi = { + // 查询开票分页 + getInvoicePage: async (params: any) => { + return await request.get({ url: `/cloud/invoice/page`, params }) + }, + + // 查询开票详情 + getInvoice: async (id: number) => { + return await request.get({ url: `/cloud/invoice/get?id=` + id }) + }, + + // 新增开票 + createInvoice: async (data: InvoiceVO) => { + return await request.post({ url: `/cloud/invoice/create`, data }) + }, + + // 修改开票 + updateInvoice: async (data: InvoiceVO) => { + return await request.put({ url: `/cloud/invoice/update`, data }) + }, + + // 删除开票 + deleteInvoice: async (id: number) => { + return await request.delete({ url: `/cloud/invoice/delete?id=` + id }) + }, + + // 导出开票 Excel + exportInvoice: async (params) => { + return await request.download({ url: `/cloud/invoice/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/views/system/orderManagement/invoice/InvoiceForm.vue b/src/views/system/orderManagement/invoice/InvoiceForm.vue new file mode 100644 index 0000000..7a58d85 --- /dev/null +++ b/src/views/system/orderManagement/invoice/InvoiceForm.vue @@ -0,0 +1,170 @@ + + \ No newline at end of file diff --git a/src/views/system/orderManagement/invoice/index.vue b/src/views/system/orderManagement/invoice/index.vue new file mode 100644 index 0000000..9062e69 --- /dev/null +++ b/src/views/system/orderManagement/invoice/index.vue @@ -0,0 +1,401 @@ + + +