hurx 3 месяцев назад
Родитель
Сommit
d164507ae8
100 измененных файлов с 14307 добавлено и 0 удалено
  1. 63 0
      src/api/bill/invoiceInfo/index.ts
  2. 161 0
      src/api/bill/invoiceInfo/types.ts
  3. 63 0
      src/api/bill/statementDetail/index.ts
  4. 204 0
      src/api/bill/statementDetail/types.ts
  5. 75 0
      src/api/bill/statementInvoice/index.ts
  6. 179 0
      src/api/bill/statementInvoice/types.ts
  7. 63 0
      src/api/bill/statementInvoiceDetail/index.ts
  8. 266 0
      src/api/bill/statementInvoiceDetail/types.ts
  9. 63 0
      src/api/bill/statementInvoiceProduct/index.ts
  10. 251 0
      src/api/bill/statementInvoiceProduct/types.ts
  11. 110 0
      src/api/bill/statementOrder/index.ts
  12. 248 0
      src/api/bill/statementOrder/types.ts
  13. 63 0
      src/api/bill/statementProduct/index.ts
  14. 251 0
      src/api/bill/statementProduct/types.ts
  15. 75 0
      src/api/company/bank/index.ts
  16. 155 0
      src/api/company/bank/types.ts
  17. 74 0
      src/api/company/comCurrency/index.ts
  18. 105 0
      src/api/company/comCurrency/types.ts
  19. 75 0
      src/api/company/comDept/index.ts
  20. 255 0
      src/api/company/comDept/types.ts
  21. 75 0
      src/api/company/comPost/index.ts
  22. 95 0
      src/api/company/comPost/types.ts
  23. 75 0
      src/api/company/comStaff/index.ts
  24. 215 0
      src/api/company/comStaff/types.ts
  25. 75 0
      src/api/company/company/index.ts
  26. 410 0
      src/api/company/company/types.ts
  27. 63 0
      src/api/company/logisticsCompany/index.ts
  28. 116 0
      src/api/company/logisticsCompany/types.ts
  29. 74 0
      src/api/company/revenueExpense/index.ts
  30. 135 0
      src/api/company/revenueExpense/types.ts
  31. 63 0
      src/api/company/sysCompany/index.ts
  32. 215 0
      src/api/company/sysCompany/types.ts
  33. 75 0
      src/api/company/warehouse/index.ts
  34. 380 0
      src/api/company/warehouse/types.ts
  35. 63 0
      src/api/customer/complaintsSuggestions/index.ts
  36. 245 0
      src/api/customer/complaintsSuggestions/types.ts
  37. 75 0
      src/api/customer/creditLevel/index.ts
  38. 110 0
      src/api/customer/creditLevel/types.ts
  39. 63 0
      src/api/customer/customerCategory/customerTag/index.ts
  40. 80 0
      src/api/customer/customerCategory/customerTag/types.ts
  41. 63 0
      src/api/customer/customerCategory/enterpriseScale/index.ts
  42. 79 0
      src/api/customer/customerCategory/enterpriseScale/types.ts
  43. 63 0
      src/api/customer/customerCategory/industryCategory/index.ts
  44. 79 0
      src/api/customer/customerCategory/industryCategory/types.ts
  45. 63 0
      src/api/customer/customerCategory/tagCategory/index.ts
  46. 75 0
      src/api/customer/customerCategory/tagCategory/types.ts
  47. 74 0
      src/api/customer/customerFile/businessInfo/index.ts
  48. 230 0
      src/api/customer/customerFile/businessInfo/types.ts
  49. 63 0
      src/api/customer/customerFile/contract/index.ts
  50. 264 0
      src/api/customer/customerFile/contract/types.ts
  51. 63 0
      src/api/customer/customerFile/customerContact/index.ts
  52. 269 0
      src/api/customer/customerFile/customerContact/types.ts
  53. 63 0
      src/api/customer/customerFile/customerDept/index.ts
  54. 325 0
      src/api/customer/customerFile/customerDept/types.ts
  55. 133 0
      src/api/customer/customerFile/customerInfo/index.ts
  56. 452 0
      src/api/customer/customerFile/customerInfo/types.ts
  57. 63 0
      src/api/customer/customerFile/groupCustomer/index.ts
  58. 95 0
      src/api/customer/customerFile/groupCustomer/types.ts
  59. 63 0
      src/api/customer/customerFile/invoiceInfo/index.ts
  60. 185 0
      src/api/customer/customerFile/invoiceInfo/types.ts
  61. 77 0
      src/api/customer/customerFile/purchaseHabit/index.ts
  62. 253 0
      src/api/customer/customerFile/purchaseHabit/types.ts
  63. 63 0
      src/api/customer/customerFile/salesInfo/index.ts
  64. 275 0
      src/api/customer/customerFile/salesInfo/types.ts
  65. 80 0
      src/api/customer/customerFile/shippingAddress/index.ts
  66. 290 0
      src/api/customer/customerFile/shippingAddress/types.ts
  67. 75 0
      src/api/customer/customerLevel/index.ts
  68. 110 0
      src/api/customer/customerLevel/types.ts
  69. 75 0
      src/api/customer/customerType/index.ts
  70. 110 0
      src/api/customer/customerType/types.ts
  71. 63 0
      src/api/customer/invoiceType/index.ts
  72. 95 0
      src/api/customer/invoiceType/types.ts
  73. 75 0
      src/api/customer/maintainInfo/index.ts
  74. 405 0
      src/api/customer/maintainInfo/types.ts
  75. 63 0
      src/api/customer/maintenanceType/index.ts
  76. 65 0
      src/api/customer/maintenanceType/types.ts
  77. 63 0
      src/api/customer/serverItem/index.ts
  78. 65 0
      src/api/customer/serverItem/types.ts
  79. 63 0
      src/api/customer/serverTime/index.ts
  80. 65 0
      src/api/customer/serverTime/types.ts
  81. 75 0
      src/api/customer/settlementLevel/index.ts
  82. 95 0
      src/api/customer/settlementLevel/types.ts
  83. 75 0
      src/api/customer/settlementMethod/index.ts
  84. 95 0
      src/api/customer/settlementMethod/types.ts
  85. 63 0
      src/api/order/deliverProduct/index.ts
  86. 143 0
      src/api/order/deliverProduct/types.ts
  87. 75 0
      src/api/order/orderAssignmentLog/index.ts
  88. 167 0
      src/api/order/orderAssignmentLog/types.ts
  89. 111 0
      src/api/order/orderDeliver/index.ts
  90. 253 0
      src/api/order/orderDeliver/types.ts
  91. 138 0
      src/api/order/orderMain/index.ts
  92. 769 0
      src/api/order/orderMain/types.ts
  93. 63 0
      src/api/order/orderProduct/index.ts
  94. 443 0
      src/api/order/orderProduct/types.ts
  95. 63 0
      src/api/order/orderReturn/index.ts
  96. 566 0
      src/api/order/orderReturn/types.ts
  97. 63 0
      src/api/order/orderReturnItem/index.ts
  98. 170 0
      src/api/order/orderReturnItem/types.ts
  99. 75 0
      src/api/order/returnReason/index.ts
  100. 110 0
      src/api/order/returnReason/types.ts

+ 63 - 0
src/api/bill/invoiceInfo/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { InvoiceInfoVO, InvoiceInfoForm, InvoiceInfoQuery } from '@/api/bill/invoiceInfo/types';
+
+/**
+ * 查询发票信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listInvoiceInfo = (query?: InvoiceInfoQuery): AxiosPromise<InvoiceInfoVO[]> => {
+  return request({
+    url: '/bill/invoiceInfo/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询发票信息详细
+ * @param id
+ */
+export const getInvoiceInfo = (id: string | number): AxiosPromise<InvoiceInfoVO> => {
+  return request({
+    url: '/bill/invoiceInfo/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增发票信息
+ * @param data
+ */
+export const addInvoiceInfo = (data: InvoiceInfoForm) => {
+  return request({
+    url: '/bill/invoiceInfo',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改发票信息
+ * @param data
+ */
+export const updateInvoiceInfo = (data: InvoiceInfoForm) => {
+  return request({
+    url: '/bill/invoiceInfo',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除发票信息
+ * @param id
+ */
+export const delInvoiceInfo = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/bill/invoiceInfo/' + id,
+    method: 'delete'
+  });
+};

+ 161 - 0
src/api/bill/invoiceInfo/types.ts

@@ -0,0 +1,161 @@
+export interface InvoiceInfoVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 对账单发票id
+   */
+  statementInvoiceId: string | number;
+
+  /**
+   * 对账单发票编号
+   */
+  statementInvoiceNo: string;
+
+  /**
+   * 发票类型
+   */
+  invoiceType: string;
+
+  /**
+   * 发票代码
+   */
+  invoiceCode: string;
+
+  /**
+   * 发票金额
+   */
+  invoiceAmount: number;
+
+  /**
+   * 发票附件路径或URL
+   */
+  invoiceAnnex: string;
+
+  /**
+   * 开票公司名称
+   */
+  companyName: string;
+
+  /**
+   * 发票开具日期
+   */
+  invoiceDate: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+}
+
+export interface InvoiceInfoForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 对账单发票id
+   */
+  statementInvoiceId?: string | number;
+
+  /**
+   * 对账单发票编号
+   */
+  statementInvoiceNo?: string;
+
+  /**
+   * 发票类型
+   */
+  invoiceType?: string;
+
+  /**
+   * 发票代码
+   */
+  invoiceCode?: string;
+
+  /**
+   * 发票金额
+   */
+  invoiceAmount?: number;
+
+  /**
+   * 发票附件路径或URL
+   */
+  invoiceAnnex?: string;
+
+  /**
+   * 开票公司名称
+   */
+  companyName?: string;
+
+  /**
+   * 发票开具日期
+   */
+  invoiceDate?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+}
+
+export interface InvoiceInfoQuery extends PageQuery {
+
+  /**
+   * 对账单发票id
+   */
+  statementInvoiceId?: string | number;
+
+  /**
+   * 对账单发票编号
+   */
+  statementInvoiceNo?: string;
+
+  /**
+   * 发票类型
+   */
+  invoiceType?: string;
+
+  /**
+   * 发票代码
+   */
+  invoiceCode?: string;
+
+  /**
+   * 发票金额
+   */
+  invoiceAmount?: number;
+
+  /**
+   * 发票附件路径或URL
+   */
+  invoiceAnnex?: string;
+
+  /**
+   * 开票公司名称
+   */
+  companyName?: string;
+
+  /**
+   * 发票开具日期
+   */
+  invoiceDate?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+    /**
+     * 日期范围参数
+     */
+    params?: any;
+}
+
+
+

+ 63 - 0
src/api/bill/statementDetail/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { StatementDetailVO, StatementDetailForm, StatementDetailQuery } from '@/api/bill/statementDetail/types';
+
+/**
+ * 查询对账单交易明细列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listStatementDetail = (query?: StatementDetailQuery): AxiosPromise<StatementDetailVO[]> => {
+  return request({
+    url: '/bill/statementDetail/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询对账单交易明细详细
+ * @param id
+ */
+export const getStatementDetail = (id: string | number): AxiosPromise<StatementDetailVO> => {
+  return request({
+    url: '/bill/statementDetail/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增对账单交易明细
+ * @param data
+ */
+export const addStatementDetail = (data: StatementDetailForm) => {
+  return request({
+    url: '/bill/statementDetail',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改对账单交易明细
+ * @param data
+ */
+export const updateStatementDetail = (data: StatementDetailForm) => {
+  return request({
+    url: '/bill/statementDetail',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除对账单交易明细
+ * @param id
+ */
+export const delStatementDetail = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/bill/statementDetail/' + id,
+    method: 'delete'
+  });
+};

+ 204 - 0
src/api/bill/statementDetail/types.ts

@@ -0,0 +1,204 @@
+export interface StatementDetailVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 对账单id
+   */
+  statementOrderId: string | number;
+
+  /**
+   * 对账单编号
+   */
+  statementOrderNo: string;
+
+  /**
+   * 明细类型(如:1-销售订单, 2-退款等)
+   */
+  type: string;
+
+  /**
+   * 关联的订单id
+   */
+  orderId: string | number;
+
+  /**
+   * 关联的订单编号
+   */
+  orderNo: string;
+
+  /**
+   * 该明细金额
+   */
+  amount: number;
+
+  /**
+   * 订单时间
+   */
+  orderTime: string;
+
+  /**
+   * 签收日期
+   */
+  signingDate: string;
+
+  /**
+   * 操作用户id
+   */
+  userId: string | number;
+
+  /**
+   * 操作用户编号
+   */
+  userName: string;
+
+  userDeptId: string | number;
+
+  /**
+   * 用户所属部门
+   */
+  userDept: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface StatementDetailForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 对账单id
+   */
+  statementOrderId?: string | number;
+
+  /**
+   * 对账单编号
+   */
+  statementOrderNo?: string;
+
+  /**
+   * 明细类型(如:1-销售订单, 2-退款等)
+   */
+  type?: string;
+
+  /**
+   * 关联的订单id
+   */
+  orderId?: string | number;
+
+  /**
+   * 关联的订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 该明细金额
+   */
+  amount?: number;
+
+  /**
+   * 订单时间
+   */
+  orderTime?: string;
+
+  /**
+   * 签收日期
+   */
+  signingDate?: string;
+
+  /**
+   * 操作用户id
+   */
+  userId?: string | number;
+
+  /**
+   * 操作用户编号
+   */
+  userName?: string;
+
+  userDeptId?: string | number;
+
+  /**
+   * 用户所属部门
+   */
+  userDept?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface StatementDetailQuery extends PageQuery {
+  /**
+   * 对账单id
+   */
+  statementOrderId?: string | number;
+
+  /**
+   * 对账单编号
+   */
+  statementOrderNo?: string;
+
+  /**
+   * 明细类型(如:1-销售订单, 2-退款等)
+   */
+  type?: string;
+
+  /**
+   * 关联的订单id
+   */
+  orderId?: string | number;
+
+  /**
+   * 关联的订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 该明细金额
+   */
+  amount?: number;
+
+  /**
+   * 订单时间
+   */
+  orderTime?: string;
+
+  /**
+   * 签收日期
+   */
+  signingDate?: string;
+
+  /**
+   * 操作用户id
+   */
+  userId?: string | number;
+
+  /**
+   * 操作用户编号
+   */
+  userName?: string;
+
+  /**
+   * 用户所属部门
+   */
+  userDept?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/bill/statementInvoice/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { StatementInvoiceVO, StatementInvoiceForm, StatementInvoiceQuery } from '@/api/bill/statementInvoice/types';
+
+/**
+ * 查询销售发票主列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listStatementInvoice = (query?: StatementInvoiceQuery): AxiosPromise<StatementInvoiceVO[]> => {
+  return request({
+    url: '/bill/statementInvoice/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询销售发票主详细
+ * @param id
+ */
+export const getStatementInvoice = (id: string | number): AxiosPromise<StatementInvoiceVO> => {
+  return request({
+    url: '/bill/statementInvoice/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增销售发票主
+ * @param data
+ */
+export const addStatementInvoice = (data: StatementInvoiceForm) => {
+  return request({
+    url: '/bill/statementInvoice',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改销售发票主
+ * @param data
+ */
+export const updateStatementInvoice = (data: StatementInvoiceForm) => {
+  return request({
+    url: '/bill/statementInvoice',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除销售发票主
+ * @param id
+ */
+export const delStatementInvoice = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/bill/statementInvoice/' + id,
+    method: 'delete'
+  });
+};
+
+export function changeStatus(id: string | number, invoiceStatus: string) {
+  const data = {
+    id,
+    invoiceStatus
+  };
+  return request({
+    url: '/bill/statementInvoice/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 179 - 0
src/api/bill/statementInvoice/types.ts

@@ -0,0 +1,179 @@
+export interface StatementInvoiceVO {
+  /**
+   *
+   */
+  id: string | number;
+
+  /**
+   * 发票编号
+   */
+  statementInvoiceNo: string;
+
+  /**
+   * 客户编号
+   */
+  customerId: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo: string;
+
+  /**
+   * 客户名称
+   */
+  customerName: string;
+
+  /**
+   * 发票金额
+   */
+  invoiceAmount: number;
+
+  /**
+   * 发票状态
+   */
+  invoiceStatus: string;
+
+  /**
+   * 开票时间
+   */
+  invoiceTime: string;
+
+  /**
+   * 驳回备注
+   */
+  rejectRemark: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface StatementInvoiceForm extends BaseEntity {
+  /**
+   *
+   */
+  id?: string | number;
+
+  /**
+   * 发票编号
+   */
+  statementInvoiceNo?: string;
+
+  /**
+   * 客户编号
+   */
+  customerId?: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  /**
+   * 客户名称
+   */
+  customerName?: string;
+
+  /**
+   * 发票金额
+   */
+  invoiceAmount?: number;
+
+  /**
+   * 发票状态
+   */
+  invoiceStatus?: string;
+
+  /**
+   * 开票时间
+   */
+  invoiceTime?: string;
+
+  /**
+   * 驳回备注
+   */
+  rejectRemark?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+  /**
+   * 附件地址
+   */
+  annexAddress?: string;
+
+  /**
+   * 发票明细列表
+   */
+  detailList?: any[];
+
+  /**
+   * 商品清单列表
+   */
+  productList?: any[];
+
+  /**
+   * 发票列表
+   */
+  invoiceList?: any[];
+}
+
+export interface StatementInvoiceQuery extends PageQuery {
+  /**
+   * 发票编号
+   */
+  statementInvoiceNo?: string;
+
+  /**
+   * 客户编号
+   */
+  customerId?: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  /**
+   * 客户名称
+   */
+  customerName?: string;
+
+  /**
+   * 发票金额
+   */
+  invoiceAmount?: number;
+
+  /**
+   * 发票状态
+   */
+  invoiceStatus?: string;
+
+  statementOrderNo?: string;
+
+  orderNo?: string;
+
+  /**
+   * 开票时间
+   */
+  invoiceTime?: string;
+
+  /**
+   * 驳回备注
+   */
+  rejectRemark?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/bill/statementInvoiceDetail/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { StatementInvoiceDetailVO, StatementInvoiceDetailForm, StatementInvoiceDetailQuery } from '@/api/bill/statementInvoiceDetail/types';
+
+/**
+ * 查询销售发票明细列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listStatementInvoiceDetail = (query?: StatementInvoiceDetailQuery): AxiosPromise<StatementInvoiceDetailVO[]> => {
+  return request({
+    url: '/bill/statementInvoiceDetail/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询销售发票明细详细
+ * @param id
+ */
+export const getStatementInvoiceDetail = (id: string | number): AxiosPromise<StatementInvoiceDetailVO> => {
+  return request({
+    url: '/bill/statementInvoiceDetail/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增销售发票明细
+ * @param data
+ */
+export const addStatementInvoiceDetail = (data: StatementInvoiceDetailForm) => {
+  return request({
+    url: '/bill/statementInvoiceDetail',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改销售发票明细
+ * @param data
+ */
+export const updateStatementInvoiceDetail = (data: StatementInvoiceDetailForm) => {
+  return request({
+    url: '/bill/statementInvoiceDetail',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除销售发票明细
+ * @param id
+ */
+export const delStatementInvoiceDetail = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/bill/statementInvoiceDetail/' + id,
+    method: 'delete'
+  });
+};

+ 266 - 0
src/api/bill/statementInvoiceDetail/types.ts

@@ -0,0 +1,266 @@
+export interface StatementInvoiceDetailVO {
+  /**
+   * 
+   */
+  id: string | number;
+
+  /**
+   * 发票主表id(关联主表)
+   */
+  statementInvoiceId: string | number;
+
+  /**
+   * 发票编号(关联主表)
+   */
+  statementInvoiceNo: string;
+
+  /**
+   * 对账金额
+   */
+  statementAmount: number;
+
+  /**
+   * 订单类型
+   */
+  orderType: string;
+
+  /**
+   * 关联的订单id
+   */
+  orderId: string | number;
+
+  /**
+   * 订单编号
+   */
+  orderNo: string;
+
+  /**
+   * 订单金额
+   */
+  orderAmount: number;
+
+  /**
+   * 订单时间
+   */
+  orderTime: string;
+
+  /**
+   * 签约/对账日期
+   */
+  signingDate: string;
+
+  /**
+   * 操作用户id
+   */
+  userId: string | number;
+
+  /**
+   * 操作人
+   */
+  userName: string;
+
+  /**
+   * 操作人部门
+   */
+  userDeptId: string | number;
+
+  /**
+   * 操作人部门
+   */
+  userDept: string;
+
+  /**
+   * 对账单id
+   */
+  statementOrderId: string | number;
+
+  /**
+   * 对账单号(可选)
+   */
+  statementOrderNo: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+}
+
+export interface StatementInvoiceDetailForm extends BaseEntity {
+  /**
+   * 
+   */
+  id?: string | number;
+
+  /**
+   * 发票主表id(关联主表)
+   */
+  statementInvoiceId?: string | number;
+
+  /**
+   * 发票编号(关联主表)
+   */
+  statementInvoiceNo?: string;
+
+  /**
+   * 对账金额
+   */
+  statementAmount?: number;
+
+  /**
+   * 订单类型
+   */
+  orderType?: string;
+
+  /**
+   * 关联的订单id
+   */
+  orderId?: string | number;
+
+  /**
+   * 订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 订单金额
+   */
+  orderAmount?: number;
+
+  /**
+   * 订单时间
+   */
+  orderTime?: string;
+
+  /**
+   * 签约/对账日期
+   */
+  signingDate?: string;
+
+  /**
+   * 操作用户id
+   */
+  userId?: string | number;
+
+  /**
+   * 操作人
+   */
+  userName?: string;
+
+  /**
+   * 操作人部门
+   */
+  userDeptId?: string | number;
+
+  /**
+   * 操作人部门
+   */
+  userDept?: string;
+
+  /**
+   * 对账单id
+   */
+  statementOrderId?: string | number;
+
+  /**
+   * 对账单号(可选)
+   */
+  statementOrderNo?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+}
+
+export interface StatementInvoiceDetailQuery extends PageQuery {
+
+  /**
+   * 发票主表id(关联主表)
+   */
+  statementInvoiceId?: string | number;
+
+  /**
+   * 发票编号(关联主表)
+   */
+  statementInvoiceNo?: string;
+
+  /**
+   * 对账金额
+   */
+  statementAmount?: number;
+
+  /**
+   * 订单类型
+   */
+  orderType?: string;
+
+  /**
+   * 关联的订单id
+   */
+  orderId?: string | number;
+
+  /**
+   * 订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 订单金额
+   */
+  orderAmount?: number;
+
+  /**
+   * 订单时间
+   */
+  orderTime?: string;
+
+  /**
+   * 签约/对账日期
+   */
+  signingDate?: string;
+
+  /**
+   * 操作用户id
+   */
+  userId?: string | number;
+
+  /**
+   * 操作人
+   */
+  userName?: string;
+
+  /**
+   * 操作人部门
+   */
+  userDeptId?: string | number;
+
+  /**
+   * 操作人部门
+   */
+  userDept?: string;
+
+  /**
+   * 对账单id
+   */
+  statementOrderId?: string | number;
+
+  /**
+   * 对账单号(可选)
+   */
+  statementOrderNo?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+    /**
+     * 日期范围参数
+     */
+    params?: any;
+}
+
+
+

+ 63 - 0
src/api/bill/statementInvoiceProduct/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { StatementInvoiceProductVO, StatementInvoiceProductForm, StatementInvoiceProductQuery } from '@/api/bill/statementInvoiceProduct/types';
+
+/**
+ * 查询销售发票商品列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listStatementInvoiceProduct = (query?: StatementInvoiceProductQuery): AxiosPromise<StatementInvoiceProductVO[]> => {
+  return request({
+    url: '/bill/statementInvoiceProduct/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询销售发票商品详细
+ * @param id
+ */
+export const getStatementInvoiceProduct = (id: string | number): AxiosPromise<StatementInvoiceProductVO> => {
+  return request({
+    url: '/bill/statementInvoiceProduct/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增销售发票商品
+ * @param data
+ */
+export const addStatementInvoiceProduct = (data: StatementInvoiceProductForm) => {
+  return request({
+    url: '/bill/statementInvoiceProduct',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改销售发票商品
+ * @param data
+ */
+export const updateStatementInvoiceProduct = (data: StatementInvoiceProductForm) => {
+  return request({
+    url: '/bill/statementInvoiceProduct',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除销售发票商品
+ * @param id
+ */
+export const delStatementInvoiceProduct = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/bill/statementInvoiceProduct/' + id,
+    method: 'delete'
+  });
+};

+ 251 - 0
src/api/bill/statementInvoiceProduct/types.ts

@@ -0,0 +1,251 @@
+export interface StatementInvoiceProductVO {
+  /**
+   * 
+   */
+  id: string | number;
+
+  /**
+   * 发票主表id(关联主表)
+   */
+  statementInvoiceId: string | number;
+
+  /**
+   * 发票编号(关联主表)
+   */
+  statementInvoiceNo: string;
+
+  /**
+   * 商品类型
+   */
+  type: string;
+
+  /**
+   * 关联的订单id
+   */
+  orderId: string | number;
+
+  /**
+   * 所属订单编号
+   */
+  orderNo: string;
+
+  /**
+   * 品类id
+   */
+  categoryId: string | number;
+
+  /**
+   * 品类编号
+   */
+  categoryNo: string;
+
+  /**
+   * 商品id
+   */
+  productId: string | number;
+
+  /**
+   * 商品编号
+   */
+  productNo: string;
+
+  /**
+   * 商品名称
+   */
+  itemName: string;
+
+  /**
+   * 单位
+   */
+  unitId: string | number;
+
+  /**
+   * 单位名称
+   */
+  unitName: string;
+
+  /**
+   * 数量
+   */
+  quantity: number;
+
+  /**
+   * 单价
+   */
+  unitPrice: number;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+}
+
+export interface StatementInvoiceProductForm extends BaseEntity {
+  /**
+   * 
+   */
+  id?: string | number;
+
+  /**
+   * 发票主表id(关联主表)
+   */
+  statementInvoiceId?: string | number;
+
+  /**
+   * 发票编号(关联主表)
+   */
+  statementInvoiceNo?: string;
+
+  /**
+   * 商品类型
+   */
+  type?: string;
+
+  /**
+   * 关联的订单id
+   */
+  orderId?: string | number;
+
+  /**
+   * 所属订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 品类id
+   */
+  categoryId?: string | number;
+
+  /**
+   * 品类编号
+   */
+  categoryNo?: string;
+
+  /**
+   * 商品id
+   */
+  productId?: string | number;
+
+  /**
+   * 商品编号
+   */
+  productNo?: string;
+
+  /**
+   * 商品名称
+   */
+  itemName?: string;
+
+  /**
+   * 单位
+   */
+  unitId?: string | number;
+
+  /**
+   * 单位名称
+   */
+  unitName?: string;
+
+  /**
+   * 数量
+   */
+  quantity?: number;
+
+  /**
+   * 单价
+   */
+  unitPrice?: number;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+}
+
+export interface StatementInvoiceProductQuery extends PageQuery {
+
+  /**
+   * 发票主表id(关联主表)
+   */
+  statementInvoiceId?: string | number;
+
+  /**
+   * 发票编号(关联主表)
+   */
+  statementInvoiceNo?: string;
+
+  /**
+   * 商品类型
+   */
+  type?: string;
+
+  /**
+   * 关联的订单id
+   */
+  orderId?: string | number;
+
+  /**
+   * 所属订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 品类id
+   */
+  categoryId?: string | number;
+
+  /**
+   * 品类编号
+   */
+  categoryNo?: string;
+
+  /**
+   * 商品id
+   */
+  productId?: string | number;
+
+  /**
+   * 商品编号
+   */
+  productNo?: string;
+
+  /**
+   * 商品名称
+   */
+  itemName?: string;
+
+  /**
+   * 单位
+   */
+  unitId?: string | number;
+
+  /**
+   * 单位名称
+   */
+  unitName?: string;
+
+  /**
+   * 数量
+   */
+  quantity?: number;
+
+  /**
+   * 单价
+   */
+  unitPrice?: number;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+    /**
+     * 日期范围参数
+     */
+    params?: any;
+}
+
+
+

+ 110 - 0
src/api/bill/statementOrder/index.ts

@@ -0,0 +1,110 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { StatementOrderVO, StatementOrderForm, StatementOrderQuery } from '@/api/bill/statementOrder/types';
+
+/**
+ * 查询对账单主列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listStatementOrder = (query?: StatementOrderQuery): AxiosPromise<StatementOrderVO[]> => {
+  return request({
+    url: '/bill/statementOrder/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询对账单主详细
+ * @param id
+ */
+export const getStatementOrder = (id: string | number): AxiosPromise<StatementOrderVO> => {
+  return request({
+    url: '/bill/statementOrder/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增对账单主
+ * @param data
+ */
+export const addStatementOrder = (data: StatementOrderForm) => {
+  return request({
+    url: '/bill/statementOrder',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改对账单主
+ * @param data
+ */
+export const updateStatementOrder = (data: StatementOrderForm) => {
+  return request({
+    url: '/bill/statementOrder',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除对账单主
+ * @param id
+ */
+export const delStatementOrder = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/bill/statementOrder/' + id,
+    method: 'delete'
+  });
+};
+
+export function changeStatus(id: string | number, statementStatus: string) {
+  const data = {
+    id,
+    statementStatus
+  };
+  return request({
+    url: '/bill/statementOrder/changeStatus',
+    method: 'put',
+    data: data
+  });
+}
+
+/**
+ * 根据客户ID查询对账单明细(分页)
+ * @param customerId 客户ID
+ * @param pageQuery 分页参数
+ */
+export const getCustomerOrderDetails = (customerId: string | number, pageQuery?: { pageNum?: number; pageSize?: number }) => {
+  return request({
+    url: '/bill/statementOrder/getCustomerOrderDetails/' + customerId,
+    method: 'get',
+    params: pageQuery
+  });
+};
+
+/**
+ * 根据多个 (对账单ID + 订单ID) 查询对应的订单商品列表
+ * @param items - 包含 statementOrderId 和 orderId 的数组
+ */
+export function getStatementProductList(items: { statementOrderId: number | string; orderId: number | string }[]) {
+  if (!Array.isArray(items) || items.length === 0) {
+    return Promise.reject(new Error('至少选择一个订单'));
+  }
+
+  // 可选:校验每项是否完整
+  const invalidItem = items.find((item) => item.statementOrderId == null || item.orderId == null);
+  if (invalidItem) {
+    return Promise.reject(new Error('每项必须包含 statementOrderId 和 orderId'));
+  }
+
+  return request({
+    url: '/bill/statementOrder/getStatementProductList',
+    method: 'post',
+    data: items // 发送 JSON 数组
+  });
+}

+ 248 - 0
src/api/bill/statementOrder/types.ts

@@ -0,0 +1,248 @@
+export interface StatementOrderVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 对账单编号
+   */
+  statementOrderNo: string;
+
+  /**
+   * 客户编号
+   */
+  customerId: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo: string;
+
+  /**
+   * 客户名称
+   */
+  customerName: string;
+
+  /**
+   * 对账总金额
+   */
+  amount: number;
+
+  statementSelfId: string | number;
+
+  /**
+   * 对账人姓名
+   */
+  statementSelf: string;
+
+  /**
+   * 对账人电话
+   */
+  statementSelfPhone: string;
+
+  /**
+   * 对账状态(如:0-待确认, 1-已确认, 2-已驳回)
+   */
+  statementStatus: string;
+
+  /**
+   * 是否已付款
+   */
+  isPaymentStatus: string;
+
+  /**
+   * 是否已开票
+   */
+  isInvoiceStatus: string;
+
+  /**
+   * 对账日期
+   */
+  statementDate: string;
+
+  /**
+   * 附件存储路径
+   */
+  annexAddress: string;
+
+  /**
+   * 驳回原因
+   */
+  rejectRemark: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+  /**
+   * 对账明细列表
+   */
+  detailList?: any[];
+
+  /**
+   * 商品清单列表
+   */
+  productList?: any[];
+}
+
+export interface StatementOrderForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 对账单编号
+   */
+  statementOrderNo?: string;
+
+  /**
+   * 客户编号
+   */
+  customerId?: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  /**
+   * 客户名称
+   */
+  customerName?: string;
+
+  /**
+   * 对账总金额
+   */
+  amount?: number;
+
+  statementSelfId?: string | number;
+
+  /**
+   * 对账人姓名
+   */
+  statementSelf?: string;
+
+  /**
+   * 对账人电话
+   */
+  statementSelfPhone?: string;
+
+  /**
+   * 对账状态(如:0-待确认, 1-已确认, 2-已驳回)
+   */
+  statementStatus?: string;
+
+  /**
+   * 是否已付款
+   */
+  isPaymentStatus?: string;
+
+  /**
+   * 是否已开票
+   */
+  isInvoiceStatus?: string;
+
+  /**
+   * 对账日期
+   */
+  statementDate?: string;
+
+  /**
+   * 附件存储路径
+   */
+  annexAddress?: string;
+
+  /**
+   * 驳回原因
+   */
+  rejectRemark?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+  detailList?: any[];
+
+  productList?: any[];
+}
+
+export interface StatementOrderQuery extends PageQuery {
+  /**
+   * 对账单编号
+   */
+  statementOrderNo?: string;
+
+  /**
+   * 客户编号
+   */
+  customerId?: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  /**
+   * 客户名称
+   */
+  customerName?: string;
+
+  /**
+   * 对账总金额
+   */
+  amount?: number;
+
+  /**
+   * 对账人姓名
+   */
+  statementSelf?: string;
+
+  /**
+   * 对账人电话
+   */
+  statementSelfPhone?: string;
+
+  /**
+   * 对账状态(如:0-待确认, 1-已确认, 2-已驳回)
+   */
+  statementStatus?: string;
+
+  /**
+   * 是否已付款
+   */
+  isPaymentStatus?: string;
+
+  /**
+   * 是否已开票
+   */
+  isInvoiceStatus?: string;
+
+  /**
+   * 对账日期
+   */
+  statementDate?: string;
+
+  /**
+   * 附件存储路径
+   */
+  annexAddress?: string;
+
+  /**
+   * 驳回原因
+   */
+  rejectRemark?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/bill/statementProduct/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { StatementProductVO, StatementProductForm, StatementProductQuery } from '@/api/bill/statementProduct/types';
+
+/**
+ * 查询对账单商品明细列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listStatementProduct = (query?: StatementProductQuery): AxiosPromise<StatementProductVO[]> => {
+  return request({
+    url: '/bill/statementProduct/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询对账单商品明细详细
+ * @param id
+ */
+export const getStatementProduct = (id: string | number): AxiosPromise<StatementProductVO> => {
+  return request({
+    url: '/bill/statementProduct/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增对账单商品明细
+ * @param data
+ */
+export const addStatementProduct = (data: StatementProductForm) => {
+  return request({
+    url: '/bill/statementProduct',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改对账单商品明细
+ * @param data
+ */
+export const updateStatementProduct = (data: StatementProductForm) => {
+  return request({
+    url: '/bill/statementProduct',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除对账单商品明细
+ * @param id
+ */
+export const delStatementProduct = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/bill/statementProduct/' + id,
+    method: 'delete'
+  });
+};

+ 251 - 0
src/api/bill/statementProduct/types.ts

@@ -0,0 +1,251 @@
+export interface StatementProductVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 对账单id
+   */
+  statementOrderId: string | number;
+
+  /**
+   * 对账单编号
+   */
+  statementOrderNo: string;
+
+  /**
+   * 商品类型(如:1-实物, 2-服务等)
+   */
+  type: string;
+
+  /**
+   * 关联的订单id
+   */
+  orderId: string | number;
+
+  /**
+   * 关联的订单编号
+   */
+  orderNo: string;
+
+  /**
+   * 品类id
+   */
+  categoryId: string | number;
+
+  /**
+   * 品类编号
+   */
+  categoryNo: string;
+
+  /**
+   * 商品id
+   */
+  productId: string | number;
+
+  /**
+   * 商品编号
+   */
+  productNo: string;
+
+  /**
+   * 商品名称
+   */
+  itemName: string;
+
+  /**
+   * 单位
+   */
+  unitId: string | number;
+
+  /**
+   * 单位
+   */
+  unitName: string;
+
+  /**
+   * 数量
+   */
+  quantity: number;
+
+  /**
+   * 单价
+   */
+  unitPrice: number;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+}
+
+export interface StatementProductForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 对账单id
+   */
+  statementOrderId?: string | number;
+
+  /**
+   * 对账单编号
+   */
+  statementOrderNo?: string;
+
+  /**
+   * 商品类型(如:1-实物, 2-服务等)
+   */
+  type?: string;
+
+  /**
+   * 关联的订单id
+   */
+  orderId?: string | number;
+
+  /**
+   * 关联的订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 品类id
+   */
+  categoryId?: string | number;
+
+  /**
+   * 品类编号
+   */
+  categoryNo?: string;
+
+  /**
+   * 商品id
+   */
+  productId?: string | number;
+
+  /**
+   * 商品编号
+   */
+  productNo?: string;
+
+  /**
+   * 商品名称
+   */
+  itemName?: string;
+
+  /**
+   * 单位
+   */
+  unitId?: string | number;
+
+  /**
+   * 单位
+   */
+  unitName?: string;
+
+  /**
+   * 数量
+   */
+  quantity?: number;
+
+  /**
+   * 单价
+   */
+  unitPrice?: number;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+}
+
+export interface StatementProductQuery extends PageQuery {
+
+  /**
+   * 对账单id
+   */
+  statementOrderId?: string | number;
+
+  /**
+   * 对账单编号
+   */
+  statementOrderNo?: string;
+
+  /**
+   * 商品类型(如:1-实物, 2-服务等)
+   */
+  type?: string;
+
+  /**
+   * 关联的订单id
+   */
+  orderId?: string | number;
+
+  /**
+   * 关联的订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 品类id
+   */
+  categoryId?: string | number;
+
+  /**
+   * 品类编号
+   */
+  categoryNo?: string;
+
+  /**
+   * 商品id
+   */
+  productId?: string | number;
+
+  /**
+   * 商品编号
+   */
+  productNo?: string;
+
+  /**
+   * 商品名称
+   */
+  itemName?: string;
+
+  /**
+   * 单位
+   */
+  unitId?: string | number;
+
+  /**
+   * 单位
+   */
+  unitName?: string;
+
+  /**
+   * 数量
+   */
+  quantity?: number;
+
+  /**
+   * 单价
+   */
+  unitPrice?: number;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+    /**
+     * 日期范围参数
+     */
+    params?: any;
+}
+
+
+

+ 75 - 0
src/api/company/bank/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { BankVO, BankForm, BankQuery } from '@/api/company/bank/types';
+
+/**
+ * 查询银行信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listBank = (query?: BankQuery): AxiosPromise<BankVO[]> => {
+  return request({
+    url: '/system/bank/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询银行信息详细
+ * @param id
+ */
+export const getBank = (id: string | number): AxiosPromise<BankVO> => {
+  return request({
+    url: '/system/bank/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增银行信息
+ * @param data
+ */
+export const addBank = (data: BankForm) => {
+  return request({
+    url: '/system/bank',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改银行信息
+ * @param data
+ */
+export const updateBank = (data: BankForm) => {
+  return request({
+    url: '/system/bank',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除银行信息
+ * @param id
+ */
+export const delBank = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/bank/' + id,
+    method: 'delete'
+  });
+};
+
+export function changeShowStatus(id: string | number, isShow: string) {
+  const data = {
+    id,
+    isShow
+  };
+  return request({
+    url: '/system/bank/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 155 - 0
src/api/company/bank/types.ts

@@ -0,0 +1,155 @@
+export interface BankVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 网点编号
+   */
+  bnId: string;
+
+  /**
+   * 网点名称
+   */
+  bnName: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 网点地址
+   */
+  bnAddr: string;
+
+  /**
+   * 网点分类ID
+   */
+  bnCatgId: string | number;
+
+  /**
+   * 传真号码
+   */
+  faxNo: string;
+
+  /**
+   * 联系电话
+   */
+  telNo: string;
+
+  /**
+   * 是否显示(0-是,1-否)
+   */
+  isShow: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface BankForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 网点编号
+   */
+  bnId?: string;
+
+  /**
+   * 网点名称
+   */
+  bnName?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 网点地址
+   */
+  bnAddr?: string;
+
+  /**
+   * 网点分类ID
+   */
+  bnCatgId?: string | number;
+
+  /**
+   * 传真号码
+   */
+  faxNo?: string;
+
+  /**
+   * 联系电话
+   */
+  telNo?: string;
+
+  /**
+   * 是否显示(0-是,1-否)
+   */
+  isShow?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface BankQuery extends PageQuery {
+  /**
+   * 网点编号
+   */
+  bnId?: string;
+
+  /**
+   * 网点名称
+   */
+  bnName?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 网点地址
+   */
+  bnAddr?: string;
+
+  /**
+   * 网点分类ID
+   */
+  bnCatgId?: string | number;
+
+  /**
+   * 传真号码
+   */
+  faxNo?: string;
+
+  /**
+   * 联系电话
+   */
+  telNo?: string;
+
+  /**
+   * 是否显示(0-是,1-否)
+   */
+  isShow?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 74 - 0
src/api/company/comCurrency/index.ts

@@ -0,0 +1,74 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { ComCurrencyVO, ComCurrencyForm, ComCurrencyQuery } from '@/api/company/comCurrency/types';
+
+/**
+ * 查询交易币别配置列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listComCurrency = (query?: ComCurrencyQuery): AxiosPromise<ComCurrencyVO[]> => {
+  return request({
+    url: '/system/comCurrency/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询交易币别配置详细
+ * @param id
+ */
+export const getComCurrency = (id: string | number): AxiosPromise<ComCurrencyVO> => {
+  return request({
+    url: '/system/comCurrency/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增交易币别配置
+ * @param data
+ */
+export const addComCurrency = (data: ComCurrencyForm) => {
+  return request({
+    url: '/system/comCurrency',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改交易币别配置
+ * @param data
+ */
+export const updateComCurrency = (data: ComCurrencyForm) => {
+  return request({
+    url: '/system/comCurrency',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除交易币别配置
+ * @param id
+ */
+export const delComCurrency = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/comCurrency/' + id,
+    method: 'delete'
+  });
+};
+export function changeStatus(id: string | number, isShow: string) {
+  const data = {
+    id,
+    isShow
+  };
+  return request({
+    url: '/system/comCurrency/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 105 - 0
src/api/company/comCurrency/types.ts

@@ -0,0 +1,105 @@
+export interface ComCurrencyVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 货币编码
+   */
+  currencyCode: string;
+
+  /**
+   * 货币名称
+   */
+  currencyName: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface ComCurrencyForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 货币编码
+   */
+  currencyCode?: string;
+
+  /**
+   * 货币名称
+   */
+  currencyName?: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface ComCurrencyQuery extends PageQuery {
+  /**
+   * 货币编码
+   */
+  currencyCode?: string;
+
+  /**
+   * 货币名称
+   */
+  currencyName?: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/company/comDept/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { ComDeptVO, ComDeptForm, ComDeptQuery } from '@/api/company/comDept/types';
+
+/**
+ * 查询企业部门列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listComDept = (query?: ComDeptQuery): AxiosPromise<ComDeptVO[]> => {
+  return request({
+    url: '/system/comDept/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询企业部门详细
+ * @param id
+ */
+export const getComDept = (id: string | number): AxiosPromise<ComDeptVO> => {
+  return request({
+    url: '/system/comDept/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增企业部门
+ * @param data
+ */
+export const addComDept = (data: ComDeptForm) => {
+  return request({
+    url: '/system/comDept',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改企业部门
+ * @param data
+ */
+export const updateComDept = (data: ComDeptForm) => {
+  return request({
+    url: '/system/comDept',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除企业部门
+ * @param id
+ */
+export const delComDept = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/comDept/' + id,
+    method: 'delete'
+  });
+};
+
+export function changeStatus(id: string | number, status: string) {
+  const data = {
+    id,
+    status
+  };
+  return request({
+    url: '/system/comDept/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 255 - 0
src/api/company/comDept/types.ts

@@ -0,0 +1,255 @@
+export interface ComDeptVO {
+  /**
+   * 部门ID
+   */
+  id: string | number;
+
+  /**
+   * 部门编码
+   */
+  deptCode: string;
+
+  /**
+   * 企业ID
+   */
+  companyId: string | number;
+
+  /**
+   * 部门名称
+   */
+  deptName: string;
+
+  /**
+   * 父部门ID
+   */
+  parentId: string | number;
+
+  /**
+   * 祖级部门ID路径
+   */
+  ancestors: string;
+
+  /**
+   * 部门类别
+   */
+  deptCategory: string;
+
+  /**
+   * 部门层级深度
+   */
+  level: number;
+
+  /**
+   * 负责人用户ID
+   */
+  leader: number;
+
+  /**
+   * 联系电话
+   */
+  phone: string;
+
+  /**
+   * 邮箱
+   */
+  email: string;
+
+  /**
+   * 生效日期
+   */
+  validFrom: string | number;
+
+  /**
+   * 失效日期
+   */
+  validTo: string | number;
+
+  /**
+   * 部门状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 显示顺序
+   */
+  orderNum: number;
+
+  /**
+   * 子对象
+   */
+  children: ComDeptVO[];
+}
+
+export interface ComDeptForm extends BaseEntity {
+  /**
+   * 部门ID
+   */
+  id?: string | number;
+
+  /**
+   * 部门编码
+   */
+  deptCode?: string;
+
+  /**
+   * 企业ID
+   */
+  companyId?: string | number;
+
+  /**
+   * 部门名称
+   */
+  deptName?: string;
+
+  /**
+   * 父部门ID
+   */
+  parentId?: string | number;
+
+  /**
+   * 祖级部门ID路径
+   */
+  ancestors?: string;
+
+  /**
+   * 部门类别
+   */
+  deptCategory?: string;
+
+  /**
+   * 部门层级深度
+   */
+  level?: number;
+
+  /**
+   * 负责人用户ID
+   */
+  leader?: number;
+
+  /**
+   * 联系电话
+   */
+  phone?: string;
+
+  /**
+   * 邮箱
+   */
+  email?: string;
+
+  /**
+   * 生效日期
+   */
+  validFrom?: string | number;
+
+  /**
+   * 失效日期
+   */
+  validTo?: string | number;
+
+  /**
+   * 部门状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 显示顺序
+   */
+  orderNum?: number;
+}
+
+export interface ComDeptQuery {
+  /**
+   * 部门编码
+   */
+  deptCode?: string;
+
+  /**
+   * 企业ID
+   */
+  companyId?: string | number;
+
+  /**
+   * 部门名称
+   */
+  deptName?: string;
+
+  /**
+   * 父部门ID
+   */
+  parentId?: string | number;
+
+  /**
+   * 祖级部门ID路径
+   */
+  ancestors?: string;
+
+  /**
+   * 部门类别
+   */
+  deptCategory?: string;
+
+  /**
+   * 部门层级深度
+   */
+  level?: number;
+
+  /**
+   * 负责人用户ID
+   */
+  leader?: number;
+
+  /**
+   * 联系电话
+   */
+  phone?: string;
+
+  /**
+   * 邮箱
+   */
+  email?: string;
+
+  /**
+   * 生效日期
+   */
+  validFrom?: string | number;
+
+  /**
+   * 失效日期
+   */
+  validTo?: string | number;
+
+  /**
+   * 部门状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 显示顺序
+   */
+  orderNum?: number;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/company/comPost/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { ComPostVO, ComPostForm, ComPostQuery } from '@/api/company/comPost/types';
+
+/**
+ * 查询岗位信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listComPost = (query?: ComPostQuery): AxiosPromise<ComPostVO[]> => {
+  return request({
+    url: '/system/comPost/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询岗位信息详细
+ * @param postId
+ */
+export const getComPost = (postId: string | number): AxiosPromise<ComPostVO> => {
+  return request({
+    url: '/system/comPost/' + postId,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增岗位信息
+ * @param data
+ */
+export const addComPost = (data: ComPostForm) => {
+  return request({
+    url: '/system/comPost',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改岗位信息
+ * @param data
+ */
+export const updateComPost = (data: ComPostForm) => {
+  return request({
+    url: '/system/comPost',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除岗位信息
+ * @param postId
+ */
+export const delComPost = (postId: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/comPost/' + postId,
+    method: 'delete'
+  });
+};
+
+export function changeStatus(id: string | number, status: string) {
+  const data = {
+    id,
+    status
+  };
+  return request({
+    url: '/system/comPost/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 95 - 0
src/api/company/comPost/types.ts

@@ -0,0 +1,95 @@
+export interface ComPostVO {
+  /**
+   * 岗位ID
+   */
+  postId: string | number;
+
+  /**
+   * 岗位编码
+   */
+  postCode: string;
+
+  /**
+   * 岗位名称
+   */
+  postName: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface ComPostForm extends BaseEntity {
+  /**
+   * 岗位ID
+   */
+  postId?: string | number;
+
+  /**
+   * 岗位编码
+   */
+  postCode?: string;
+
+  /**
+   * 岗位名称
+   */
+  postName?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface ComPostQuery extends PageQuery {
+  /**
+   * 岗位编码
+   */
+  postCode?: string;
+
+  /**
+   * 岗位名称
+   */
+  postName?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/company/comStaff/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { ComStaffVO, ComStaffForm, ComStaffQuery } from '@/api/company/comStaff/types';
+
+/**
+ * 查询人员信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listComStaff = (query?: ComStaffQuery): AxiosPromise<ComStaffVO[]> => {
+  return request({
+    url: '/system/comStaff/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询人员信息详细
+ * @param staffId
+ */
+export const getComStaff = (staffId: string | number): AxiosPromise<ComStaffVO> => {
+  return request({
+    url: '/system/comStaff/' + staffId,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增人员信息
+ * @param data
+ */
+export const addComStaff = (data: ComStaffForm) => {
+  return request({
+    url: '/system/comStaff',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改人员信息
+ * @param data
+ */
+export const updateComStaff = (data: ComStaffForm) => {
+  return request({
+    url: '/system/comStaff',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除人员信息
+ * @param staffId
+ */
+export const delComStaff = (staffId: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/comStaff/' + staffId,
+    method: 'delete'
+  });
+};
+
+export function changeStatus(id: string | number, status: string) {
+  const data = {
+    id,
+    status
+  };
+  return request({
+    url: '/system/comStaff/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 215 - 0
src/api/company/comStaff/types.ts

@@ -0,0 +1,215 @@
+export interface ComStaffVO {
+  /**
+   * 人员ID
+   */
+  staffId: string | number;
+
+  /**
+   * 人员编码
+   */
+  staffCode: string;
+
+  /**
+   * 姓名
+   */
+  staffName: string;
+
+  /**
+   * 所属部门编码
+   */
+  deptId: string | number;
+
+  /**
+   * 联系电话
+   */
+  phone: string;
+
+  /**
+   * 岗位编码
+   */
+  postId: string | number;
+
+  /**
+   * 性别
+   */
+  sex: string;
+
+  /**
+   * 角色编码
+   */
+  roleId: string | number;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 密码
+   */
+  password: string;
+
+  /**
+   * 有效期起始
+   */
+  validFrom: string | number;
+
+  /**
+   * 有效期截止
+   */
+  validTo: string | number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface ComStaffForm extends BaseEntity {
+  /**
+   * 人员ID
+   */
+  staffId?: string | number;
+
+  /**
+   * 人员编码
+   */
+  staffCode?: string;
+
+  /**
+   * 姓名
+   */
+  staffName?: string;
+
+  /**
+   * 所属部门编码
+   */
+  deptId?: string | number;
+
+  /**
+   * 联系电话
+   */
+  phone?: string;
+
+  /**
+   * 岗位编码
+   */
+  postId?: string | number;
+
+  /**
+   * 性别
+   */
+  sex?: string;
+
+  /**
+   * 角色编码
+   */
+  roleId?: string | number;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 密码
+   */
+  password?: string;
+
+  /**
+   * 有效期起始
+   */
+  validFrom?: string | number;
+
+  /**
+   * 有效期截止
+   */
+  validTo?: string | number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface ComStaffQuery extends PageQuery {
+  /**
+   * 人员编码
+   */
+  staffCode?: string;
+
+  /**
+   * 姓名
+   */
+  staffName?: string;
+
+  /**
+   * 所属部门编码
+   */
+  deptId?: string | number;
+
+  /**
+   * 联系电话
+   */
+  phone?: string;
+
+  /**
+   * 岗位编码
+   */
+  postId?: string | number;
+
+  /**
+   * 性别
+   */
+  sex?: string;
+
+  /**
+   * 角色编码
+   */
+  roleId?: string | number;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 密码
+   */
+  password?: string;
+
+  /**
+   * 有效期起始
+   */
+  validFrom?: string | number;
+
+  /**
+   * 有效期截止
+   */
+  validTo?: string | number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/company/company/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { CompanyVO, CompanyForm, CompanyQuery } from '@/api/company/company/types';
+
+/**
+ * 查询公司信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listCompany = (query?: CompanyQuery): AxiosPromise<CompanyVO[]> => {
+  return request({
+    url: '/system/company/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询公司信息详细
+ * @param id
+ */
+export const getCompany = (id: string | number): AxiosPromise<CompanyVO> => {
+  return request({
+    url: '/system/company/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增公司信息
+ * @param data
+ */
+export const addCompany = (data: CompanyForm) => {
+  return request({
+    url: '/system/company',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改公司信息
+ * @param data
+ */
+export const updateCompany = (data: CompanyForm) => {
+  return request({
+    url: '/system/company',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除公司信息
+ * @param id
+ */
+export const delCompany = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/company/' + id,
+    method: 'delete'
+  });
+};
+
+export function changeShowStatus(id: string | number, isShow: string) {
+  const data = {
+    id,
+    isShow
+  };
+  return request({
+    url: '/system/bank/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 410 - 0
src/api/company/company/types.ts

@@ -0,0 +1,410 @@
+export interface CompanyVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 会计主体ID
+   */
+  accBnId: string | number;
+
+  /**
+   * 会计主体编号
+   */
+  accBnNo: string;
+
+  /**
+   * 公司地址
+   */
+  address: string;
+
+  /**
+   * 经营开始日期
+   */
+  begData: string;
+
+  /**
+   * 经营范围
+   */
+  busScp: string;
+
+  /**
+   * 注册资本金额
+   */
+  capAmt: number;
+
+  /**
+   * 公司全名
+   */
+  companyFullName: string;
+
+  /**
+   * 法人代表
+   */
+  corporation: string;
+
+  /**
+   * 电子邮箱
+   */
+  email: string;
+
+  /**
+   * 经营结束日期
+   */
+  endData: string;
+
+  /**
+   * 成立日期
+   */
+  foundDa: string;
+
+  /**
+   * 内部客户ID
+   */
+  inCustId: string | number;
+
+  /**
+   * 内部供应商ID
+   */
+  inSupId: string | number;
+
+  /**
+   * 法律代表人
+   */
+  lelPer: string;
+
+  /**
+   * 联系电话
+   */
+  phone: string;
+
+  /**
+   * 负责人/经办人
+   */
+  principal: string;
+
+  /**
+   * 注册地址
+   */
+  regAddr: string;
+
+  /**
+   * 注册日期
+   */
+  regData: string;
+
+  /**
+   * 注册机关
+   */
+  regOrg: string;
+
+  /**
+   * 税务登记号
+   */
+  taxNo: string;
+
+  /**
+   * 公司编号
+   */
+  companyCode: string;
+
+  /**
+   * 公司名称
+   */
+  companyName: string;
+
+  /**
+   * 是否显示(0-是,1-否)
+   */
+  isShow: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface CompanyForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 会计主体ID
+   */
+  accBnId?: string | number;
+
+  /**
+   * 会计主体编号
+   */
+  accBnNo?: string;
+
+  /**
+   * 公司地址
+   */
+  address?: string;
+
+  /**
+   * 经营开始日期
+   */
+  begData?: string;
+
+  /**
+   * 经营范围
+   */
+  busScp?: string;
+
+  /**
+   * 注册资本金额
+   */
+  capAmt?: number;
+
+  /**
+   * 公司全名
+   */
+  companyFullName?: string;
+
+  /**
+   * 法人代表
+   */
+  corporation?: string;
+
+  /**
+   * 电子邮箱
+   */
+  email?: string;
+
+  /**
+   * 经营结束日期
+   */
+  endData?: string;
+
+  /**
+   * 成立日期
+   */
+  foundDa?: string;
+
+  /**
+   * 内部客户ID
+   */
+  inCustId?: string | number;
+
+  /**
+   * 内部供应商ID
+   */
+  inSupId?: string | number;
+
+  /**
+   * 法律代表人
+   */
+  lelPer?: string;
+
+  /**
+   * 联系电话
+   */
+  phone?: string;
+
+  /**
+   * 负责人/经办人
+   */
+  principal?: string;
+
+  /**
+   * 注册地址
+   */
+  regAddr?: string;
+
+  /**
+   * 注册日期
+   */
+  regData?: string;
+
+  /**
+   * 注册机关
+   */
+  regOrg?: string;
+
+  /**
+   * 税务登记号
+   */
+  taxNo?: string;
+
+  /**
+   * 公司编号
+   */
+  companyCode?: string;
+
+  /**
+   * 公司名称
+   */
+  companyName?: string;
+
+  /**
+   * 是否显示(0-是,1-否)
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface CompanyQuery extends PageQuery {
+  /**
+   * 会计主体ID
+   */
+  accBnId?: string | number;
+
+  /**
+   * 会计主体编号
+   */
+  accBnNo?: string;
+
+  /**
+   * 公司地址
+   */
+  address?: string;
+
+  /**
+   * 经营开始日期
+   */
+  begData?: string;
+
+  /**
+   * 经营范围
+   */
+  busScp?: string;
+
+  /**
+   * 注册资本金额
+   */
+  capAmt?: number;
+
+  /**
+   * 公司全名
+   */
+  companyFullName?: string;
+
+  /**
+   * 法人代表
+   */
+  corporation?: string;
+
+  /**
+   * 电子邮箱
+   */
+  email?: string;
+
+  /**
+   * 经营结束日期
+   */
+  endData?: string;
+
+  /**
+   * 成立日期
+   */
+  foundDa?: string;
+
+  /**
+   * 内部客户ID
+   */
+  inCustId?: string | number;
+
+  /**
+   * 内部供应商ID
+   */
+  inSupId?: string | number;
+
+  /**
+   * 法律代表人
+   */
+  lelPer?: string;
+
+  /**
+   * 联系电话
+   */
+  phone?: string;
+
+  /**
+   * 负责人/经办人
+   */
+  principal?: string;
+
+  /**
+   * 注册地址
+   */
+  regAddr?: string;
+
+  /**
+   * 注册日期
+   */
+  regData?: string;
+
+  /**
+   * 注册机关
+   */
+  regOrg?: string;
+
+  /**
+   * 税务登记号
+   */
+  taxNo?: string;
+
+  /**
+   * 公司编号
+   */
+  companyCode?: string;
+
+  /**
+   * 公司名称
+   */
+  companyName?: string;
+
+  /**
+   * 是否显示(0-是,1-否)
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/company/logisticsCompany/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { LogisticsCompanyVO, LogisticsCompanyForm, LogisticsCompanyQuery } from '@/api/company/logisticsCompany/types';
+
+/**
+ * 查询物流公司列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listLogisticsCompany = (query?: LogisticsCompanyQuery): AxiosPromise<LogisticsCompanyVO[]> => {
+  return request({
+    url: '/system/logisticsCompany/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询物流公司详细
+ * @param id
+ */
+export const getLogisticsCompany = (id: string | number): AxiosPromise<LogisticsCompanyVO> => {
+  return request({
+    url: '/system/logisticsCompany/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增物流公司
+ * @param data
+ */
+export const addLogisticsCompany = (data: LogisticsCompanyForm) => {
+  return request({
+    url: '/system/logisticsCompany',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改物流公司
+ * @param data
+ */
+export const updateLogisticsCompany = (data: LogisticsCompanyForm) => {
+  return request({
+    url: '/system/logisticsCompany',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除物流公司
+ * @param id
+ */
+export const delLogisticsCompany = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/logisticsCompany/' + id,
+    method: 'delete'
+  });
+};

+ 116 - 0
src/api/company/logisticsCompany/types.ts

@@ -0,0 +1,116 @@
+export interface LogisticsCompanyVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 物流公司编码
+   */
+  logisticsCode: string;
+
+  /**
+   * 物流公司名称
+   */
+  logisticsName: string;
+
+  /**
+   * 物流公司描述
+   */
+  logisticsDescription: string;
+
+  /**
+   * 是否显示
+   */
+  isShow: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+}
+
+export interface LogisticsCompanyForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 物流公司编码
+   */
+  logisticsCode?: string;
+
+  /**
+   * 物流公司名称
+   */
+  logisticsName?: string;
+
+  /**
+   * 物流公司描述
+   */
+  logisticsDescription?: string;
+
+  /**
+   * 是否显示
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+}
+
+export interface LogisticsCompanyQuery extends PageQuery {
+
+  /**
+   * 物流公司编码
+   */
+  logisticsCode?: string;
+
+  /**
+   * 物流公司名称
+   */
+  logisticsName?: string;
+
+  /**
+   * 物流公司描述
+   */
+  logisticsDescription?: string;
+
+  /**
+   * 是否显示
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+    /**
+     * 日期范围参数
+     */
+    params?: any;
+}
+
+
+

+ 74 - 0
src/api/company/revenueExpense/index.ts

@@ -0,0 +1,74 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { RevenueExpenseVO, RevenueExpenseForm, RevenueExpenseQuery } from '@/api/company/revenueExpense/types';
+
+/**
+ * 查询收入费用设定列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listRevenueExpense = (query?: RevenueExpenseQuery): AxiosPromise<RevenueExpenseVO[]> => {
+  return request({
+    url: '/system/revenueExpense/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询收入费用设定详细
+ * @param id
+ */
+export const getRevenueExpense = (id: string | number): AxiosPromise<RevenueExpenseVO> => {
+  return request({
+    url: '/system/revenueExpense/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增收入费用设定
+ * @param data
+ */
+export const addRevenueExpense = (data: RevenueExpenseForm) => {
+  return request({
+    url: '/system/revenueExpense',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改收入费用设定
+ * @param data
+ */
+export const updateRevenueExpense = (data: RevenueExpenseForm) => {
+  return request({
+    url: '/system/revenueExpense',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除收入费用设定
+ * @param id
+ */
+export const delRevenueExpense = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/revenueExpense/' + id,
+    method: 'delete'
+  });
+};
+export function changeStatus(id: string | number, isShow: string) {
+  const data = {
+    id,
+    isShow
+  };
+  return request({
+    url: '/system/revenueExpense/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 135 - 0
src/api/company/revenueExpense/types.ts

@@ -0,0 +1,135 @@
+export interface RevenueExpenseVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 编码
+   */
+  revenueCode: string;
+
+  /**
+   * 费用名称
+   */
+  revenueName: string;
+
+  /**
+   * 费用类(0 是  1否)
+   */
+  expenseFlag: string;
+
+  /**
+   * 收入类(0 是  1否)
+   */
+  revenueFlag: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface RevenueExpenseForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 编码
+   */
+  revenueCode?: string;
+
+  /**
+   * 费用名称
+   */
+  revenueName?: string;
+
+  /**
+   * 费用类(0 是  1否)
+   */
+  expenseFlag?: string;
+
+  /**
+   * 收入类(0 是  1否)
+   */
+  revenueFlag?: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface RevenueExpenseQuery extends PageQuery {
+  /**
+   * 编码
+   */
+  revenueCode?: string;
+
+  /**
+   * 费用名称
+   */
+  revenueName?: string;
+
+  /**
+   * 费用类(0 是  1否)
+   */
+  expenseFlag?: string;
+
+  /**
+   * 收入类(0 是  1否)
+   */
+  revenueFlag?: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/company/sysCompany/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { SysCompanyVO, SysCompanyForm, SysCompanyQuery } from '@/api/company/sysCompany/types';
+
+/**
+ * 查询公司信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listSysCompany = (query?: SysCompanyQuery): AxiosPromise<SysCompanyVO[]> => {
+  return request({
+    url: '/system/sysCompany/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询公司信息详细
+ * @param id
+ */
+export const getSysCompany = (id: string | number): AxiosPromise<SysCompanyVO> => {
+  return request({
+    url: '/system/sysCompany/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增公司信息
+ * @param data
+ */
+export const addSysCompany = (data: SysCompanyForm) => {
+  return request({
+    url: '/system/sysCompany',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改公司信息
+ * @param data
+ */
+export const updateSysCompany = (data: SysCompanyForm) => {
+  return request({
+    url: '/system/sysCompany',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除公司信息
+ * @param id
+ */
+export const delSysCompany = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/sysCompany/' + id,
+    method: 'delete'
+  });
+};

+ 215 - 0
src/api/company/sysCompany/types.ts

@@ -0,0 +1,215 @@
+export interface SysCompanyVO {
+  /**
+   * ID
+   */
+  id: string | number;
+
+  /**
+   * 税务登记号/统一社会信用代码
+   */
+  taxNumber: string;
+
+  /**
+   * 公司编码
+   */
+  companyCode: string;
+
+  /**
+   * 公司名称
+   */
+  companyName: string;
+
+  /**
+   * 生效日期
+   */
+  beginDate: string;
+
+  /**
+   * 注册资本
+   */
+  registeredCapital: number;
+
+  /**
+   * 公司全称
+   */
+  companyFullName: string;
+
+  /**
+   * 电子邮箱
+   */
+  email: string;
+
+  /**
+   * 失效日期
+   */
+  endDate: string;
+
+  /**
+   * 成立日期
+   */
+  foundedDate: string;
+
+  /**
+   * 注册日期(格式:YYYYMMDD)
+   */
+  registrationDate: string;
+
+  /**
+   * 是否显示
+   */
+  isShow: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface SysCompanyForm extends BaseEntity {
+  /**
+   * ID
+   */
+  id?: string | number;
+
+  /**
+   * 税务登记号/统一社会信用代码
+   */
+  taxNumber?: string;
+
+  /**
+   * 公司编码
+   */
+  companyCode?: string;
+
+  /**
+   * 公司名称
+   */
+  companyName?: string;
+
+  /**
+   * 生效日期
+   */
+  beginDate?: string;
+
+  /**
+   * 注册资本
+   */
+  registeredCapital?: number;
+
+  /**
+   * 公司全称
+   */
+  companyFullName?: string;
+
+  /**
+   * 电子邮箱
+   */
+  email?: string;
+
+  /**
+   * 失效日期
+   */
+  endDate?: string;
+
+  /**
+   * 成立日期
+   */
+  foundedDate?: string;
+
+  /**
+   * 注册日期(格式:YYYYMMDD)
+   */
+  registrationDate?: string;
+
+  /**
+   * 是否显示
+   */
+  isShow?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface SysCompanyQuery extends PageQuery {
+  /**
+   * 税务登记号/统一社会信用代码
+   */
+  taxNumber?: string;
+
+  /**
+   * 公司编码
+   */
+  companyCode?: string;
+
+  /**
+   * 公司名称
+   */
+  companyName?: string;
+
+  /**
+   * 生效日期
+   */
+  beginDate?: string;
+
+  /**
+   * 注册资本
+   */
+  registeredCapital?: number;
+
+  /**
+   * 公司全称
+   */
+  companyFullName?: string;
+
+  /**
+   * 电子邮箱
+   */
+  email?: string;
+
+  /**
+   * 失效日期
+   */
+  endDate?: string;
+
+  /**
+   * 成立日期
+   */
+  foundedDate?: string;
+
+  /**
+   * 注册日期(格式:YYYYMMDD)
+   */
+  registrationDate?: string;
+
+  /**
+   * 是否显示
+   */
+  isShow?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/company/warehouse/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { WarehouseVO, WarehouseForm, WarehouseQuery } from '@/api/company/warehouse/types';
+
+/**
+ * 查询仓库信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listWarehouse = (query?: WarehouseQuery): AxiosPromise<WarehouseVO[]> => {
+  return request({
+    url: '/system/warehouse/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询仓库信息详细
+ * @param id
+ */
+export const getWarehouse = (id: string | number): AxiosPromise<WarehouseVO> => {
+  return request({
+    url: '/system/warehouse/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增仓库信息
+ * @param data
+ */
+export const addWarehouse = (data: WarehouseForm) => {
+  return request({
+    url: '/system/warehouse',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改仓库信息
+ * @param data
+ */
+export const updateWarehouse = (data: WarehouseForm) => {
+  return request({
+    url: '/system/warehouse',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除仓库信息
+ * @param id
+ */
+export const delWarehouse = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/warehouse/' + id,
+    method: 'delete'
+  });
+};
+
+export function changeStatus(id: string | number, isShow: string) {
+  const data = {
+    id,
+    isShow
+  };
+  return request({
+    url: '/system/warehouse/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 380 - 0
src/api/company/warehouse/types.ts

@@ -0,0 +1,380 @@
+export interface WarehouseVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 仓库编码
+   */
+  warehouseCode: string;
+
+  /**
+   * 仓库名称
+   */
+  warehouseName: string;
+
+  /**
+   * 库存状态
+   */
+  stkStu: string;
+
+  /**
+   * 所属公司
+   */
+  companyId: string | number;
+
+  /**
+   * 省份
+   */
+  province: string;
+
+  /**
+   * 城市
+   */
+  city: string;
+
+  /**
+   * 区/县
+   */
+  district: string;
+
+  /**
+   * 省市区
+   */
+  provinceCityDistrict: string;
+
+  /**
+   * 仓库类型
+   */
+  warehouseType: string;
+
+  /**
+   * 仓库功能
+   */
+  warehouseFunction: string;
+
+  /**
+   * 是否支持发货
+   */
+  isShip: string;
+
+  /**
+   * 是否支持退货
+   */
+  isReturn: string;
+
+  /**
+   * 是否默认仓库
+   */
+  isDefault: string;
+
+  /**
+   * 是否前台展示
+   */
+  isShow: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 联系人姓名
+   */
+  contacts: string;
+
+  /**
+   * 手机号
+   */
+  mobile: string;
+
+  /**
+   * 固定电话
+   */
+  phone: string;
+
+  /**
+   * 详细地址
+   */
+  address: string;
+
+  /**
+   * 邮政编码
+   */
+  zipCode: string;
+
+  /**
+   * 最大配送时效(天)
+   */
+  maxLeadTime: number;
+
+  /**
+   * 最小配送时效(天)
+   */
+  minLeadTime: number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface WarehouseForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 仓库编码
+   */
+  warehouseCode?: string;
+
+  /**
+   * 仓库名称
+   */
+  warehouseName?: string;
+
+  /**
+   * 库存状态
+   */
+  stkStu?: string;
+
+  /**
+   * 所属公司
+   */
+  companyId?: string | number;
+
+  /**
+   * 省份
+   */
+  province?: string;
+
+  /**
+   * 城市
+   */
+  city?: string;
+
+  /**
+   * 区/县
+   */
+  district?: string;
+
+  /**
+   * 省市区
+   */
+  provinceCityDistrict?: string;
+
+  /**
+   * 仓库类型
+   */
+  warehouseType?: string;
+
+  /**
+   * 仓库功能
+   */
+  warehouseFunction?: string;
+
+  /**
+   * 是否支持发货
+   */
+  isShip?: string;
+
+  /**
+   * 是否支持退货
+   */
+  isReturn?: string;
+
+  /**
+   * 是否默认仓库
+   */
+  isDefault?: string;
+
+  /**
+   * 是否前台展示
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 联系人姓名
+   */
+  contacts?: string;
+
+  /**
+   * 手机号
+   */
+  mobile?: string;
+
+  /**
+   * 固定电话
+   */
+  phone?: string;
+
+  /**
+   * 详细地址
+   */
+  address?: string;
+
+  /**
+   * 邮政编码
+   */
+  zipCode?: string;
+
+  /**
+   * 最大配送时效(天)
+   */
+  maxLeadTime?: number;
+
+  /**
+   * 最小配送时效(天)
+   */
+  minLeadTime?: number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface WarehouseQuery extends PageQuery {
+  /**
+   * 仓库编码
+   */
+  warehouseCode?: string;
+
+  /**
+   * 仓库名称
+   */
+  warehouseName?: string;
+
+  /**
+   * 库存状态
+   */
+  stkStu?: string;
+
+  /**
+   * 所属公司
+   */
+  companyId?: string | number;
+
+  /**
+   * 省份
+   */
+  province?: string;
+
+  /**
+   * 城市
+   */
+  city?: string;
+
+  /**
+   * 区/县
+   */
+  district?: string;
+
+  /**
+   * 省市区
+   */
+  provinceCityDistrict?: string;
+
+  /**
+   * 仓库类型
+   */
+  warehouseType?: string;
+
+  /**
+   * 仓库功能
+   */
+  warehouseFunction?: string;
+
+  /**
+   * 是否支持发货
+   */
+  isShip?: string;
+
+  /**
+   * 是否支持退货
+   */
+  isReturn?: string;
+
+  /**
+   * 是否默认仓库
+   */
+  isDefault?: string;
+
+  /**
+   * 是否前台展示
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 联系人姓名
+   */
+  contacts?: string;
+
+  /**
+   * 手机号
+   */
+  mobile?: string;
+
+  /**
+   * 固定电话
+   */
+  phone?: string;
+
+  /**
+   * 详细地址
+   */
+  address?: string;
+
+  /**
+   * 邮政编码
+   */
+  zipCode?: string;
+
+  /**
+   * 最大配送时效(天)
+   */
+  maxLeadTime?: number;
+
+  /**
+   * 最小配送时效(天)
+   */
+  minLeadTime?: number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/complaintsSuggestions/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { ComplaintsSuggestionsVO, ComplaintsSuggestionsForm, ComplaintsSuggestionsQuery } from '@/api/customer/complaintsSuggestions/types';
+
+/**
+ * 查询投诉与建议记录列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listComplaintsSuggestions = (query?: ComplaintsSuggestionsQuery): AxiosPromise<ComplaintsSuggestionsVO[]> => {
+  return request({
+    url: '/customer/complaintsSuggestions/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询投诉与建议记录详细
+ * @param id
+ */
+export const getComplaintsSuggestions = (id: string | number): AxiosPromise<ComplaintsSuggestionsVO> => {
+  return request({
+    url: '/customer/complaintsSuggestions/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增投诉与建议记录
+ * @param data
+ */
+export const addComplaintsSuggestions = (data: ComplaintsSuggestionsForm) => {
+  return request({
+    url: '/customer/complaintsSuggestions',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改投诉与建议记录
+ * @param data
+ */
+export const updateComplaintsSuggestions = (data: ComplaintsSuggestionsForm) => {
+  return request({
+    url: '/customer/complaintsSuggestions',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除投诉与建议记录
+ * @param id
+ */
+export const delComplaintsSuggestions = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/complaintsSuggestions/' + id,
+    method: 'delete'
+  });
+};

+ 245 - 0
src/api/customer/complaintsSuggestions/types.ts

@@ -0,0 +1,245 @@
+export interface ComplaintsSuggestionsVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 投诉/建议编号
+   */
+  complainNo: string;
+
+  /**
+   * 用户id
+   */
+  userId: string | number;
+
+  /**
+   * 用户编号
+   */
+  userNo: string;
+
+  /**
+   * 称呼
+   */
+  userName: string;
+
+  /**
+   * 联系电话
+   */
+  phone: string;
+
+  /**
+   * 反馈类型
+   */
+  feedbackType: string;
+
+  /**
+   * 反馈内容
+   */
+  feedbackContent: string;
+
+  /**
+   * 相关图片路径
+   */
+  relatedPictures: string;
+
+  /**
+   * 处理时间
+   */
+  processTime: string;
+
+  /**
+   * 处理人员姓名
+   */
+  processStaff: string;
+
+  /**
+   * 处理结果
+   */
+  processResult: string;
+
+  /**
+   * 处理过程反馈
+   */
+  processFeedback: string;
+
+  /**
+   * 处理评价
+   */
+  processEvaluation: number;
+
+  /**
+   * 最终结果反馈
+   */
+  resultFeedback: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface ComplaintsSuggestionsForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 投诉/建议编号
+   */
+  complainNo?: string;
+
+  /**
+   * 用户id
+   */
+  userId?: string | number;
+
+  /**
+   * 用户编号
+   */
+  userNo?: string;
+
+  /**
+   * 称呼
+   */
+  userName?: string;
+
+  /**
+   * 联系电话
+   */
+  phone?: string;
+
+  /**
+   * 反馈类型
+   */
+  feedbackType?: string;
+
+  /**
+   * 反馈内容
+   */
+  feedbackContent?: string;
+
+  /**
+   * 相关图片路径
+   */
+  relatedPictures?: string;
+
+  /**
+   * 处理时间
+   */
+  processTime?: string;
+
+  /**
+   * 处理人员姓名
+   */
+  processStaff?: string;
+
+  /**
+   * 处理结果
+   */
+  processResult?: string;
+
+  /**
+   * 处理过程反馈
+   */
+  processFeedback?: string;
+
+  /**
+   * 处理评价
+   */
+  processEvaluation?: number;
+
+  /**
+   * 最终结果反馈
+   */
+  resultFeedback?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface ComplaintsSuggestionsQuery extends PageQuery {
+  /**
+   * 投诉/建议编号
+   */
+  complainNo?: string;
+
+  /**
+   * 用户id
+   */
+  userId?: string | number;
+
+  /**
+   * 用户编号
+   */
+  userNo?: string;
+
+  /**
+   * 称呼
+   */
+  userName?: string;
+
+  /**
+   * 联系电话
+   */
+  phone?: string;
+
+  /**
+   * 反馈类型
+   */
+  feedbackType?: string;
+
+  /**
+   * 反馈内容
+   */
+  feedbackContent?: string;
+
+  /**
+   * 相关图片路径
+   */
+  relatedPictures?: string;
+
+  /**
+   * 处理时间
+   */
+  processTime?: string;
+
+  /**
+   * 处理人员姓名
+   */
+  processStaff?: string;
+
+  /**
+   * 处理结果
+   */
+  processResult?: string;
+
+  /**
+   * 处理过程反馈
+   */
+  processFeedback?: string;
+
+  /**
+   * 处理评价
+   */
+  processEvaluation?: number;
+
+  /**
+   * 最终结果反馈
+   */
+  resultFeedback?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/customer/creditLevel/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { CreditLevelVO, CreditLevelForm, CreditLevelQuery } from '@/api/customer/creditLevel/types';
+
+/**
+ * 查询信用等级配置列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listCreditLevel = (query?: CreditLevelQuery): AxiosPromise<CreditLevelVO[]> => {
+  return request({
+    url: '/system/creditLevel/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询信用等级配置详细
+ * @param id
+ */
+export const getCreditLevel = (id: string | number): AxiosPromise<CreditLevelVO> => {
+  return request({
+    url: '/system/creditLevel/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增信用等级配置
+ * @param data
+ */
+export const addCreditLevel = (data: CreditLevelForm) => {
+  return request({
+    url: '/system/creditLevel',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改信用等级配置
+ * @param data
+ */
+export const updateCreditLevel = (data: CreditLevelForm) => {
+  return request({
+    url: '/system/creditLevel',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除信用等级配置
+ * @param id
+ */
+export const delCreditLevel = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/creditLevel/' + id,
+    method: 'delete'
+  });
+};
+
+export function changeShowStatus(id: string | number, isShow: string) {
+  const data = {
+    id,
+    isShow
+  };
+  return request({
+    url: '/system/creditLevel/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 110 - 0
src/api/customer/creditLevel/types.ts

@@ -0,0 +1,110 @@
+export interface CreditLevelVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 信用等级编码
+   */
+  creditLevelNo: string;
+
+  /**
+   * 信用等级名称
+   */
+  creditLevelName: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface CreditLevelForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 信用等级编码
+   */
+  creditLevelNo?: string;
+
+  /**
+   * 信用等级名称
+   */
+  creditLevelName?: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface CreditLevelQuery extends PageQuery {
+  /**
+   * 信用等级编码
+   */
+  creditLevelNo?: string;
+
+  /**
+   * 信用等级名称
+   */
+  creditLevelName?: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/customerCategory/customerTag/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { CustomerTagVO, CustomerTagForm, CustomerTagQuery } from '@/api/customer/customerCategory/customerTag/types';
+
+/**
+ * 查询客户标签列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listCustomerTag = (query?: CustomerTagQuery): AxiosPromise<CustomerTagVO[]> => {
+  return request({
+    url: '/customer/customerTag/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询客户标签详细
+ * @param id
+ */
+export const getCustomerTag = (id: string | number): AxiosPromise<CustomerTagVO> => {
+  return request({
+    url: '/customer/customerTag/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增客户标签
+ * @param data
+ */
+export const addCustomerTag = (data: CustomerTagForm) => {
+  return request({
+    url: '/customer/customerTag',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改客户标签
+ * @param data
+ */
+export const updateCustomerTag = (data: CustomerTagForm) => {
+  return request({
+    url: '/customer/customerTag',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除客户标签
+ * @param id
+ */
+export const delCustomerTag = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/customerTag/' + id,
+    method: 'delete'
+  });
+};

+ 80 - 0
src/api/customer/customerCategory/customerTag/types.ts

@@ -0,0 +1,80 @@
+export interface CustomerTagVO {
+  /**
+   * ID
+   */
+  id: string | number;
+
+  /**
+   * 标签名称
+   */
+  tagName: string;
+
+  /**
+   * 商品标签
+   */
+  productTagIds: string;
+
+  /**
+   * 状态(0启用 1禁用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface CustomerTagForm extends BaseEntity {
+  /**
+   * ID
+   */
+  id?: string | number;
+
+  /**
+   * 标签名称
+   */
+  tagName?: string;
+
+  /**
+   * 商品标签
+   */
+  productTagIds?: string;
+
+  /**
+   * 状态(0启用 1禁用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface CustomerTagQuery extends PageQuery {
+  /**
+   * 标签名称
+   */
+  tagName?: string;
+
+  /**
+   * 商品标签
+   */
+  productTagIds?: string;
+
+  /**
+   * 状态(0启用 1禁用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/customerCategory/enterpriseScale/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { EnterpriseScaleVO, EnterpriseScaleForm, EnterpriseScaleQuery } from '@/api/customer/customerCategory/enterpriseScale/types';
+
+/**
+ * 查询企业规模列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listEnterpriseScale = (query?: EnterpriseScaleQuery): AxiosPromise<EnterpriseScaleVO[]> => {
+  return request({
+    url: '/customer/enterpriseScale/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询企业规模详细
+ * @param id
+ */
+export const getEnterpriseScale = (id: string | number): AxiosPromise<EnterpriseScaleVO> => {
+  return request({
+    url: '/customer/enterpriseScale/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增企业规模
+ * @param data
+ */
+export const addEnterpriseScale = (data: EnterpriseScaleForm) => {
+  return request({
+    url: '/customer/enterpriseScale',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改企业规模
+ * @param data
+ */
+export const updateEnterpriseScale = (data: EnterpriseScaleForm) => {
+  return request({
+    url: '/customer/enterpriseScale',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除企业规模
+ * @param id
+ */
+export const delEnterpriseScale = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/enterpriseScale/' + id,
+    method: 'delete'
+  });
+};

+ 79 - 0
src/api/customer/customerCategory/enterpriseScale/types.ts

@@ -0,0 +1,79 @@
+export interface EnterpriseScaleVO {
+  /**
+   * ID
+   */
+  id: string | number;
+
+  enterpriseScaleCode: string;
+
+  /**
+   * 企业规模名称
+   */
+  enterpriseScaleName: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode: string;
+}
+
+export interface EnterpriseScaleForm extends BaseEntity {
+  /**
+   * ID
+   */
+  id?: string | number;
+
+  enterpriseScaleCode?: string;
+
+  /**
+   * 企业规模名称
+   */
+  enterpriseScaleName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+}
+
+export interface EnterpriseScaleQuery extends PageQuery {
+  /**
+   * 企业规模名称
+   */
+  enterpriseScaleName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/customerCategory/industryCategory/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { IndustryCategoryVO, IndustryCategoryForm, IndustryCategoryQuery } from '@/api/customer/customerCategory/industryCategory/types';
+
+/**
+ * 查询所属行业列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listIndustryCategory = (query?: IndustryCategoryQuery): AxiosPromise<IndustryCategoryVO[]> => {
+  return request({
+    url: '/customer/industryCategory/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询所属行业详细
+ * @param id
+ */
+export const getIndustryCategory = (id: string | number): AxiosPromise<IndustryCategoryVO> => {
+  return request({
+    url: '/customer/industryCategory/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增所属行业
+ * @param data
+ */
+export const addIndustryCategory = (data: IndustryCategoryForm) => {
+  return request({
+    url: '/customer/industryCategory',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改所属行业
+ * @param data
+ */
+export const updateIndustryCategory = (data: IndustryCategoryForm) => {
+  return request({
+    url: '/customer/industryCategory',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除所属行业
+ * @param id
+ */
+export const delIndustryCategory = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/industryCategory/' + id,
+    method: 'delete'
+  });
+};

+ 79 - 0
src/api/customer/customerCategory/industryCategory/types.ts

@@ -0,0 +1,79 @@
+export interface IndustryCategoryVO {
+  /**
+   * ID
+   */
+  id: string | number;
+
+  industryCode: string;
+
+  /**
+   * 所属行业
+   */
+  industryCategoryName: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode: string;
+}
+
+export interface IndustryCategoryForm extends BaseEntity {
+  /**
+   * ID
+   */
+  id?: string | number;
+
+  industryCode?: string;
+
+  /**
+   * 所属行业
+   */
+  industryCategoryName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+}
+
+export interface IndustryCategoryQuery extends PageQuery {
+  /**
+   * 所属行业
+   */
+  industryCategoryName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/customerCategory/tagCategory/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { TagCategoryVO, TagCategoryForm, TagCategoryQuery } from '@/api/customer/customerCategory/tagCategory/types';
+
+/**
+ * 查询标签类别信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listTagCategory = (query?: TagCategoryQuery): AxiosPromise<TagCategoryVO[]> => {
+  return request({
+    url: '/customer/tagCategory/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询标签类别信息详细
+ * @param id
+ */
+export const getTagCategory = (id: string | number): AxiosPromise<TagCategoryVO> => {
+  return request({
+    url: '/customer/tagCategory/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增标签类别信息
+ * @param data
+ */
+export const addTagCategory = (data: TagCategoryForm) => {
+  return request({
+    url: '/customer/tagCategory',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改标签类别信息
+ * @param data
+ */
+export const updateTagCategory = (data: TagCategoryForm) => {
+  return request({
+    url: '/customer/tagCategory',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除标签类别信息
+ * @param id
+ */
+export const delTagCategory = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/tagCategory/' + id,
+    method: 'delete'
+  });
+};

+ 75 - 0
src/api/customer/customerCategory/tagCategory/types.ts

@@ -0,0 +1,75 @@
+export interface TagCategoryVO {
+  /**
+   * ID
+   */
+  id: string | number;
+
+  /**
+   * 标签分类
+   */
+  tagCategoryName: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode: string;
+}
+
+export interface TagCategoryForm extends BaseEntity {
+  /**
+   * ID
+   */
+  id?: string | number;
+
+  /**
+   * 标签分类
+   */
+  tagCategoryName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+}
+
+export interface TagCategoryQuery extends PageQuery {
+  /**
+   * 标签分类
+   */
+  tagCategoryName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 74 - 0
src/api/customer/customerFile/businessInfo/index.ts

@@ -0,0 +1,74 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { BusinessInfoVO, BusinessInfoForm, BusinessInfoQuery } from '@/api/customer/customerFile/businessInfo/types';
+
+/**
+ * 查询客户工商注册信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listBusinessInfo = (query?: BusinessInfoQuery): AxiosPromise<BusinessInfoVO[]> => {
+  return request({
+    url: '/customer/businessInfo/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询客户工商注册信息详细
+ * @param customerId
+ */
+export const getBusinessInfo = (customerId: string | number): AxiosPromise<BusinessInfoVO> => {
+  return request({
+    url: '/customer/businessInfo/' + customerId,
+    method: 'get'
+  });
+};
+
+/**
+ * 查询客户工商注册信息详细
+ * @param customerName
+ */
+export const getBusinessInfoBycustomerName = (customerName: string): AxiosPromise<BusinessInfoVO> => {
+  return request({
+    url: '/customer/businessInfo/selectBusinessByCustomerName/' + customerName,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增客户工商注册信息
+ * @param data
+ */
+export const addBusinessInfo = (data: BusinessInfoForm) => {
+  return request({
+    url: '/customer/businessInfo',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改客户工商注册信息
+ * @param data
+ */
+export const updateBusinessInfo = (data: BusinessInfoForm) => {
+  return request({
+    url: '/customer/businessInfo',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除客户工商注册信息
+ * @param customerId
+ */
+export const delBusinessInfo = (customerId: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/businessInfo/' + customerId,
+    method: 'delete'
+  });
+};

+ 230 - 0
src/api/customer/customerFile/businessInfo/types.ts

@@ -0,0 +1,230 @@
+export interface BusinessInfoVO {
+  /**
+   * 关联客户ID
+   */
+  customerId: string | number;
+
+  /**
+   * 工商全称
+   */
+  businessCustomerName: string;
+
+  /**
+   * 统一社会信用代码
+   */
+  socialCreditCode: string;
+
+  /**
+   * 法人姓名
+   */
+  legalPersonName: string;
+
+  /**
+   * 注册资本
+   */
+  registeredCapital: string;
+
+  /**
+   * 实缴资本
+   */
+  paidInCapital: string | number;
+
+  /**
+   * 成立日期
+   */
+  establishmentDate: string;
+
+  /**
+   * 吊销日期
+   */
+  revocationDate: string;
+
+  /**
+   * 登记状态
+   */
+  registrationStatus: string;
+
+  /**
+   * 登记机关
+   */
+  registrationAuthority: string;
+
+  /**
+   * 经营范围
+   */
+  bussinessRange: string;
+
+  /**
+   * 营业执照路径
+   */
+  businessLicense: string;
+
+  /**
+   * 工商地址-详细地址
+   */
+  businessAddress: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface BusinessInfoForm extends BaseEntity {
+  /**
+   * 关联客户ID
+   */
+  customerId?: string | number;
+
+  /**
+   * 工商全称
+   */
+  businessCustomerName?: string;
+
+  /**
+   * 统一社会信用代码
+   */
+  socialCreditCode?: string;
+
+  /**
+   * 法人姓名
+   */
+  legalPersonName?: string;
+
+  /**
+   * 注册资本
+   */
+  registeredCapital?: string;
+
+  /**
+   * 实缴资本
+   */
+  paidInCapital?: string | number;
+
+  /**
+   * 成立日期
+   */
+  establishmentDate?: string;
+
+  /**
+   * 吊销日期
+   */
+  revocationDate?: string;
+
+  /**
+   * 登记状态
+   */
+  registrationStatus?: string;
+
+  /**
+   * 登记机关
+   */
+  registrationAuthority?: string;
+
+  /**
+   * 经营范围
+   */
+  bussinessRange?: string;
+
+  /**
+   * 营业执照路径
+   */
+  businessLicense?: string;
+
+  /**
+   * 工商地址-详细地址
+   */
+  businessAddress?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface BusinessInfoQuery extends PageQuery {
+  /**
+   * 工商全称
+   */
+  businessCustomerName?: string;
+
+  /**
+   * 统一社会信用代码
+   */
+  socialCreditCode?: string;
+
+  /**
+   * 法人姓名
+   */
+  legalPersonName?: string;
+
+  /**
+   * 注册资本
+   */
+  registeredCapital?: string;
+
+  /**
+   * 实缴资本
+   */
+  paidInCapital?: string | number;
+
+  /**
+   * 成立日期
+   */
+  establishmentDate?: string;
+
+  /**
+   * 吊销日期
+   */
+  revocationDate?: string;
+
+  /**
+   * 登记状态
+   */
+  registrationStatus?: string;
+
+  /**
+   * 登记机关
+   */
+  registrationAuthority?: string;
+
+  /**
+   * 经营范围
+   */
+  bussinessRange?: string;
+
+  /**
+   * 营业执照路径
+   */
+  businessLicense?: string;
+
+  /**
+   * 工商地址-详细地址
+   */
+  businessAddress?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/customerFile/contract/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { ContractVO, ContractForm, ContractQuery } from '@/api/customer/customerFile/contract/types';
+
+/**
+ * 查询客户合同列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listContract = (query?: ContractQuery): AxiosPromise<ContractVO[]> => {
+  return request({
+    url: '/customer/contract/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询客户合同详细
+ * @param id
+ */
+export const getContract = (id: string | number): AxiosPromise<ContractVO> => {
+  return request({
+    url: '/customer/contract/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增客户合同
+ * @param data
+ */
+export const addContract = (data: ContractForm) => {
+  return request({
+    url: '/customer/contract',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改客户合同
+ * @param data
+ */
+export const updateContract = (data: ContractForm) => {
+  return request({
+    url: '/customer/contract',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除客户合同
+ * @param id
+ */
+export const delContract = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/contract/' + id,
+    method: 'delete'
+  });
+};

+ 264 - 0
src/api/customer/customerFile/contract/types.ts

@@ -0,0 +1,264 @@
+export interface ContractVO {
+  /**
+   * ID
+   */
+  id: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo: string;
+
+  /**
+   * 客户id
+   */
+  customerId: string | number;
+
+  /**
+   * 合同编号
+   */
+  contractNo: string;
+
+  /**
+   * 合同名称
+   */
+  contractName: string;
+
+  customerName: string;
+
+  /**
+   * 合同金额
+   */
+  contractAmount: string;
+
+  /**
+   * 客服负责人
+   */
+  customerLeader: string;
+
+  /**
+   * 项目负责人
+   */
+  projectLeader: string;
+
+  /**
+   * 合同类型
+   */
+  contractType: string;
+
+  /**
+   * 合同开始时间
+   */
+  startTime: string;
+
+  /**
+   * 合同结束时间
+   */
+  endTime: string;
+
+  /**
+   * 合同上传时间
+   */
+  uploadTime: string;
+
+  /**
+   * 结算方式
+   */
+  settlementType: string;
+
+  /**
+   * 合同状态
+   */
+  contractStatus: string;
+
+  /**
+   * 审批状态(如:0-待审批,1-已通过,2-已驳回等)
+   */
+  approvalStatus: string;
+
+  /**
+   * 附件路径或信息
+   */
+  annex: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface ContractForm extends BaseEntity {
+  /**
+   * ID
+   */
+  id?: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  customerName?: string;
+
+  /**
+   * 客户id
+   */
+  customerId?: string | number;
+
+  /**
+   * 合同编号
+   */
+  contractNo?: string;
+
+  /**
+   * 合同名称
+   */
+  contractName?: string;
+
+  /**
+   * 合同金额
+   */
+  contractAmount?: string;
+
+  /**
+   * 客服负责人
+   */
+  customerLeader?: string;
+
+  /**
+   * 项目负责人
+   */
+  projectLeader?: string;
+
+  /**
+   * 合同类型
+   */
+  contractType?: string;
+
+  /**
+   * 合同开始时间
+   */
+  startTime?: string;
+
+  /**
+   * 合同结束时间
+   */
+  endTime?: string;
+
+  /**
+   * 合同上传时间
+   */
+  uploadTime?: string;
+
+  /**
+   * 结算方式
+   */
+  settlementType?: string;
+
+  /**
+   * 合同状态
+   */
+  contractStatus?: string;
+
+  /**
+   * 审批状态(如:0-待审批,1-已通过,2-已驳回等)
+   */
+  approvalStatus?: string;
+
+  /**
+   * 附件路径或信息
+   */
+  annex?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface ContractQuery extends PageQuery {
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  /**
+   * 客户id
+   */
+  customerId?: string | number;
+
+  /**
+   * 合同编号
+   */
+  contractNo?: string;
+
+  /**
+   * 合同名称
+   */
+  contractName?: string;
+
+  /**
+   * 合同金额
+   */
+  contractAmount?: string;
+
+  /**
+   * 客服负责人
+   */
+  customerLeader?: string;
+
+  /**
+   * 项目负责人
+   */
+  projectLeader?: string;
+
+  /**
+   * 合同类型
+   */
+  contractType?: string;
+
+  /**
+   * 合同开始时间
+   */
+  startTime?: string;
+
+  /**
+   * 合同结束时间
+   */
+  endTime?: string;
+
+  /**
+   * 合同上传时间
+   */
+  uploadTime?: string;
+
+  /**
+   * 结算方式
+   */
+  settlementType?: string;
+
+  /**
+   * 合同状态
+   */
+  contractStatus?: string;
+
+  /**
+   * 审批状态(如:0-待审批,1-已通过,2-已驳回等)
+   */
+  approvalStatus?: string;
+
+  /**
+   * 附件路径或信息
+   */
+  annex?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/customerFile/customerContact/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { CustomerContactVO, CustomerContactForm, CustomerContactQuery } from '@/api/customer/customerFile/customerContact/types';
+
+/**
+ * 查询客户联系人信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listCustomerContact = (query?: CustomerContactQuery): AxiosPromise<CustomerContactVO[]> => {
+  return request({
+    url: '/customer/customerContact/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询客户联系人信息详细
+ * @param id
+ */
+export const getCustomerContact = (id: string | number): AxiosPromise<CustomerContactVO> => {
+  return request({
+    url: '/customer/customerContact/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增客户联系人信息
+ * @param data
+ */
+export const addCustomerContact = (data: CustomerContactForm) => {
+  return request({
+    url: '/customer/customerContact',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改客户联系人信息
+ * @param data
+ */
+export const updateCustomerContact = (data: CustomerContactForm) => {
+  return request({
+    url: '/customer/customerContact',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除客户联系人信息
+ * @param id
+ */
+export const delCustomerContact = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/customerContact/' + id,
+    method: 'delete'
+  });
+};

+ 269 - 0
src/api/customer/customerFile/customerContact/types.ts

@@ -0,0 +1,269 @@
+export interface CustomerContactVO {
+  /**
+   * 联系人ID
+   */
+  id: string | number;
+
+  /**
+   * 所属客户ID
+   */
+  customerId: string | number;
+
+  /**
+   * 联系人姓名
+   */
+  contactName: string;
+
+  customLoginName: string;
+
+  /**
+   * 手机号码
+   */
+  phone: string;
+
+  /**
+   * 办公电话
+   */
+  officePhone: string;
+
+  /**
+   * 办公电话2
+   */
+  officePhoneTwo: string;
+
+  /**
+   * 性别
+   */
+  gender: string;
+
+  /**
+   * 采购角色(如:采购经理、财务)
+   */
+  roleId: string | number;
+
+  roleName: string;
+
+  deptId: string | number;
+
+  deptName: string;
+
+  /**
+   * 是否主联系人:0=是,1=否
+   */
+  isPrimary: string;
+
+  birthday: Date;
+
+  /**
+   * 详细地址
+   */
+  addressDetail: string;
+
+  /**
+   * 所在省编码
+   */
+  addressProvince: string;
+
+  /**
+   * 所在市编码
+   */
+  addressCity: string;
+
+  /**
+   * 所在区县编码
+   */
+  addressCounty: string;
+
+  /**
+   * 省市区
+   */
+  provincialCityCounty: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface CustomerContactForm extends BaseEntity {
+  /**
+   * 联系人ID
+   */
+  id?: string | number;
+
+  /**
+   * 所属客户ID
+   */
+  customerId?: string | number;
+
+  /**
+   * 联系人姓名
+   */
+  contactName?: string;
+
+  customLoginName?: string;
+
+  /**
+   * 手机号码
+   */
+  phone?: string;
+
+  /**
+   * 办公电话
+   */
+  officePhone?: string;
+
+  /**
+   * 办公电话2
+   */
+  officePhoneTwo?: string;
+
+  /**
+   * 性别
+   */
+  gender?: string;
+
+  /**
+   * 采购角色(如:采购经理、财务)
+   */
+  roleId?: string | number;
+
+  roleName?: string;
+
+  deptId?: string | number;
+
+  deptName?: string;
+
+  email: string;
+
+  /**
+   * 是否主联系人:0=是,1=否
+   */
+  isPrimary?: string;
+
+  birthday?: Date;
+
+  /**
+   * 详细地址
+   */
+  addressDetail?: string;
+
+  /**
+   * 所在省编码
+   */
+  addressProvince?: string;
+
+  /**
+   * 所在市编码
+   */
+  addressCity?: string;
+
+  /**
+   * 所在区县编码
+   */
+  addressCounty?: string;
+
+  /**
+   * 省市区
+   */
+  provincialCityCounty?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface CustomerContactQuery extends PageQuery {
+  /**
+   * 所属客户ID
+   */
+  customerId?: string | number;
+
+  /**
+   * 联系人姓名
+   */
+  contactName?: string;
+
+  /**
+   * 手机号码
+   */
+  phone?: string;
+
+  email?: string;
+
+  /**
+   * 办公电话
+   */
+  officePhone?: string;
+
+  /**
+   * 办公电话2
+   */
+  officePhoneTwo?: string;
+
+  /**
+   * 性别
+   */
+  gender?: string;
+
+  /**
+   * 采购角色(如:采购经理、财务)
+   */
+  roleId?: string | number;
+
+  /**
+   * 是否主联系人:0=是,1=否
+   */
+  isPrimary?: string;
+
+  /**
+   * 详细地址
+   */
+  addressDetail?: string;
+
+  /**
+   * 所在省编码
+   */
+  addressProvince?: string;
+
+  /**
+   * 所在市编码
+   */
+  addressCity?: string;
+
+  /**
+   * 所在区县编码
+   */
+  addressCounty?: string;
+
+  /**
+   * 省市区
+   */
+  provincialCityCounty?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/customerFile/customerDept/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { CustomerDeptVO, CustomerDeptForm, CustomerDeptQuery } from '@/api/customer/customerFile/customerDept/types';
+
+/**
+ * 查询客户部门信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listCustomerDept = (query?: CustomerDeptQuery): AxiosPromise<CustomerDeptVO[]> => {
+  return request({
+    url: '/customer/customerDept/tree',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询客户部门信息详细
+ * @param id
+ */
+export const getCustomerDept = (id: string | number): AxiosPromise<CustomerDeptVO> => {
+  return request({
+    url: '/customer/customerDept/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增客户部门信息
+ * @param data
+ */
+export const addCustomerDept = (data: CustomerDeptForm) => {
+  return request({
+    url: '/customer/customerDept',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改客户部门信息
+ * @param data
+ */
+export const updateCustomerDept = (data: CustomerDeptForm) => {
+  return request({
+    url: '/customer/customerDept',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除客户部门信息
+ * @param id
+ */
+export const delCustomerDept = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/customerDept/' + id,
+    method: 'delete'
+  });
+};

+ 325 - 0
src/api/customer/customerFile/customerDept/types.ts

@@ -0,0 +1,325 @@
+export interface CustomerDeptVO {
+  /**
+   * ID
+   */
+  deptId: string | number;
+
+  /**
+   * 部门编号
+   */
+  deptNo: string;
+
+  /**
+   * 部门名称
+   */
+  deptName: string;
+
+  /**
+   * 父部门id
+   */
+  parentId: string | number;
+
+  /**
+   * 祖级列表
+   */
+  ancestors: string;
+
+  /**
+   * 客户编号
+   */
+  customerId: string | number;
+
+  /**
+   * 部门层级(如1级、2级等)
+   */
+  departmentLevel: number;
+
+  /**
+   * 年度预算
+   */
+  yearlyBudget: number;
+
+  /**
+   * 已使用预算
+   */
+  usedBudget: number;
+
+  /**
+   * 月度限额
+   */
+  monthLimit: number;
+
+  /**
+   * 月度已用预算
+   */
+  monthUsedBudget: number;
+
+  /**
+   * 绑定状态
+   */
+  bindStatus: string;
+
+  /**
+   * 绑定地址
+   */
+  bindAddress: string;
+
+  /**
+   * 部门负责人
+   */
+  deptManage: string;
+
+  /**
+   * 是否限制预算
+   */
+  isLimit: string;
+
+  /**
+   * 所选年份
+   */
+  selectYear: string;
+
+  /**
+   * 费用类型
+   */
+  expenseType: string;
+
+  /**
+   * 年度剩余预算
+   */
+  residueYearlyBudget: string | number;
+
+  /**
+   * 充值金额
+   */
+  recharge: number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+  /**
+   * 子对象
+   */
+  children: CustomerDeptVO[];
+}
+
+export interface CustomerDeptForm extends BaseEntity {
+  /**
+   * ID
+   */
+  deptId?: string | number;
+
+  /**
+   * 部门编号
+   */
+  deptNo?: string;
+
+  /**
+   * 部门名称
+   */
+  deptName?: string;
+
+  /**
+   * 父部门id
+   */
+  parentId?: string | number;
+
+  /**
+   * 祖级列表
+   */
+  ancestors?: string;
+
+  /**
+   * 客户编号
+   */
+  customerId?: string | number;
+
+  /**
+   * 部门层级(如1级、2级等)
+   */
+  departmentLevel?: number;
+
+  /**
+   * 年度预算
+   */
+  yearlyBudget?: number;
+
+  /**
+   * 已使用预算
+   */
+  usedBudget?: number;
+
+  /**
+   * 月度限额
+   */
+  monthLimit?: number;
+
+  /**
+   * 月度已用预算
+   */
+  monthUsedBudget?: number;
+
+  /**
+   * 绑定状态
+   */
+  bindStatus?: string;
+
+  /**
+   * 绑定地址
+   */
+  bindAddress?: string;
+
+  /**
+   * 部门负责人
+   */
+  deptManage?: string;
+
+  /**
+   * 是否限制预算
+   */
+  isLimit?: string;
+
+  /**
+   * 所选年份
+   */
+  selectYear?: string;
+
+  /**
+   * 费用类型
+   */
+  expenseType?: string;
+
+  /**
+   * 年度剩余预算
+   */
+  residueYearlyBudget?: string | number;
+
+  /**
+   * 充值金额
+   */
+  recharge?: number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface CustomerDeptQuery {
+  /**
+   * 部门编号
+   */
+  deptNo?: string;
+
+  /**
+   * 部门名称
+   */
+  deptName?: string;
+
+  /**
+   * 父部门id
+   */
+  parentId?: string | number;
+
+  /**
+   * 祖级列表
+   */
+  ancestors?: string;
+
+  /**
+   * 客户编号
+   */
+  customerId?: string | number;
+
+  /**
+   * 部门层级(如1级、2级等)
+   */
+  departmentLevel?: number;
+
+  /**
+   * 年度预算
+   */
+  yearlyBudget?: number;
+
+  /**
+   * 已使用预算
+   */
+  usedBudget?: number;
+
+  /**
+   * 月度限额
+   */
+  monthLimit?: number;
+
+  /**
+   * 月度已用预算
+   */
+  monthUsedBudget?: number;
+
+  /**
+   * 绑定状态
+   */
+  bindStatus?: string;
+
+  /**
+   * 绑定地址
+   */
+  bindAddress?: string;
+
+  /**
+   * 部门负责人
+   */
+  deptManage?: string;
+
+  /**
+   * 是否限制预算
+   */
+  isLimit?: string;
+
+  /**
+   * 所选年份
+   */
+  selectYear?: string;
+
+  /**
+   * 费用类型
+   */
+  expenseType?: string;
+
+  /**
+   * 年度剩余预算
+   */
+  residueYearlyBudget?: string | number;
+
+  /**
+   * 充值金额
+   */
+  recharge?: number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 133 - 0
src/api/customer/customerFile/customerInfo/index.ts

@@ -0,0 +1,133 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { CustomerInfoVO, CustomerInfoForm, CustomerInfoQuery } from '@/api/customer/customerFile/customerInfo/types';
+
+/**
+ * 查询客户信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listCustomerInfo = (query?: CustomerInfoQuery): AxiosPromise<CustomerInfoVO[]> => {
+  return request({
+    url: '/customer/customerInfo/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询客户信息详细
+ * @param id
+ */
+export const getCustomerInfo = (id: string | number): AxiosPromise<CustomerInfoVO> => {
+  return request({
+    url: '/customer/customerInfo/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增客户信息
+ * @param data
+ */
+export const addCustomerInfo = (data: CustomerInfoForm) => {
+  return request({
+    url: '/customer/customerInfo',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改客户信息
+ * @param data
+ */
+export const updateCustomerInfo = (data: CustomerInfoForm) => {
+  return request({
+    url: '/customer/customerInfo',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除客户信息
+ * @param id
+ */
+export const delCustomerInfo = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/customerInfo/' + id,
+    method: 'delete'
+  });
+};
+
+/**
+ * 状态修改
+ * @param id 客户id
+ * @param status 状态
+ */
+export function changeStatus(id: string, status: string) {
+  const data = {
+    id,
+    status
+  };
+  return request({
+    url: '/customer/customerInfo/changeStatus',
+    method: 'put',
+    data: data
+  });
+}
+
+/**
+ * 修改临时额度
+ * @param customerIds 客户id
+ * @param creditAmount 额度
+ */
+export function updateCreditAmount(customerIds: number[], temporaryQuota: number) {
+  const data = {
+    customerIds,
+    temporaryQuota
+  };
+  return request({
+    url: '/customer/customerInfo/updateCreditAmount',
+    method: 'put',
+    data: data
+  });
+}
+
+/**
+ * 修改临时额度
+ * @param customerIds 客户id
+ * @param tagIds 标签id
+ */
+export function setCustomerInfoTag(customerIds: number[], tagIds: number[]) {
+  const data = {
+    customerIds,
+    tagIds
+  };
+  return request({
+    url: '/customer/customerInfo/setCustomerInfoTag',
+    method: 'put',
+    data: data
+  });
+}
+
+export const listContractList = (query?: CustomerInfoQuery): AxiosPromise<CustomerInfoVO[]> => {
+  return request({
+    url: '/customer/customerInfo/contractList',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 根据名称模糊查询客户信息
+ * @param customerName
+ */
+export const getListBycustomerName = (customerName: string): AxiosPromise<CustomerInfoVO[]> => {
+  return request({
+    url: '/customer/customerInfo/selectByCustomerName/' + customerName,
+    method: 'get'
+  });
+};

+ 452 - 0
src/api/customer/customerFile/customerInfo/types.ts

@@ -0,0 +1,452 @@
+import type { BusinessInfoVO, BusinessInfoForm } from '../businessInfo/types';
+import type { CustomerContactVO, CustomerContactForm } from '../customerContact/types';
+import type { SalesInfoVO, SalesInfoForm } from '../salesInfo/types';
+import type { InvoiceInfoVO, InvoiceInfoForm } from '../invoiceInfo/types';
+
+export interface CustomerInfoVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo: string;
+
+  /**
+   * 所属公司
+   */
+  belongCompanyId: string | number;
+
+  /**
+   * 公司名称
+   */
+  companyName: string;
+
+  /**
+   * 客户名称
+   */
+  customerName: string;
+
+  /**
+   * 工商名称
+   */
+  businessCustomerName: string;
+
+  /**
+   * 企业简称
+   */
+  shortName: string;
+
+  /**
+   * 开票类型
+   */
+  invoiceTypeId: string | number;
+
+  /**
+   * 企业规模
+   */
+  enterpriseScaleId: string | number;
+
+  enterpriseScale: string;
+
+  /**
+   * 客户类别
+   */
+  customerTypeId: string | number;
+
+  /**
+   * 行业类别
+   */
+  industryCategoryId: string | number;
+
+  industryCategory: string;
+
+  /**
+   * 客户等级
+   */
+  customerLevelId: string | number;
+
+  /**
+   * 固定电话
+   */
+  landline: string;
+
+  /**
+   * 传真
+   */
+  fax: string;
+
+  /**
+   * 网址
+   */
+  url: string;
+
+  /**
+   * 邮政编码
+   */
+  postCode: string;
+
+  /**
+   * 开始时间
+   */
+  validityFromDate: string | number;
+
+  /**
+   * 结束时间
+   */
+  validityToDate: string | number;
+
+  /**
+   * 发票抬头
+   */
+  invoiceTop: string;
+
+  /**
+   * 详细地址(注册地址)
+   */
+  address: string;
+
+  /**
+   * 省份编码
+   */
+  regProvincialNo: string;
+
+  /**
+   * 城市编码
+   */
+  regCityNo: string;
+
+  /**
+   * 区县编码
+   */
+  regCountyNo: string;
+
+  /**
+   * 省市区
+   */
+  provincialCityCounty: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+  /**
+   * 工商信息
+   */
+  customerBusinessInfoVo?: BusinessInfoVO;
+
+  /**
+   * 销售信息
+   */
+  customerSalesInfoVo?: SalesInfoVO;
+
+  /**
+   * 联系人列表
+   */
+  customerContactVoList?: CustomerContactVO[];
+
+  /**
+   * 开票信息列表
+   */
+  customerInvoiceInfoVoList?: InvoiceInfoVO[];
+}
+
+export interface CustomerInfoForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  /**
+   * 所属公司
+   */
+  belongCompanyId?: string | number;
+
+  /**
+   * 公司名称
+   */
+  companyName?: string;
+
+  /**
+   * 客户名称
+   */
+  customerName?: string;
+
+  /**
+   * 工商名称
+   */
+  businessCustomerName?: string;
+
+  /**
+   * 企业简称
+   */
+  shortName?: string;
+
+  /**
+   * 开票类型
+   */
+  invoiceTypeId?: string | number;
+
+  /**
+   * 企业规模
+   */
+  enterpriseScaleId?: string | number;
+
+  /**
+   * 客户类别
+   */
+  customerTypeId?: string | number;
+
+  /**
+   * 行业类别
+   */
+  industryCategoryId?: string | number;
+
+  /**
+   * 客户等级
+   */
+  customerLevelId?: string | number;
+
+  /**
+   * 固定电话
+   */
+  landline?: string;
+
+  /**
+   * 传真
+   */
+  fax?: string;
+
+  /**
+   * 网址
+   */
+  url?: string;
+
+  /**
+   * 邮政编码
+   */
+  postCode?: string;
+
+  /**
+   * 开始时间
+   */
+  validityFromDate?: string | number;
+
+  /**
+   * 结束时间
+   */
+  validityToDate?: string | number;
+
+  /**
+   * 发票抬头
+   */
+  invoiceTop?: string;
+
+  /**
+   * 详细地址(注册地址)
+   */
+  address?: string;
+
+  /**
+   * 省份编码
+   */
+  regProvincialNo?: string;
+
+  /**
+   * 城市编码
+   */
+  regCityNo?: string;
+
+  /**
+   * 区县编码
+   */
+  regCountyNo?: string;
+
+  /**
+   * 省市区
+   */
+  provincialCityCounty?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+  /**
+   * 工商信息
+   */
+  customerBusinessBo?: BusinessInfoForm;
+
+  /**
+   * 销售信息
+   */
+  customerSalesInfoBo?: SalesInfoForm;
+
+  /**
+   * 联系人列表
+   */
+  customerContactBoList?: CustomerContactForm[];
+
+  /**
+   * 开票信息列表
+   */
+  customerInvoiceInfoBoList?: InvoiceInfoForm[];
+}
+
+export interface CustomerInfoQuery extends PageQuery {
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  /**
+   * 所属公司
+   */
+  belongCompanyId?: string | number;
+
+  /**
+   * 公司名称
+   */
+  companyName?: string;
+
+  /**
+   * 客户名称
+   */
+  customerName?: string;
+
+  /**
+   * 工商名称
+   */
+  businessCustomerName?: string;
+
+  /**
+   * 企业简称
+   */
+  shortName?: string;
+
+  /**
+   * 开票类型
+   */
+  invoiceTypeId?: string | number;
+
+  /**
+   * 企业规模
+   */
+  enterpriseScaleId?: string | number;
+
+  /**
+   * 客户类别
+   */
+  customerTypeId?: string | number;
+
+  /**
+   * 行业类别
+   */
+  industryCategoryId?: string | number;
+
+  /**
+   * 客户等级
+   */
+  customerLevelId?: string | number;
+
+  salesPersonId?: string | number;
+
+  serviceStaffId?: string | number;
+
+  belongingDepartmentId?: string | number;
+
+  /**
+   * 固定电话
+   */
+  landline?: string;
+
+  /**
+   * 传真
+   */
+  fax?: string;
+
+  /**
+   * 网址
+   */
+  url?: string;
+
+  /**
+   * 邮政编码
+   */
+  postCode?: string;
+
+  /**
+   * 开始时间
+   */
+  validityFromDate?: string | number;
+
+  /**
+   * 结束时间
+   */
+  validityToDate?: string | number;
+
+  /**
+   * 发票抬头
+   */
+  invoiceTop?: string;
+
+  /**
+   * 详细地址(注册地址)
+   */
+  address?: string;
+
+  /**
+   * 省份编码
+   */
+  regProvincialNo?: string;
+
+  /**
+   * 城市编码
+   */
+  regCityNo?: string;
+
+  /**
+   * 区县编码
+   */
+  regCountyNo?: string;
+
+  /**
+   * 省市区
+   */
+  provincialCityCounty?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  customerTag?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/customerFile/groupCustomer/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { GroupCustomerVO, GroupCustomerForm, GroupCustomerQuery } from '@/api/customer/customerFile/groupCustomer/types';
+
+/**
+ * 查询集团客户关系列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listGroupCustomer = (query?: GroupCustomerQuery): AxiosPromise<GroupCustomerVO[]> => {
+  return request({
+    url: '/customer/groupCustomer/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询集团客户关系详细
+ * @param id
+ */
+export const getGroupCustomer = (id: string | number): AxiosPromise<GroupCustomerVO> => {
+  return request({
+    url: '/customer/groupCustomer/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增集团客户关系
+ * @param data
+ */
+export const addGroupCustomer = (data: GroupCustomerForm) => {
+  return request({
+    url: '/customer/groupCustomer',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改集团客户关系
+ * @param data
+ */
+export const updateGroupCustomer = (data: GroupCustomerForm) => {
+  return request({
+    url: '/customer/groupCustomer',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除集团客户关系
+ * @param id
+ */
+export const delGroupCustomer = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/groupCustomer/' + id,
+    method: 'delete'
+  });
+};

+ 95 - 0
src/api/customer/customerFile/groupCustomer/types.ts

@@ -0,0 +1,95 @@
+export interface GroupCustomerVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 集团客户id
+   */
+  groupCustomerId: string | number;
+
+  /**
+   * 客户id
+   */
+  customerId: string | number;
+
+  /**
+   * 客户等级
+   */
+  customerLevel: string;
+
+  /**
+   * 顶级客户id
+   */
+  topCustomerId: string | number;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface GroupCustomerForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 集团客户id
+   */
+  groupCustomerId?: string | number;
+
+  /**
+   * 客户id
+   */
+  customerId?: string | number;
+
+  /**
+   * 客户等级
+   */
+  customerLevel?: string;
+
+  /**
+   * 顶级客户id
+   */
+  topCustomerId?: string | number;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface GroupCustomerQuery extends PageQuery {
+  /**
+   * 集团客户id
+   */
+  groupCustomerId?: string | number;
+
+  /**
+   * 客户id
+   */
+  customerId?: string | number;
+
+  /**
+   * 客户等级
+   */
+  customerLevel?: string;
+
+  /**
+   * 顶级客户id
+   */
+  topCustomerId?: string | number;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/customerFile/invoiceInfo/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { InvoiceInfoVO, InvoiceInfoForm, InvoiceInfoQuery } from '@/api/customer/customerFile/invoiceInfo/types';
+
+/**
+ * 查询客户开票信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listInvoiceInfo = (query?: InvoiceInfoQuery): AxiosPromise<InvoiceInfoVO[]> => {
+  return request({
+    url: '/customer/invoiceInfo/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询客户开票信息详细
+ * @param id
+ */
+export const getInvoiceInfo = (id: string | number): AxiosPromise<InvoiceInfoVO> => {
+  return request({
+    url: '/customer/invoiceInfo/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增客户开票信息
+ * @param data
+ */
+export const addInvoiceInfo = (data: InvoiceInfoForm) => {
+  return request({
+    url: '/customer/invoiceInfo',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改客户开票信息
+ * @param data
+ */
+export const updateInvoiceInfo = (data: InvoiceInfoForm) => {
+  return request({
+    url: '/customer/invoiceInfo',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除客户开票信息
+ * @param id
+ */
+export const delInvoiceInfo = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/invoiceInfo/' + id,
+    method: 'delete'
+  });
+};

+ 185 - 0
src/api/customer/customerFile/invoiceInfo/types.ts

@@ -0,0 +1,185 @@
+export interface InvoiceInfoVO {
+  /**
+   * 开票信息ID
+   */
+  id: string | number;
+
+  /**
+   * 所属客户ID
+   */
+  customerId: string | number;
+
+  /**
+   * 纳税人识别号
+   */
+  taxId: string | number;
+
+  /**
+   * 开户行行号
+   */
+  bankCode: string;
+
+  /**
+   * 开户行
+   */
+  bankId: string | number;
+
+  /**
+   * 开户行名称
+   */
+  bankName: string;
+
+  /**
+   * 银行账户
+   */
+  bankAccount: string;
+
+  /**
+   * 联系电话
+   */
+  phone: string;
+
+  /**
+   * 开户行地址
+   */
+  address: string;
+
+  /**
+   * 是否主账号:0=是,1=否
+   */
+  isPrimaryAccount: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface InvoiceInfoForm extends BaseEntity {
+  /**
+   * 开票信息ID
+   */
+  id?: string | number;
+
+  /**
+   * 所属客户ID
+   */
+  customerId?: string | number;
+
+  /**
+   * 纳税人识别号
+   */
+  taxId?: string | number;
+
+  /**
+   * 开户行行号
+   */
+  bankCode?: string;
+
+  /**
+   * 开户行
+   */
+  bankId?: string | number;
+
+  /**
+   * 开户行名称
+   */
+  bankName?: string;
+
+  /**
+   * 银行账户
+   */
+  bankAccount?: string;
+
+  /**
+   * 联系电话
+   */
+  phone?: string;
+
+  /**
+   * 开户行地址
+   */
+  address?: string;
+
+  /**
+   * 是否主账号:0=是,1=否
+   */
+  isPrimaryAccount?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface InvoiceInfoQuery extends PageQuery {
+  /**
+   * 所属客户ID
+   */
+  customerId?: string | number;
+
+  /**
+   * 纳税人识别号
+   */
+  taxId?: string | number;
+
+  /**
+   * 开户行行号
+   */
+  bankCode?: string;
+
+  /**
+   * 开户行
+   */
+  bankId?: string | number;
+
+  /**
+   * 开户行名称
+   */
+  bankName?: string;
+
+  /**
+   * 银行账户
+   */
+  bankAccount?: string;
+
+  /**
+   * 联系电话
+   */
+  phone?: string;
+
+  /**
+   * 开户行地址
+   */
+  address?: string;
+
+  /**
+   * 是否主账号:0=是,1=否
+   */
+  isPrimaryAccount?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 77 - 0
src/api/customer/customerFile/purchaseHabit/index.ts

@@ -0,0 +1,77 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { PurchaseHabitVO, PurchaseHabitForm, PurchaseHabitQuery } from '@/api/customer/customerFile/purchaseHabit/types';
+
+/**
+ * 查询客户采购习惯列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listPurchaseHabit = (query?: PurchaseHabitQuery): AxiosPromise<PurchaseHabitVO[]> => {
+  return request({
+    url: '/customer/purchaseHabit/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询客户采购习惯详细
+ * @param id
+ */
+export const getPurchaseHabit = (id: string | number): AxiosPromise<PurchaseHabitVO> => {
+  return request({
+    url: '/customer/purchaseHabit/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增客户采购习惯
+ * @param data
+ */
+export const addPurchaseHabit = (data: PurchaseHabitForm) => {
+  return request({
+    url: '/customer/purchaseHabit',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改客户采购习惯
+ * @param data
+ */
+export const updatePurchaseHabit = (data: PurchaseHabitForm) => {
+  return request({
+    url: '/customer/purchaseHabit',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除客户采购习惯
+ * @param id
+ */
+export const delPurchaseHabit = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/purchaseHabit/' + id,
+    method: 'delete'
+  });
+};
+
+/**
+ * 新增客户采购习惯
+ * @param data
+ */
+export const getCustomerPurchaseHabitData = (customerId: string | number): AxiosPromise<PurchaseHabitVO> => {
+  return request({
+    url: '/customer/purchaseHabit/getCustomerPurchaseHabitData',
+    method: 'get',
+    params: {
+      customerId: customerId
+    }
+  });
+};

+ 253 - 0
src/api/customer/customerFile/purchaseHabit/types.ts

@@ -0,0 +1,253 @@
+export interface PurchaseHabitVO {
+  /**
+   * ID
+   */
+  id: string | number;
+
+  customerId: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo: string;
+
+  /**
+   * 月度采购量
+   */
+  monthPurchase: number;
+
+  /**
+   * 年度采购量
+   */
+  yearPurchase: number;
+
+  /**
+   * 常驻负责人/对接人
+   */
+  permanentOfficer: string;
+
+  /**
+   * 选择的机型/型号
+   */
+  choiceModel: string;
+
+  /**
+   * 打印量
+   */
+  printAmount: string;
+
+  /**
+   * 是否购买原装耗材(0-是,1-否)
+   */
+  buyOriginal: string;
+
+  /**
+   * 是否购买技术服务(0-是,1-否)
+   */
+  technologyService: string;
+
+  /**
+   * 采购品类(主选项)
+   */
+  purchaseCategory: string;
+
+  /**
+   * 采购品类(其他补充)
+   */
+  otherCategory: string;
+
+  /**
+   * 适用场景(主选项)
+   */
+  adaptScene: string;
+
+  /**
+   * 适用场景(其他补充)
+   */
+  otherScene: string;
+
+  /**
+   * 定制化需求(主选项)
+   */
+  customizeDemand: string;
+
+  /**
+   * 定制化需求(其他补充)
+   */
+  otherCustomize: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface PurchaseHabitForm extends BaseEntity {
+  /**
+   * ID
+   */
+  id?: string | number;
+
+  customerId?: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  /**
+   * 月度采购量
+   */
+  monthPurchase?: number;
+
+  /**
+   * 年度采购量
+   */
+  yearPurchase?: number;
+
+  /**
+   * 常驻负责人/对接人
+   */
+  permanentOfficer?: string;
+
+  /**
+   * 选择的机型/型号
+   */
+  choiceModel?: string;
+
+  /**
+   * 打印量
+   */
+  printAmount?: string;
+
+  /**
+   * 是否购买原装耗材(0-是,1-否)
+   */
+  buyOriginal?: string;
+
+  /**
+   * 是否购买技术服务(0-是,1-否)
+   */
+  technologyService?: string;
+
+  /**
+   * 采购品类(主选项)
+   */
+  purchaseCategory?: string;
+
+  /**
+   * 采购品类(其他补充)
+   */
+  otherCategory?: string;
+
+  /**
+   * 适用场景(主选项)
+   */
+  adaptScene?: string;
+
+  /**
+   * 适用场景(其他补充)
+   */
+  otherScene?: string;
+
+  /**
+   * 定制化需求(主选项)
+   */
+  customizeDemand?: string;
+
+  /**
+   * 定制化需求(其他补充)
+   */
+  otherCustomize?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface PurchaseHabitQuery extends PageQuery {
+  /**
+   * 客户ID
+   */
+  customerId?: string | number;
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  /**
+   * 月度采购量
+   */
+  monthPurchase?: number;
+
+  /**
+   * 年度采购量
+   */
+  yearPurchase?: number;
+
+  /**
+   * 常驻负责人/对接人
+   */
+  permanentOfficer?: string;
+
+  /**
+   * 选择的机型/型号
+   */
+  choiceModel?: string;
+
+  /**
+   * 打印量
+   */
+  printAmount?: string;
+
+  /**
+   * 是否购买原装耗材(0-是,1-否)
+   */
+  buyOriginal?: string;
+
+  /**
+   * 是否购买技术服务(0-是,1-否)
+   */
+  technologyService?: string;
+
+  /**
+   * 采购品类(主选项)
+   */
+  purchaseCategory?: string;
+
+  /**
+   * 采购品类(其他补充)
+   */
+  otherCategory?: string;
+
+  /**
+   * 适用场景(主选项)
+   */
+  adaptScene?: string;
+
+  /**
+   * 适用场景(其他补充)
+   */
+  otherScene?: string;
+
+  /**
+   * 定制化需求(主选项)
+   */
+  customizeDemand?: string;
+
+  /**
+   * 定制化需求(其他补充)
+   */
+  otherCustomize?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/customerFile/salesInfo/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { SalesInfoVO, SalesInfoForm, SalesInfoQuery } from '@/api/customer/customerFile/salesInfo/types';
+
+/**
+ * 查询客户销售信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listSalesInfo = (query?: SalesInfoQuery): AxiosPromise<SalesInfoVO[]> => {
+  return request({
+    url: '/customer/salesInfo/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询客户销售信息详细
+ * @param id
+ */
+export const getSalesInfo = (id: string | number): AxiosPromise<SalesInfoVO> => {
+  return request({
+    url: '/customer/salesInfo/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增客户销售信息
+ * @param data
+ */
+export const addSalesInfo = (data: SalesInfoForm) => {
+  return request({
+    url: '/customer/salesInfo',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改客户销售信息
+ * @param data
+ */
+export const updateSalesInfo = (data: SalesInfoForm) => {
+  return request({
+    url: '/customer/salesInfo',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除客户销售信息
+ * @param id
+ */
+export const delSalesInfo = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/salesInfo/' + id,
+    method: 'delete'
+  });
+};

+ 275 - 0
src/api/customer/customerFile/salesInfo/types.ts

@@ -0,0 +1,275 @@
+export interface SalesInfoVO {
+  /**
+   * 销售信息ID
+   */
+  id: string | number;
+
+  /**
+   * 关联客户ID
+   */
+  customerId: string | number;
+
+  /**
+   * 信用额度
+   */
+  creditAmount: number;
+
+  /**
+   * 剩余额度
+   */
+  remainingQuota: number;
+
+  /**
+   * 临时额度
+   */
+  temporaryQuota: number;
+
+  /**
+   * 账期(如:30天)
+   */
+  accountPeriod: string;
+
+  /**
+   * 账单日(每月几号)
+   */
+  billDate: number;
+
+  /**
+   * 计费日(如:每月1日)
+   */
+  billingDay: number;
+
+  /**
+   * 订单审核方式
+   */
+  orderAudit: string;
+
+  /**
+   * 信用管理方式
+   */
+  creditManagementId: number | string;
+
+  /**
+   * 信用支付密码
+   */
+  creditPaymentPassword: string;
+
+  /**
+   * 付款天数
+   */
+  payDays: number;
+
+  /**
+   * 销售人员
+   */
+  salesPersonId: string | number;
+
+  /**
+   * 服务人员
+   */
+  serviceStaffId: string | number;
+
+  /**
+   * 所属部门
+   */
+  belongingDepartmentId: string | number;
+
+  /**
+   * 应收账款
+   */
+  accountsReceivable: number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface SalesInfoForm extends BaseEntity {
+  /**
+   * 销售信息ID
+   */
+  id?: string | number;
+
+  /**
+   * 关联客户ID
+   */
+  customerId?: string | number;
+
+  /**
+   * 信用额度
+   */
+  creditAmount?: number;
+
+  /**
+   * 剩余额度
+   */
+  remainingQuota?: number;
+
+  /**
+   * 临时额度
+   */
+  temporaryQuota?: number;
+
+  /**
+   * 账期(如:30天)
+   */
+  accountPeriod?: string;
+
+  /**
+   * 账单日(每月几号)
+   */
+  billDate?: number;
+
+  /**
+   * 计费日(如:每月1日)
+   */
+  billingDay?: number;
+
+  /**
+   * 订单审核方式
+   */
+  orderAudit?: string;
+
+  /**
+   * 信用管理方式
+   */
+  creditManagementId?: number | string;
+
+  /**
+   * 信用支付密码
+   */
+  creditPaymentPassword?: string;
+
+  /**
+   * 付款天数
+   */
+  payDays?: number;
+
+  /**
+   * 销售人员
+   */
+  salesPersonId?: string | number;
+
+  /**
+   * 服务人员
+   */
+  serviceStaffId?: string | number;
+
+  /**
+   * 所属部门
+   */
+  belongingDepartmentId?: string | number;
+
+  /**
+   * 应收账款
+   */
+  accountsReceivable?: number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface SalesInfoQuery extends PageQuery {
+  /**
+   * 关联客户ID
+   */
+  customerId?: string | number;
+
+  /**
+   * 信用额度
+   */
+  creditAmount?: number;
+
+  /**
+   * 剩余额度
+   */
+  remainingQuota?: number;
+
+  /**
+   * 临时额度
+   */
+  temporaryQuota?: number;
+
+  /**
+   * 账期(如:30天)
+   */
+  accountPeriod?: string;
+
+  /**
+   * 账单日(每月几号)
+   */
+  billDate?: number;
+
+  /**
+   * 计费日(如:每月1日)
+   */
+  billingDay?: number;
+
+  /**
+   * 订单审核方式
+   */
+  orderAudit?: string;
+
+  /**
+   * 信用管理方式
+   */
+  creditManagementId?: number | string;
+
+  /**
+   * 信用支付密码
+   */
+  creditPaymentPassword?: string;
+
+  /**
+   * 付款天数
+   */
+  payDays?: number;
+
+  /**
+   * 销售人员
+   */
+  salesPersonId?: string | number;
+
+  /**
+   * 服务人员
+   */
+  serviceStaffId?: string | number;
+
+  /**
+   * 所属部门
+   */
+  belongingDepartmentId?: string | number;
+
+  /**
+   * 应收账款
+   */
+  accountsReceivable?: number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 80 - 0
src/api/customer/customerFile/shippingAddress/index.ts

@@ -0,0 +1,80 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { ShippingAddressVO, ShippingAddressForm, ShippingAddressQuery } from '@/api/customer/customerFile/shippingAddress/types';
+
+/**
+ * 查询客户收货地址列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listShippingAddress = (query?: ShippingAddressQuery): AxiosPromise<ShippingAddressVO[]> => {
+  return request({
+    url: '/customer/shippingAddress/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询客户收货地址详细
+ * @param id
+ */
+export const getShippingAddress = (id: string | number): AxiosPromise<ShippingAddressVO> => {
+  return request({
+    url: '/customer/shippingAddress/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增客户收货地址
+ * @param data
+ */
+export const addShippingAddress = (data: ShippingAddressForm) => {
+  return request({
+    url: '/customer/shippingAddress',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改客户收货地址
+ * @param data
+ */
+export const updateShippingAddress = (data: ShippingAddressForm) => {
+  return request({
+    url: '/customer/shippingAddress',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除客户收货地址
+ * @param id
+ */
+export const delShippingAddress = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/shippingAddress/' + id,
+    method: 'delete'
+  });
+};
+
+/**
+ * 设置默认地址
+ * @param id
+ * @param defaultAddress 状态
+ */
+export function changeDefaultAddress(id: string | number, defaultAddress: string) {
+  const data = {
+    id,
+    defaultAddress
+  };
+  return request({
+    url: '/customer/shippingAddress/changeDefaultAddress',
+    method: 'put',
+    data: data
+  });
+}

+ 290 - 0
src/api/customer/customerFile/shippingAddress/types.ts

@@ -0,0 +1,290 @@
+export interface ShippingAddressVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 客户id
+   */
+  customerId: string | number;
+
+  /**
+   * 收货地址编号
+   */
+  shippingAddressNo: string;
+
+  /**
+   * 收货人姓名
+   */
+  consignee: string;
+
+  /**
+   * 部门编号
+   */
+  deptId: string | number;
+
+  /**
+   * 联系电话
+   */
+  phone: string;
+
+  /**
+   * 详细地址
+   */
+  address: string;
+
+  /**
+   * 邮政编码
+   */
+  postal: string;
+
+  /**
+   * 是否默认地址(0-是,1-否)
+   */
+  defaultAddress: string;
+
+  /**
+   * 地址标签
+   */
+  addressLabel: string;
+
+  /**
+   * 省份编码
+   */
+  provincialNo: string;
+
+  /**
+   * 城市编码
+   */
+  cityNo: string;
+
+  /**
+   * 区县编码
+   */
+  countryNo: string;
+
+  /**
+   * 区县编码
+   */
+  provincialCityCountry: string;
+
+  /**
+   * 推送状态(0-已推送,1-未推送等)
+   */
+  pushStatus: string;
+
+  /**
+   * 序号/排序号
+   */
+  num: number;
+
+  /**
+   * 部门名称
+   */
+  deptName: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface ShippingAddressForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 客户id
+   */
+  customerId?: string | number;
+
+  /**
+   * 收货地址编号
+   */
+  shippingAddressNo?: string;
+
+  /**
+   * 收货人姓名
+   */
+  consignee?: string;
+
+  /**
+   * 部门编号
+   */
+  deptId?: string | number;
+
+  /**
+   * 联系电话
+   */
+  phone?: string;
+
+  /**
+   * 详细地址
+   */
+  address?: string;
+
+  /**
+   * 邮政编码
+   */
+  postal?: string;
+
+  /**
+   * 是否默认地址(0-是,1-否)
+   */
+  defaultAddress?: string;
+
+  /**
+   * 地址标签
+   */
+  addressLabel?: string;
+
+  /**
+   * 省份编码
+   */
+  provincialNo?: string;
+
+  /**
+   * 城市编码
+   */
+  cityNo?: string;
+
+  /**
+   * 区县编码
+   */
+  countryNo?: string;
+
+  /**
+   * 区县编码
+   */
+  provincialCityCountry?: string;
+
+  /**
+   * 推送状态(0-已推送,1-未推送等)
+   */
+  pushStatus?: string;
+
+  /**
+   * 序号/排序号
+   */
+  num?: number;
+
+  /**
+   * 部门名称
+   */
+  deptName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface ShippingAddressQuery extends PageQuery {
+  /**
+   * 客户id
+   */
+  customerId?: string | number;
+
+  /**
+   * 收货地址编号
+   */
+  shippingAddressNo?: string;
+
+  /**
+   * 收货人姓名
+   */
+  consignee?: string;
+
+  /**
+   * 部门编号
+   */
+  deptId?: string | number;
+
+  /**
+   * 联系电话
+   */
+  phone?: string;
+
+  /**
+   * 详细地址
+   */
+  address?: string;
+
+  /**
+   * 邮政编码
+   */
+  postal?: string;
+
+  /**
+   * 是否默认地址(0-是,1-否)
+   */
+  defaultAddress?: string;
+
+  /**
+   * 地址标签
+   */
+  addressLabel?: string;
+
+  /**
+   * 省份编码
+   */
+  provincialNo?: string;
+
+  /**
+   * 城市编码
+   */
+  cityNo?: string;
+
+  /**
+   * 区县编码
+   */
+  countryNo?: string;
+
+  /**
+   * 区县编码
+   */
+  provincialCityCountry?: string;
+
+  /**
+   * 推送状态(0-已推送,1-未推送等)
+   */
+  pushStatus?: string;
+
+  /**
+   * 序号/排序号
+   */
+  num?: number;
+
+  /**
+   * 部门名称
+   */
+  deptName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/customer/customerLevel/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { CustomerLevelVO, CustomerLevelForm, CustomerLevelQuery } from '@/api/customer/customerLevel/types';
+
+/**
+ * 查询客户等级配置列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listCustomerLevel = (query?: CustomerLevelQuery): AxiosPromise<CustomerLevelVO[]> => {
+  return request({
+    url: '/system/customerLevel/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询客户等级配置详细
+ * @param id
+ */
+export const getCustomerLevel = (id: string | number): AxiosPromise<CustomerLevelVO> => {
+  return request({
+    url: '/system/customerLevel/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增客户等级配置
+ * @param data
+ */
+export const addCustomerLevel = (data: CustomerLevelForm) => {
+  return request({
+    url: '/system/customerLevel',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改客户等级配置
+ * @param data
+ */
+export const updateCustomerLevel = (data: CustomerLevelForm) => {
+  return request({
+    url: '/system/customerLevel',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除客户等级配置
+ * @param id
+ */
+export const delCustomerLevel = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/customerLevel/' + id,
+    method: 'delete'
+  });
+};
+
+export function changeShowStatus(id: string | number, isShow: string) {
+  const data = {
+    id,
+    isShow
+  };
+  return request({
+    url: '/system/customerLevel/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 110 - 0
src/api/customer/customerLevel/types.ts

@@ -0,0 +1,110 @@
+export interface CustomerLevelVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 客户等级编码
+   */
+  levelCode: string;
+
+  /**
+   * 客户等级名称
+   */
+  levelName: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface CustomerLevelForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 客户等级编码
+   */
+  levelCode?: string;
+
+  /**
+   * 客户等级名称
+   */
+  levelName?: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface CustomerLevelQuery extends PageQuery {
+  /**
+   * 客户等级编码
+   */
+  levelCode?: string;
+
+  /**
+   * 客户等级名称
+   */
+  levelName?: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/customer/customerType/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { CustomerTypeVO, CustomerTypeForm, CustomerTypeQuery } from '@/api/customer/customerType/types';
+
+/**
+ * 查询客户类型配置列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listCustomerType = (query?: CustomerTypeQuery): AxiosPromise<CustomerTypeVO[]> => {
+  return request({
+    url: '/system/customerType/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询客户类型配置详细
+ * @param id
+ */
+export const getCustomerType = (id: string | number): AxiosPromise<CustomerTypeVO> => {
+  return request({
+    url: '/system/customerType/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增客户类型配置
+ * @param data
+ */
+export const addCustomerType = (data: CustomerTypeForm) => {
+  return request({
+    url: '/system/customerType',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改客户类型配置
+ * @param data
+ */
+export const updateCustomerType = (data: CustomerTypeForm) => {
+  return request({
+    url: '/system/customerType',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除客户类型配置
+ * @param id
+ */
+export const delCustomerType = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/customerType/' + id,
+    method: 'delete'
+  });
+};
+
+export function changeShowStatus(id: string | number, isShow: string) {
+  const data = {
+    id,
+    isShow
+  };
+  return request({
+    url: '/system/customerType/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 110 - 0
src/api/customer/customerType/types.ts

@@ -0,0 +1,110 @@
+export interface CustomerTypeVO {
+  /**
+   * 主键ID(由应用层生成)
+   */
+  id: string | number;
+
+  /**
+   * 客户类型编码
+   */
+  typeCode: string;
+
+  /**
+   * 客户类型名称
+   */
+  typeName: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface CustomerTypeForm extends BaseEntity {
+  /**
+   * 主键ID(由应用层生成)
+   */
+  id?: string | number;
+
+  /**
+   * 客户类型编码
+   */
+  typeCode?: string;
+
+  /**
+   * 客户类型名称
+   */
+  typeName?: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface CustomerTypeQuery extends PageQuery {
+  /**
+   * 客户类型编码
+   */
+  typeCode?: string;
+
+  /**
+   * 客户类型名称
+   */
+  typeName?: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/invoiceType/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { InvoiceTypeVO, InvoiceTypeForm, InvoiceTypeQuery } from '@/api/customer/invoiceType/types';
+
+/**
+ * 查询发票类型列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listInvoiceType = (query?: InvoiceTypeQuery): AxiosPromise<InvoiceTypeVO[]> => {
+  return request({
+    url: '/system/invoiceType/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询发票类型详细
+ * @param id
+ */
+export const getInvoiceType = (id: string | number): AxiosPromise<InvoiceTypeVO> => {
+  return request({
+    url: '/system/invoiceType/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增发票类型
+ * @param data
+ */
+export const addInvoiceType = (data: InvoiceTypeForm) => {
+  return request({
+    url: '/system/invoiceType',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改发票类型
+ * @param data
+ */
+export const updateInvoiceType = (data: InvoiceTypeForm) => {
+  return request({
+    url: '/system/invoiceType',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除发票类型
+ * @param id
+ */
+export const delInvoiceType = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/invoiceType/' + id,
+    method: 'delete'
+  });
+};

+ 95 - 0
src/api/customer/invoiceType/types.ts

@@ -0,0 +1,95 @@
+export interface InvoiceTypeVO {
+  /**
+   * ID
+   */
+  id: string | number;
+
+  /**
+   * 发票类型编号
+   */
+  invoiceTypeNo: string;
+
+  /**
+   * 发票类型名称
+   */
+  invoiceTypeName: string;
+
+  /**
+   * 是否显示:0-显示,1-隐藏
+   */
+  isShow: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface InvoiceTypeForm extends BaseEntity {
+  /**
+   * ID
+   */
+  id?: string | number;
+
+  /**
+   * 发票类型编号
+   */
+  invoiceTypeNo?: string;
+
+  /**
+   * 发票类型名称
+   */
+  invoiceTypeName?: string;
+
+  /**
+   * 是否显示:0-显示,1-隐藏
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface InvoiceTypeQuery extends PageQuery {
+  /**
+   * 发票类型编号
+   */
+  invoiceTypeNo?: string;
+
+  /**
+   * 发票类型名称
+   */
+  invoiceTypeName?: string;
+
+  /**
+   * 是否显示:0-显示,1-隐藏
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/customer/maintainInfo/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { MaintainInfoVO, MaintainInfoForm, MaintainInfoQuery, AllotTechnicalAdviserForm } from '@/api/customer/maintainInfo/types';
+
+/**
+ * 查询维保记录列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listMaintainInfo = (query?: MaintainInfoQuery): AxiosPromise<MaintainInfoVO[]> => {
+  return request({
+    url: '/customer/maintainInfo/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询维保记录详细
+ * @param id
+ */
+export const getMaintainInfo = (id: string | number): AxiosPromise<MaintainInfoVO> => {
+  return request({
+    url: '/customer/maintainInfo/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增维保记录
+ * @param data
+ */
+export const addMaintainInfo = (data: MaintainInfoForm) => {
+  return request({
+    url: '/customer/maintainInfo',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改维保记录
+ * @param data
+ */
+export const updateMaintainInfo = (data: MaintainInfoForm) => {
+  return request({
+    url: '/customer/maintainInfo',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除维保记录
+ * @param id
+ */
+export const delMaintainInfo = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/maintainInfo/' + id,
+    method: 'delete'
+  });
+};
+
+/**
+ * 分配技术顾问
+ * @param data
+ */
+export const allotTechnicalAdviser = (data: AllotTechnicalAdviserForm) => {
+  return request({
+    url: '/customer/maintainInfo/allotTechnicalAdviser',
+    method: 'post',
+    data: data
+  });
+};

+ 405 - 0
src/api/customer/maintainInfo/types.ts

@@ -0,0 +1,405 @@
+export interface MaintainInfoVO {
+  /**
+   * ID
+   */
+  id: string | number;
+
+  /**
+   * 关联客户ID
+   */
+  customerId: string | number;
+
+  /**
+   * 维保单号
+   */
+  maintainNo: string;
+
+  /**
+   * 客户编号
+   */
+  customerNo: string;
+
+  /**
+   * 申请人姓名
+   */
+  applicantName: string;
+
+  /**
+   * 申请人电话
+   */
+  applicantPhone: string;
+
+  /**
+   * 服务时长
+   */
+  serviceTime: string;
+
+  /**
+   * 每月维保次数
+   */
+  monthMainten: number;
+
+  /**
+   * 剩余维保次数
+   */
+  remainingMainten: number;
+
+  /**
+   * 维保总次数限制
+   */
+  maintenLimit: number;
+
+  /**
+   * 服务内容
+   */
+  serviceContent: string;
+
+  /**
+   * 其他服务内容
+   */
+  otherService: string;
+
+  /**
+   * 服务开始时间
+   */
+  serviceStartTime: string;
+
+  /**
+   * 服务结束时间
+   */
+  serviceEndTime: string;
+
+  /**
+   * 维保状态
+   */
+  maintainStatus: string;
+
+  /**
+   * 服务工程师
+   */
+  serviceEngineerId: string | number;
+
+  /**
+   * 服务工程师姓名
+   */
+  serviceEngineer: string;
+
+  /**
+   * 工程师联系电话
+   */
+  engineerPhone: string;
+
+  /**
+   * 技术顾问
+   */
+  technicalAdviserId: string | number;
+
+  /**
+   * 技术顾问姓名
+   */
+  technicalAdviser: string;
+
+  /**
+   * 技术顾问联系电话
+   */
+  technicalAdviserPhone: string;
+
+  /**
+   * 维保附件路径或文件名
+   */
+  maintainFile: string;
+
+  /**
+   * 维保类型
+   */
+  maintainType: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface MaintainInfoForm extends BaseEntity {
+  /**
+   * ID
+   */
+  id?: string | number;
+
+  /**
+   * 关联客户ID
+   */
+  customerId?: string | number;
+
+  /**
+   * 维保单号
+   */
+  maintainNo?: string;
+
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  /**
+   * 申请人姓名
+   */
+  applicantName?: string;
+
+  /**
+   * 申请人电话
+   */
+  applicantPhone?: string;
+
+  /**
+   * 服务时长
+   */
+  serviceTime?: string;
+
+  /**
+   * 每月维保次数
+   */
+  monthMainten?: number;
+
+  /**
+   * 剩余维保次数
+   */
+  remainingMainten?: number;
+
+  /**
+   * 维保总次数限制
+   */
+  maintenLimit?: number;
+
+  /**
+   * 服务内容
+   */
+  serviceContent?: string;
+
+  /**
+   * 其他服务内容
+   */
+  otherService?: string;
+
+  /**
+   * 服务开始时间
+   */
+  serviceStartTime?: string;
+
+  /**
+   * 服务结束时间
+   */
+  serviceEndTime?: string;
+
+  /**
+   * 维保状态
+   */
+  maintainStatus?: string;
+
+  /**
+   * 服务工程师
+   */
+  serviceEngineerId?: string | number;
+
+  /**
+   * 服务工程师姓名
+   */
+  serviceEngineer?: string;
+
+  /**
+   * 工程师联系电话
+   */
+  engineerPhone?: string;
+
+  /**
+   * 技术顾问
+   */
+  technicalAdviserId?: string | number;
+
+  /**
+   * 技术顾问姓名
+   */
+  technicalAdviser?: string;
+
+  /**
+   * 技术顾问联系电话
+   */
+  technicalAdviserPhone?: string;
+
+  /**
+   * 维保附件路径或文件名
+   */
+  maintainFile?: string;
+
+  /**
+   * 维保类型
+   */
+  maintainType?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface MaintainInfoQuery extends PageQuery {
+  /**
+   * 关联客户ID
+   */
+  customerId?: string | number;
+
+  /**
+   * 维保单号
+   */
+  maintainNo?: string;
+
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  /**
+   * 申请人姓名
+   */
+  applicantName?: string;
+
+  /**
+   * 申请人电话
+   */
+  applicantPhone?: string;
+
+  /**
+   * 服务时长
+   */
+  serviceTime?: string;
+
+  /**
+   * 每月维保次数
+   */
+  monthMainten?: number;
+
+  /**
+   * 剩余维保次数
+   */
+  remainingMainten?: number;
+
+  /**
+   * 维保总次数限制
+   */
+  maintenLimit?: number;
+
+  /**
+   * 服务内容
+   */
+  serviceContent?: string;
+
+  /**
+   * 其他服务内容
+   */
+  otherService?: string;
+
+  /**
+   * 服务开始时间
+   */
+  serviceStartTime?: string;
+
+  /**
+   * 服务结束时间
+   */
+  serviceEndTime?: string;
+
+  /**
+   * 维保状态
+   */
+  maintainStatus?: string;
+
+  /**
+   * 服务工程师
+   */
+  serviceEngineerId?: string | number;
+
+  /**
+   * 服务工程师姓名
+   */
+  serviceEngineer?: string;
+
+  /**
+   * 工程师联系电话
+   */
+  engineerPhone?: string;
+
+  /**
+   * 技术顾问
+   */
+  technicalAdviserId?: string | number;
+
+  /**
+   * 技术顾问姓名
+   */
+  technicalAdviser?: string;
+
+  /**
+   * 技术顾问联系电话
+   */
+  technicalAdviserPhone?: string;
+
+  /**
+   * 维保附件路径或文件名
+   */
+  maintainFile?: string;
+
+  /**
+   * 维保类型
+   */
+  maintainType?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}
+
+/**
+ * 分配技术顾问表单
+ */
+export interface AllotTechnicalAdviserForm {
+  /**
+   * 维保记录ID
+   */
+  id: string | number;
+
+  /**
+   * 技术顾问ID
+   */
+  technicalAdviserId: string | number;
+
+  /**
+   * 技术顾问姓名
+   */
+  technicalAdviser: string;
+
+  /**
+   * 技术顾问联系电话
+   */
+  technicalAdviserPhone: string;
+}

+ 63 - 0
src/api/customer/maintenanceType/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { MaintenanceTypeVO, MaintenanceTypeForm, MaintenanceTypeQuery } from '@/api/customer/maintenanceType/types';
+
+/**
+ * 查询维保类型列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listMaintenanceType = (query?: MaintenanceTypeQuery): AxiosPromise<MaintenanceTypeVO[]> => {
+  return request({
+    url: '/customer/maintenanceType/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询维保类型详细
+ * @param id
+ */
+export const getMaintenanceType = (id: string | number): AxiosPromise<MaintenanceTypeVO> => {
+  return request({
+    url: '/customer/maintenanceType/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增维保类型
+ * @param data
+ */
+export const addMaintenanceType = (data: MaintenanceTypeForm) => {
+  return request({
+    url: '/customer/maintenanceType',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改维保类型
+ * @param data
+ */
+export const updateMaintenanceType = (data: MaintenanceTypeForm) => {
+  return request({
+    url: '/customer/maintenanceType',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除维保类型
+ * @param id
+ */
+export const delMaintenanceType = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/maintenanceType/' + id,
+    method: 'delete'
+  });
+};

+ 65 - 0
src/api/customer/maintenanceType/types.ts

@@ -0,0 +1,65 @@
+export interface MaintenanceTypeVO {
+  /**
+   * ID
+   */
+  id: string | number;
+
+  /**
+   * 类型名称
+   */
+  typeName: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface MaintenanceTypeForm extends BaseEntity {
+  /**
+   * ID
+   */
+  id?: string | number;
+
+  /**
+   * 类型名称
+   */
+  typeName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface MaintenanceTypeQuery extends PageQuery {
+  /**
+   * 类型名称
+   */
+  typeName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/serverItem/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { ServerItemVO, ServerItemForm, ServerItemQuery } from '@/api/customer/serverItem/types';
+
+/**
+ * 查询维保服务内容列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listServerItem = (query?: ServerItemQuery): AxiosPromise<ServerItemVO[]> => {
+  return request({
+    url: '/customer/serverItem/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询维保服务内容详细
+ * @param id
+ */
+export const getServerItem = (id: string | number): AxiosPromise<ServerItemVO> => {
+  return request({
+    url: '/customer/serverItem/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增维保服务内容
+ * @param data
+ */
+export const addServerItem = (data: ServerItemForm) => {
+  return request({
+    url: '/customer/serverItem',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改维保服务内容
+ * @param data
+ */
+export const updateServerItem = (data: ServerItemForm) => {
+  return request({
+    url: '/customer/serverItem',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除维保服务内容
+ * @param id
+ */
+export const delServerItem = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/serverItem/' + id,
+    method: 'delete'
+  });
+};

+ 65 - 0
src/api/customer/serverItem/types.ts

@@ -0,0 +1,65 @@
+export interface ServerItemVO {
+  /**
+   * ID
+   */
+  id: string | number;
+
+  /**
+   * 服务内容
+   */
+  itemName: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface ServerItemForm extends BaseEntity {
+  /**
+   * ID
+   */
+  id?: string | number;
+
+  /**
+   * 服务内容
+   */
+  itemName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface ServerItemQuery extends PageQuery {
+  /**
+   * 服务内容
+   */
+  itemName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/customer/serverTime/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { ServerTimeVO, ServerTimeForm, ServerTimeQuery } from '@/api/customer/serverTime/types';
+
+/**
+ * 查询维保服务时间列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listServerTime = (query?: ServerTimeQuery): AxiosPromise<ServerTimeVO[]> => {
+  return request({
+    url: '/customer/serverTime/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询维保服务时间详细
+ * @param id
+ */
+export const getServerTime = (id: string | number): AxiosPromise<ServerTimeVO> => {
+  return request({
+    url: '/customer/serverTime/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增维保服务时间
+ * @param data
+ */
+export const addServerTime = (data: ServerTimeForm) => {
+  return request({
+    url: '/customer/serverTime',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改维保服务时间
+ * @param data
+ */
+export const updateServerTime = (data: ServerTimeForm) => {
+  return request({
+    url: '/customer/serverTime',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除维保服务时间
+ * @param id
+ */
+export const delServerTime = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/customer/serverTime/' + id,
+    method: 'delete'
+  });
+};

+ 65 - 0
src/api/customer/serverTime/types.ts

@@ -0,0 +1,65 @@
+export interface ServerTimeVO {
+  /**
+   * ID
+   */
+  id: string | number;
+
+  /**
+   * 时间类型
+   */
+  timeName: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface ServerTimeForm extends BaseEntity {
+  /**
+   * ID
+   */
+  id?: string | number;
+
+  /**
+   * 时间类型
+   */
+  timeName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface ServerTimeQuery extends PageQuery {
+  /**
+   * 时间类型
+   */
+  timeName?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/customer/settlementLevel/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { SettlementLevelVO, SettlementLevelForm, SettlementLevelQuery } from '@/api/customer/settlementLevel/types';
+
+/**
+ * 查询结算等级列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listSettlementLevel = (query?: SettlementLevelQuery): AxiosPromise<SettlementLevelVO[]> => {
+  return request({
+    url: '/system/settlementLevel/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询结算等级详细
+ * @param id
+ */
+export const getSettlementLevel = (id: string | number): AxiosPromise<SettlementLevelVO> => {
+  return request({
+    url: '/system/settlementLevel/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增结算等级
+ * @param data
+ */
+export const addSettlementLevel = (data: SettlementLevelForm) => {
+  return request({
+    url: '/system/settlementLevel',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改结算等级
+ * @param data
+ */
+export const updateSettlementLevel = (data: SettlementLevelForm) => {
+  return request({
+    url: '/system/settlementLevel',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除结算等级
+ * @param id
+ */
+export const delSettlementLevel = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/settlementLevel/' + id,
+    method: 'delete'
+  });
+};
+
+export function changeShowStatus(id: string | number, isShow: string) {
+  const data = {
+    id,
+    isShow
+  };
+  return request({
+    url: '/system/settlementLevel/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 95 - 0
src/api/customer/settlementLevel/types.ts

@@ -0,0 +1,95 @@
+export interface SettlementLevelVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 结算等级编码
+   */
+  settlementLevelId: string | number;
+
+  /**
+   * 结算等级名称
+   */
+  settlementLevelName: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface SettlementLevelForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 结算等级编码
+   */
+  settlementLevelId?: string | number;
+
+  /**
+   * 结算等级名称
+   */
+  settlementLevelName?: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow?: string | number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface SettlementLevelQuery extends PageQuery {
+  /**
+   * 结算等级编码
+   */
+  settlementLevelId?: string | number;
+
+  /**
+   * 结算等级名称
+   */
+  settlementLevelName?: string;
+
+  /**
+   * 是否显示(0-显示,1-不显示)
+   */
+  isShow?: number;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/customer/settlementMethod/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { SettlementMethodVO, SettlementMethodForm, SettlementMethodQuery } from '@/api/customer/settlementMethod/types';
+
+/**
+ * 查询结算方式列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listSettlementMethod = (query?: SettlementMethodQuery): AxiosPromise<SettlementMethodVO[]> => {
+  return request({
+    url: '/system/settlementMethod/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询结算方式详细
+ * @param id
+ */
+export const getSettlementMethod = (id: string | number): AxiosPromise<SettlementMethodVO> => {
+  return request({
+    url: '/system/settlementMethod/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增结算方式
+ * @param data
+ */
+export const addSettlementMethod = (data: SettlementMethodForm) => {
+  return request({
+    url: '/system/settlementMethod',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改结算方式
+ * @param data
+ */
+export const updateSettlementMethod = (data: SettlementMethodForm) => {
+  return request({
+    url: '/system/settlementMethod',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除结算方式
+ * @param id
+ */
+export const delSettlementMethod = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/settlementMethod/' + id,
+    method: 'delete'
+  });
+};
+
+export function changeShowStatus(id: string | number, isShow: string) {
+  const data = {
+    id,
+    isShow
+  };
+  return request({
+    url: '/system/settlementMethod/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 95 - 0
src/api/customer/settlementMethod/types.ts

@@ -0,0 +1,95 @@
+export interface SettlementMethodVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 结算方式编码
+   */
+  settlementId: string | number;
+
+  /**
+   * 结算方式名称
+   */
+  settlementName: string;
+
+  /**
+   * 是否显示(0-是,1-否)
+   */
+  isShow: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface SettlementMethodForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 结算方式编码
+   */
+  settlementId?: string | number;
+
+  /**
+   * 结算方式名称
+   */
+  settlementName?: string;
+
+  /**
+   * 是否显示(0-是,1-否)
+   */
+  isShow?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface SettlementMethodQuery extends PageQuery {
+  /**
+   * 结算方式编码
+   */
+  settlementId?: string | number;
+
+  /**
+   * 结算方式名称
+   */
+  settlementName?: string;
+
+  /**
+   * 是否显示(0-是,1-否)
+   */
+  isShow?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/order/deliverProduct/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { DeliverProductVO, DeliverProductForm, DeliverProductQuery } from '@/api/order/deliverProduct/types';
+
+/**
+ * 查询订单发货商品明细列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listDeliverProduct = (query?: DeliverProductQuery): AxiosPromise<DeliverProductVO[]> => {
+  return request({
+    url: '/order/deliverProduct/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询订单发货商品明细详细
+ * @param id
+ */
+export const getDeliverProduct = (id: string | number): AxiosPromise<DeliverProductVO> => {
+  return request({
+    url: '/order/deliverProduct/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增订单发货商品明细
+ * @param data
+ */
+export const addDeliverProduct = (data: DeliverProductForm) => {
+  return request({
+    url: '/order/deliverProduct',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改订单发货商品明细
+ * @param data
+ */
+export const updateDeliverProduct = (data: DeliverProductForm) => {
+  return request({
+    url: '/order/deliverProduct',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除订单发货商品明细
+ * @param id
+ */
+export const delDeliverProduct = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/order/deliverProduct/' + id,
+    method: 'delete'
+  });
+};

+ 143 - 0
src/api/order/deliverProduct/types.ts

@@ -0,0 +1,143 @@
+export interface DeliverProductVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 发货单
+   */
+  deliverId: string | number;
+
+  /**
+   * 商品编号
+   */
+  productId: string | number;
+
+  productNo: string;
+
+  /**
+   * 商品名称
+   */
+  productName: string;
+
+  /**
+   * 商品单位
+   */
+  productUnitId: string | number;
+
+  /**
+   * 商品单位
+   */
+  productUnit: string;
+
+  /**
+   * 本次发货数量
+   */
+  deliverNum: number;
+
+  orderPrice: number;
+
+  subtotal: number;
+
+  dataSource: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface DeliverProductForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 发货单
+   */
+  deliverId?: string | number;
+
+  /**
+   * 商品编号
+   */
+  productId?: string | number;
+
+  productNo?: string;
+
+  /**
+   * 商品名称
+   */
+  productName?: string;
+
+  /**
+   * 商品单位
+   */
+  productUnitId?: string | number;
+
+  /**
+   * 商品单位
+   */
+  productUnit?: string;
+
+  /**
+   * 本次发货数量
+   */
+  deliverNum?: number;
+
+  orderPrice: number;
+
+  subtotal: number;
+
+  dataSource?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface DeliverProductQuery extends PageQuery {
+  /**
+   * 发货单
+   */
+  deliverId?: string | number;
+
+  /**
+   * 商品编号
+   */
+  productId?: string | number;
+
+  /**
+   * 商品名称
+   */
+  productName?: string;
+
+  /**
+   * 商品单位
+   */
+  productUnitId?: string | number;
+
+  /**
+   * 商品单位
+   */
+  productUnit?: string;
+
+  /**
+   * 本次发货数量
+   */
+  deliverNum?: number;
+
+  dataSource?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/order/orderAssignmentLog/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { OrderAssignmentVO, OrderAssignmentForm, OrderAssignmentQuery, OrderSplitAssignForm } from '@/api/order/orderAssignmentLog/types';
+
+/**
+ * 查询订单分配记录列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listOrderAssignment = (query?: OrderAssignmentQuery): AxiosPromise<OrderAssignmentVO[]> => {
+  return request({
+    url: '/order/orderAssignment/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询订单分配记录详细
+ * @param id
+ */
+export const getOrderAssignment = (id: string | number): AxiosPromise<OrderAssignmentVO> => {
+  return request({
+    url: '/order/orderAssignment/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增订单分配记录------整单
+ * @param data
+ */
+export const addOrderAssignment = (data: OrderAssignmentForm) => {
+  return request({
+    url: '/order/orderAssignment',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 新增订单分配记录------拆单
+ * @param data
+ */
+export const addOrderSplitAssign = (data: OrderSplitAssignForm) => {
+  return request({
+    url: '/order/orderAssignment/splitAssign',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改订单分配记录
+ * @param data
+ */
+export const updateOrderAssignment = (data: OrderAssignmentForm) => {
+  return request({
+    url: '/order/orderAssignment',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除订单分配记录
+ * @param id
+ */
+export const delOrderAssignment = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/order/orderAssignment/' + id,
+    method: 'delete'
+  });
+};

+ 167 - 0
src/api/order/orderAssignmentLog/types.ts

@@ -0,0 +1,167 @@
+export interface OrderAssignmentVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 订单ID,关联订单表
+   */
+  orderId: string | number;
+
+  /**
+   * 分配前平台
+   */
+  platformBefore: string;
+
+  /**
+   * 分配后平台
+   */
+  platformAfter: string;
+
+  /**
+   * 分配人
+   */
+  assignedBy: number;
+
+  /**
+   * 分配时间
+   */
+  assignTime: string;
+
+  /**
+   * 分配类型:手动/自动
+   */
+  assignType: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 分配原因
+   */
+  remark: string;
+}
+
+export interface OrderAssignmentForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 订单ID,关联订单表
+   */
+  orderId?: string | number;
+
+  orderNo?: string;
+
+  /**
+   * 分配前平台
+   */
+  platformBefore?: string;
+
+  /**
+   * 分配后平台
+   */
+  platformAfter?: string;
+
+  /**
+   * 分配人
+   */
+  assignedBy?: number;
+
+  /**
+   * 分配时间
+   */
+  assignTime?: string;
+
+  /**
+   * 分配类型:手动/自动
+   */
+  assignType?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 分配原因
+   */
+  remark?: string;
+
+  platformCode?: string;
+
+  orderIds?: string;
+}
+
+export interface OrderSplitAssignForm extends BaseEntity {
+  /**
+   * 订单ID,关联订单表
+   */
+  orderId?: string | number;
+
+  itemRules?: Array<OrderProductAssignRule>;
+
+  remark?: string;
+}
+
+export interface OrderProductAssignRule {
+  itemId?: string | number;
+
+  assigneeId?: string | number; // 供应商ID 或 伙伴商ID
+
+  assigneeType?: string; // "srm" 或 "bp"
+
+  targetPlatform?: string; // 保留旧字段以兼容
+}
+
+export interface OrderAssignmentQuery extends PageQuery {
+  /**
+   * 订单ID,关联订单表
+   */
+  orderId?: string | number;
+
+  /**
+   * 分配前平台
+   */
+  platformBefore?: string;
+
+  /**
+   * 分配后平台
+   */
+  platformAfter?: string;
+
+  /**
+   * 分配人
+   */
+  assignedBy?: number;
+
+  /**
+   * 分配时间
+   */
+  assignTime?: string;
+
+  /**
+   * 分配类型:手动/自动
+   */
+  assignType?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 111 - 0
src/api/order/orderDeliver/index.ts

@@ -0,0 +1,111 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { OrderDeliverVO, OrderDeliverForm, OrderDeliverQuery } from '@/api/order/orderDeliver/types';
+
+/**
+ * 查询订单发货主列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listOrderDeliver = (query?: OrderDeliverQuery): AxiosPromise<OrderDeliverVO[]> => {
+  return request({
+    url: '/order/orderDeliver/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询订单发货主详细
+ * @param id
+ */
+export const getOrderDeliver = (id: string | number): AxiosPromise<OrderDeliverVO> => {
+  return request({
+    url: '/order/orderDeliver/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增订单发货主
+ * @param data
+ */
+export const addOrderDeliver = (data: OrderDeliverForm) => {
+  return request({
+    url: '/order/orderDeliver',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改订单发货主
+ * @param data
+ */
+export const updateOrderDeliver = (data: OrderDeliverForm) => {
+  return request({
+    url: '/order/orderDeliver',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除订单发货主
+ * @param id
+ */
+export const delOrderDeliver = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/order/orderDeliver/' + id,
+    method: 'delete'
+  });
+};
+
+/**
+ * 查询订单发货物流信息
+ * @param query
+ * @returns {*}
+ */
+
+export const queryTrack = (query?: OrderDeliverQuery): AxiosPromise<OrderDeliverVO[]> => {
+  return request({
+    url: '/order/orderDeliver/queryTrack',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 根据客户ID查询发货单(分页)
+ * @param customerId 客户ID
+ * @param pageQuery 分页参数
+ */
+export const getCustomerDeliverOrders = (customerId: string | number, pageQuery?: { pageNum?: number; pageSize?: number }) => {
+  return request({
+    url: '/order/orderDeliver/getCustomerDeliverOrders/' + customerId,
+    method: 'get',
+    params: pageQuery
+  });
+};
+
+/**
+ * 根据多个订单ID查询对应的订单商品列表
+ * @param orderIds
+ */
+export function getCustomerOrderProductList(orderIds: (string | number)[]) {
+  if (!Array.isArray(orderIds) || orderIds.length === 0) {
+    return Promise.reject(new Error('订单ID不能为空'));
+  }
+
+  // 手动构造查询参数,确保格式为 orderId=1&orderId=2&orderId=3
+  const params = new URLSearchParams();
+  orderIds.forEach((id) => {
+    params.append('orderId', String(id));
+  });
+
+  return request({
+    url: '/order/orderDeliver/getCustomerOrderProductList?' + params.toString(),
+    method: 'get'
+  });
+}

+ 253 - 0
src/api/order/orderDeliver/types.ts

@@ -0,0 +1,253 @@
+export interface OrderDeliverVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 订单id
+   */
+  orderId: string | number;
+
+  /**
+   * 订单编号
+   */
+  orderCode: string;
+
+  /**
+   * 物流包裹号
+   */
+  logisticPackNo: string;
+
+  /**
+   * 发货方式
+   */
+  deliverMethod: string;
+
+  /**
+   * 送货人姓名
+   */
+  deliverMan: string;
+
+  /**
+   * 送货人联系电话
+   */
+  phone: string;
+
+  /**
+   * 物流状态
+   */
+  logisticsStatus: string;
+
+  /**
+   * 发货备注
+   */
+  deliverRemark: string;
+
+  /**
+   * 装箱/验货备注
+   */
+  checklistRemark: string;
+
+  /**
+   * 承运物流公司
+   */
+  logisticsCompanyId: number;
+
+  /**
+   * 承运物流公司编码
+   */
+  logisticsCompanyCode: string;
+
+  /**
+   * 物流单号
+   */
+  logisticNo: string;
+
+  /**
+   * 包裹状态
+   */
+  logisticPackStatus: string;
+
+  /**
+   * 收货人电话
+   */
+  consigneePhone: string;
+
+  dataSource: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+  deliverProductList: any[];
+}
+
+export interface OrderDeliverForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 订单id
+   */
+  orderId?: string | number;
+
+  /**
+   * 订单编号
+   */
+  orderCode?: string;
+
+  /**
+   * 物流包裹号
+   */
+  logisticPackNo?: string;
+
+  /**
+   * 发货方式
+   */
+  deliverMethod?: string;
+
+  /**
+   * 送货人姓名
+   */
+  deliverMan?: string;
+
+  /**
+   * 送货人联系电话
+   */
+  phone?: string;
+
+  /**
+   * 物流状态
+   */
+  logisticsStatus?: string;
+
+  /**
+   * 发货备注
+   */
+  deliverRemark?: string;
+
+  /**
+   * 装箱/验货备注
+   */
+  checklistRemark?: string;
+
+  /**
+   * 承运物流公司
+   */
+  logisticsCompanyId?: number;
+
+  /**
+   * 承运物流公司编码
+   */
+  logisticsCompanyCode?: string;
+
+  /**
+   * 物流单号
+   */
+  logisticNo?: string;
+
+  /**
+   * 包裹状态
+   */
+  logisticPackStatus?: string;
+
+  /**
+   * 收货人电话
+   */
+  consigneePhone?: string;
+
+  dataSource?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+  /**
+   * 订单商品明细列表
+   */
+  orderDeliverProducts?: any[];
+}
+
+export interface OrderDeliverQuery extends PageQuery {
+  /**
+   * 订单id
+   */
+  orderId?: string | number;
+
+  /**
+   * 订单编号
+   */
+  orderCode?: string;
+
+  /**
+   * 物流包裹号
+   */
+  logisticPackNo?: string;
+
+  /**
+   * 发货方式
+   */
+  deliverMethod?: string;
+
+  /**
+   * 送货人姓名
+   */
+  deliverMan?: string;
+
+  /**
+   * 送货人联系电话
+   */
+  phone?: string;
+
+  /**
+   * 物流状态
+   */
+  logisticsStatus?: string;
+
+  /**
+   * 发货备注
+   */
+  deliverRemark?: string;
+
+  /**
+   * 装箱/验货备注
+   */
+  checklistRemark?: string;
+
+  /**
+   * 承运物流公司
+   */
+  logisticsCompany?: number;
+
+  /**
+   * 物流单号
+   */
+  logisticNo?: string;
+
+  /**
+   * 包裹状态
+   */
+  logisticPackStatus?: string;
+
+  /**
+   * 收货人电话
+   */
+  consigneePhone?: string;
+
+  dataSource?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 138 - 0
src/api/order/orderMain/index.ts

@@ -0,0 +1,138 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { OrderMainVO, OrderMainForm, OrderMainQuery } from '@/api/order/orderMain/types';
+
+/**
+ * 查询订单主信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listOrderMain = (query?: OrderMainQuery): AxiosPromise<OrderMainVO[]> => {
+  return request({
+    url: '/order/orderMain/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询分配订单信息列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listOrderAssignment = (query?: OrderMainQuery): AxiosPromise<OrderMainVO[]> => {
+  return request({
+    url: '/order/orderMain/assignmentList',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询订单主信息详细
+ * @param id
+ */
+export const getOrderMain = (id: string | number): AxiosPromise<OrderMainVO> => {
+  return request({
+    url: '/order/orderMain/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增订单主信息
+ * @param data
+ */
+export const addOrderMain = (data: OrderMainForm) => {
+  return request({
+    url: '/order/orderMain',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改订单主信息
+ * @param data
+ */
+export const updateOrderMain = (data: OrderMainForm) => {
+  return request({
+    url: '/order/orderMain',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除订单主信息
+ * @param id
+ */
+export const delOrderMain = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/order/orderMain/' + id,
+    method: 'delete'
+  });
+};
+
+/**
+ * 关闭订单
+ * @param id
+ */
+export const closeOrderMain = (id: string | number | Array<string | number>) => {
+  const ids = Array.isArray(id) ? id : [id];
+
+  return request({
+    url: '/order/orderMain/closeOrder',
+    method: 'post',
+    params: { ids }
+  });
+};
+
+/**
+ * 查询数量
+ * @param query
+ * @returns {*}
+ */
+
+export const queryOrderStatusStats = () => {
+  return request({
+    url: '/order/orderMain/queryOrderStatusStats',
+    method: 'get'
+  });
+};
+
+/**
+ * 修改审核状态
+ * @param id
+ * @param checkStatus
+ */
+export function changeCheckStatus(id: string | number, checkStatus: string) {
+  const data = {
+    id,
+    checkStatus
+  };
+  return request({
+    url: '/order/orderMain/checkStatus',
+    method: 'put',
+    data: data
+  });
+}
+
+/**
+ * 修改订单状态
+ * @param id
+ * @param orderStatus
+ */
+export function changeStatus(id: string | number, orderStatus: string) {
+  const data = {
+    id,
+    orderStatus
+  };
+  return request({
+    url: '/order/orderMain/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 769 - 0
src/api/order/orderMain/types.ts

@@ -0,0 +1,769 @@
+export interface OrderMainVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 订单编号
+   */
+  orderNo: string;
+
+  /**
+   * 发货单号
+   */
+  shipmentNo: string;
+
+  /**
+   * 子订单编号
+   */
+  subOrderNo: string;
+
+  /**
+   * 所属公司
+   */
+  companyId: string | number;
+
+  /**
+   * 客户ID(关联客户主表)
+   */
+  customerId: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerCode: string;
+
+  customerName: string;
+
+  /**
+   * 用户ID(关联用户表)
+   */
+  userId: string | number;
+
+  /**
+   * 收货地址ID
+   */
+  shippingAddressId: string | number;
+
+  /**
+   * 采购事由
+   */
+  purchaseReason: string;
+
+  /**
+   * 发票类型
+   */
+  invoiceType: string;
+
+  /**
+   * 支付方式
+   */
+  payType: string;
+
+  /**
+   * 发货仓库
+   */
+  warehouseId: string | number;
+
+  /**
+   * 信用额度(元)
+   */
+  creditLimit: number;
+
+  /**
+   * 预计送达时间
+   */
+  expectedDeliveryTime: string;
+
+  /**
+   * 业务员姓名/工号
+   */
+  businessStaff: string;
+
+  /**
+   * 客服人员
+   */
+  customerService: string;
+
+  /**
+   * 业务部门
+   */
+  businessDept: string;
+
+  /**
+   * 用户所属部门
+   */
+  userDept: string;
+
+  /**
+   * 商品总数量
+   */
+  productQuantity: number;
+
+  /**
+   * 商品种数
+   */
+  productTotal: number;
+
+  /**
+   * 已分配数量
+   */
+  assigned: number;
+
+  /**
+   * 未分配数量
+   */
+  unassigned: number;
+
+  /**
+   * 运费(元)
+   */
+  shippingFee: number;
+
+  /**
+   * 订单总金额(元)
+   */
+  totalAmount: number;
+
+  /**
+   * 应付金额(元)
+   */
+  payableAmount: number;
+
+  /**
+   * 支付状态
+   */
+  paymentStatus: string;
+
+  /**
+   * 订单来源
+   */
+  orderSource: string;
+
+  /**
+   * 订单状态
+   */
+  orderStatus: string;
+
+  /**
+   * 下单时间
+   */
+  orderTime: string;
+
+  /**
+   * 确认时间
+   */
+  confirmTime: string;
+
+  /**
+   * 发货时间
+   */
+  shippingTime: string;
+
+  /**
+   * 收货时间
+   */
+  receivingTime: string;
+
+  /**
+   * 已发货数量
+   */
+  shippedQuantity: number;
+
+  /**
+   * 未发货数量
+   */
+  unshippedQuantity: number;
+
+  /**
+   * 包裹数量
+   */
+  packageCount: number;
+
+  /**
+   * 签收数量
+   */
+  signedQuantity: number;
+
+  /**
+   * 已完成售后数量
+   */
+  afterSaleCompleted: number;
+
+  /**
+   * 申请售后数量
+   */
+  afterSalePending: number;
+
+  /**
+   * 配送时效描述
+   */
+  deliveryDesc: string;
+
+  /**
+   * 推送状态
+   */
+  pushStatus: string;
+
+  /**
+   * 订单附件文件路径
+   */
+  attachmentPath: string;
+
+  /**
+   * 配送类型
+   */
+  deliveryType: string;
+
+  /**
+   * 创建类别
+   */
+  orderCategory: string;
+
+  /**
+   * 商品编码
+   */
+  productCode: string;
+
+  /**
+   * 取消或异常原因
+   */
+  cancelReason: string;
+
+  /**
+   * 费用类型
+   */
+  expenseType: string;
+
+  /**
+   * 用户编号
+   */
+  userNo: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  platformCode: string;
+
+  dataSource: string;
+
+  isSplitChild: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+  checkStatus: string;
+
+  assignmentStatus: string;
+
+  orderProductList: any[];
+
+  deliverProductList: any[];
+}
+
+export interface OrderMainForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 发货单号
+   */
+  shipmentNo?: string;
+
+  /**
+   * 子订单编号
+   */
+  subOrderNo?: string;
+
+  /**
+   * 所属公司
+   */
+  companyId?: string | number;
+
+  /**
+   * 客户ID(关联客户主表)
+   */
+  customerId?: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerCode: string;
+
+  /**
+   * 用户ID(关联用户表)
+   */
+  userId?: string | number;
+
+  /**
+   * 收货地址ID
+   */
+  shippingAddressId?: string | number;
+
+  /**
+   * 采购事由
+   */
+  purchaseReason?: string;
+
+  /**
+   * 发票类型
+   */
+  invoiceType?: string;
+
+  /**
+   * 支付方式
+   */
+  payType?: string;
+
+  /**
+   * 发货仓库
+   */
+  warehouseId?: string | number;
+
+  /**
+   * 信用额度(元)
+   */
+  creditLimit?: number;
+
+  /**
+   * 预计送达时间
+   */
+  expectedDeliveryTime?: string;
+
+  /**
+   * 业务员姓名/工号
+   */
+  businessStaff?: string;
+
+  /**
+   * 客服人员
+   */
+  customerService?: string;
+
+  /**
+   * 业务部门
+   */
+  businessDept?: string;
+
+  /**
+   * 用户所属部门
+   */
+  userDept?: string;
+
+  /**
+   * 商品总数量
+   */
+  productQuantity?: number;
+
+  /**
+   * 运费(元)
+   */
+  shippingFee?: number;
+
+  /**
+   * 订单总金额(元)
+   */
+  totalAmount?: number;
+
+  /**
+   * 应付金额(元)
+   */
+  payableAmount?: number;
+
+  /**
+   * 支付状态
+   */
+  paymentStatus?: string;
+
+  /**
+   * 订单来源
+   */
+  orderSource?: string;
+
+  /**
+   * 订单状态
+   */
+  orderStatus?: string;
+
+  /**
+   * 下单时间
+   */
+  orderTime?: string;
+
+  /**
+   * 确认时间
+   */
+  confirmTime?: string;
+
+  /**
+   * 发货时间
+   */
+  shippingTime?: string;
+
+  /**
+   * 收货时间
+   */
+  receivingTime?: string;
+
+  /**
+   * 已发货数量
+   */
+  shippedQuantity?: number;
+
+  /**
+   * 未发货数量
+   */
+  unshippedQuantity?: number;
+
+  /**
+   * 包裹数量
+   */
+  packageCount?: number;
+
+  /**
+   * 签收数量
+   */
+  signedQuantity?: number;
+
+  /**
+   * 已完成售后数量
+   */
+  afterSaleCompleted?: number;
+
+  /**
+   * 申请售后数量
+   */
+  afterSalePending?: number;
+
+  /**
+   * 配送时效描述
+   */
+  deliveryDesc?: string;
+
+  /**
+   * 推送状态
+   */
+  pushStatus?: string;
+
+  /**
+   * 订单附件文件路径
+   */
+  attachmentPath?: string;
+
+  /**
+   * 配送类型
+   */
+  deliveryType?: string;
+
+  /**
+   * 创建类别
+   */
+  orderCategory?: string;
+
+  /**
+   * 商品编码
+   */
+  productCode?: string;
+
+  /**
+   * 取消或异常原因
+   */
+  cancelReason?: string;
+
+  /**
+   * 费用类型
+   */
+  expenseType?: string;
+
+  /**
+   * 用户编号
+   */
+  userNo?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  isSplitChild: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+  dataSource?: string;
+
+  checkStatus?: string;
+
+  assignmentStatus?: string;
+
+  /**
+   * 订单商品明细列表
+   */
+  orderProductBos?: any[];
+
+  customerSalesInfoVo: any;
+}
+
+export interface OrderMainQuery extends PageQuery {
+  /**
+   * 订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 发货单号
+   */
+  shipmentNo?: string;
+
+  /**
+   * 子订单编号
+   */
+  subOrderNo?: string;
+
+  /**
+   * 所属公司
+   */
+  companyId?: string | number;
+
+  /**
+   * 客户ID(关联客户主表)
+   */
+  customerId?: string | number;
+
+  /**
+   * 用户ID(关联用户表)
+   */
+  userId?: string | number;
+
+  /**
+   * 收货地址ID
+   */
+  shippingAddressId?: string | number;
+
+  /**
+   * 采购事由
+   */
+  purchaseReason?: string;
+
+  /**
+   * 发票类型
+   */
+  invoiceType?: string;
+
+  /**
+   * 支付方式
+   */
+  payType?: string;
+
+  /**
+   * 发货仓库
+   */
+  warehouseId?: string | number;
+
+  /**
+   * 信用额度(元)
+   */
+  creditLimit?: number;
+
+  /**
+   * 预计送达时间
+   */
+  expectedDeliveryTime?: string;
+
+  /**
+   * 业务员姓名/工号
+   */
+  businessStaff?: string;
+
+  /**
+   * 客服人员
+   */
+  customerService?: string;
+
+  /**
+   * 业务部门
+   */
+  businessDept?: string;
+
+  /**
+   * 用户所属部门
+   */
+  userDept?: string;
+
+  /**
+   * 商品总数量
+   */
+  productQuantity?: number;
+
+  /**
+   * 运费(元)
+   */
+  shippingFee?: number;
+
+  /**
+   * 订单总金额(元)
+   */
+  totalAmount?: number;
+
+  /**
+   * 应付金额(元)
+   */
+  payableAmount?: number;
+
+  /**
+   * 支付状态
+   */
+  paymentStatus?: string;
+
+  /**
+   * 订单来源
+   */
+  orderSource?: string;
+
+  customerName?: string;
+
+  /**
+   * 订单状态
+   */
+  orderStatus?: string;
+
+  orderStatuses?: string;
+
+  /**
+   * 下单时间
+   */
+  orderTime?: string;
+
+  /**
+   * 确认时间
+   */
+  confirmTime?: string;
+
+  /**
+   * 发货时间
+   */
+  shippingTime?: string;
+
+  /**
+   * 收货时间
+   */
+  receivingTime?: string;
+
+  /**
+   * 已发货数量
+   */
+  shippedQuantity?: number;
+
+  /**
+   * 未发货数量
+   */
+  unshippedQuantity?: number;
+
+  /**
+   * 包裹数量
+   */
+  packageCount?: number;
+
+  /**
+   * 签收数量
+   */
+  signedQuantity?: number;
+
+  /**
+   * 已完成售后数量
+   */
+  afterSaleCompleted?: number;
+
+  /**
+   * 申请售后数量
+   */
+  afterSalePending?: number;
+
+  /**
+   * 配送时效描述
+   */
+  deliveryDesc?: string;
+
+  /**
+   * 推送状态
+   */
+  pushStatus?: string;
+
+  /**
+   * 订单附件文件路径
+   */
+  attachmentPath?: string;
+
+  /**
+   * 配送类型
+   */
+  deliveryType?: string;
+
+  /**
+   * 创建类别
+   */
+  orderCategory?: string;
+
+  /**
+   * 商品编码
+   */
+  productCode?: string;
+
+  /**
+   * 取消或异常原因
+   */
+  cancelReason?: string;
+
+  /**
+   * 费用类型
+   */
+  expenseType?: string;
+
+  /**
+   * 客户编号
+   */
+
+  customerCode?: string;
+
+  /**
+   * 用户编号
+   */
+  userNo?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  dataSource?: string;
+
+  isSplitChild?: string;
+
+  checkStatus?: string;
+
+  assignmentStatus?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/order/orderProduct/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { OrderProductVO, OrderProductForm, OrderProductQuery } from '@/api/order/orderProduct/types';
+
+/**
+ * 查询订单商品明细列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listOrderProduct = (query?: OrderProductQuery): AxiosPromise<OrderProductVO[]> => {
+  return request({
+    url: '/order/orderProduct/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询订单商品明细详细
+ * @param id
+ */
+export const getOrderProduct = (id: string | number): AxiosPromise<OrderProductVO> => {
+  return request({
+    url: '/order/orderProduct/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增订单商品明细
+ * @param data
+ */
+export const addOrderProduct = (data: OrderProductForm) => {
+  return request({
+    url: '/order/orderProduct',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改订单商品明细
+ * @param data
+ */
+export const updateOrderProduct = (data: OrderProductForm) => {
+  return request({
+    url: '/order/orderProduct',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除订单商品明细
+ * @param id
+ */
+export const delOrderProduct = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/order/orderProduct/' + id,
+    method: 'delete'
+  });
+};

+ 443 - 0
src/api/order/orderProduct/types.ts

@@ -0,0 +1,443 @@
+export interface OrderProductVO {
+  /**
+   * 订单商品明细ID
+   */
+  id: string | number;
+
+  /**
+   * 订单ID
+   */
+  orderId: string | number;
+
+  originalItemId: string | number;
+
+  assignedChildOrderId: string | number;
+
+  assignmentStatus: string;
+
+  /**
+   * 订单编号
+   */
+  orderNo: string;
+
+  /**
+   * 发货单编号
+   */
+  shipmentNo: string;
+
+  /**
+   * 产品ID
+   */
+  productId: string | number;
+
+  /**
+   * 产品编号(业务编码)
+   */
+  productNo: string;
+
+  /**
+   * 产品名称
+   */
+  productName: string;
+
+  productUnitId: string | number;
+
+  /**
+   * 产品单位
+   */
+  productUnit: string;
+
+  /**
+   * 产品图片URL
+   */
+  productImage: string;
+
+  /**
+   * 产品图片URLUrl
+   */
+  productImageUrl: string;
+  /**
+   * 平台价格(元)
+   */
+  platformPrice: number;
+
+  /**
+   * 税率
+   */
+  taxRate: number;
+
+  /**
+   * 平台价格价
+   */
+  marketPrice: number;
+
+  /**
+   * 会员价格
+   */
+  memberPrice: number;
+
+  /**
+   * 采购价格
+   */
+  purchasingPrice: number;
+
+  /**
+   * 最高采购价
+   */
+  maxPurchasePrice: number;
+
+  /**
+   * 最小起订量
+   */
+  minOrderQuantity: number;
+
+  /**
+   * 订单单价(元)
+   */
+  orderPrice: number;
+
+  /**
+   * 订购数量
+   */
+  orderQuantity: number;
+
+  /**
+   * 行小计金额(元)
+   */
+  subtotal: number;
+
+  /**
+   * 最低销售价(元)
+   */
+  minSellingPrice: number;
+
+  /**
+   * 已签收数量
+   */
+  signedQuantity: number;
+
+  /**
+   * 已发货数量
+   */
+  quantitySent: number;
+
+  /**
+   * 未发货数量
+   */
+  unsentQuantity: number;
+
+  /**
+   * 是否申请售后
+   */
+  isAfterSale: string;
+
+  /**
+   * 售后申请数量
+   */
+  afterSaleQuantity: number;
+
+  /**
+   * 退款金额(元)
+   */
+  returnAmount: number;
+
+  /**
+   * 预计送达时间
+   */
+  preDeliveryDate: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  dataSource: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface OrderProductForm extends BaseEntity {
+  /**
+   * 订单商品明细ID
+   */
+  id?: string | number;
+
+  /**
+   * 订单ID
+   */
+  orderId?: string | number;
+
+  originalItemId?: string | number;
+
+  assignedChildOrderId?: string | number;
+
+  assignmentStatus?: string;
+
+  /**
+   * 订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 发货单编号
+   */
+  shipmentNo?: string;
+
+  /**
+   * 产品ID
+   */
+  productId?: string | number;
+
+  /**
+   * 产品编号(业务编码)
+   */
+  productNo?: string;
+
+  /**
+   * 产品名称
+   */
+  productName?: string;
+
+  productUnitId?: string | number;
+
+  /**
+   * 产品单位
+   */
+  productUnit?: string;
+
+  /**
+   * 产品图片URL
+   */
+  productImage?: string;
+
+  /**
+   * 平台价格(元)
+   */
+  platformPrice?: number;
+
+  /**
+   * 税率
+   */
+  taxRate?: number;
+
+  /**
+   * 平台价格价
+   */
+  marketPrice?: number;
+
+  /**
+   * 会员价格
+   */
+  memberPrice?: number;
+
+  /**
+   * 采购价格
+   */
+  purchasingPrice?: number;
+
+  /**
+   * 最高采购价
+   */
+  maxPurchasePrice?: number;
+
+  /**
+   * 最小起订量
+   */
+  minOrderQuantity?: number;
+
+  /**
+   * 订单单价(元)
+   */
+  orderPrice?: number;
+
+  /**
+   * 订购数量
+   */
+  orderQuantity?: number;
+
+  /**
+   * 行小计金额(元)
+   */
+  subtotal?: number;
+
+  /**
+   * 最低销售价(元)
+   */
+  minSellingPrice?: number;
+
+  /**
+   * 已签收数量
+   */
+  signedQuantity?: number;
+
+  /**
+   * 已发货数量
+   */
+  quantitySent?: number;
+
+  /**
+   * 未发货数量
+   */
+  unsentQuantity?: number;
+
+  /**
+   * 是否申请售后
+   */
+  isAfterSale?: string;
+
+  /**
+   * 售后申请数量
+   */
+  afterSaleQuantity?: number;
+
+  /**
+   * 退款金额(元)
+   */
+  returnAmount?: number;
+
+  /**
+   * 预计送达时间
+   */
+  preDeliveryDate?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  dataSource?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface OrderProductQuery extends PageQuery {
+  /**
+   * 订单ID
+   */
+  orderId?: string | number;
+
+  /**
+   * 订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 发货单编号
+   */
+  shipmentNo?: string;
+
+  /**
+   * 产品ID
+   */
+  productId?: string | number;
+
+  /**
+   * 产品编号(业务编码)
+   */
+  productNo?: string;
+
+  /**
+   * 产品名称
+   */
+  productName?: string;
+
+  productUnitId?: string | number;
+
+  /**
+   * 产品单位
+   */
+  productUnit?: string;
+
+  /**
+   * 产品图片URL
+   */
+  productImage?: string;
+
+  /**
+   * 平台价格(元)
+   */
+  platformPrice?: number;
+
+  /**
+   * 最小起订量
+   */
+  minOrderQuantity?: number;
+
+  /**
+   * 订单单价(元)
+   */
+  orderPrice?: number;
+
+  /**
+   * 订购数量
+   */
+  orderQuantity?: number;
+
+  /**
+   * 行小计金额(元)
+   */
+  subtotal?: number;
+
+  /**
+   * 最低销售价(元)
+   */
+  minSellingPrice?: number;
+
+  /**
+   * 已签收数量
+   */
+  signedQuantity?: number;
+
+  /**
+   * 已发货数量
+   */
+  quantitySent?: number;
+
+  /**
+   * 未发货数量
+   */
+  unsentQuantity?: number;
+
+  /**
+   * 是否申请售后
+   */
+  isAfterSale?: string;
+
+  /**
+   * 售后申请数量
+   */
+  afterSaleQuantity?: number;
+
+  /**
+   * 退款金额(元)
+   */
+  returnAmount?: number;
+
+  /**
+   * 预计送达时间
+   */
+  preDeliveryDate?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  dataSource?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/order/orderReturn/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { OrderReturnVO, OrderReturnForm, OrderReturnQuery } from '@/api/order/orderReturn/types';
+
+/**
+ * 查询退货主列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listOrderReturn = (query?: OrderReturnQuery): AxiosPromise<OrderReturnVO[]> => {
+  return request({
+    url: '/order/orderReturn/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询退货主详细
+ * @param id
+ */
+export const getOrderReturn = (id: string | number): AxiosPromise<OrderReturnVO> => {
+  return request({
+    url: '/order/orderReturn/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增退货主
+ * @param data
+ */
+export const addOrderReturn = (data: OrderReturnForm) => {
+  return request({
+    url: '/order/orderReturn',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改退货主
+ * @param data
+ */
+export const updateOrderReturn = (data: OrderReturnForm) => {
+  return request({
+    url: '/order/orderReturn',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除退货主
+ * @param id
+ */
+export const delOrderReturn = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/order/orderReturn/' + id,
+    method: 'delete'
+  });
+};

+ 566 - 0
src/api/order/orderReturn/types.ts

@@ -0,0 +1,566 @@
+export interface OrderReturnVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 原订单id
+   */
+  orderId: string | number;
+
+  /**
+   * 原订单编号
+   */
+  orderNo: string;
+
+  /**
+   * 售后服务类型(如:退货、换货、仅退款等)
+   */
+  serviceType: string;
+
+  /**
+   * 退货申请时间
+   */
+  returnTime: string;
+
+  /**
+   * 退货单号
+   */
+  returnNo: string;
+
+  /**
+   * 客户编号
+   */
+  customerId: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo: string;
+
+  /**
+   * 客户姓名
+   */
+  customerName: string;
+
+  /**
+   * 售后金额
+   */
+  afterSaleAmount: number;
+
+  /**
+   * 退货订单状态
+   */
+  returnStatus: string;
+
+  /**
+   * 退货商品总数量
+   */
+  returnProductNum: number;
+
+  /**
+   * 处理完成时间
+   */
+  processingTime: string;
+
+  /**
+   * 退货原因id
+   */
+  returnReasonId: string | number;
+
+  /**
+   * 退货原因
+   */
+  returnReason: string;
+
+  /**
+   * 问题描述
+   */
+  problemDescription: string;
+
+  /**
+   * 凭证图片URL
+   */
+  voucherPhoto: string;
+
+  /**
+   * 运费金额
+   */
+  shippingFee: number;
+
+  /**
+   * 是否承担运费
+   */
+  isShippingFee: string;
+
+  /**
+   * 原订单总金额
+   */
+  orderAmount: number;
+
+  /**
+   * 实际退款金额
+   */
+  returnAmount: number;
+
+  /**
+   * 售后备注
+   */
+  afterSalesRemarks: string;
+
+  /**
+   * 退货方式(如:上门取件、自行寄回)
+   */
+  returnMethod: string;
+
+  /**
+   * 取件人姓名
+   */
+  chargebackName: string;
+
+  /**
+   * 取件联系电话
+   */
+  chargebackPhone: string;
+
+  /**
+   * 预约取件时间
+   */
+  chargebackPickupTime: string;
+
+  /**
+   * 取件省
+   */
+  chargebackProvincial: string;
+
+  /**
+   * 取件市
+   */
+  chargebackCity: string;
+
+  /**
+   * 取件区/县
+   */
+  chargebackCounty: string;
+
+  /**
+   * 取件区/县
+   */
+  provincialCityCounty: string;
+
+  /**
+   * 取件详细地址
+   */
+  chargebackAddress: string;
+
+  /**
+   * 推送状态(如:0-未推送, 1-已推送)
+   */
+  pushStatus: string;
+
+  /**
+   * 物流公司id
+   */
+  logisticsId: string | number;
+
+  /**
+   * 物流公司名称
+   */
+  logisticsName: string;
+
+  /**
+   * 物流单号
+   */
+  logisticsNo: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  createTime: string;
+
+  orderReturnItemList: any[];
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface OrderReturnForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 原订单id
+   */
+  orderId?: string | number;
+
+  /**
+   * 原订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 售后服务类型(如:退货、换货、仅退款等)
+   */
+  serviceType?: string;
+
+  /**
+   * 退货申请时间
+   */
+  returnTime?: string;
+
+  /**
+   * 退货单号
+   */
+  returnNo?: string;
+
+  /**
+   * 客户编号
+   */
+  customerId?: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  /**
+   * 客户姓名
+   */
+  customerName?: string;
+
+  /**
+   * 售后金额
+   */
+  afterSaleAmount?: number;
+
+  /**
+   * 退货订单状态
+   */
+  returnStatus?: string;
+
+  /**
+   * 退货商品总数量
+   */
+  returnProductNum?: number;
+
+  /**
+   * 处理完成时间
+   */
+  processingTime?: string;
+
+  /**
+   * 退货原因id
+   */
+  returnReasonId?: string | number;
+
+  /**
+   * 退货原因
+   */
+  returnReason?: string;
+
+  /**
+   * 问题描述
+   */
+  problemDescription?: string;
+
+  /**
+   * 凭证图片URL
+   */
+  voucherPhoto?: string;
+
+  /**
+   * 运费金额
+   */
+  shippingFee?: number;
+
+  /**
+   * 是否承担运费
+   */
+  isShippingFee?: string;
+
+  /**
+   * 原订单总金额
+   */
+  orderAmount?: number;
+
+  /**
+   * 实际退款金额
+   */
+  returnAmount?: number;
+
+  /**
+   * 售后备注
+   */
+  afterSalesRemarks?: string;
+
+  /**
+   * 退货方式(如:上门取件、自行寄回)
+   */
+  returnMethod?: string;
+
+  /**
+   * 取件人姓名
+   */
+  chargebackName?: string;
+
+  /**
+   * 取件联系电话
+   */
+  chargebackPhone?: string;
+
+  /**
+   * 预约取件时间
+   */
+  chargebackPickupTime?: string;
+
+  /**
+   * 取件省
+   */
+  chargebackProvincial?: string;
+
+  /**
+   * 取件市
+   */
+  chargebackCity?: string;
+
+  /**
+   * 取件区/县
+   */
+  chargebackCounty?: string;
+
+  /**
+   * 取件区/县
+   */
+  provincialCityCounty?: string;
+
+  /**
+   * 取件详细地址
+   */
+  chargebackAddress?: string;
+
+  /**
+   * 推送状态(如:0-未推送, 1-已推送)
+   */
+  pushStatus?: string;
+
+  /**
+   * 物流公司id
+   */
+  logisticsId?: string | number;
+
+  /**
+   * 物流公司名称
+   */
+  logisticsName?: string;
+
+  /**
+   * 物流单号
+   */
+  logisticsNo?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+  orderReturnItemList?: any[];
+}
+
+export interface OrderReturnQuery extends PageQuery {
+  /**
+   * 原订单id
+   */
+  orderId?: string | number;
+
+  /**
+   * 原订单编号
+   */
+  orderNo?: string;
+
+  /**
+   * 售后服务类型(如:退货、换货、仅退款等)
+   */
+  serviceType?: string;
+
+  /**
+   * 退货申请时间
+   */
+  returnTime?: string;
+
+  /**
+   * 退货单号
+   */
+  returnNo?: string;
+
+  /**
+   * 客户编号
+   */
+  customerId?: string | number;
+
+  /**
+   * 客户编号
+   */
+  customerNo?: string;
+
+  /**
+   * 客户姓名
+   */
+  customerName?: string;
+
+  /**
+   * 售后金额
+   */
+  afterSaleAmount?: number;
+
+  /**
+   * 退货订单状态
+   */
+  returnStatus?: string;
+
+  /**
+   * 退货商品总数量
+   */
+  returnProductNum?: number;
+
+  /**
+   * 处理完成时间
+   */
+  processingTime?: string;
+
+  /**
+   * 退货原因id
+   */
+  returnReasonId?: string | number;
+
+  /**
+   * 退货原因
+   */
+  returnReason?: string;
+
+  /**
+   * 问题描述
+   */
+  problemDescription?: string;
+
+  /**
+   * 凭证图片URL
+   */
+  voucherPhoto?: string;
+
+  /**
+   * 运费金额
+   */
+  shippingFee?: number;
+
+  /**
+   * 是否承担运费
+   */
+  isShippingFee?: string;
+
+  /**
+   * 原订单总金额
+   */
+  orderAmount?: number;
+
+  /**
+   * 实际退款金额
+   */
+  returnAmount?: number;
+
+  /**
+   * 售后备注
+   */
+  afterSalesRemarks?: string;
+
+  /**
+   * 退货方式(如:上门取件、自行寄回)
+   */
+  returnMethod?: string;
+
+  /**
+   * 取件人姓名
+   */
+  chargebackName?: string;
+
+  /**
+   * 取件联系电话
+   */
+  chargebackPhone?: string;
+
+  /**
+   * 预约取件时间
+   */
+  chargebackPickupTime?: string;
+
+  /**
+   * 取件省
+   */
+  chargebackProvincial?: string;
+
+  /**
+   * 取件市
+   */
+  chargebackCity?: string;
+
+  /**
+   * 取件区/县
+   */
+  chargebackCounty?: string;
+
+  /**
+   * 取件区/县
+   */
+  provincialCityCounty?: string;
+
+  /**
+   * 取件详细地址
+   */
+  chargebackAddress?: string;
+
+  /**
+   * 推送状态(如:0-未推送, 1-已推送)
+   */
+  pushStatus?: string;
+
+  /**
+   * 物流公司id
+   */
+  logisticsId?: string | number;
+
+  /**
+   * 物流公司名称
+   */
+  logisticsName?: string;
+
+  /**
+   * 物流单号
+   */
+  logisticsNo?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 63 - 0
src/api/order/orderReturnItem/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { OrderReturnItemVO, OrderReturnItemForm, OrderReturnItemQuery } from '@/api/order/orderReturnItem/types';
+
+/**
+ * 查询退货商品明细列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listOrderReturnItem = (query?: OrderReturnItemQuery): AxiosPromise<OrderReturnItemVO[]> => {
+  return request({
+    url: '/order/orderReturnItem/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询退货商品明细详细
+ * @param id
+ */
+export const getOrderReturnItem = (id: string | number): AxiosPromise<OrderReturnItemVO> => {
+  return request({
+    url: '/order/orderReturnItem/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增退货商品明细
+ * @param data
+ */
+export const addOrderReturnItem = (data: OrderReturnItemForm) => {
+  return request({
+    url: '/order/orderReturnItem',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改退货商品明细
+ * @param data
+ */
+export const updateOrderReturnItem = (data: OrderReturnItemForm) => {
+  return request({
+    url: '/order/orderReturnItem',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除退货商品明细
+ * @param id
+ */
+export const delOrderReturnItem = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/order/orderReturnItem/' + id,
+    method: 'delete'
+  });
+};

+ 170 - 0
src/api/order/orderReturnItem/types.ts

@@ -0,0 +1,170 @@
+export interface OrderReturnItemVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 关联的退货单ID
+   */
+  returnId: string | number;
+
+  /**
+   * 原订单明细ID
+   */
+  orderProductId: string | number;
+
+  /**
+   * 商品SKU编码
+   */
+  productSku: string;
+
+  /**
+   * 商品名称
+   */
+  productName: string;
+
+  /**
+   * 本次退货数量
+   */
+  returnQuantity: number;
+
+  /**
+   * 商品单价
+   */
+  unitPrice: number;
+
+  /**
+   * 该项退货总金额
+   */
+  totalAmount: number;
+
+  /**
+   * 该商品的具体退货原因
+   */
+  reasonDetail: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface OrderReturnItemForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 关联的退货单ID
+   */
+  returnId?: string | number;
+
+  /**
+   * 原订单明细ID
+   */
+  orderProductId?: string | number;
+
+  /**
+   * 商品SKU编码
+   */
+  productSku?: string;
+
+  /**
+   * 商品名称
+   */
+  productName?: string;
+
+  /**
+   * 本次退货数量
+   */
+  returnQuantity?: number;
+
+  /**
+   * 商品单价
+   */
+  unitPrice?: number;
+
+  /**
+   * 该项退货总金额
+   */
+  totalAmount?: number;
+
+  /**
+   * 该商品的具体退货原因
+   */
+  reasonDetail?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface OrderReturnItemQuery extends PageQuery {
+  /**
+   * 关联的退货单ID
+   */
+  returnId?: string | number;
+
+  /**
+   * 原订单明细ID
+   */
+  orderProductId?: string | number;
+
+  /**
+   * 商品SKU编码
+   */
+  productSku?: string;
+
+  /**
+   * 商品名称
+   */
+  productName?: string;
+
+  /**
+   * 本次退货数量
+   */
+  returnQuantity?: number;
+
+  /**
+   * 商品单价
+   */
+  unitPrice?: number;
+
+  /**
+   * 该项退货总金额
+   */
+  totalAmount?: number;
+
+  /**
+   * 该商品的具体退货原因
+   */
+  reasonDetail?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

+ 75 - 0
src/api/order/returnReason/index.ts

@@ -0,0 +1,75 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { ReturnReasonVO, ReturnReasonForm, ReturnReasonQuery } from '@/api/order/returnReason/types';
+
+/**
+ * 查询退货原因列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listReturnReason = (query?: ReturnReasonQuery): AxiosPromise<ReturnReasonVO[]> => {
+  return request({
+    url: '/system/returnReason/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询退货原因详细
+ * @param id
+ */
+export const getReturnReason = (id: string | number): AxiosPromise<ReturnReasonVO> => {
+  return request({
+    url: '/system/returnReason/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增退货原因
+ * @param data
+ */
+export const addReturnReason = (data: ReturnReasonForm) => {
+  return request({
+    url: '/system/returnReason',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改退货原因
+ * @param data
+ */
+export const updateReturnReason = (data: ReturnReasonForm) => {
+  return request({
+    url: '/system/returnReason',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除退货原因
+ * @param id
+ */
+export const delReturnReason = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/system/returnReason/' + id,
+    method: 'delete'
+  });
+};
+
+export function changeStatus(id: string | number, isShow: string) {
+  const data = {
+    id,
+    isShow
+  };
+  return request({
+    url: '/system/returnReason/changeStatus',
+    method: 'put',
+    data: data
+  });
+}

+ 110 - 0
src/api/order/returnReason/types.ts

@@ -0,0 +1,110 @@
+export interface ReturnReasonVO {
+  /**
+   * 主键ID
+   */
+  id: string | number;
+
+  /**
+   * 退货原因编号
+   */
+  returnReasonCode: string;
+
+  /**
+   * 退货原因
+   */
+  returnReasonName: string;
+
+  /**
+   * 是否显示
+   */
+  isShow: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+}
+
+export interface ReturnReasonForm extends BaseEntity {
+  /**
+   * 主键ID
+   */
+  id?: string | number;
+
+  /**
+   * 退货原因编号
+   */
+  returnReasonCode?: string;
+
+  /**
+   * 退货原因
+   */
+  returnReasonName?: string;
+
+  /**
+   * 是否显示
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+}
+
+export interface ReturnReasonQuery extends PageQuery {
+  /**
+   * 退货原因编号
+   */
+  returnReasonCode?: string;
+
+  /**
+   * 退货原因
+   */
+  returnReasonName?: string;
+
+  /**
+   * 是否显示
+   */
+  isShow?: string;
+
+  /**
+   * 数据来源
+   */
+  dataSource?: string;
+
+  /**
+   * 状态(0正常 1停用)
+   */
+  status?: string;
+
+  /**
+   * 平台标识
+   */
+  platformCode?: string;
+
+  /**
+   * 日期范围参数
+   */
+  params?: any;
+}

Некоторые файлы не были показаны из-за большого количества измененных файлов