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 @@ + + +