9
0

3 Коммитууд 75e1e30ab1 ... ffbd6f537c

Эзэн SHA1 Мессеж Огноо
  林小张 ffbd6f537c Merge remote-tracking branch 'origin/master' 2 сар өмнө
  林小张 f80f472dcc 1-20-zl-前端 2 сар өмнө
  林小张 ab3e04efd5 1-8-zl-前端 3 сар өмнө
100 өөрчлөгдсөн 1124 нэмэгдсэн , 0 устгасан
  1. BIN
      public/img/1家用电器.jpg
  2. BIN
      public/img/3C数码家电.jpg
  3. BIN
      public/img/LED大屏.jpg
  4. BIN
      public/img/专属客服.png
  5. BIN
      public/img/书写用品.jpg
  6. BIN
      public/img/产品定制.png
  7. BIN
      public/img/什湖好米.jpg
  8. BIN
      public/img/会议室.jpg
  9. BIN
      public/img/内页广告.jpg
  10. BIN
      public/img/创维100V5-HG1会议平板触控一体机.png
  11. BIN
      public/img/办公健身房.jpg
  12. BIN
      public/img/办公室.jpg
  13. BIN
      public/img/办公电脑.jpg
  14. BIN
      public/img/员工管理.png
  15. BIN
      public/img/品牌广告图片.jpg
  16. BIN
      public/img/售后无忧.png
  17. BIN
      public/img/商用碎纸机.jpg
  18. BIN
      public/img/场景采购.png
  19. BIN
      public/img/增值服务.png
  20. BIN
      public/img/增票开具.png
  21. BIN
      public/img/备品备件.png
  22. BIN
      public/img/复印机.jpg
  23. BIN
      public/img/大饼.jpg
  24. BIN
      public/img/奔图.jpg
  25. BIN
      public/img/安防监控.jpg
  26. BIN
      public/img/家具解决方案.jpg
  27. BIN
      public/img/小熊小家电.jpg
  28. BIN
      public/img/小程序二维码.jpg
  29. BIN
      public/img/工业装修-个人安防.jpg
  30. BIN
      public/img/工业装修-五金工具.jpg
  31. BIN
      public/img/工业装修-产品推荐.jpg
  32. BIN
      public/img/工业装修-季节爆款.jpg
  33. BIN
      public/img/希诺杯壶.jpg
  34. BIN
      public/img/平台logo.png
  35. BIN
      public/img/平台图标.png
  36. BIN
      public/img/惠普.jpg
  37. BIN
      public/img/手表.png
  38. BIN
      public/img/打印机.jpg
  39. BIN
      public/img/招商合作.png
  40. BIN
      public/img/摩飞小家电.jpg
  41. BIN
      public/img/新品推荐.png
  42. BIN
      public/img/有线耳机.png
  43. BIN
      public/img/格力.jpg
  44. BIN
      public/img/梦洁锦玉梦韵四件套.png
  45. BIN
      public/img/江润六边形折叠培训桌.png
  46. BIN
      public/img/江润办公屏风办公桌.png
  47. BIN
      public/img/江润双色塑钢培训椅.png
  48. BIN
      public/img/江润多媒体讲台.png
  49. BIN
      public/img/江润实验台.png
  50. BIN
      public/img/洁丽雅纯棉四件套.png
  51. BIN
      public/img/电器控制精选.jpg
  52. BIN
      public/img/电饭煲.png
  53. BIN
      public/img/登录设置.jpg
  54. BIN
      public/img/登录设置2.jpg
  55. BIN
      public/img/登录设置3.jpg
  56. BIN
      public/img/登录设置4.jpg
  57. BIN
      public/img/福利装修下的底部广告1.jpg
  58. BIN
      public/img/福利装修下的底部广告2.jpg
  59. BIN
      public/img/福利装修下的推荐广告1.jpg
  60. BIN
      public/img/福利装修下的推荐广告2.jpg
  61. BIN
      public/img/福利装修下的推荐广告3.jpg
  62. BIN
      public/img/福利装修下的推荐广告4.jpg
  63. BIN
      public/img/福礼装修下的长图广告.jpg
  64. BIN
      public/img/红块.png
  65. BIN
      public/img/罗技鼠标.jpg
  66. BIN
      public/img/耳机.png
  67. BIN
      public/img/联想.jpg
  68. BIN
      public/img/茶水间.jpg
  69. BIN
      public/img/蓝牙音箱.png
  70. BIN
      public/img/账期支持.png
  71. BIN
      public/img/采购方案.png
  72. BIN
      public/img/针式打印.jpg
  73. BIN
      public/img/钟石.jpg
  74. BIN
      public/img/首页logo.png
  75. BIN
      public/img/首页横幅广告.jpg
  76. BIN
      public/img/高效会议一屏搞定.jpg
  77. BIN
      public/img/默认头像.jpg
  78. 12 0
      src/api/customer/customerTag.ts
  79. 12 0
      src/api/customer/enterpriseScale.ts
  80. 54 0
      src/api/customer/industryCategory.ts
  81. 44 0
      src/api/customer/messagePublish.ts
  82. 26 0
      src/api/customer/salesInfo.ts
  83. 55 0
      src/api/customerOperation/customerBlacklist.ts
  84. 194 0
      src/api/customerOperation/customerDetail.ts
  85. 22 0
      src/api/customerOperation/customerList.ts
  86. 44 0
      src/api/customerOperation/customerProgram.ts
  87. 44 0
      src/api/customerOperation/productAssociate.ts
  88. 43 0
      src/api/customerOperation/productOperation.ts
  89. 33 0
      src/api/customerOperation/productOperationInfo.ts
  90. 33 0
      src/api/customerOperation/productProgram.ts
  91. 33 0
      src/api/customerOperation/productSpecs.ts
  92. 43 0
      src/api/customerOperation/recommendProduct.ts
  93. 54 0
      src/api/globalSetting/afterSale.ts
  94. 54 0
      src/api/globalSetting/maintenanceProject.ts
  95. 54 0
      src/api/globalSetting/maintenanceTime.ts
  96. 54 0
      src/api/globalSetting/maintenanceType.ts
  97. 54 0
      src/api/globalSetting/priceRange.ts
  98. 54 0
      src/api/globalSetting/projectType.ts
  99. 54 0
      src/api/globalSetting/purchaseCategory.ts
  100. 54 0
      src/api/globalSetting/recommendTag.ts

BIN
public/img/1家用电器.jpg


BIN
public/img/3C数码家电.jpg


BIN
public/img/LED大屏.jpg


BIN
public/img/专属客服.png


BIN
public/img/书写用品.jpg


BIN
public/img/产品定制.png


BIN
public/img/什湖好米.jpg


BIN
public/img/会议室.jpg


BIN
public/img/内页广告.jpg


BIN
public/img/创维100V5-HG1会议平板触控一体机.png


BIN
public/img/办公健身房.jpg


BIN
public/img/办公室.jpg


BIN
public/img/办公电脑.jpg


BIN
public/img/员工管理.png


BIN
public/img/品牌广告图片.jpg


BIN
public/img/售后无忧.png


BIN
public/img/商用碎纸机.jpg


BIN
public/img/场景采购.png


BIN
public/img/增值服务.png


BIN
public/img/增票开具.png


BIN
public/img/备品备件.png


BIN
public/img/复印机.jpg


BIN
public/img/大饼.jpg


BIN
public/img/奔图.jpg


BIN
public/img/安防监控.jpg


BIN
public/img/家具解决方案.jpg


BIN
public/img/小熊小家电.jpg


BIN
public/img/小程序二维码.jpg


BIN
public/img/工业装修-个人安防.jpg


BIN
public/img/工业装修-五金工具.jpg


BIN
public/img/工业装修-产品推荐.jpg


BIN
public/img/工业装修-季节爆款.jpg


BIN
public/img/希诺杯壶.jpg


BIN
public/img/平台logo.png


BIN
public/img/平台图标.png


BIN
public/img/惠普.jpg


BIN
public/img/手表.png


BIN
public/img/打印机.jpg


BIN
public/img/招商合作.png


BIN
public/img/摩飞小家电.jpg


BIN
public/img/新品推荐.png


BIN
public/img/有线耳机.png


BIN
public/img/格力.jpg


BIN
public/img/梦洁锦玉梦韵四件套.png


BIN
public/img/江润六边形折叠培训桌.png


BIN
public/img/江润办公屏风办公桌.png


BIN
public/img/江润双色塑钢培训椅.png


BIN
public/img/江润多媒体讲台.png


BIN
public/img/江润实验台.png


BIN
public/img/洁丽雅纯棉四件套.png


BIN
public/img/电器控制精选.jpg


BIN
public/img/电饭煲.png


BIN
public/img/登录设置.jpg


BIN
public/img/登录设置2.jpg


BIN
public/img/登录设置3.jpg


BIN
public/img/登录设置4.jpg


BIN
public/img/福利装修下的底部广告1.jpg


BIN
public/img/福利装修下的底部广告2.jpg


BIN
public/img/福利装修下的推荐广告1.jpg


BIN
public/img/福利装修下的推荐广告2.jpg


BIN
public/img/福利装修下的推荐广告3.jpg


BIN
public/img/福利装修下的推荐广告4.jpg


BIN
public/img/福礼装修下的长图广告.jpg


BIN
public/img/红块.png


BIN
public/img/罗技鼠标.jpg


BIN
public/img/耳机.png


BIN
public/img/联想.jpg


BIN
public/img/茶水间.jpg


BIN
public/img/蓝牙音箱.png


BIN
public/img/账期支持.png


BIN
public/img/采购方案.png


BIN
public/img/针式打印.jpg


BIN
public/img/钟石.jpg


BIN
public/img/首页logo.png


BIN
public/img/首页横幅广告.jpg


BIN
public/img/高效会议一屏搞定.jpg


BIN
public/img/默认头像.jpg


+ 12 - 0
src/api/customer/customerTag.ts

@@ -0,0 +1,12 @@
+import request from '@/utils/request';
+
+/**
+ * 查询客户标签列表
+ */
+export function listCustomerTag(query?: any) {
+  return request({
+    url: '/customer/customerTag/list',
+    method: 'get',
+    params: query
+  });
+}

+ 12 - 0
src/api/customer/enterpriseScale.ts

@@ -0,0 +1,12 @@
+import request from '@/utils/request';
+
+/**
+ * 查询企业规模列表
+ */
+export function listEnterpriseScale(query?: any) {
+  return request({
+    url: '/customer/enterpriseScale/list',
+    method: 'get',
+    params: query
+  });
+}

+ 54 - 0
src/api/customer/industryCategory.ts

@@ -0,0 +1,54 @@
+import request from '@/utils/request';
+
+/**
+ * 查询所属行业列表
+ */
+export function listIndustryCategory(query?: any) {
+  return request({
+    url: '/customer/industryCategory/list',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 查询所属行业详情
+ */
+export function getIndustryCategory(id: number | string) {
+  return request({
+    url: '/customer/industryCategory/' + id,
+    method: 'get'
+  });
+}
+
+/**
+ * 新增所属行业
+ */
+export function addIndustryCategory(data: any) {
+  return request({
+    url: '/customer/industryCategory',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 修改所属行业
+ */
+export function updateIndustryCategory(data: any) {
+  return request({
+    url: '/customer/industryCategory',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 删除所属行业
+ */
+export function delIndustryCategory(id: number | string) {
+  return request({
+    url: '/customer/industryCategory/' + id,
+    method: 'delete'
+  });
+}

+ 44 - 0
src/api/customer/messagePublish.ts

@@ -0,0 +1,44 @@
+import request from '@/utils/request';
+
+/**
+ * 消息发布-查询客户列表
+ */
+export function listMessagePublishCustomer(query?: any) {
+  return request({
+    url: '/customer/customerInfo/messagePublishList',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 设置客户标签
+ */
+export function setCustomerInfoTag(data: { customerIds: number[]; tagIds: number[] }) {
+  return request({
+    url: '/customer/customerInfo/setCustomerInfoTag',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 查询客户详情
+ */
+export function getCustomerInfo(id: number | string) {
+  return request({
+    url: '/customer/customerInfo/' + id,
+    method: 'get'
+  });
+}
+
+/**
+ * 修改客户信息
+ */
+export function updateCustomerInfo(data: any) {
+  return request({
+    url: '/customer/customerInfo',
+    method: 'put',
+    data
+  });
+}

+ 26 - 0
src/api/customer/salesInfo.ts

@@ -0,0 +1,26 @@
+import request from '@/utils/request';
+
+/**
+ * 分配业务人员
+ */
+export function assignStaff(data: {
+  customerId: number;
+  salesPersonId?: number;
+  serviceStaffId?: number;
+}) {
+  return request({
+    url: '/customer/salesInfo/assignStaff',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 根据客户ID获取销售信息
+ */
+export function getSalesInfoByCustomerId(customerId: number) {
+  return request({
+    url: `/customer/salesInfo/getByCustomerId/${customerId}`,
+    method: 'get'
+  });
+}

+ 55 - 0
src/api/customerOperation/customerBlacklist.ts

@@ -0,0 +1,55 @@
+import request from '@/utils/request';
+
+/**
+ * 查询客户黑名单列表
+ */
+export function listCustomerBlacklist(query: any) {
+  return request({
+    url: '/product/blacklist/list',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 新增黑名单
+ */
+export function addBlacklist(data: any) {
+  return request({
+    url: '/product/blacklist',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 删除黑名单
+ */
+export function delBlacklist(ids: string | number | Array<string | number>) {
+  return request({
+    url: '/product/blacklist/' + ids,
+    method: 'delete'
+  });
+}
+
+/**
+ * 查询商品列表(简化版,用于选择弹窗)
+ */
+export function listProduct(query?: any) {
+  return request({
+    url: '/product/base/simpleList',
+    method: 'get',
+    params: query || { pageNum: 1, pageSize: 10 }
+  });
+}
+
+/**
+ * 查询商品分类列表
+ */
+export function listProductCategory(query?: any) {
+  return request({
+    url: '/product/category/list',
+    method: 'get',
+    params: query || { pageNum: 1, pageSize: 1000 }
+  });
+}

+ 194 - 0
src/api/customerOperation/customerDetail.ts

@@ -0,0 +1,194 @@
+import request from '@/utils/request';
+
+/**
+ * 获取客户详情(包含基本信息、工商信息、销售信息、联系人、开票信息)
+ */
+export function getCustomerDetail(id: string | number) {
+  return request({
+    url: `/customer/customerInfo/${id}`,
+    method: 'get'
+  });
+}
+
+/**
+ * 获取客户部门列表
+ */
+export function getCustomerDeptList(params: any) {
+  return request({
+    url: '/customer/customerDept/list',
+    method: 'get',
+    params
+  });
+}
+
+/**
+ * 获取客户部门树
+ */
+export function getCustomerDeptTree(customerId: string | number) {
+  return request({
+    url: '/customer/customerDept/tree',
+    method: 'get',
+    params: { customerId }
+  });
+}
+
+/**
+ * 获取客户联系人列表(员工管理)
+ */
+export function getCustomerContactList(params: any) {
+  return request({
+    url: '/customer/customerContact/list',
+    method: 'get',
+    params
+  });
+}
+
+/**
+ * 新增客户联系人
+ */
+export function addCustomerContact(data: any) {
+  return request({
+    url: '/customer/customerContact',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 编辑客户联系人
+ */
+export function updateCustomerContact(data: any) {
+  return request({
+    url: '/customer/customerContact',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 删除客户联系人
+ */
+export function deleteCustomerContact(ids: string | number | (string | number)[]) {
+  return request({
+    url: `/customer/customerContact/${Array.isArray(ids) ? ids.join(',') : ids}`,
+    method: 'delete'
+  });
+}
+
+/**
+ * 获取客户收货地址列表
+ */
+export function getCustomerAddressList(params: any) {
+  return request({
+    url: '/customer/shippingAddress/list',
+    method: 'get',
+    params
+  });
+}
+
+/**
+ * 新增客户收货地址
+ */
+export function addCustomerAddress(data: any) {
+  return request({
+    url: '/customer/shippingAddress',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 编辑客户收货地址
+ */
+export function updateCustomerAddress(data: any) {
+  return request({
+    url: '/customer/shippingAddress',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 删除客户收货地址
+ */
+export function deleteCustomerAddress(ids: string | number | (string | number)[]) {
+  return request({
+    url: `/customer/shippingAddress/${Array.isArray(ids) ? ids.join(',') : ids}`,
+    method: 'delete'
+  });
+}
+
+/**
+ * 获取客户合同列表
+ */
+export function getCustomerContractList(params: any) {
+  return request({
+    url: '/customer/contract/list',
+    method: 'get',
+    params
+  });
+}
+
+/**
+ * 新增客户合同
+ */
+export function addCustomerContract(data: any) {
+  return request({
+    url: '/customer/contract',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 编辑客户合同
+ */
+export function updateCustomerContract(data: any) {
+  return request({
+    url: '/customer/contract',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 删除客户合同
+ */
+export function deleteCustomerContract(ids: string | number | (string | number)[]) {
+  return request({
+    url: `/customer/contract/${Array.isArray(ids) ? ids.join(',') : ids}`,
+    method: 'delete'
+  });
+}
+
+/**
+ * 新增客户部门
+ */
+export function addCustomerDept(data: any) {
+  return request({
+    url: '/customer/customerDept',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 编辑客户部门
+ */
+export function updateCustomerDept(data: any) {
+  return request({
+    url: '/customer/customerDept',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 删除客户部门
+ */
+export function deleteCustomerDept(ids: string | number | (string | number)[]) {
+  return request({
+    url: `/customer/customerDept/${Array.isArray(ids) ? ids.join(',') : ids}`,
+    method: 'delete'
+  });
+}

+ 22 - 0
src/api/customerOperation/customerList.ts

@@ -0,0 +1,22 @@
+import request from '@/utils/request';
+
+/**
+ * 客户列表-分页查询
+ */
+export function getCustomerList(params: any) {
+  return request({
+    url: '/customer/customerInfo/customerList',
+    method: 'get',
+    params
+  });
+}
+
+/**
+ * 获取客户详情
+ */
+export function getCustomerInfo(id: string | number) {
+  return request({
+    url: `/customer/customerInfo/${id}`,
+    method: 'get'
+  });
+}

+ 44 - 0
src/api/customerOperation/customerProgram.ts

@@ -0,0 +1,44 @@
+import request from '@/utils/request';
+
+/**
+ * 查询客户专属方案列表
+ */
+export function listCustomerProgram(query: any) {
+  return request({
+    url: '/customer/program/list',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 新增客户专属方案
+ */
+export function addCustomerProgram(data: any) {
+  return request({
+    url: '/customer/program',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 删除客户专属方案
+ */
+export function delCustomerProgram(ids: string | number | Array<string | number>) {
+  return request({
+    url: '/customer/program/' + ids,
+    method: 'delete'
+  });
+}
+
+/**
+ * 查询所有方案列表(用于下拉选择)
+ */
+export function listAllProgram(query?: any) {
+  return request({
+    url: '/product/program/list',
+    method: 'get',
+    params: query || { pageNum: 1, pageSize: 1000 }
+  });
+}

+ 44 - 0
src/api/customerOperation/productAssociate.ts

@@ -0,0 +1,44 @@
+import request from '@/utils/request';
+
+/**
+ * 根据产品ID获取关联信息
+ */
+export function getAssociateByProductId(productId: string | number) {
+  return request({
+    url: '/product/associate/product/' + productId,
+    method: 'get'
+  });
+}
+
+/**
+ * 新增产品关联
+ */
+export function addAssociate(data: any) {
+  return request({
+    url: '/product/associate',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 修改产品关联
+ */
+export function updateAssociate(data: any) {
+  return request({
+    url: '/product/associate',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 查询商品列表(用于选择关联商品)
+ */
+export function listProductForSelect(params: any) {
+  return request({
+    url: '/product/base/operation/list',
+    method: 'get',
+    params
+  });
+}

+ 43 - 0
src/api/customerOperation/productOperation.ts

@@ -0,0 +1,43 @@
+import request from '@/utils/request';
+
+/**
+ * 查询商品运营列表
+ */
+export function listProductOperation(query: any) {
+  return request({
+    url: '/product/base/operation/list',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 更新商品信息
+ */
+export function updateProduct(data: any) {
+  return request({
+    url: '/product/base',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 获取品牌列表
+ */
+export function getBrandList() {
+  return request({
+    url: '/product/base/brandList',
+    method: 'get'
+  });
+}
+
+/**
+ * 获取分类树
+ */
+export function getCategoryTree() {
+  return request({
+    url: '/product/base/categoryTree',
+    method: 'get'
+  });
+}

+ 33 - 0
src/api/customerOperation/productOperationInfo.ts

@@ -0,0 +1,33 @@
+import request from '@/utils/request';
+
+/**
+ * 根据产品ID获取运营信息
+ */
+export function getOperationInfoByProductId(productId: string | number) {
+  return request({
+    url: '/product/operationInfo/product/' + productId,
+    method: 'get'
+  });
+}
+
+/**
+ * 新增产品运营信息
+ */
+export function addOperationInfo(data: any) {
+  return request({
+    url: '/product/operationInfo',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 修改产品运营信息
+ */
+export function updateOperationInfo(data: any) {
+  return request({
+    url: '/product/operationInfo',
+    method: 'put',
+    data
+  });
+}

+ 33 - 0
src/api/customerOperation/productProgram.ts

@@ -0,0 +1,33 @@
+import request from '@/utils/request';
+
+/**
+ * 查询方案列表(分页)
+ */
+export function listProgram(params: any) {
+  return request({
+    url: '/product/program/list',
+    method: 'get',
+    params
+  });
+}
+
+/**
+ * 根据产品ID查询已关联的方案ID列表
+ */
+export function getProgramIdsByProductId(productId: string | number) {
+  return request({
+    url: '/product/programLink/product/' + productId,
+    method: 'get'
+  });
+}
+
+/**
+ * 批量保存产品方案关联
+ */
+export function saveProgramLink(data: { productId: string | number; programIds: (string | number)[] }) {
+  return request({
+    url: '/product/programLink/saveBatch',
+    method: 'post',
+    data
+  });
+}

+ 33 - 0
src/api/customerOperation/productSpecs.ts

@@ -0,0 +1,33 @@
+import request from '@/utils/request';
+
+/**
+ * 根据产品ID查询规格关联信息
+ */
+export function getSpecsByProductId(productId: string | number) {
+  return request({
+    url: '/product/specs/product/' + productId,
+    method: 'get'
+  });
+}
+
+/**
+ * 新增规格关联
+ */
+export function addSpecs(data: any) {
+  return request({
+    url: '/product/specs',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 修改规格关联
+ */
+export function updateSpecs(data: any) {
+  return request({
+    url: '/product/specs',
+    method: 'put',
+    data
+  });
+}

+ 43 - 0
src/api/customerOperation/recommendProduct.ts

@@ -0,0 +1,43 @@
+import request from '@/utils/request';
+
+/**
+ * 查询推荐商品列表
+ */
+export function listProduct(query: any) {
+  return request({
+    url: '/product/base/recommendProduct/list',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 更新商品推荐信息
+ */
+export function updateProduct(data: any) {
+  return request({
+    url: '/product/base',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 获取品牌列表
+ */
+export function getBrandList() {
+  return request({
+    url: '/product/base/brandList',
+    method: 'get'
+  });
+}
+
+/**
+ * 获取分类树
+ */
+export function getCategoryTree() {
+  return request({
+    url: '/product/base/categoryTree',
+    method: 'get'
+  });
+}

+ 54 - 0
src/api/globalSetting/afterSale.ts

@@ -0,0 +1,54 @@
+import request from '@/utils/request';
+
+/**
+ * 查询售后服务列表
+ */
+export function listAfterSale(query?: any) {
+  return request({
+    url: '/product/afterSales/list',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 查询售后服务详情
+ */
+export function getAfterSale(id: number | string) {
+  return request({
+    url: '/product/afterSales/' + id,
+    method: 'get'
+  });
+}
+
+/**
+ * 新增售后服务
+ */
+export function addAfterSale(data: any) {
+  return request({
+    url: '/product/afterSales',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 修改售后服务
+ */
+export function updateAfterSale(data: any) {
+  return request({
+    url: '/product/afterSales',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 删除售后服务
+ */
+export function delAfterSale(id: number | string) {
+  return request({
+    url: '/product/afterSales/' + id,
+    method: 'delete'
+  });
+}

+ 54 - 0
src/api/globalSetting/maintenanceProject.ts

@@ -0,0 +1,54 @@
+import request from '@/utils/request';
+
+/**
+ * 查询维保项目列表
+ */
+export function listMaintenanceProject(query?: any) {
+  return request({
+    url: '/customer/serverItem/list',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 查询维保项目详情
+ */
+export function getMaintenanceProject(id: number | string) {
+  return request({
+    url: '/customer/serverItem/' + id,
+    method: 'get'
+  });
+}
+
+/**
+ * 新增维保项目
+ */
+export function addMaintenanceProject(data: any) {
+  return request({
+    url: '/customer/serverItem',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 修改维保项目
+ */
+export function updateMaintenanceProject(data: any) {
+  return request({
+    url: '/customer/serverItem',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 删除维保项目
+ */
+export function delMaintenanceProject(id: number | string) {
+  return request({
+    url: '/customer/serverItem/' + id,
+    method: 'delete'
+  });
+}

+ 54 - 0
src/api/globalSetting/maintenanceTime.ts

@@ -0,0 +1,54 @@
+import request from '@/utils/request';
+
+/**
+ * 查询维保时间列表
+ */
+export function listMaintenanceTime(query?: any) {
+  return request({
+    url: '/customer/serverTime/list',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 查询维保时间详情
+ */
+export function getMaintenanceTime(id: number | string) {
+  return request({
+    url: '/customer/serverTime/' + id,
+    method: 'get'
+  });
+}
+
+/**
+ * 新增维保时间
+ */
+export function addMaintenanceTime(data: any) {
+  return request({
+    url: '/customer/serverTime',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 修改维保时间
+ */
+export function updateMaintenanceTime(data: any) {
+  return request({
+    url: '/customer/serverTime',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 删除维保时间
+ */
+export function delMaintenanceTime(id: number | string) {
+  return request({
+    url: '/customer/serverTime/' + id,
+    method: 'delete'
+  });
+}

+ 54 - 0
src/api/globalSetting/maintenanceType.ts

@@ -0,0 +1,54 @@
+import request from '@/utils/request';
+
+/**
+ * 查询维保类型列表
+ */
+export function listMaintenanceType(query?: any) {
+  return request({
+    url: '/customer/maintenanceType/list',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 查询维保类型详情
+ */
+export function getMaintenanceType(id: number | string) {
+  return request({
+    url: '/customer/maintenanceType/' + id,
+    method: 'get'
+  });
+}
+
+/**
+ * 新增维保类型
+ */
+export function addMaintenanceType(data: any) {
+  return request({
+    url: '/customer/maintenanceType',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 修改维保类型
+ */
+export function updateMaintenanceType(data: any) {
+  return request({
+    url: '/customer/maintenanceType',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 删除维保类型
+ */
+export function delMaintenanceType(id: number | string) {
+  return request({
+    url: '/customer/maintenanceType/' + id,
+    method: 'delete'
+  });
+}

+ 54 - 0
src/api/globalSetting/priceRange.ts

@@ -0,0 +1,54 @@
+import request from '@/utils/request';
+
+/**
+ * 查询价格区间列表
+ */
+export function listPriceRange(query?: any) {
+  return request({
+    url: '/system/priceRange/list',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 查询价格区间详情
+ */
+export function getPriceRange(id: number | string) {
+  return request({
+    url: '/system/priceRange/' + id,
+    method: 'get'
+  });
+}
+
+/**
+ * 新增价格区间
+ */
+export function addPriceRange(data: any) {
+  return request({
+    url: '/system/priceRange',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 修改价格区间
+ */
+export function updatePriceRange(data: any) {
+  return request({
+    url: '/system/priceRange',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 删除价格区间
+ */
+export function delPriceRange(id: number | string) {
+  return request({
+    url: '/system/priceRange/' + id,
+    method: 'delete'
+  });
+}

+ 54 - 0
src/api/globalSetting/projectType.ts

@@ -0,0 +1,54 @@
+import request from '@/utils/request';
+
+/**
+ * 查询项目类型列表
+ */
+export function listProjectType(query?: any) {
+  return request({
+    url: '/system/projectType/list',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 查询项目类型详情
+ */
+export function getProjectType(id: number | string) {
+  return request({
+    url: '/system/projectType/' + id,
+    method: 'get'
+  });
+}
+
+/**
+ * 新增项目类型
+ */
+export function addProjectType(data: any) {
+  return request({
+    url: '/system/projectType',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 修改项目类型
+ */
+export function updateProjectType(data: any) {
+  return request({
+    url: '/system/projectType',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 删除项目类型
+ */
+export function delProjectType(id: number | string) {
+  return request({
+    url: '/system/projectType/' + id,
+    method: 'delete'
+  });
+}

+ 54 - 0
src/api/globalSetting/purchaseCategory.ts

@@ -0,0 +1,54 @@
+import request from '@/utils/request';
+
+/**
+ * 查询采购分类列表
+ */
+export function listPurchaseCategory(query?: any) {
+  return request({
+    url: '/system/purchaseCategory/list',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 查询采购分类详情
+ */
+export function getPurchaseCategory(id: number | string) {
+  return request({
+    url: '/system/purchaseCategory/' + id,
+    method: 'get'
+  });
+}
+
+/**
+ * 新增采购分类
+ */
+export function addPurchaseCategory(data: any) {
+  return request({
+    url: '/system/purchaseCategory',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 修改采购分类
+ */
+export function updatePurchaseCategory(data: any) {
+  return request({
+    url: '/system/purchaseCategory',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 删除采购分类
+ */
+export function delPurchaseCategory(id: number | string) {
+  return request({
+    url: '/system/purchaseCategory/' + id,
+    method: 'delete'
+  });
+}

+ 54 - 0
src/api/globalSetting/recommendTag.ts

@@ -0,0 +1,54 @@
+import request from '@/utils/request';
+
+/**
+ * 查询推荐标签列表
+ */
+export function listRecommendTag(query?: any) {
+  return request({
+    url: '/customer/customerTag/list',
+    method: 'get',
+    params: query
+  });
+}
+
+/**
+ * 查询推荐标签详情
+ */
+export function getRecommendTag(id: number | string) {
+  return request({
+    url: '/customer/customerTag/' + id,
+    method: 'get'
+  });
+}
+
+/**
+ * 新增推荐标签
+ */
+export function addRecommendTag(data: any) {
+  return request({
+    url: '/customer/customerTag',
+    method: 'post',
+    data
+  });
+}
+
+/**
+ * 修改推荐标签
+ */
+export function updateRecommendTag(data: any) {
+  return request({
+    url: '/customer/customerTag',
+    method: 'put',
+    data
+  });
+}
+
+/**
+ * 删除推荐标签
+ */
+export function delRecommendTag(id: number | string) {
+  return request({
+    url: '/customer/customerTag/' + id,
+    method: 'delete'
+  });
+}

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно