diff --git a/src/api/billing/billing.js b/src/api/billing/billing.js new file mode 100644 index 0000000..24cbbfc --- /dev/null +++ b/src/api/billing/billing.js @@ -0,0 +1,28 @@ +import { createAPI } from '@/utils/httpRequest.js' + +// 开票申请分页查询(老 /billingApply/billingApplyData) +export const billingApplyData = data => createAPI(`/billingApply/billingApplyData`, 'post', data) + +// 开票申请新增/编辑(老 /billingApply/billingApplySave) +export const billingApplySave = data => createAPI(`/billingApply/billingApplySave`, 'post', data) + +// 开票申请删除(老 /billingApply/billingApplyDelete) +export const billingApplyDelete = data => createAPI(`/billingApply/billingApplyDelete`, 'post', data) + +// 下面三个下拉都是复用发票模块已有的接口,老页面上那两个同名接口后端没搬: +// 老 /billingApply/projectName(type=IT) → /invoice/valueList?type=IT 开票项目 +// 老 /invo/invoSend(type=SW) → /invoice/valueList?type=SW 寄送方式 +// 老 /billingApply/findCompanyName → /invoice/companyName 客户的开票公司 +export const applyValueList = type => createAPI(`/invoice/valueList?type=${type}`, 'post') +export const applyCompanyName = customerId => createAPI(`/invoice/companyName?customerId=${customerId}`, 'post') +export const getCustomerList = () => createAPI(`/projectInfo/getCustomerList`, 'get') + +// 联系人子表(老 /cust/personData,新接口 body 是 {id: 客户id}) +export const fetchPersonData = customerId => createAPI(`/cust/fetchPersonData`, 'post', { id: customerId }) + +// 【基于申请单开票】按开票信息id取税号/客户(老 /billingApply/findBillingByBillingId) +// 后端是 @RequestParam,参数必须走 query string,放进 body 会 400 +export const findBillingByBillingId = billingInfoId => createAPI(`/billingApply/findBillingByBillingId?billingInfoId=${billingInfoId}`, 'post') + +// 【基于申请单开票】存发票 + 把申请单置 Y(老 /billingApply/invoiceSave) +export const applyInvoiceSave = data => createAPI(`/billingApply/invoiceSave`, 'post', data) diff --git a/src/api/invoice/invoice.js b/src/api/invoice/invoice.js new file mode 100644 index 0000000..c2b44be --- /dev/null +++ b/src/api/invoice/invoice.js @@ -0,0 +1,26 @@ +import { createAPI } from "@/utils/httpRequest.js"; + +// 发票分页查询(老 /invo/invoiceData) +export const invoiceData = data => createAPI(`/invoice/invoiceData`, 'post', data) + +// 发票新增/编辑保存(老 /invo/invoiceSave) +export const invoiceSave = data => createAPI(`/invoice/invoiceSave`, 'post', data) + +// 发票删除(老 /invo/invoiceDel) +export const invoiceDelete = data => createAPI(`/invoice/invoiceDel`, 'post', data) + +// 值表下拉:type=SW 寄送方式 / type=IT 开票项目(老 /invo/invoSend、/invo/projectName) +// 后端是 @RequestParam,参数必须走 query string,放进 body 会 400 +export const invoiceValueList = type => createAPI(`/invoice/valueList?type=${type}`, 'post') + +// 客户的开票公司列表(老 /invo/companyName),同样是 @RequestParam +export const invoiceCompanyName = customerId => createAPI(`/invoice/companyName?customerId=${customerId}`, 'post') + +// 客户下拉(复用 projectInfo 的现成接口,老 /invo/customerName 没搬) +export const getCustomerList = () => createAPI(`/projectInfo/getCustomerList`, 'get') + +// 快递公司名称下拉(老 /express/expressName) +export const expressNameList = () => createAPI(`/express/expressName`, 'post') + +// 发票页"快递"按钮的保存(老 /express/expresshistSave) +export const expresshistSave = data => createAPI(`/express/expresshistSave`, 'post', data) diff --git a/src/views/modules/billing/billing-request.vue b/src/views/modules/billing/billing-request.vue new file mode 100644 index 0000000..8325013 --- /dev/null +++ b/src/views/modules/billing/billing-request.vue @@ -0,0 +1,633 @@ + + + + + diff --git a/src/views/modules/finance/billing-invoice.vue b/src/views/modules/finance/billing-invoice.vue new file mode 100644 index 0000000..5c5bd2e --- /dev/null +++ b/src/views/modules/finance/billing-invoice.vue @@ -0,0 +1,527 @@ + + + + + diff --git a/src/views/modules/finance/invoice-management.vue b/src/views/modules/finance/invoice-management.vue new file mode 100644 index 0000000..f6edd45 --- /dev/null +++ b/src/views/modules/finance/invoice-management.vue @@ -0,0 +1,914 @@ + + + + +