Bladeren bron

Merge commit '5888f5d3e01b51b4fa099945938055cb7bc5e341' into HEAD

gitadmin 1 jaar geleden
bovenliggende
commit
dc8bf06a93
78 gewijzigde bestanden met toevoegingen van 2803 en 696 verwijderingen
  1. 1 0
      public/index.html
  2. 4 1
      src/api/OperateJournal.js
  3. 86 22
      src/api/allocateBill.js
  4. 12 3
      src/api/allocateReport.js
  5. 64 16
      src/api/allocateReturn.js
  6. 48 12
      src/api/bigScreen.js
  7. 93 24
      src/api/bizuser.js
  8. 61 16
      src/api/checkWarehouse.js
  9. 24 6
      src/api/data.js
  10. 68 18
      src/api/dealer.js
  11. 20 5
      src/api/dealerRecevieAddr.js
  12. 32 8
      src/api/dealerRelation.js
  13. 21 5
      src/api/dealerScope.js
  14. 51 14
      src/api/dispatch.js
  15. 102 24
      src/api/expenseManagement.js
  16. 90 24
      src/api/financeBook.js
  17. 12 3
      src/api/login.js
  18. 24 6
      src/api/lookup.js
  19. 36 9
      src/api/menu.js
  20. 12 3
      src/api/mqmsg.js
  21. 16 4
      src/api/notice.js
  22. 16 4
      src/api/noticeUser.js
  23. 28 7
      src/api/oos.js
  24. 44 11
      src/api/pickUp.js
  25. 24 6
      src/api/power-role.js
  26. 32 8
      src/api/power-user.js
  27. 52 13
      src/api/predict.js
  28. 186 48
      src/api/product.js
  29. 20 5
      src/api/productBrand.js
  30. 16 4
      src/api/productType.js
  31. 20 5
      src/api/productUniversalCode.js
  32. 20 5
      src/api/promoActive.js
  33. 24 6
      src/api/promoRule.js
  34. 28 7
      src/api/promoTerminal.js
  35. 86 22
      src/api/promotion.js
  36. 272 68
      src/api/reportData.js
  37. 29 7
      src/api/sales.js
  38. 16 4
      src/api/salesBillReport.js
  39. 16 4
      src/api/salesDetail.js
  40. 82 22
      src/api/salesDetailNew.js
  41. 94 32
      src/api/salesNew.js
  42. 117 30
      src/api/salesReturn.js
  43. 79 21
      src/api/salesReturnDetail.js
  44. 43 10
      src/api/sendBill.js
  45. 20 5
      src/api/settleReceipt.js
  46. 58 16
      src/api/spareParts.js
  47. 40 10
      src/api/sparePartsReturn.js
  48. 44 11
      src/api/stock.js
  49. 16 4
      src/api/stockOut.js
  50. 12 3
      src/api/stockPut.js
  51. 44 11
      src/api/subarea.js
  52. 68 17
      src/api/supplier.js
  53. 8 2
      src/api/sysParamsConfig.js
  54. 20 5
      src/api/waitDispatchDetail.js
  55. 28 7
      src/api/warehouse.js
  56. 12 1
      src/components/Table/index.js
  57. 5 6
      src/components/UploadFile/index.vue
  58. 1 0
      src/store/getters.js
  59. 133 1
      src/store/modules/app.js
  60. 32 0
      src/utils/request.js
  61. 1 1
      src/views/allocationManagement/allocateReturnConfirmation/list.vue
  62. 5 1
      src/views/allocationManagement/transferOut/edit.vue
  63. 1 1
      src/views/dealerManagement/businessOwnerSettings/list.vue
  64. 1 1
      src/views/dealerManagement/dealerAccountManagement/editModal.vue
  65. 5 5
      src/views/financialManagement/collectionDetailStatic/list.vue
  66. 1 1
      src/views/financialManagement/collectionDetailStatic/printModal.vue
  67. 2 2
      src/views/productManagement/priceChangeRecord/list.vue
  68. 1 1
      src/views/promotionRulesManagement/dealerPromotions/list.vue
  69. 1 1
      src/views/purchasingManagement/bulkWarehousingOrder/edit.vue
  70. 7 4
      src/views/purchasingManagement/purchaseReturn/purchaseReturnDeatil.vue
  71. 2 1
      src/views/purchasingManagement/purchaseReturn/queryPart.vue
  72. 1 1
      src/views/salesManagement/receiptPrint/list.vue
  73. 1 1
      src/views/salesReturnManagement/billOfLading/selectXtModal.vue
  74. 3 1
      src/views/salesReturnManagement/custConfirm/list.vue
  75. 5 0
      src/views/salesReturnManagement/receiveCheck/checking.vue
  76. 2 1
      src/views/salesReturnManagement/receiveCheck/receiving.vue
  77. 1 1
      src/views/salesReturnManagement/salesReturn/salesReturnEdit.vue
  78. 1 1
      vue.config.js

+ 1 - 0
public/index.html

@@ -45,6 +45,7 @@
 		  if (isEdge) { return 'Edge' }
 		} 
 		BrowserType()
+    
 	</script>
   </head>
   <body>

+ 4 - 1
src/api/OperateJournal.js

@@ -8,7 +8,10 @@ export const journalList = (params) => {
   return axios.request({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 

+ 86 - 22
src/api/allocateBill.js

@@ -8,7 +8,10 @@ export const allocateBillList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 调拨退货抓单-选产品列表
@@ -19,7 +22,10 @@ export const allocDetailQueryPageForReturn = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('可选产品列表查询')
+    }
   })
 }
 
@@ -28,7 +34,10 @@ export const updateBatchDepartment = params => {
   return axios({
     url: '/allocateBill/detail/updateBatchDepartment',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量设置费用归属部门')
+    }
   })
 }
 // 调拨管理  新增
@@ -36,23 +45,32 @@ export const allocateBillSave = params => {
   return axios({
     url: '/allocateBill/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
-// 调拨管理  详情
+// 调拨管理  删除
 export const allocateBillDel = params => {
   return axios({
     url: `/allocateBill/delete/${params.sn}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
-// 调拨管理  删除
+// 调拨管理  详情
 export const allocateBillDetail = params => {
   return axios({
     url: `/allocateBill/findBySn/${params.sn}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('查看详情')
+    }
   })
 }
 // 调拨管理  审核
@@ -60,7 +78,10 @@ export const allocateBillAudit = params => {
   return axios({
     url: `/allocateBill/audit/${params.sn}/${params.state}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('审核')
+    }
   })
 }
 // 允许打印
@@ -68,7 +89,10 @@ export const allocateBillAblePrint = params => {
   return axios({
     url: `/allocateBill/ablePrint/${params.sn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('允许打印')
+    }
   })
 }
 // 对单通过
@@ -76,7 +100,10 @@ export const allocateBillCheck = params => {
   return axios({
     url: `/allocateBill/check/${params.sn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('对单通过')
+    }
   })
 }
 // 调拨管理  提交
@@ -84,7 +111,10 @@ export const allocateBillSubmit = params => {
   return axios({
     url: `/allocateBill/submit`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 //  调拨管理 导出
@@ -93,7 +123,10 @@ export const allocateBillExport = (params) => {
     url: '/allocateBill/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 //  调拨管理  明细 列表  分页
@@ -104,7 +137,10 @@ export const allocateBillDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 //  调拨管理  明细 列表  合计
@@ -120,7 +156,10 @@ export const allocateBillDetailDel = params => {
   return axios({
     url: `/allocateBill/detail/delete/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 // 调拨管理  详情  整单删除
@@ -128,7 +167,10 @@ export const allocateBillDetailDelAll = params => {
   return axios({
     url: `/allocateBill/detail/deleteAll/${params.sn}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('整单删除')
+    }
   })
 }
 // 调拨管理  详情  保存
@@ -136,18 +178,25 @@ export const allocateBillDetailSave = params => {
   return axios({
     url: '/allocateBill/detail/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改数量或费用归属部门')
+    }
   })
 }
 // 调拨管理 详情  打印
 export const allocateBillDetailPrint = params => {
   const url = `/allocateBill/print/${params.printType}`
+  const mid = params.printType.indexOf('_TYPE')>=0 ? '调拨分类打印' : '调拨打印'
   delete params.printType
   delete params.isPreview
   return axios.request({
     url: url,
     data: params,
     method: 'post',
+    headers:{
+      'module': encodeURIComponent(mid)
+    }
   })
 }
 // 调拨管理  详情  打印  产品列表
@@ -181,7 +230,10 @@ export const allocateBillBatchInsert = params => {
   return axios({
     url: '/allocateBill/detail/batchInsert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('导入产品')
+    }
   })
 }
 //  调拨管理 导入产品  导出错误项
@@ -190,7 +242,10 @@ export const allocateBillFailExcel = (params) => {
     url: '/allocateBill/detail/downloadFailExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 //  调拨 详情  导出
@@ -199,7 +254,10 @@ export const allocateBillDetailExcel = (params) => {
     url: `/allocateBill/detail/exportExcel/${params.printType}`,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent(params.printType.indexOf('_TYPE')>=0?'调拨分类导出':'导出Excel')
+    }
   })
 }
 //  调拨 列表  更改(暂不打印、取消打印)打印状态
@@ -207,7 +265,10 @@ export const updatePrintState = params => {
   return axios({
     url: '/allocateBill/updatePrintState',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('更改打印状态')
+    }
   })
 }
 
@@ -219,6 +280,9 @@ export const queryOverviewPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }

+ 12 - 3
src/api/allocateReport.js

@@ -8,7 +8,10 @@ export const allocateReportList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  调拨开单统计  列表  合计
@@ -27,7 +30,10 @@ export const allocateReportDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  调拨明细  列表  合计
@@ -44,6 +50,9 @@ export const allocateReportDetailExport = (params) => {
     url: '/report/allocateReport/detail/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }

+ 64 - 16
src/api/allocateReturn.js

@@ -4,7 +4,10 @@ export const allocateReturnAudit = params => {
   return axios({
     url: '/allocateReturn/audit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('审核')
+    }
   })
 }
 // 删除调拨退货
@@ -12,7 +15,10 @@ export const allocateReturnDelete = params => {
   return axios({
     url: `/allocateReturn/delete/${params.allocateReturnSn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 // 品检 提交
@@ -20,7 +26,10 @@ export const allocateReturnCheckSubmit = params => {
   return axios({
     url: '/allocateReturn/check',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 // 财务审核调拨退货
@@ -28,7 +37,10 @@ export const allocateReturnFinanceAudit = params => {
   return axios({
     url: '/allocateReturn/financeAudit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('退货确认')
+    }
   })
 }
 // 导出excel
@@ -36,7 +48,10 @@ export const allocateReturnExcel = params => {
   return axios({
     url: `/allocateReturn/excel/${params.allocateReturnSn}`,
     method: 'get',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出excel')
+    }
   })
 }
 // 打印
@@ -45,7 +60,10 @@ export const allocateReturnPrint = params => {
     url: `/allocateReturn/print/${params.printType}`,
     method: 'post',
     data: params,
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('打印')
+    }
   })
 }
 // 查询调拨退货详情
@@ -63,7 +81,10 @@ export const allocateReturnQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 分页查询调拨退货确认列表
@@ -74,7 +95,10 @@ export const allocateReturnQueryConfirmPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 保存调拨退货
@@ -82,7 +106,10 @@ export const allocateReturnSave = params => {
   return axios({
     url: '/allocateReturn/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
 // 提交调拨退货
@@ -90,7 +117,10 @@ export const allocateReturnSubmit = params => {
   return axios({
     url: '/allocateReturn/submit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 
@@ -99,7 +129,10 @@ export const allocateReturnCheck = params => {
   return axios({
     url: `/allocReturnDetail/check/${params.allocateReturnSn}/${params.allocateCheckType}`,
     data: params.list,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.allocateCheckType == 'CUSTOM' ? '修改返库数量':'批量返库')
+    }
   })
 }
 
@@ -108,7 +141,10 @@ export const allocReturnDetailDelete = params => {
   return axios({
     url: '/allocReturnDetail/delete',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 // 新增调拨退货明细
@@ -116,7 +152,10 @@ export const allocReturnDetailInsert = params => {
   return axios({
     url: '/allocReturnDetail/insert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加')
+    }
   })
 }
 // 批量添加退货明细
@@ -124,7 +163,10 @@ export const allocReturnDetailInsertBatch = params => {
   return axios({
     url: '/allocReturnDetail/insertBatch',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量添加')
+    }
   })
 }
 // 分页查询调拨退货明细列表
@@ -135,7 +177,10 @@ export const allocReturnDetailQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 // 更新调拨退货明细
@@ -143,6 +188,9 @@ export const allocReturnDetailUpdate = params => {
   return axios({
     url: '/allocReturnDetail/update',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改明细')
+    }
   })
 }

+ 48 - 12
src/api/bigScreen.js

@@ -3,21 +3,30 @@ import { axios } from '@/utils/request'
 export function countSubareaDealerQty () {
   return axios({
     url: '/report/dealerLs/countSubareaDealerQty',
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('加盟商数量')
+    }
   })
 }
 // 加盟商分布统计
 export function countProvinceDealerQty () {
   return axios({
     url: '/report/dealerLs/countProvinceDealerQty',
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('加盟商分布统计')
+    }
   })
 }
 // 产品数量统计
 export function countLevelProductQty () {
   return axios({
     url: '/report/productLs/countLevelProductQty',
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('产品数量统计')
+    }
   })
 }
 // 实时销售看板-区域销售金额占比
@@ -25,7 +34,10 @@ export function queryAreaSaleAmount (params) {
   return axios({
     url: '/report/dataScreen/queryAreaSaleAmount',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('区域销售金额占比')
+    }
   })
 }
 // 实时销售看板-品类销售分布
@@ -33,7 +45,10 @@ export function queryBrandTypeSaleAmount (params) {
   return axios({
     url: '/report/dataScreen/queryBrandTypeSaleAmount',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('品类销售分布')
+    }
   })
 }
 // 实时销售看板-地图
@@ -41,7 +56,10 @@ export function queryMapSaleData (params) {
   return axios({
     url: '/report/dataScreen/queryMapSaleData',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('地图数据')
+    }
   })
 }
 // 实时销售看板-销售金额top15省份
@@ -49,21 +67,30 @@ export function queryProvinceSaleAmount (params) {
   return axios({
     url: '/report/dataScreen/queryProvinceSaleAmount',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('销售金额top15省份')
+    }
   })
 }
 // 实时销售看板-本月/周销售
 export function querySaleMonthWeek () {
   return axios({
     url: '/report/dataScreen/querySaleMonthWeek',
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('本月/周销售')
+    }
   })
 }
 // 实时销售看板-今日销售
 export function querySaleToday () {
   return axios({
     url: '/report/dataScreen/querySaleToday',
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('今日销售')
+    }
   })
 }
 // 实时销售看板-销售趋势分析
@@ -71,7 +98,10 @@ export function querySaleTrend (params) {
   return axios({
     url: '/report/dataScreen/querySaleTrend',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('销售趋势分析')
+    }
   })
 }
  
@@ -80,7 +110,10 @@ export function queryDealerPurchase (params) {
   return axios({
     url: '/report/dataScreen/queryDealerPurchase',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('采购金额TOP100加盟商')
+    }
   })
 }
 
@@ -89,6 +122,9 @@ export function queryProductPurchase (params) {
   return axios({
     url: '/report/dataScreen/queryProductPurchase',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('销售数量/金额TOP100产品')
+    }
   })
 }

+ 93 - 24
src/api/bizuser.js

@@ -8,7 +8,10 @@ export const queryUserList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('人员列表查询')
+    }
   })
 }
 // 业务负责人配置列表  分页
@@ -19,7 +22,10 @@ export const queryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -28,7 +34,10 @@ export const bizuserSave = params => {
   return axios({
     url: '/bizuser/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增/编辑')
+    }
   })
 }
 
@@ -37,7 +46,10 @@ export const bizuserDelete = params => {
   return axios({
     url: `/bizuser/delete/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -50,7 +62,10 @@ export const getNewScopeSn = params => {
   return axios({
     url: '/bizuser/scope/getNewScopeSn',
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('新增管辖品类')
+    }
   })
 }
 
@@ -59,7 +74,10 @@ export const saveProductBrandList = params => {
   return axios({
     url: '/bizuser/scope/saveProductBrandList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增品牌标签')
+    }
   })
 }
 
@@ -68,7 +86,10 @@ export const saveProductTypeList = params => {
   return axios({
     url: '/bizuser/scope/saveProductTypeList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增分类标签')
+    }
   })
 }
 // 设置管辖区域
@@ -79,7 +100,10 @@ export const queryDealerScopePage = params => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('管辖区域明细列表')
+    }
   })
 }
 // 设置管辖品类
@@ -90,7 +114,10 @@ export const queryProductScopePage = params => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('管辖品类列表')
+    }
   })
 }
 
@@ -99,7 +126,10 @@ export const bizuserScopeDelete = params => {
   return axios({
     url: `/bizuser/scope/delete/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 // 设置管辖品类  删除产品品牌
@@ -107,7 +137,10 @@ export const deleteProductBrand = params => {
   return axios({
     url: `/bizuser/scope/detail/deleteProductBrand/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除产品品牌标签')
+    }
   })
 }
 // 设置管辖品类  删除产品分类
@@ -115,7 +148,10 @@ export const deleteProductType = params => {
   return axios({
     url: `/bizuser/scope/detail/deleteProductType/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除分类标签')
+    }
   })
 }
 
@@ -124,7 +160,10 @@ export const findById = params => {
   return axios({
     url: `/bizuser/findById/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('查询用户信息')
+    }
   })
 }
 
@@ -133,7 +172,10 @@ export const queryAreaScope = params => {
   return axios({
     url: '/bizuser/scope/queryAreaScopeList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('查询区域列表')
+    }
   })
 }
 
@@ -142,7 +184,10 @@ export const saveAreaScope = params => {
   return axios({
     url: '/bizuser/scope/saveAreaScope',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加区域')
+    }
   })
 }
 
@@ -151,7 +196,10 @@ export const queryDealerScope = params => {
   return axios({
     url: '/bizuser/scope/queryDealerScopeList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('经销商查询')
+    }
   })
 }
 // 保存经销商
@@ -159,7 +207,10 @@ export const saveDealerScope = params => {
   return axios({
     url: '/bizuser/scope/saveDealerScope',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加经销商')
+    }
   })
 }
 
@@ -171,7 +222,10 @@ export const bizuserScopeQueryDealer = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('经销商列表(选择过的优先显示)')
+    }
   })
 }
 
@@ -184,7 +238,10 @@ export const querySupplierScopePage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('已选供应商列表')
+    }
   })
 }
 // 供应商列表  (选择过的优先显示)
@@ -195,7 +252,10 @@ export const querySupplierPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('供应商列表(选择过的优先显示)')
+    }
   })
 }
 // 保存供应商
@@ -203,7 +263,10 @@ export const saveSupplierList = params => {
   return axios({
     url: '/bizuser/scope/saveSupplierList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加供应商')
+    }
   })
 }
 
@@ -211,15 +274,21 @@ export const querySupplierScope = params => {
   return axios({
     url: '/bizuser/scope/querySupplierScopeList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('供应商列表查询')
+    }
   })
 }
 
-// 已启用状态下的客户列表
+// 已启用状态下的客服列表查询
 export const queryUnderlingKf = params => {
   return axios({
     url: '/bizuser/queryUnderlingKf',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('客服列表查询')
+    }
   })
 }

+ 61 - 16
src/api/checkWarehouse.js

@@ -8,7 +8,10 @@ export const checkWarehouseList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  盘点确认  列表  分页
@@ -19,7 +22,10 @@ export const verifyQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  库存盘点  保存
@@ -27,7 +33,10 @@ export const checkWarehouseSave = (params) => {
   return axios({
     url: '/checkWarehouse/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增盘点')
+    }
   })
 }
 //  库存盘点  详情
@@ -45,7 +54,10 @@ export const checkWarehouseDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 //  库存盘点  详情  合计
@@ -63,7 +75,10 @@ export const checkWarehouseDetailPrint = params => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('打印')
+    }
   })
 }
 //  库存盘点  新增盘点  检查是否有未完结
@@ -81,7 +96,10 @@ export const checkWarehousePrintCheck = (params) => {
   return axios({
     url: url,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('盘点打印')
+    }
   })
 }
 //  盘点人盘点/监盘人监盘  详情  保存
@@ -89,7 +107,10 @@ export const checkWarehouseDetailSave = (params) => {
   return axios({
     url: '/checkWarehouse/detail/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改盘点数量')
+    }
   })
 }
 //  盘点人盘点  盘点
@@ -97,7 +118,10 @@ export const checkWarehouseCheck = (params) => {
   return axios({
     url: '/checkWarehouse/checkWarehouse',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交盘点')
+    }
   })
 }
 //  库存盘点  作废
@@ -105,15 +129,21 @@ export const checkWarehouseDelete = (params) => {
   return axios({
     url: '/checkWarehouse/delete',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('作废盘点单')
+    }
   })
 }
-//  盘点人盘点  监盘
+//  盘点人盘点  提交监盘
 export const checkWarehouseSupervise = (params) => {
   return axios({
     url: '/checkWarehouse/checkSupervise',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交监盘')
+    }
   })
 }
 //  盘点人盘点  重盘
@@ -121,7 +151,10 @@ export const checkWarehouseReCheck = (params) => {
   return axios({
     url: '/checkWarehouse/reCheckWarehouse',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('重盘')
+    }
   })
 }
 //  盘点人盘点  财务确认
@@ -129,7 +162,10 @@ export const checkWarehouseFinanceAudit = (params) => {
   return axios({
     url: '/checkWarehouse/financeAudit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('盘点确认')
+    }
   })
 }
 //  财务盘点确认  详情  列表  分页
@@ -140,7 +176,10 @@ export const checkWarehouseDetailFinanceList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 // 数据导出  导出盘点   盘点列表
@@ -148,7 +187,10 @@ export const checkWarehouseExcelList = (params) => {
   return axios({
     url: `/checkWarehouse/excelList`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 // 数据导出  导出盘点   盘点列表  导出
@@ -158,6 +200,9 @@ export const checkWarehouseExport = params => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }

+ 24 - 6
src/api/data.js

@@ -4,7 +4,10 @@ export function login (parameter) {
   return axios({
     url: '/auth/login',
     method: 'post',
-    data: parameter
+    data: parameter,
+    headers:{
+      'module': encodeURIComponent('登录')
+    }
   })
 }
 
@@ -34,7 +37,10 @@ export const getLookUpData = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('数据字典('+params.lookupCode+')项查询')
+    }
   })
 }
 
@@ -165,7 +171,10 @@ export const printLogQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('打印记录列表查询')
+    }
   })
 }
 
@@ -174,7 +183,10 @@ export const printLogSave = (params) => {
   return axios({
     url: `/printLog/save`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增打印记录')
+    }
   })
 }
 // 打印记录-批量新增
@@ -182,7 +194,10 @@ export const printLogSaveBatch = (params) => {
   return axios({
     url: `/printLog/saveBatch`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量新增打印记录')
+    }
   })
 }
 // 下载模板文件
@@ -190,6 +205,9 @@ export const downLoadTemp = (params) => {
   return axios({
     url: `downLoad/temp/${params.type}`,
     method: 'get',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('下载模板文件')
+    }
   })
 }

+ 68 - 18
src/api/dealer.js

@@ -5,7 +5,10 @@ export const dealerDetailBySn = (params) => {
   return axios({
     url: `/dealer/findBySn/${params.sn}`,
     data: params,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('经销商详情')
+    }
   })
 }
 // 根据sn查找修改过后的经销商信息
@@ -13,7 +16,10 @@ export const dealerFindUpdateInfoBySn = (params) => {
   return axios({
     url: `/dealer/findUpdateInfoBySn/${params.sn}`,
     data: params,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('修改过的经销商详情')
+    }
   })
 }
 // 为分区绑定经销商查询经销商列表
@@ -35,7 +41,10 @@ export const dealerQueryList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('经销商列表查询')
+    }
   })
 }
 //  经销商 列表 有分页, 有权限控制
@@ -46,7 +55,10 @@ export const dealerSubareaScopeList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('经销商列表查询')
+    }
   })
 }
 //  经销商保存
@@ -54,7 +66,10 @@ export const dealerSave = (params) => {
   return axios({
     url: '/dealer/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('保存')
+    }
   })
 }
 //  经销商 导出
@@ -63,14 +78,20 @@ export const dealerExport = (params) => {
     url: '/dealer/exportList',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 // 审核经销商资料
 export const dealerAudit = (params) => {
   return axios({
     url: `/dealer/audit/${params.dealerAuditSn}/${params.auditState}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('审核')
+    }
   })
 }
 
@@ -78,7 +99,10 @@ export const dealerAudit = (params) => {
 export const updateDealerLevel = (params) => {
   return axios({
     url: `/dealer/updateDealerLevel/${params.dealerSn}/${params.dealerLevel}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('级别设置')
+    }
   })
 }
 
@@ -87,7 +111,10 @@ export const updateCooperate = (params) => {
   return axios({
     url: '/dealer/updateCooperate',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('合作设置')
+    }
   })
 }
 
@@ -99,28 +126,40 @@ export const dealerUserList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 经销商账号  详情
 export const dealerUserDetail = (params) => {
   return axios({
     url: `/dealer/user/findById/${params.id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('详情查看')
+    }
   })
 }
 // 经销商账号  删除
 export const dealerUserDel = (params) => {
   return axios({
     url: `/dealer/user/delete/${params.id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 // 经销商账号  启禁用
 export const dealerUserEnable = (params) => {
   return axios({
     url: `/dealer/user/enable/${params.id}/${params.flag}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('启用禁用')
+    }
   })
 }
 // 经销商账号  修改密码
@@ -128,7 +167,10 @@ export const dealerUserChangeP = (params) => {
   return axios({
     url: `/dealer/user/changePWD`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改密码')
+    }
   })
 }
 // 经销商账号  重置密码
@@ -136,7 +178,10 @@ export const dealerUserResetP = (params) => {
   return axios({
     url: `/dealer/user/resetPwd`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('重置密码')
+    }
   })
 }
 // 经销商账号  保存
@@ -144,16 +189,21 @@ export const dealerUserSave = (params) => {
   return axios({
     url: `/dealer/user/save`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
 
 // 根据经销商sn查询经销商信息   选择列表回显可用
-
 export const getDealerListInfo = (params) => {
   return axios({
     url: `/dealer/queryBySns`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('选择经销商')
+    }
   })
 }

+ 20 - 5
src/api/dealerRecevieAddr.js

@@ -8,7 +8,10 @@ export const dealerRecevieAddrList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('收货地址列表')
+    }
   })
 }
 //  收货地址 列表
@@ -16,7 +19,10 @@ export const dealerRecevieAddrQuery = (params) => {
   return axios({
     url: '/dealerRecevieAddr/queryList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('收货地址列表')
+    }
   })
 }
 //  收货地址 保存
@@ -24,14 +30,20 @@ export const dealerRecevieAddrSave = (params) => {
   return axios({
     url: '/dealerRecevieAddr/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('保存收货地址')
+    }
   })
 }
 //  收货地址 设置默认
 export const dealerRecevieAddrSet = (params) => {
   return axios({
     url: `/dealerRecevieAddr/setDefault/${params.id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('设置默认地址')
+    }
   })
 }
 //  收货地址 删除
@@ -39,6 +51,9 @@ export const dealerRecevieAddrDel = (params) => {
   return axios({
     url: `/dealerRecevieAddr/delete/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除收货地址')
+    }
   })
 }

+ 32 - 8
src/api/dealerRelation.js

@@ -4,7 +4,10 @@ import { axios } from '@/utils/request'
 export const bindRelation = (params) => {
   return axios({
     url: `/dealerRelation/bindRelation/${params.parentDealerSn}/${params.subDealerSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('关联下级')
+    }
   })
 }
 
@@ -16,7 +19,10 @@ export const dealerRelationList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -28,7 +34,10 @@ export const queryRebatePage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -36,7 +45,10 @@ export const queryRebatePage = (params) => {
 export const querySubList = (params) => {
   return axios({
     url: `/dealerRelation/querySubList/${params.parentDealerSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('子经销商列表')
+    }
   })
 }
 
@@ -44,7 +56,10 @@ export const querySubList = (params) => {
 export const unbindRelation = (params) => {
   return axios({
     url: `/dealerRelation/unbindRelation/${params.subDealerSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('取消关联')
+    }
   })
 }
 
@@ -53,7 +68,10 @@ export const updateRebate = (params) => {
   return axios({
     url: `/dealerRelation/updateRebate`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('编辑')
+    }
   })
 }
 
@@ -65,7 +83,10 @@ export const queryDealerWithBizuser = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -76,6 +97,9 @@ export const exportDealerWithBizuser = params => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }

+ 21 - 5
src/api/dealerScope.js

@@ -8,15 +8,22 @@ export const dealerScopeList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  经销权 列表 无分页
 export const dealerScopeQueryList = (params) => {
+  const mid = {'PRODUCT':'选择产品','BRAND':'选择品牌','CATEGORY':'选择产品分类'}
   return axios({
     url: '/dealerScope/queryList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(mid[params.goodsType])
+    }
   })
 }
 //  经销权  添加
@@ -24,14 +31,20 @@ export const dealerScopeSave = (params) => {
   return axios({
     url: '/dealerScope/addDealerScope',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
 // 经销权 删除
 export const dealerScopeDel = (params) => {
   return axios({
     url: `/dealerScope/deleteBySn/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 //  经销权  校验产品是否被包含在品牌分类中
@@ -39,6 +52,9 @@ export const dealerScopeValidProduct = (params) => {
   return axios({
     url: '/dealerScope/validProductIsIncloude',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('校验产品是否在品牌分类中')
+    }
   })
 }

+ 51 - 14
src/api/dispatch.js

@@ -8,7 +8,10 @@ export const dispatchlList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -20,7 +23,10 @@ export const dispatchDetaillList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 // 出库详情列表
@@ -31,7 +37,10 @@ export const dispatchDetaillListForOut = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 // 根据销售单sn查询关联的所有发货单
@@ -68,14 +77,20 @@ export const dispatchCheck = (params) => {
   return axios({
     url: `/dispatch/check/${params.dispatchBillSn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('对单通过')
+    }
   })
 }
 // 出库
 export const dispatchStockOut = (params) => {
   return axios({
     url: `/dispatch/stockOut/${params.dispatchBillSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('出库')
+    }
   })
 }
 
@@ -84,21 +99,30 @@ export const dispatchStockUpAduit = (params) => {
   return axios({
     url: '/dispatch/stockUpAduit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('备货审核')
+    }
   })
 }
 // 允许备货打印
 export const dispatchPrintStatus = (params) => {
   return axios({
     url: `/dispatch/updatePrintStatus/${params.dispatchBillSn}/${params.printStatus}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent(params.printStatus == 'UNABLE_PRINT' ? '暂不打印' : '允许备货打印')
+    }
   })
 }
 // 查询备货说明列表
 export const queryExplainList = (params) => {
   return axios({
     url: `/dispatch/queryExplainList/${params.dispatchBillSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('查询备货说明列表')
+    }
   })
 }
 // 保存备货说明
@@ -106,7 +130,10 @@ export const saveExplain = (params) => {
   return axios({
     url: '/dispatch/saveExplain',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('保存备货说明')
+    }
   })
 }
 // 批量备货打印
@@ -114,17 +141,22 @@ export const dispatchBatchPrintStatus = (params) => {
   return axios({
     url: `/dispatch/batchUpdatePrintStatus`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('允许备货打印')
+    }
   })
 }
 // 下推 详情  打印
 export const dispatchDetailPrint = params => {
   const url = `/dispatch/print/${params.type}`
-  delete params.type
   return axios.request({
     url: url,
     data: params,
     method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.type.indexOf('_TYPE')>=0 ? '发货分类打印' : '发货打印')
+    }
   })
 }
 // 下推  详情  该销售单的产品二级分类
@@ -137,12 +169,14 @@ export const dispatchDetailType = (params) => {
 // 下推 详情  导出Excel
 export const dispatchDetailExcel = params => {
   const url = `/dispatch/excel/${params.printType}`
-  delete params.printType
   return axios.request({
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent(params.printType.indexOf('_TYPE')>=0 ? '发货分类导出' : '导出Excel')
+    }
   })
 }
 // 备货审核列表分页
@@ -153,7 +187,10 @@ export const dispatchlBhshList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 发货单统计查询

+ 102 - 24
src/api/expenseManagement.js

@@ -5,7 +5,10 @@ export const departmentQueryList = (params) => {
   return axios({
     url: `/department/queryList`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('申请部门查询')
+    }
   })
 }
 //  申请人
@@ -13,14 +16,20 @@ export const employeeQueryList = (params) => {
   return axios({
     url: `/employee/queryList`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('申请人查询')
+    }
   })
 }
 // 其它往来人员
 export const otherOrgQuery = (params) => {
   return axios({
     url: `/otherorg/queryAll`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('其它往来人员')
+    }
   })
 }
 
@@ -32,7 +41,10 @@ export const expenseAccountList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 批量更新打印状态
@@ -41,7 +53,10 @@ export const expenseAccountUpdateBatch = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量更新打印状态')
+    }
   })
 }
 // 新增再次编辑
@@ -50,7 +65,10 @@ export const expenseAccountAgainEdit = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('再次编辑')
+    }
   })
 }
 // 报销单详情
@@ -66,7 +84,10 @@ export const expenseAccountSave = (params) => {
   return axios({
     url: `/expenseAccount/save`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
 // 删除
@@ -74,7 +95,10 @@ export const expenseAccountDelete = (params) => {
   return axios({
     url: `/expenseAccount/deleteBySn/${params.expenseAccountSn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 // 提交
@@ -82,7 +106,10 @@ export const expenseAccountSubmit = (params) => {
   return axios({
     url: `/expenseAccount/submit`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 
@@ -90,7 +117,10 @@ export const expenseAccountSubmit = (params) => {
 export const expenseAcctDetailDelete = (params) => {
   return axios({
     url: `/expenseAcctDetail/deleteDetail/${params.detailSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -98,7 +128,10 @@ export const expenseAcctDetailDelete = (params) => {
 export const expenseAcctDetailFindBySn = (params) => {
   return axios({
     url: `/expenseAcctDetail/findBySn/${params.detailSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('费用明细')
+    }
   })
 }
 
@@ -106,7 +139,10 @@ export const expenseAcctDetailFindBySn = (params) => {
 export const expenseAcctDetailFindProductsBySn = (params) => {
   return axios({
     url: `/expenseAcctDetail/findDetailProductsBySn/${params.detailSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('费用明细产品')
+    }
   })
 }
 
@@ -115,7 +151,10 @@ export const expenseAcctDetailFindList = (params) => {
   return axios({
     url: `/expenseAcctDetail/findList`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('费用明细列表')
+    }
   })
 }
 
@@ -124,7 +163,10 @@ export const expenseAcctDetailSave = (params) => {
   return axios({
     url: `/expenseAcctDetail/saveDetail`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('保存费用明细')
+    }
   })
 }
 // 费用类型
@@ -141,6 +183,9 @@ export const expenseImportDetail = (params) => {
     url: '/expenseAcctDetail/importDetail',
     data: params,
     method: 'post',
+    headers:{
+      'module': encodeURIComponent('导入费用报销明细')
+    }
   })
 }
 // 确认导入明细
@@ -149,6 +194,9 @@ export const expenseInsertImport = (params) => {
     url: '/expenseAcctDetail/insertImport',
     data: params,
     method: 'post',
+    headers:{
+      'module': encodeURIComponent('导入明细')
+    }
   })
 }
 // 报销明细错误导出
@@ -157,7 +205,10 @@ export const expenseFailExcel = (params) => {
     url: '/expenseAcctDetail/exportImportDetailError',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出报销明细错误项')
+    }
   })
 }
 
@@ -166,7 +217,10 @@ export const expenseAcctDetailSaveProducts = (params) => {
   return axios({
     url: `/expenseAcctDetail/saveDetailProducts`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('保存费用明细产品')
+    }
   })
 }
 
@@ -178,7 +232,10 @@ export const expenseAccountDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('费用报销明细列表查询')
+    }
   })
 }
 // 费用报销明细统计
@@ -197,7 +254,10 @@ export const expenseAcctDetailReport = (params) => {
     url: '/report/expenseAcctDetailReport/exportDetailReport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('费用报销明细导出')
+    }
   })
 }
 
@@ -206,14 +266,20 @@ export const getProcessInstance = (params) => {
   return axios({
     url: `/dingTalk/getProcessInstance/${params.businessType}/${params.businessSn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('审核进度')
+    }
   })
 }
 // 审核进度历史查看
 export const getProcessInstanceList = (params) => {
   return axios({
     url: `/dingTalk/getProcessInstanceList/${params.businessType}/${params.businessSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('审核进度列表')
+    }
   })
 }
 // 钉钉部门
@@ -221,7 +287,10 @@ export const getDingTalkDepartmentList = (params) => {
   return axios({
     url: `/dingTalk/getDingTalkDepartmentList/${params.deptId}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('钉钉部门列表')
+    }
   })
 }
 // 钉钉人员
@@ -229,7 +298,10 @@ export const queryDingTalkDeptUser = (params) => {
   return axios({
     url: `/dingTalk/queryDingTalkDeptUser/${params.deptId}/${params.pageNo}/${params.pageSize}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('钉钉人员列表')
+    }
   })
 }
 
@@ -238,7 +310,10 @@ export const queryDingTalkDeptUser = (params) => {
    return axios({
      url: `/dingTalk/syncAllDeptUser `,
      data: params,
-     method: 'post'
+     method: 'post',
+     headers:{
+       'module': encodeURIComponent('刷新部门人员数据')
+     }
    })
  }
  
@@ -247,6 +322,9 @@ export const queryDingTalkDeptUser = (params) => {
    return axios({
      url: `/dingTalk/getAllDeptUser`,
      data: params,
-     method: 'post'
+     method: 'post',
+     headers:{
+       'module': encodeURIComponent('部门人员数据')
+     }
    })
  }

+ 90 - 24
src/api/financeBook.js

@@ -8,7 +8,10 @@ export const financeBookQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 检查是否已打印
@@ -16,7 +19,10 @@ export const checkPrintStatus = (params) => {
   return axios({
     url: `/financeBook/detail/checkPrintStatus `,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.length==1?'收款打印':'批量打印')
+    }
   })
 }
 // 获取最新一次钉钉审核人员信息
@@ -24,7 +30,10 @@ export const queryLastFinishDingUser = (params) => {
   return axios({
     url: `/financeBook/queryLastFinishDingUser`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('钉钉审核人员信息')
+    }
   })
 }
 // 统计
@@ -36,11 +45,14 @@ export const financeBookQueryCount = (params) => {
   })
 }
 // 批量修改打印状态
-export const financeBookDetailUpdateBatch = (params) => {
+export const financeBookDetailUpdateBatch = (params,type) => {
   return axios({
     url: `/financeBook/detail/updateBatch`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(type==1 ? '批量允许打印':'批量开票')
+    }
   })
 }
 // 财务收款明细-分页列表
@@ -51,7 +63,10 @@ export const financeBookDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 财务收款明细-报表分页列表
@@ -62,7 +77,10 @@ export const financeBookDetailQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 财务收款明细-统计
@@ -81,7 +99,10 @@ export const financeBookDetailExport = (params) => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -98,7 +119,10 @@ export const queryDispatchBillListBySn = (params) => {
   const url = `/financeBook/queryDispatchBillListBySn/${params.bookSn}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('关联备货单')
+    }
   })
 }
 // 删除
@@ -107,7 +131,10 @@ export const financeBookDeleteBySn = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -117,7 +144,10 @@ export const financeBookDgainEditBySn = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('再次编辑')
+    }
   })
 }
 
@@ -127,7 +157,10 @@ export const financeBookSave = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
 
@@ -137,7 +170,10 @@ export const lastPayerAccountInfo = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('查询最近一次账户信息')
+    }
   })
 }
 
@@ -147,7 +183,10 @@ export const financeBookSubmit = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 // 明细-列表
@@ -156,7 +195,10 @@ export const financeBookDetailQueryList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 // 明细-保存
@@ -165,7 +207,10 @@ export const financeBookDetailSave = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加')
+    }
   })
 }
 // 明细-详情
@@ -182,7 +227,10 @@ export const financeBookDetailDelete = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -192,17 +240,23 @@ export const updateDetailInvoiceDate = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改开票日期或备注')
+    }
   })
 }
 
 // 修改备注信息
-export const updateFinanceBookDetail = (params) => {
+export const updateFinanceBookDetail = (params,type) => {
   const url = `/financeBook/detail/update`
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(type==1?'暂不打印':'收款打印状态')
+    }
   })
 }
 
@@ -212,7 +266,10 @@ export const saveSettleReceiptFinanceBook = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('选择关联单据')
+    }
   })
 }
 // 查询关联业务列表
@@ -221,7 +278,10 @@ export const querySettleReceiptFinanceBookList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('关联单据')
+    }
   })
 }
 // 删除关联业务
@@ -230,7 +290,10 @@ export const deleteSettleReceiptFinanceBook = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -240,6 +303,9 @@ export const getBatchLastProcessInstance = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量打印')
+    }
   })
 }

+ 12 - 3
src/api/login.js

@@ -5,14 +5,20 @@ export function login ({ username, password }) {
   return axios({
     url: 'auth/login',
     data: { username, password },
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('登录')
+    }
   })
 }
 
 export function logout () {
   return axios({
     url: 'auth/logout',
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('退出登录')
+    }
   })
 }
 
@@ -58,6 +64,9 @@ export function changePwd (parameter) {
   return axios({
     url: '/user/changePWD',
     method: 'post',
-    data: parameter
+    data: parameter,
+    headers:{
+      'module': encodeURIComponent('修改密码')
+    }
   })
 }

+ 24 - 6
src/api/lookup.js

@@ -5,7 +5,10 @@ export const listLookUp = params => {
   return axios({
     url: url,
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+      'module': encodeURIComponent('字典列表查询')
+    }
   })
 }
 
@@ -13,14 +16,20 @@ export const saveLookUp = params => {
   return axios({
     url: '/lookup/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增/编辑')
+    }
   })
 }
 
 export const delLookUp = params => {
   return axios({
     url: `/lookup/delete/${params.id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -31,7 +40,10 @@ export const getLookUpItem = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('字典项列表查询')
+    }
   })
 }
 
@@ -39,13 +51,19 @@ export const getLookUpItem = (params) => {
 export const delLookUpItem = params => {
   return axios({
     url: `/lookupItem/delete/${params.id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除字典项')
+    }
   })
 }
 export const saveLookUpItem = params => {
   return axios({
     url: '/lookupItem/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('添加/编辑字典项')
+    }
   })
 }

+ 36 - 9
src/api/menu.js

@@ -6,7 +6,10 @@ export const getMenuList = params => {
   return axios({
     url: url,
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+        'module': encodeURIComponent('菜单树数据查询')
+    }
   })
 }
 
@@ -16,7 +19,10 @@ export const saveMenu = params => {
   return axios({
     url: url,
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+        'module': encodeURIComponent('新增菜单')
+    }
   })
 }
 
@@ -25,7 +31,10 @@ export const deleteMenu = params => {
   const url = `/menu/delete/${params.id}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除菜单')
+    }
   })
 }
 
@@ -35,7 +44,10 @@ export const getMdMenuList = params => {
   return axios({
     url: url,
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+        'module': encodeURIComponent('获取门店菜单树数据')
+    }
   })
 }
 
@@ -45,7 +57,10 @@ export const saveMdMenu = params => {
   return axios({
     url: url,
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+        'module': encodeURIComponent('新增/编辑菜单')
+    }
   })
 }
 // 门店菜单删除
@@ -53,7 +68,10 @@ export const deleteMdMenu = params => {
   const url = `/mdmenu/delete/${params.id}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除菜单')
+    }
   })
 }
 
@@ -63,7 +81,10 @@ export const getYyMenuList = params => {
   return axios({
     url: url,
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+        'module': encodeURIComponent('菜单列表查询')
+    }
   })
 }
 
@@ -73,7 +94,10 @@ export const saveYyMenu = params => {
   return axios({
     url: url,
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+        'module': encodeURIComponent('新增/编辑菜单')
+    }
   })
 }
 // 运营菜单删除
@@ -81,6 +105,9 @@ export const deleteYyMenu = params => {
   const url = `/yymenu/delete/${params.id}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除菜单')
+    }
   })
 }

+ 12 - 3
src/api/mqmsg.js

@@ -8,7 +8,10 @@ export const queryReceivePage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  erp数据同步记录 重新同步
@@ -16,7 +19,10 @@ export const handle = (params) => {
   const url = `/mqmsg/handle/${params.id}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('重新同步')
+    }
   })
 }
 // 钉钉审批
@@ -25,6 +31,9 @@ export const checkOptionTask = (params) => {
   return axios({
     url: url,
     data:params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('钉钉审批')
+    }
   })
 }

+ 16 - 4
src/api/notice.js

@@ -8,7 +8,10 @@ export const noticeList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  公告 保存
@@ -16,7 +19,10 @@ export const noticeSave = (params) => {
   return axios({
     url: '/notice/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('新增/编辑')
+    }
   })
 }
 //  公告 删除
@@ -24,7 +30,10 @@ export const noticeDel = (params) => {
   const url = `/notice/delete/${params.id}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 //  公告 详情
@@ -32,6 +41,9 @@ export const noticeDetail = (params) => {
   const url = `/notice/findById/${params.id}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('公告详情')
+    }
   })
 }

+ 16 - 4
src/api/noticeUser.js

@@ -8,7 +8,10 @@ export const noticeUserList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  公告 详情
@@ -16,7 +19,10 @@ export const noticeUserDetail = (params) => {
   const url = `/notice/findById/${params.id}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('公告详情')
+    }
   })
 }
 
@@ -24,13 +30,19 @@ export const noticeUserDetail = (params) => {
 export const getUnreadCount = params => {
   return axios({
     url: 'noticeUser/queryNotReadCount',
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('获取消息未读数')
+    }
   })
 }
 // 设置已读消息
 export const hasRead = id => {
   return axios({
     url: `noticeUser/setRead/${id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('设置已读')
+    }
   })
 }

+ 28 - 7
src/api/oos.js

@@ -8,7 +8,10 @@ export const oosList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  缺货  详情
@@ -25,7 +28,10 @@ export const oosDetailExport = (params) => {
     url: '/oos/detail/exportByBuyer',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('按客户导出')
+    }
   })
 }
 //  缺货 按产品导出
@@ -34,7 +40,10 @@ export const oosDetailExportByProduct = (params) => {
     url: '/oos/detail/exportByProduct',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('按产品导出')
+    }
   })
 }
 
@@ -46,7 +55,10 @@ export const oosDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('详情列表查询')
+    }
   })
 }
 // 缺货统计  按客户  列表  分页
@@ -57,7 +69,10 @@ export const oosBuyerList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 缺货统计  按客户  合计  本页
@@ -87,7 +102,10 @@ export const oosProductList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 缺货统计  按产品  合计  本页
@@ -114,6 +132,9 @@ export const oosDetailPrint = params => {
   return axios.request({
     url: `oos/print/${params.sn}`,
     method: 'get',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('打印')
+    }
   })
 }

+ 44 - 11
src/api/pickUp.js

@@ -8,7 +8,10 @@ export const pickUpQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  仓库提货列表  分页
@@ -19,7 +22,10 @@ export const warehouseQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 提货
@@ -27,7 +33,10 @@ export const pickUpFinish = (params) => {
   return axios({
     url: `/pickUp/finish/${params.pickUpSn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('提货')
+    }
   })
 }
 // 保存提货单
@@ -35,7 +44,10 @@ export const pickUpSave = (params) => {
   return axios({
     url: `/pickUp/save`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('保存')
+    }
   })
 }
 // 提交提货单
@@ -43,7 +55,10 @@ export const pickUpSubmit = (params) => {
   return axios({
     url: `/pickUp/submit`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('提交')
+    }
   })
 }
 
@@ -52,7 +67,10 @@ export const pickUpDelete = (params) => {
   return axios({
     url: `/pickUp/deleteBySn/${params.pickUpSn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 // 再次编辑
@@ -60,7 +78,10 @@ export const pickUpAgainEdit = (params) => {
   return axios({
     url: `/pickUp/againEdit/${params.pickUpSn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('再次编辑')
+    }
   })
 }
 
@@ -68,7 +89,10 @@ export const pickUpAgainEdit = (params) => {
 export const pickUpDetail = (params) => {
   return axios({
     url: `/pickUp/queryBySn/${params.pickUpSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('提货单详情')
+    }
   })
 }
 
@@ -91,7 +115,10 @@ export const pickUpDetailQueryList = (params) => {
   return axios({
     url: `/pickUp/queryPickUpSalesReturnList/${params.pickUpSn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('关联销退单列表查询')
+    }
   })
 }
 
@@ -101,7 +128,10 @@ export const pickUpExport = (params) => {
     url: '/pickUp/excel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }
 // 打印
@@ -111,7 +141,10 @@ export const pickUpDetailPrint = params => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('打印')
+    }
   })
 }
 

+ 24 - 6
src/api/power-role.js

@@ -8,7 +8,10 @@ export const getPowerRoleList = params => {
   return axios({
     url: url,
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -17,7 +20,10 @@ export const updateEnableStatus = params => {
   return axios({
     url: `/yyrole/enable/${params.id}/${params.flag}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('启用禁用')
+    }
   })
 }
 
@@ -26,7 +32,10 @@ export const delectRolePower = params => {
   return axios({
     url: `/yyrole/delete/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -35,7 +44,10 @@ export const saveRolePower = params => {
   return axios({
     url: '/yyrole/save',
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+        'module': encodeURIComponent('新增/编辑')
+    }
   })
 }
 
@@ -44,7 +56,10 @@ export const getMenuList = params => {
   const url = `/yyrole/findAllMenu/${params.id}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('获取角色菜单数据')
+    }
   })
 }
 
@@ -54,6 +69,9 @@ export const addMenuPower = params => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('权限分配')
+    }
   })
 }

+ 32 - 8
src/api/power-user.js

@@ -5,7 +5,10 @@ export const resetPSD = params => {
   return axios({
     url: '/yyuser/resetPwd',
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+        'module': encodeURIComponent('重置密码')
+    }
   })
 }
 
@@ -17,7 +20,10 @@ export const getPowerUserList = params => {
   return axios({
     url: url,
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -26,7 +32,10 @@ export const updateEnableStatus = params => {
   return axios({
     url: `/yyuser/enable/${params.id}/${params.flag}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('启用禁用')
+    }
   })
 }
 
@@ -35,7 +44,10 @@ export const delectUserPower = params => {
   return axios({
     url: `/yyuser/delete/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -44,7 +56,10 @@ export const saveUserPower = params => {
   return axios({
     url: '/yyuser/save',
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+        'module': encodeURIComponent('新增/编辑')
+    }
   })
 }
 
@@ -53,7 +68,10 @@ export const getRoleList = params => {
   return axios({
     url: '/yyrole/findAll',
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+        'module': encodeURIComponent('角色列表')
+    }
   })
 }
 // 用户管理   分区设置
@@ -61,7 +79,10 @@ export const userSubareaSave = params => {
   return axios({
     url: '/userSubarea/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('分区设置')
+    }
   })
 }
 // 所有用户
@@ -69,6 +90,9 @@ export const userQueryList = params => {
   return axios({
     url: '/yyuser/queryAllLike',
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers:{
+        'module': encodeURIComponent('用户列表')
+    }
   })
 }

+ 52 - 13
src/api/predict.js

@@ -5,7 +5,10 @@ export const predictList = (params) => {
   return axios({
     url: '/predict/stockPredict/queryList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  智能补货  产品范围列表  无分页
@@ -13,7 +16,10 @@ export const predictRangeList = (params) => {
   const url = `/predict/stockPredict/queryRangeList/${params.sn}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('产品范围列表查询')
+    }
   })
 }
 //  智能补货  趋势平均列表
@@ -21,7 +27,10 @@ export const predictTrendList = (params) => {
   return axios({
     url: '/predict/stockPredict/queryTrendList',
     params: params,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('趋势平均列表查询')
+    }
   })
 }
 //  智能补货  保存
@@ -29,7 +38,10 @@ export const predictSave = (params) => {
   return axios({
     url: '/predict/stockPredict/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('新增')
+    }
   })
 }
 //  智能补货  删除
@@ -38,7 +50,10 @@ export const predictDel = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 //  智能补货  详情
@@ -47,7 +62,10 @@ export const predictDetail = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('详情')
+    }
   })
 }
 //  智能补货  产品范围 保存
@@ -55,7 +73,10 @@ export const predictRangeSave = (params) => {
   return axios({
     url: '/predict/stockPredict/saveBatchRange',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('产品范围保存')
+    }
   })
 }
 //  智能补货  产品范围 删除
@@ -63,7 +84,10 @@ export const predictRangeDel = (params) => {
   return axios({
     url: '/predict/stockPredict/deleteRange',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('产品范围删除')
+    }
   })
 }
 //  智能补货  计算
@@ -71,7 +95,10 @@ export const predictRun = (params) => {
   return axios({
     url: '/predict/stockPredict/run',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('计算')
+    }
   })
 }
 //  智能补货  基础信息设置  批量插入
@@ -79,7 +106,10 @@ export const predictProductInfoInsert = (params) => {
   return axios({
     url: '/predictProductInfo/batchInsert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('基础信息设置批量插入')
+    }
   })
 }
 //  智能补货  基础信息设置  下载
@@ -88,7 +118,10 @@ export const predictProductInfoExport = (params) => {
     url: '/predictProductInfo/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('基础信息设置下载')
+    }
   })
 }
 //  智能补货  基础信息设置  解析
@@ -96,7 +129,10 @@ export const predictProductInfoGoods = (params) => {
   return axios({
     url: '/predictProductInfo/parseGoods',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('基础信息设置解析')
+    }
   })
 }
 //  智能补货  结果下载
@@ -105,6 +141,9 @@ export const predictstockPredictExport = (params) => {
     url: `/predict/stockPredict/exportExcel/${params.sn}`,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('结果下载')
+    }
   })
 }

+ 186 - 48
src/api/product.js

@@ -8,7 +8,10 @@ export const productList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 产品上线信息列表
@@ -19,7 +22,10 @@ export const queryOnlinePageList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 产品上线信息导出
@@ -28,7 +34,10 @@ export const productLogExportExcel = (params) => {
     url: '/productLog/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -40,7 +49,10 @@ export const productPricedList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('定过价的产品列表')
+    }
   })
 }
 // 定价批量审核
@@ -49,7 +61,10 @@ export const batchAuditPrice = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量审核')
+    }
   })
 }
 // 导出产品定价
@@ -58,7 +73,10 @@ export const productExportPricing = (params) => {
     url: '/product/pricing/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }
 // 产品定价 下载模板
@@ -66,7 +84,7 @@ export const productPriceTplDownload = params => {
   return axios.request({
     url: `/product/productPrice/importTemplate`,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
   })
 }
 // 产品定价 入库导入数据
@@ -74,7 +92,10 @@ export const productPriceInsertImport = params => {
   return axios({
     url: '/product/productPrice/insertImport',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('入库导入')
+    }
   })
 }
 // 产品定价  批量插入
@@ -82,7 +103,10 @@ export const productPriceImport = params => {
   return axios({
     url: '/product/productPrice/import',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('导入产品')
+    }
   })
 }
 //  产品定价 导入产品 导出错误项
@@ -92,7 +116,10 @@ export const productPriceFailExcel = (params) => {
     url: url,
     method: 'post',
     data: params,
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 
@@ -101,14 +128,20 @@ export const productSave = (params) => {
   return axios({
     url: '/product/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('新增/编辑')
+    }
   })
 }
 //  产品 删除
 export const productDel = (params) => {
   return axios({
     url: `/product/delete/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 //  产品 导出
@@ -117,21 +150,30 @@ export const productExport = (params) => {
     url: '/product/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }
 //  产品 详情  根据sn查询
 export const productSnDetail = (params) => {
   return axios({
     url: `/product/findBySn/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('详情')
+    }
   })
 }
 //  产品 审核
 export const productAudit = (params) => {
   return axios({
     url: `/product/audit/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('审核')
+    }
   })
 }
 //  产品 批量审核
@@ -139,14 +181,20 @@ export const productBatchAudit = (params) => {
   return axios({
     url: '/product/batchAudit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量审核')
+    }
   })
 }
 //  产品 上线
 export const productOnline = (params) => {
   return axios({
     url: `/product/online/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('上线')
+    }
   })
 }
 //  产品 下线
@@ -154,7 +202,10 @@ export const productOffline = (params) => {
   return axios({
     url: `/product/offline`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('下线')
+    }
   })
 }
 //  产品 批量上线
@@ -162,7 +213,10 @@ export const productBatchOnline = (params) => {
   return axios({
     url: '/product/batchOnline',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量上线')
+    }
   })
 }
 
@@ -174,7 +228,10 @@ export const productPricingList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  产品  定价 详情  根据sn查询
@@ -189,7 +246,10 @@ export const productPricingSave = (params) => {
   return axios({
     url: '/product/pricing/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('编辑')
+    }
   })
 }
 //  产品  定价 审核
@@ -197,7 +257,10 @@ export const productPricingAudit = (params) => {
   return axios({
     url: '/product/pricing/audit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('审核')
+    }
   })
 }
 
@@ -209,7 +272,10 @@ export const productLogList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 产品上线、下线审核
@@ -217,7 +283,10 @@ export const productLogAudit = (params) => {
   return axios({
     url: `/productLog/audit`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('审核')
+    }
   })
 }
 // 批量上线、下线审核
@@ -225,7 +294,10 @@ export const productLogAuditBatch = (params) => {
   return axios({
     url: `/productLog/auditBatch`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量审核')
+    }
   })
 }
 
@@ -291,7 +363,10 @@ export const productPriceChangeList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  价格变更记录 导出
@@ -300,7 +375,10 @@ export const productPriceChangeExport = (params) => {
     url: '/product/priceChange/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }
 //  产品  级别 列表  分页
@@ -311,7 +389,10 @@ export const productLevelList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  产品  级别 保存
@@ -319,7 +400,10 @@ export const productLevelSave = (params) => {
   return axios({
     url: '/product/saveProductLevel',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('编辑')
+    }
   })
 }
 //  价格查询 列表  分页
@@ -330,14 +414,20 @@ export const productPriceList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  产品 获取价格
 export const productPriceInfo = (params) => {
   return axios({
     url: `/product/getProductPriceInfo/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('获取价格')
+    }
   })
 }
 // 查询最近上下线产品
@@ -348,7 +438,10 @@ export const queryNewProductPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent(params.onlineFalg==0?'查询最近下线产品':'查询最近上线产品')
+    }
   })
 }
 
@@ -358,7 +451,10 @@ export const stackPlaceExport = (params) => {
     url: '/product/stackPlace/export',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -368,7 +464,10 @@ export const stackPlaceExportError = (params) => {
     url: '/product/stackPlace/exportError',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 
@@ -394,7 +493,10 @@ export const stackPlaceInsertImport = (params) => {
   return axios({
     url: '/product/stackPlace/insertImport',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('导入产品货位')
+    }
   })
 }
 // 查询产品货位历史变更记录
@@ -402,7 +504,10 @@ export const stackPlaceListHistory = (params) => {
   return axios({
     url: '/product/stackPlace/listHistory',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('变更记录')
+    }
   })
 }
 // 分页查询产品及货位信息
@@ -413,7 +518,10 @@ export const queryStackPlaceQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 保存产品货位信息
@@ -421,7 +529,10 @@ export const stackPlaceSave = (params) => {
   return axios({
     url: '/product/stackPlace/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent(params.id?'编辑':'新增')
+    }
   })
 }
 
@@ -430,7 +541,7 @@ export const batchImportProduct = (params) => {
   return axios({
     url: '/product/importProduct',
     data: params,
-    method: 'post'
+    method: 'post',
   })
 }
 // 导出错误项产品
@@ -439,7 +550,10 @@ export const exportErrorProduct = (params) => {
     url: '/product/exportErrorProduct',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出错误项产品')
+    }
   })
 }
 
@@ -448,7 +562,10 @@ export const saveBatchImportProduct = (params) => {
   return axios({
     url: '/product/saveBatchImportProduct',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量导入')
+    }
   })
 }
 
@@ -457,7 +574,10 @@ export const priceChangeEnabled = (params) => {
   return axios({
     url: '/product/priceChange/enabled',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('启用/禁用')
+    }
   })
 }
 
@@ -478,7 +598,10 @@ export const exportErrorOffline = (params) => {
     url: '/product/offline/exportError',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 
@@ -487,7 +610,10 @@ export const importSaveBatch = (params) => {
   return axios({
     url: '/product/offline/importSaveBatch',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量导入下线产品')
+    }
   })
 }
 
@@ -499,7 +625,10 @@ export const queryOnlinePage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -509,7 +638,10 @@ export const excelOnlineList = (params) => {
     url: '/product/excelOnlineList',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -518,7 +650,10 @@ export const updateShowFlag = (params) => {
   return axios({
     url: '/productLog/updateShowFlag',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('显示/隐藏')
+    }
   })
 }
 // 修改停产状态
@@ -526,6 +661,9 @@ export const updateHaltProdFlag = (params) => {
   return axios({
     url: '/product/updateHaltProdFlag',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('启用/停产')
+    }
   })
 }

+ 20 - 5
src/api/productBrand.js

@@ -5,7 +5,10 @@ export const productBrandQuery = (params) => {
   return axios({
     url: '/productBrand/query',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  产品品牌 列表  分页
@@ -16,7 +19,10 @@ export const productBrandList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  产品品牌 保存
@@ -24,20 +30,29 @@ export const productBrandSave = (params) => {
   return axios({
     url: '/productBrand/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent(params.brandSn?'编辑':'新增')
+    }
   })
 }
 //  产品品牌 删除
 export const productBrandDel = (params) => {
   return axios({
     url: `/productBrand/delete/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 //  产品品牌 详情  根据sn查询
 export const productBrandSnDetail = (params) => {
   return axios({
     url: `/productBrand/findBySn/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+          'module': encodeURIComponent('详情')
+    }
   })
 }

+ 16 - 4
src/api/productType.js

@@ -13,7 +13,10 @@ export const productTypeQuery = (params) => {
   return axios({
     url: '/productType/query',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('产品分类列表')
+    }
   })
 }
 //  产品分类 列表  多层分类查询   无分页   有启禁用
@@ -21,7 +24,10 @@ export const productTypeQueryAll = (params) => {
   return axios({
     url: '/productType/queryAll',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('产品分类列表')
+    }
   })
 }
 // 产品分类  新增/编辑
@@ -29,7 +35,10 @@ export const productTypeSave = params => {
   return axios({
     url: '/productType/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('新增/编辑')
+    }
   })
 }
 // 产品分类  删除
@@ -37,6 +46,9 @@ export const productTypeDel = params => {
   return axios({
     url: `/productType/delete/${params.sn}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }

+ 20 - 5
src/api/productUniversalCode.js

@@ -8,7 +8,10 @@ export const productUniversalCodeList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  通用产品 删除
@@ -16,7 +19,10 @@ export const productUniversalCodeDel = (params) => {
   const url = `/productUniversalCode/delete/${params.id}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 //  通用产品 保存
@@ -24,7 +30,10 @@ export const productUniversalCodeSave = (params) => {
   return axios({
     url: '/productUniversalCode/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent(params.id?'编辑':'新增')
+    }
   })
 }
 //  通用产品 详情
@@ -43,7 +52,10 @@ export const productCodeQueryList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('产品编码模糊搜索')
+    }
   })
 }
 // 导出 
@@ -52,6 +64,9 @@ export const productUniversalExport = (params) => {
     url: '/productUniversalCode/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }

+ 20 - 5
src/api/promoActive.js

@@ -8,7 +8,10 @@ export const promoActiveList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  优惠活动 保存
@@ -16,7 +19,10 @@ export const promoActiveSave = (params) => {
   return axios({
     url: '/promoActive/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('新增')
+    }
   })
 }
 //  优惠活动 删除
@@ -24,7 +30,10 @@ export const promoActiveDel = (params) => {
   const url = `/promoActive/delete/${params.sn}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 //  优惠活动 详情
@@ -40,7 +49,10 @@ export const promoActiveEnable = (params) => {
   const url = `/promoActive/enable/${params.sn}/${params.flag}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('启用禁用')
+    }
   })
 }
 //  优惠活动 详情
@@ -48,6 +60,9 @@ export const promoActiveDetailD = (params) => {
   const url = `/promoActive/findDetailBySn/${params.sn}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('优惠活动明细')
+    }
   })
 }

+ 24 - 6
src/api/promoRule.js

@@ -5,7 +5,10 @@ export const promoRuleQueryList = (params) => {
   return axios({
     url: '/promoRule/queryList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  优惠活动 保存
@@ -13,7 +16,10 @@ export const promoRuleSave = (params) => {
   return axios({
     url: '/promoRule/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('新增/编辑')
+    }
   })
 }
 //  优惠活动 删除
@@ -21,7 +27,10 @@ export const promoRuleDel = (params) => {
   const url = `/promoRule/delete/${params.sn}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 //  优惠活动 详情
@@ -29,7 +38,10 @@ export const promoRuleDetail = (params) => {
   const url = `/promoRule/findBySn/${params.sn}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('详情')
+    }
   })
 }
 //  优惠活动 详情  包含规则
@@ -37,7 +49,10 @@ export const promoRuleDetailD = (params) => {
   const url = `/promoRule/findDetailBySn/${params.sn}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('详情')
+    }
   })
 }
 //  促销规则  获取可导入和不可导入列表数据
@@ -45,6 +60,9 @@ export const promoRuleGoods = (params) => {
   return axios({
     url: '/promoRule/parseGoods',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('选择产品')
+    }
   })
 }

+ 28 - 7
src/api/promoTerminal.js

@@ -7,7 +7,10 @@ export const promoTerminalList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  保存促销
@@ -15,7 +18,10 @@ export const promoTerminalSave = (params) => {
   return axios({
     url: '/promoTerminal/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('新增/编辑')
+    }
   })
 }
 
@@ -24,7 +30,10 @@ export const promoTerminalDetail = (params) => {
   const url = `/promoTerminal/findBySn/${params.sn}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('详情')
+    }
   })
 }
 
@@ -33,7 +42,10 @@ export const promoTerminalDel = (params) => {
   const url = `/promoTerminal/delete/${params.sn}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 //  促销活动 修改显示状态
@@ -41,7 +53,10 @@ export const updateShowFlag = (params) => {
   const url = `/promoTerminal/updateShowFlag/${params.sn}/${params.showFlag}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('显示状态修改')
+    }
   })
 }
 //  促销活动发布
@@ -49,7 +64,10 @@ export const saveActive = (params) => {
   return axios({
     url: '/promoTerminal/saveActive',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('发布')
+    }
   })
 }
 
@@ -59,6 +77,9 @@ export const dealerExport = (params) => {
     url: '/dealer/exportListForPromo',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }

+ 86 - 22
src/api/promotion.js

@@ -8,7 +8,10 @@ export const dealerPromotionList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 新增促销活动
@@ -16,7 +19,10 @@ export const dealerPromotionSave = params => {
   return axios({
     url: '/promotion/create',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
 // 获取促销活动详情
@@ -32,7 +38,10 @@ export const dealerPromotionEdit = params => {
   return axios({
     url: '/promotion/modify',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('编辑')
+    }
   })
 }
 
@@ -41,7 +50,10 @@ export const dealerPromotionDel = params => {
   return axios({
     url: `/promotion/delete/${params.sn}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 // 规则设置页面  详情
@@ -50,6 +62,7 @@ export const getRuleDetail = (params) => {
     url: `/promotion/rule/findBySn/${params.sn}`,
     data: {},
     method: 'get'
+    
   })
 }
 // 规则设置 列表
@@ -57,7 +70,10 @@ export const getRuleQueryList = (params) => {
   return axios({
     url: '/promotion/rule/queryList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 
@@ -74,7 +90,10 @@ export const promotionSave = (params) => {
   return axios({
     url: '/promotion/rule/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增/编辑')
+    }
   })
 }
 // 删除规则列表
@@ -82,7 +101,10 @@ export const promotionRulesDel = (params) => {
   return axios({
     url: '/promotion/rule/delete',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 // 提交
@@ -90,7 +112,10 @@ export const promotionSubmit = (params) => {
   return axios({
     url: `/promotion/submit/${params.sn}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 
@@ -99,7 +124,10 @@ export const modifyEnabledFlag = (params) => {
   return axios({
     url: '/promotion/modifyEnabledFlag',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('发布')
+    }
   })
 }
 // 审核
@@ -107,7 +135,10 @@ export const promotionAudit = (params) => {
   return axios({
     url: '/promotion/audit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('审核')
+    }
   })
 }
 // 变更促销时间
@@ -115,7 +146,10 @@ export const promotionDateModify = (params) => {
   return axios({
     url: '/promotion/promotionDateModify',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('变更促销时间')
+    }
   })
 }
 // 中止
@@ -123,7 +157,10 @@ export const promotionIsOver = (params) => {
   return axios({
     url: `/promotion/isOver/${params.sn}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('终止')
+    }
   })
 }
 
@@ -134,7 +171,10 @@ export const downNormalFail = (params) => {
     url: '/promotion/rule/downNormalFail',
     method: 'post',
     data: paramsNew,
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出门槛产品错误项')
+    }
   })
 }
 // 导出促销产品错误项
@@ -146,7 +186,10 @@ export const downSpecialFail = (params) => {
     url: url,
     method: 'post',
     data: paramsNew,
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出促销产品错误项')
+    }
   })
 }
 
@@ -157,7 +200,10 @@ export const downDealerFail = (params) => {
     url: url,
     method: 'post',
     data: params,
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出参与客户 (经销商)错误项')
+    }
   })
 }
 
@@ -166,7 +212,7 @@ export const queryCreatorList = (params) => {
   return axios({
     url: '/promotion/queryCreatorList',
     data: params,
-    method: 'post'
+    method: 'post',
   })
 }
 
@@ -175,7 +221,10 @@ export const handleCopyData = (params) => {
   return axios({
     url: '/promotion/copyData',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('复制')
+    }
   })
 }
 
@@ -187,7 +236,10 @@ export const queryAuditPageList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('已选参与客户列表查询')
+    }
   })
 }
 // 经销商列表查询  分页  已选择的排在最上边
@@ -198,7 +250,10 @@ export const queryDealerPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('经销商列表查询')
+    }
   })
 }
 // 参与客户 提交审核
@@ -206,7 +261,10 @@ export const midwaySubmit = (params) => {
   return axios({
     url: '/promotion/dealer/midwaySubmit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交审核')
+    }
   })
 }
 // 参与客户   更新列表
@@ -214,7 +272,10 @@ export const dealerMidwayUpdate = (params) => {
   return axios({
     url: '/promotion/dealer/midwayUpdate',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加经销商并更新列表显示状态')
+    }
   })
 }
 // 参与客户 审核通过  审核不通过
@@ -222,7 +283,10 @@ export const dealerMidwayAudit = (params) => {
   return axios({
     url: '/promotion/dealer/midwayAudit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.dealerAuditStatus=='AUDIT_PASS'?'审核通过':'审核不通过')
+    }
   })
 }
 // 获取所有经销商sn   全部客户回显

+ 272 - 68
src/api/reportData.js

@@ -15,7 +15,10 @@ export const salesReportReturnBillList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  开单退货单报表  合计
@@ -43,7 +46,10 @@ export const salesReportReturnList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  开单退货报表  合计
@@ -71,7 +77,10 @@ export const salesReportReturnRebateList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  实售退货报表  合计
@@ -90,7 +99,10 @@ export const reportSalesReturnList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  销售退货单报表  合计
@@ -109,7 +121,10 @@ export const reportSalesReturnDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  销售退货明细报表  合计
@@ -126,7 +141,10 @@ export const reportSalesReturnDetailExport = (params) => {
     url: '/report/reportSalesReturn/detail/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 //  总部差价明细报表
@@ -137,7 +155,10 @@ export const headRebateDetailReportList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  总部差价明细报表  合计
@@ -154,7 +175,10 @@ export const headRebateDetailReportExport = (params) => {
     url: '/report/headRebateDetailReport/export',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 //  差价明细报表
@@ -165,7 +189,10 @@ export const reportRebateReportList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  差价明细报表  合计
@@ -182,7 +209,10 @@ export const reportRebateExport = (params) => {
     url: '/report/reportRebate/export',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 销售退货单 导出
@@ -191,7 +221,10 @@ export const salesReturnsExport = (params) => {
     url: '/report/reportSalesReturn/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 销售退货明细 导出
@@ -200,7 +233,10 @@ export const salesReturnDetailExport = (params) => {
     url: '/report/reportRebate/export',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 开单销售单 导出
@@ -209,7 +245,10 @@ export const salesSlipExport = (params) => {
     url: '/report/salesKdxxd/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 开单退货单 导出
@@ -218,7 +257,10 @@ export const returnSlipExport = (params) => {
     url: 'report/salesReturnBillReport/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 开单销售 导出
@@ -227,7 +269,10 @@ export const salesAmountExport = (params) => {
     url: '/report/salesKdxx/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 实售销售 导出
@@ -236,7 +281,10 @@ export const actualSalesExport = (params) => {
     url: '/report/salesSsxs/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 开单退货 导出
@@ -245,7 +293,10 @@ export const billingReturnExport = (params) => {
     url: '/report/salesReturnReport/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 实售退货 导出
@@ -254,7 +305,10 @@ export const salesReturnExport = (params) => {
     url: '/report/returnSsthReport/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 //  销售明细(下推统计)报表
@@ -265,7 +319,10 @@ export const reportSalesBillDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  销售明细(下推统计)报表  合计
@@ -282,7 +339,10 @@ export const reportSalesBillDetailExport = (params) => {
     url: '/report/reportDispatchBillDetail/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 //  销售(开单统计)报表
@@ -293,7 +353,10 @@ export const reportSalesBillList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  销售(开单统计)报表  合计
@@ -310,7 +373,10 @@ export const reportSalesBillExport = (params) => {
     url: '/report/reportDispatchBill/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 //  入库单报表
@@ -321,7 +387,10 @@ export const reportStockPutList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  入库单报表  合计
@@ -338,7 +407,10 @@ export const reportStockPutExport = (params) => {
     url: '/report/reportStockPut/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 //  入库单明细报表
@@ -349,7 +421,10 @@ export const reportStockPutDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  入库单明细报表  合计
@@ -366,7 +441,10 @@ export const reportStockPutDetailExport = (params) => {
     url: '/report/reportStockPut/detail/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 获取销售交单报表 表头
@@ -385,7 +463,10 @@ export const reportDispatchReportList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  销售交单报表  合计
@@ -402,7 +483,10 @@ export const reportDispatchReportExport = (params) => {
     url: '/report/salesXsjd/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 //  调拨交单报表
@@ -413,7 +497,10 @@ export const reportAllocateDbjdReportList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  调拨交单报表  合计
@@ -430,7 +517,10 @@ export const reportAllocateDbjdReportExport = (params) => {
     url: '/report/allocateReport/dbjd/export',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 获取退货交单报表 表头
@@ -449,7 +539,10 @@ export const reportSalesReturnThjdReportList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  退货交单报表  合计
@@ -466,7 +559,10 @@ export const reportSalesReturnThjdReportExport = (params) => {
     url: '/report/returnDocReport/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 全国各省类销售明细报表
@@ -474,7 +570,10 @@ export const realReportSalesByProvince = (params) => {
   return axios({
     url: '/report/realReportSales/subareaArea/reportList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 标题
@@ -492,7 +591,10 @@ export const realReportSalesByProvinceExport = (params) => {
     url: '/report/realReportSales/subareaArea/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 全国各区类销售明细报表
@@ -500,7 +602,10 @@ export const realReportSalesBySubArea = (params) => {
   return axios({
     url: '/report/realReportSales/subarea/reportList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 标题
@@ -509,7 +614,10 @@ export const subareaReportTitle = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'get'
+    method: 'get',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 导出
@@ -518,7 +626,10 @@ export const realReportSalesBySubAreaExport = (params) => {
     url: '/report/realReportSales/subarea/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -530,7 +641,10 @@ export const allocateReturnReportQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 查询调拨退货统计信息
@@ -548,7 +662,10 @@ export const allocateReturnReportExport = (params) => {
     url: '/report/allocateReturnReport/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 分页查询调拨退货明细报表
@@ -559,7 +676,10 @@ export const allocateReturnReportDetailQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 查询调拨退货明细统计信息
@@ -577,7 +697,10 @@ export const allocateReturnReportDetailExport = (params) => {
     url: '/report/allocateReturnReport/detail/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 费用统计按承担方分页
@@ -588,7 +711,10 @@ export const expenseCollectReportQueryPageByTarget = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 费用统计按承担方汇总合计
@@ -606,7 +732,10 @@ export const expenseCollectReportExportByTarget = (params) => {
     url: '/report/expenseCollectReport/exportByTarget',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -618,7 +747,10 @@ export const expenseCollectReportQueryPageByProductType = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 费用统计按品类汇总合计
@@ -636,7 +768,10 @@ export const expenseCollectReportExportByProductType = (params) => {
     url: '/report/expenseCollectReport/exportByProductType',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -650,7 +785,10 @@ export const sparePartsReturnReportList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -669,7 +807,10 @@ export const sparePartsReturnReportExport = (params) => {
     url: '/report/sparePartsReturn/export',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -683,7 +824,10 @@ export const sparePartsReturnDetailReportList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -703,7 +847,10 @@ export const sparePartsReturnReportExportDetail = (params) => {
     url: '/report/sparePartsReturn/detail/export',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -715,7 +862,10 @@ export const rebateQueryList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 合计
@@ -735,7 +885,10 @@ export const rebateDetailQueryList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 返利明细报表统计
@@ -760,7 +913,10 @@ export const querySupplierPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 开单采退报表 合计
@@ -798,7 +954,10 @@ export const queryBillNoPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 开单采退dan报表 合计
@@ -825,7 +984,10 @@ export const billNoExport = (params) => {
     url: '/report/sparePartsReturn/BillNoExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -840,7 +1002,10 @@ export const queryDetailReportPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 收发存报表  导出
@@ -849,7 +1014,10 @@ export const exportDetailReport = (params) => {
     url: '/report/reportStockPsi/exportReport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }
 // 收发存报表  汇总列表
@@ -858,7 +1026,10 @@ export const queryGroupByprodTypeReportPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 收发存报表  进销存合计统计
@@ -891,7 +1062,10 @@ export const salesPromoReportList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 促销销售单报表  统计
@@ -909,7 +1083,10 @@ export const exportSalesPromoReport = (params) => {
     url: '/report/salesPromoReport/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 促销销售单实时报表  列表
@@ -920,7 +1097,10 @@ export const salesPromoRealReportList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 促销销售单实时报表  统计
@@ -938,7 +1118,10 @@ export const exportSalesPromoRealReport = (params) => {
     url: '/report/salesPromoRealReport/reportExport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -952,7 +1135,10 @@ export const codeExportImportError = (params) => {
     url: '/report/tracecode/exportImportError',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 
@@ -962,7 +1148,10 @@ export const traceCodeInsertBatch = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('确定导入')
+    }
   })
 }
 
@@ -974,7 +1163,10 @@ export const traceCodeList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -994,14 +1186,20 @@ export const excelOnlineList = (params) => {
     url: '/report/tracecode/excelOnlineList',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }
 // 质保信息
 export const getWarrantyInfo = (params) => {
   return axios({
     url: `/report/warranty/queryById/${params.id}`,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('质保信息')
+    }
   })
 }
 /*
@@ -1016,7 +1214,10 @@ export const queryTireList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -1034,6 +1235,9 @@ export const excelTireOnlineExport = (params) => {
     url: '/report/tire/excelTireOnlineList',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+    }
   })
 }

+ 29 - 7
src/api/sales.js

@@ -4,7 +4,10 @@ import { axios } from '@/utils/request'
 export const supperCodeByVin = (params) => {
   return axios({
     url: `/vinIdentify/queryPartCodeByVin/${params.vin}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('按车架号查询列表')
+    }
   })
 }
 // 车架号  识别图片内容
@@ -13,7 +16,10 @@ export const vinCodeParse = params => {
     url: `/vinIdentify/ocr`,
     method: 'post',
     data: params,
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('车架号图片识别')
+    }
   })
 }
 
@@ -22,7 +28,10 @@ export const salesPrint = (params) => {
   return axios({
     url: '/sales/print',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('销售打印')
+    }
   })
 }
 
@@ -31,7 +40,10 @@ export const salesPrintPreview = (params) => {
   return axios({
     url: '/sales/printPreview',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('销售打印预览')
+    }
   })
 }
 
@@ -66,12 +78,16 @@ export const salesPromoCount = (params) => {
 // 销售 详情  打印
 export const salesDetailPrint = params => {
   const url = `/sales/print/${params.priceType}`
+  const id = params.priceType.indexOf('_TYPE')>=0 ? '销售分类打印' : '销售打印'
   delete params.priceType
   return axios.request({
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent(id)
+    }
   })
 }
 // 销售 详情  导出
@@ -82,7 +98,10 @@ export const salesDetailExcel = params => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 // 销售 详情  分类导出
@@ -92,6 +111,9 @@ export const salesDetailTypeExcel = params => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('分类导出')
+    }
   })
 }

+ 16 - 4
src/api/salesBillReport.js

@@ -6,7 +6,10 @@ export const salesDetailExport = (params) => {
     url: '/report/salesBillReport/salesDetail',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('销售单明细导出')
+    }
   })
 }
 // 获取开单销售dan报表 表头
@@ -33,7 +36,10 @@ export const salesBillReportList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -45,7 +51,10 @@ export const salesBillReportGroupByBuyerList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -82,7 +91,10 @@ export const salesBillRealAmountQueryPageList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 

+ 16 - 4
src/api/salesDetail.js

@@ -8,7 +8,10 @@ export const getPromoGoodsList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -17,7 +20,10 @@ export const addPromoGoods = (params) => {
   return axios({
     url: `/sales/detail/addPromoGoods`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('批量添加促销品')
+    }
   })
 }
 // 促销产品统计  列表  分页
@@ -28,7 +34,10 @@ export const salesDetailPromoList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 促销产品统计  合计
@@ -47,7 +56,10 @@ export const salesDetailPromoProductList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+    }
   })
 }
 

+ 82 - 22
src/api/salesDetailNew.js

@@ -5,7 +5,10 @@ export const salesDetailDel = (params) => {
   return axios({
     url: `/sales/detail/delete`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.salesPromoSn ? '删除产品(salesPromoSn:'+params.salesPromoSn+')':'删除产品')
+    }
   })
 }
 // 销售详情 统计 正常产品
@@ -29,7 +32,10 @@ export const salesDetailBatchDel = (params) => {
   return axios({
     url: `/sales/detail/delete/batch`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.salesPromoSn ? '批量删除产品(salesPromoSn:'+params.salesPromoSn+')':'批量删除产品')
+    }
   })
 }
 // 批量转采购额
@@ -37,7 +43,10 @@ export const batchTransferOfPurchaseAmount = (params) => {
   return axios({
     url: `/sales/detail/batchTransferOfPurchaseAmount`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量转采购额')
+    }
   })
 }
 // 仓库设置
@@ -45,7 +54,10 @@ export const updateWarehouse = (params) => {
     return axios({
       url: '/sales/detail/updateWarehouse',
       method: 'post',
-      data: params
+      data: params,
+      headers:{
+        'module': encodeURIComponent(params.salesPromoSn ? '修改仓库(salesPromoSn:'+params.salesPromoSn+')':'修改仓库')
+      }
     })
 }
 // 删除全部已选产品
@@ -53,7 +65,10 @@ export const deleteAll = (params) => {
     return axios({
       url: `/sales/detail/delete/all`,
       method: 'post',
-      data: params
+      data: params,
+      headers:{
+        'module': encodeURIComponent(params.salesPromoSn ? '全部删除(salesPromoSn:'+params.salesPromoSn+')':'全部删除')
+      }
     })
   }
 
@@ -62,7 +77,10 @@ export const salesDetailInsert = (params) => {
   return axios({
     url: '/sales/detail/insert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.promoRuleSn ? '添加产品(promoRuleSn:'+params.promoRuleSn+')':'添加产品')
+    }
   })
 }
 // 批量新增销售明细
@@ -70,7 +88,10 @@ export const salesBatchInsert = (params) => {
   return axios({
     url: `/sales/detail/insertBatch`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.promoRuleSn ? '导入产品(promoRuleSn:'+params.promoRuleSn+')':'导入产品')
+    }
   })
 }
 //  销售 导入产品 导出错误项
@@ -91,7 +112,10 @@ export const salesDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent((params.promoRuleSn ? '产品明细查询(promoRuleSn:'+params.promoRuleSn+')':'产品明细查询'))
+    }
   })
 }
 
@@ -103,7 +127,10 @@ export const salesDetailAllList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent((params.promoRuleSn ? '产品明细查询(promoRuleSn:'+params.promoRuleSn+')':'产品明细查询'))
+    }
   })
 }
 
@@ -112,7 +139,10 @@ export const salesDetailUpdateQty = (params) => {
     return axios({
         url: '/sales/detail/updateQty',
         data: params,
-        method: 'post'
+        method: 'post',
+        headers:{
+          'module': encodeURIComponent(params.salesPromoSn ? '修改数量(salesPromoSn:'+params.salesPromoSn+')':'修改数量')
+        }
     })
 }
 // 销售  解析导入的文件
@@ -128,7 +158,10 @@ export const salesDisablePromo = params => {
     return axios({
       url: '/sales/detail/disablePromo',
       data: params,
-      method: 'post'
+      method: 'post',
+      headers:{
+        'module': encodeURIComponent('禁用规则')
+      }
     })
   }
 // 启用活动
@@ -136,7 +169,10 @@ export const salesEnablePromoPromo = params => {
   return axios({
     url: '/sales/detail/enablePromo',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('启用规则')
+    }
   })
 }
  // 更换活动
@@ -144,7 +180,10 @@ export const salesEnablePromoPromo = params => {
   return axios({
     url: '/sales/detail/changePromo',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('更换促销活动')
+    }
   })
 }
 // 新活动是否参与
@@ -152,7 +191,10 @@ export const salesDetailAddPromo = (params) => {
   return axios({
     url: '/sales/detail/addPromo',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加新活动')
+    }
   })
 }
 // 修改销售明细取消数量
@@ -160,7 +202,10 @@ export const salesDetailUpdateCancelQty = (params) => {
   return axios({
     url: '/sales/detail/cancleOfBatch',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量取消')
+    }
   })
 }
 // 整单取消待下推
@@ -168,15 +213,22 @@ export const salesDetailCancleOfAll = (params) => {
   return axios({
     url: '/sales/detail/cancelAll',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('整单取消')
+    }
   })
 }
+
 // 批量新增代发货信息
 export const insertBatchOfWaitDispatch = (params) => {
     return axios({
       url: '/sales/detail/pushOfBatch',
       data: params,
-      method: 'post'
+      method: 'post',
+      headers:{
+        'module': encodeURIComponent(params.salesBillDetailSnList.length==1?'添加产品':'批量添加产品')
+      }
     })
   }
 
@@ -188,7 +240,10 @@ export const salesStockoutDetail = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('缺货明细')
+    }
   })
 }
  
@@ -200,7 +255,10 @@ export const exportStockout = params => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出缺货明细')
+    }
   })
 }
 // 导出分组缺货明细
@@ -211,7 +269,9 @@ export const exportGroupStockout = params => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+              'module': encodeURIComponent('导出分组缺货明细')
+        }
   })
-}
-
+}

+ 94 - 32
src/api/salesNew.js

@@ -16,7 +16,10 @@ export const salesList = (params) => {
     return axios({
         url: url,
         data: params,
-        method: 'post'
+        method: 'post',
+        headers:{
+          'module': encodeURIComponent('列表查询')
+        }
     })
 }
 //  销售 新增
@@ -24,7 +27,10 @@ export const salesSave = (params) => {
     return axios({
       url: '/sales/insert',
       data: params,
-      method: 'post'
+      method: 'post',
+      headers:{
+        'module': encodeURIComponent('新增销售单')
+      }
     })
 }
 // 销售 编辑
@@ -32,7 +38,10 @@ export const salesModify = (params) => {
     return axios({
       url: '/sales/modifyWarehouse',
       data: params,
-      method: 'post'
+      method: 'post',
+      headers:{
+        'module': encodeURIComponent('修改仓库')
+      }
     })
   }
 //  销售 详情bysn
@@ -46,21 +55,30 @@ export const salesDetailBySn = (params) => {
 export const salesDetailByNo = (params) => {
     return axios({
       url: `/sales/findBySaleBillNo/${params.salesBillNo}`,
-      method: 'get'
+      method: 'get',
+      headers:{
+        'module': encodeURIComponent('查询客户信息')
+      }
     })
   }
 //  销售 删除
 export const salesDel = (params) => {
     return axios({
       url: `/sales/delete/${params.salesBillSn}`,
-      method: 'get'
+      method: 'get',
+      headers:{
+        'module': encodeURIComponent('删除')
+      }
     })
   }
 //  销售 取消
 export const salesCancle = (params) => {
     return axios({
       url: `/sales/cancle/${params.salesBillSn}`,
-      method: 'get'
+      method: 'get',
+      headers:{
+        'module': encodeURIComponent('取消')
+      }
     })
   }
 
@@ -80,6 +98,7 @@ export const salesPromoMatchProduct = (params) => {
       method: 'post'
   })
 }
+
 // 判断是否有新的活动
 export const salesQueryUnPartPromo = (params) => {
   return axios({
@@ -97,21 +116,15 @@ export const salesPromoQueryCount = (params) => {
   })
 }
 
-// 更换促销活动
-export const queryMatchPromoProduct = (params) => {
-  return axios({
-      url: `/promotion/queryMatchProduct`,
-      data: params,
-      method: 'post'
-  })
-}
-
 // 提交时活动规则校验
 export const salesPromoValidaSubmit = (params) => {
   return axios({
       url: `/salesPromo/validationSubmit/${params.salesBillSn}`,
       data: params,
-      method: 'post'
+      method: 'post',
+      headers:{
+        'module': encodeURIComponent('提交前活动规则校验')
+      }
   })
 }
 
@@ -120,7 +133,10 @@ export const salesWriteAuditPass = (params) => {
   return axios({
     url: '/sales/auditPass',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('审核通过')
+    }
   })
 }
 //  销售 审核驳回
@@ -128,7 +144,10 @@ export const salesWriteAuditReject = (params) => {
   return axios({
     url: '/sales/auditReject',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('审核驳回')
+    }
   })
 }
 //  销售 一键审核下推
@@ -136,7 +155,10 @@ export const salesWriteAuditPush = (params) => {
   return axios({
     url: '/sales/auditPush',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('一键审核')
+    }
   })
 }
 //  销售 提交
@@ -144,7 +166,10 @@ export const salesWriteSubmit = (params) => {
   return axios({
     url: '/sales/submit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 
@@ -161,7 +186,10 @@ export const updateBatch = (params) => {
   return axios({
     url: '/sales/detail/updateBatch',
     method: 'post',
-    data: params
+    data: params,
+    headers:{
+      'module': encodeURIComponent('价格批量更新')
+    }
   })
 }
 
@@ -171,7 +199,10 @@ export const salesDetailAllList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('销售单明细列表查询')
+    }
   })
 }
 
@@ -188,7 +219,10 @@ export const expenseAccountSave = (params) => {
   return axios({
     url: `/expenseAccount/saveCreate`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('转费用报销单')
+    }
   })
 }
 
@@ -198,7 +232,10 @@ export const salesPrint = (params) => {
   return axios({
     url: '/sales/print',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('销售打印')
+    }
   })
 }
 //  销售 打印预览
@@ -206,7 +243,10 @@ export const salesPrintPreview = (params) => {
   return axios({
     url: '/sales/printPreview',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('销售打印预览')
+    }
   })
 }
 // 销售  详情  该销售单的产品二级分类
@@ -219,12 +259,16 @@ export const salesDetailProductType = (params) => {
 // 销售 详情  打印
 export const salesDetailPrint = params => {
   const url = `/sales/print/${params.priceType}`
+  const id = params.priceType.indexOf('_TYPE')>=0 ? '销售分类打印' : '销售打印'
   delete params.priceType
   return axios.request({
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent(id)
+    }
   })
 }
 // 销售 详情  导出
@@ -235,7 +279,10 @@ export const salesDetailExcel = params => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出Excel')
+    }
   })
 }
 // 销售 详情  分类导出
@@ -245,7 +292,10 @@ export const salesDetailTypeExcel = params => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('销售分类导出')
+    }
   })
 }
 
@@ -259,7 +309,10 @@ export const queryPageForWarehouse = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 获取按仓库查询销售单数量
@@ -278,7 +331,10 @@ export const queryPageForWarehouseDetail = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 
@@ -297,7 +353,10 @@ export const exportForWarehouse = params => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 // 销售一览表 列表
@@ -308,6 +367,9 @@ export const salesOverviewQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }

+ 117 - 30
src/api/salesReturn.js

@@ -5,7 +5,10 @@ export const salesReturnAudit = (params) => {
   return axios({
     url: `/salesReturn/audit`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+              'module': encodeURIComponent('审核')
+        }
   })
 }
 //  销售退货 品检
@@ -13,7 +16,10 @@ export const salesReturnCheck = (params) => {
   return axios({
     url: `/salesReturn/check`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('品检')
+    }
   })
 }
 
@@ -21,7 +27,10 @@ export const salesReturnCheck = (params) => {
 export const salesReturnDel = (params) => {
   return axios({
     url: `/salesReturn/delete/${params.salesReturnBillSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -29,7 +38,10 @@ export const salesReturnDel = (params) => {
 export const salesReturnCancelBill = (params) => {
   return axios({
     url: `/salesReturn/cancelBill/${params.salesReturnBillSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('取消')
+    }
   })
 }
 
@@ -37,7 +49,10 @@ export const salesReturnCancelBill = (params) => {
 export const updateAgain = (params) => {
   return axios({
     url: `/salesReturn/updateAgain/${params.salesReturnBillSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('再次编辑')
+    }
   })
 }
 
@@ -45,7 +60,10 @@ export const updateAgain = (params) => {
 export const salesReturnDetail = (params) => {
   return axios({
     url: `/salesReturn/findBySn/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('详情查看')
+    }
   })
 }
 
@@ -54,7 +72,10 @@ export const salesReturnInsert = (params) => {
   return axios({
     url: '/salesReturn/insert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('新增')
+    }
   })
 }
 // 修改销售退货单基本信息
@@ -62,7 +83,10 @@ export const salesReturnModify = (params) => {
   return axios({
     url: '/salesReturn/modify',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('修改基本信息')
+    }
   })
 }
 // 销售退货单付款
@@ -70,7 +94,10 @@ export const salesReturnPay = (params) => {
   return axios({
     url: '/salesReturn/pay',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('付款')
+    }
   })
 }
 
@@ -80,7 +107,10 @@ export const salesReturnPrint = (params) => {
     url: `/salesReturn/print/${params.priceType}`,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('打印')
+    }
   })
 }
 
@@ -89,19 +119,25 @@ export const salesReturnExport = (params) => {
   return axios.request({
     url: `/salesReturn/export/${params.salesReturnBillSn}/${params.priceType}`,
     method: 'get',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出Excel')
+    }
   })
 }
 
 //  销售退货 分页查询产品
-export const salesReturnList = (params) => {
+export const salesReturnList = (params,type) => {
   const url = `/salesReturn/queryPage/${params.pageNo}/${params.pageSize}`
   delete params.pageNo
   delete params.pageSize
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(type==1?'选择销退单':'列表查询')
+    }
   })
 }
 //  收货品检 分页查询产品
@@ -112,7 +148,10 @@ export const takeQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 销售退货 统计
@@ -135,7 +174,10 @@ export const salesReturnChangeLogList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('操作记录')
+    }
   })
 }
 
@@ -144,7 +186,10 @@ export const salesReturnSubmit = (params) => {
   return axios({
     url: `/salesReturn/submit`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('提交')
+    }
   })
 }
 
@@ -156,7 +201,10 @@ export const salesQueryByReturn = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('抓单明细列表查询')
+    }
   })
 }
 
@@ -168,7 +216,10 @@ export const queryDealerProductPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('可选产品列表查询')
+    }
   })
 }
 
@@ -180,7 +231,10 @@ export const salesReturnFinancialList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 退货确认  详情  列表  分页
@@ -191,7 +245,10 @@ export const salesReturnFinancialDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 
@@ -199,14 +256,20 @@ export const salesReturnFinancialDetailList = (params) => {
 export const customerServiceConfirm = (params) => {
   return axios({
     url: `/salesReturn/customerServiceConfirm/${params.salesReturnBillSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('客服确认')
+    }
   })
 }
 // 收货提交审核
 export const salesReturnReceive = (params) => {
   return axios({
     url: `/salesReturn/receive/${params.salesReturnBillSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('提交')
+    }
   })
 }
 
@@ -215,7 +278,10 @@ export const salesReturnFinancial = (params) => {
   return axios({
     url: '/salesReturn/financial',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('退货确认')
+    }
   })
 }
 // 退货确认 下载模板
@@ -239,7 +305,10 @@ export const salesReturnBatchInsert = params => {
   return axios({
     url: '/salesReturn/detail/batchInsert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('导入产品')
+    }
   })
 }
 //  销售退货 导入产品 导出错误项
@@ -250,7 +319,10 @@ export const salesReturnFailExcel = (params) => {
     url: url,
     method: 'post',
     data: params.list,
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 
@@ -259,7 +331,10 @@ export const salesReturnDetailBatchByReceive = (params) => {
   return axios({
     url: '/salesReturn/detail/insertBatchByReceive',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('导入产品')
+    }
   })
 }
 // 收货导出错误项
@@ -268,7 +343,10 @@ export const salesReturnDetailImportError = (params) => {
     url: '/salesReturn/detail/exportImportError',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 // 获取审批人员默认值
@@ -288,7 +366,10 @@ export const queryOverviewPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -297,7 +378,10 @@ export const grabSalesBill = (params) => {
   return axios({
     url: '/salesReturn/detail/grabSalesBill',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('设置退货单价')
+    }
   })
 }
 // 判断 各级别价格不完整,不让提交
@@ -305,6 +389,9 @@ export const submitVerify = (params) => {
   return axios({
     url: '/salesReturn/submitVerify',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('提交前价格校验')
+    }
   })
 }

+ 79 - 21
src/api/salesReturnDetail.js

@@ -4,8 +4,12 @@ import { axios } from '@/utils/request'
 //  销售退货明细 删除
 export const salesReturnDetailDel = (params) => {
   return axios({
-    url: `/salesReturn/detail/delete/${params.salesReturnDetailSn}`,
-    method: 'get'
+    url: `/salesReturn/detail/delete`,
+    data: params,
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('明细删除')
+    }
   })
 }
 
@@ -14,7 +18,10 @@ export const salesReturnDetailInsert = (params) => {
   return axios({
     url: '/salesReturn/detail/insert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('添加')
+    }
   })
 }
 
@@ -23,19 +30,26 @@ export const updateBackStockQty = (params) => {
   return axios({
     url: '/salesReturn/detail/updateBackStockQty',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('修改返库数量')
+    }
   })
 }
 
 // 分页查询销售退货明细
 export const salesReturnDetailList = (params) => {
   const url = `/salesReturn/detail/queryPage/${params.pageNo}/${params.pageSize}`
+  const mid = params.pageSize==999999?'打印':'明细列表查询'
   delete params.pageNo
   delete params.pageSize
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent(mid)
+    }
   })
 }
 
@@ -44,7 +58,10 @@ export const salesReturnDetailUpdateQty = (params) => {
   return axios({
     url: '/salesReturn/detail/updateQty',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('修改退货数量')
+    }
   })
 }
 // 修改销售退货明细退货原因
@@ -52,7 +69,10 @@ export const salesReturnDetailUpdateReason = (params) => {
   return axios({
     url: '/salesReturn/detail/updateReason',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent(params.returnReason ? '修改退货原因' : '修改备注')
+    }
   })
 }
 // 批量修改销售退货明细退货原因
@@ -60,7 +80,10 @@ export const salesReturnDetailSetReason = (params) => {
   return axios({
     url: '/salesReturn/detail/setReturnReason',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量设置退货原因')
+    }
   })
 }
 // 生成新的销退单
@@ -68,7 +91,10 @@ export const salesReturnAgainCreate = (params) => {
   return axios({
     url: '/salesReturn/againCreate',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('生成新销退单')
+    }
   })
 }
 // 修改销售退货明细实收数量
@@ -76,7 +102,10 @@ export const salesReturnDetailUpdateReceiveQty = (params) => {
   return axios({
     url: '/salesReturn/detail/updateReceiveQty',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('修改实收数量')
+    }
   })
 }
 // 批量修改销售退货明细良品数量
@@ -84,7 +113,10 @@ export const updateBatchGoodQty = (params) => {
   return axios({
     url: '/salesReturn/detail/updateBatchGoodQty',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量修改良品数量')
+    }
   })
 }
 // 批量修改销售退货明细返库数量
@@ -92,7 +124,10 @@ export const updateBatchBackStockQty = (params) => {
   return axios({
     url: '/salesReturn/detail/updateBatchBackStockQty',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量修改返库数量')
+    }
   })
 }
 
@@ -101,7 +136,10 @@ export const salesReturnDetailReceiveBatch = (params) => {
   return axios({
     url: '/salesReturn/detail/receiveBatch',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量实收')
+    }
   })
 }
 
@@ -110,7 +148,10 @@ export const updateByCustomerService = (params) => {
   return axios({
     url: '/salesReturn/detail/updateByCustomerService',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('编辑')
+    }
   })
 }
 
@@ -119,23 +160,34 @@ export const setReturnPrice = (params) => {
   return axios({
     url: '/salesReturn/detail/setReturnPrice',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('设置退货单价')
+    }
   })
 }
 
 // 客服删除销售退货明细
 export const deleteByCustomerService = (params) => {
   return axios({
-    url: `/salesReturn/detail/deleteByCustomerService/${params.salesReturnDetailSn}`,
-    method: 'get'
+    url: `/salesReturn/detail/deleteByCustomerService`,
+    data: params,
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 
 // 收货删除销售退货明细
 export const deleteByReceiver = (params) => {
   return axios({
-    url: `/salesReturn/detail/deleteByReceiver/${params.salesReturnDetailSn}`,
-    method: 'get'
+    url: `/salesReturn/detail/deleteByReceiver`,
+    data: params,
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -144,7 +196,10 @@ export const insertByReceive = (params) => {
   return axios({
     url: '/salesReturn/detail/insertByReceive',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('新增产品(收货添加)')
+    }
   })
 }
 
@@ -153,6 +208,9 @@ export const insertByCustomerService = (params) => {
   return axios({
     url: '/salesReturn/detail/insertByCustomerService',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('新增产品(客服确认添加)')
+    }
   })
 }

+ 43 - 10
src/api/sendBill.js

@@ -4,7 +4,10 @@ export const sendBillInsert = params => {
   return axios({
     url: '/sendBill/insert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('新增发货单')
+    }
   })
 }
 // 修改发货单
@@ -12,7 +15,10 @@ export const sendBillUpdate = params => {
   return axios({
     url: '/sendBill/update',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改发货单')
+    }
   })
 }
 // 修改问题反馈
@@ -20,7 +26,10 @@ export const updateIssueRemark = params => {
   return axios({
     url: '/sendBill/updateIssueRemark',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改问题反馈')
+    }
   })
 }
 // 删除出库单修改发货状态
@@ -28,7 +37,10 @@ export const deleteSendBillStockOut = params => {
   return axios({
     url: '/sendBill/deleteSendBillStockOut',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 // 获取客户信息
@@ -36,7 +48,10 @@ export const getCustomerInfo = params => {
   return axios({
     url: '/sendBill/getCustomerInfo',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('获取客户信息')
+    }
   })
 }
 // 发货前校验销售单
@@ -44,7 +59,10 @@ export const validateStockOut = params => {
   return axios({
     url: '/sendBill/validateStockOut',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('发货')
+    }
   })
 }
 // 发货单列表分页查询
@@ -55,7 +73,10 @@ export const sendBillQueryPageList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('发货单列表查询')
+    }
   })
 }
 // 导入发货单 
@@ -64,6 +85,9 @@ export const sendBillInsertBatch = (params) => {
     url: '/sendBill/insertBatch',
     data: params,
     method: 'post',
+    headers:{
+      'module': encodeURIComponent('导入')
+    }
   })
 }
 // 导出错误项
@@ -72,7 +96,10 @@ export const exportImportError = (params) => {
     url: '/sendBill/exportImportError',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 // 导出
@@ -82,7 +109,10 @@ export const sendBillExcel = (params) => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 // 更新发货单物流信息
@@ -90,7 +120,10 @@ export const updateTransportInfo = params => {
   return axios({
     url: '/sendBill/updateTransportInfo',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('更新物流信息')
+    }
   })
 }
 // 根据sn查找详情

+ 20 - 5
src/api/settleReceipt.js

@@ -8,7 +8,10 @@ export const settleReceiptList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  仅标记收款
@@ -17,7 +20,10 @@ export const settleReceiptBatch = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.snList.length==1 ? '收款' : '批量收款')
+    }
   })
 }
 
@@ -27,7 +33,10 @@ export const settleReceiptBookBatch = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('关联收款单')
+    }
   })
 }
 
@@ -36,7 +45,10 @@ export const settleReceiptFindBySn = (params) => {
   const url = `/settleReceipt/findBySn/${params.sn}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('查看凭证')
+    }
   })
 }
 
@@ -45,6 +57,9 @@ export const settleReceiptPrintFindBySn = (params) => {
   const url = `/settleReceipt/printFindBySn/${params.sn}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('收款打印')
+    }
   })
 }

+ 58 - 16
src/api/spareParts.js

@@ -8,16 +8,22 @@ export const sparePartsList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
-
+// 导出
 export const sparePartsDetailExport = (params) => {
   return axios({
     url: '/report/spareParts/exportDetail',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出明细')
+    }
   })
 }
 
@@ -25,7 +31,10 @@ export const sparePartsDetailExport = (params) => {
 export const sparePartsAudit = (params) => {
   return axios({
     url: `/spareParts/audit/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('审核')
+    }
   })
 }
 // 批量审核
@@ -33,7 +42,10 @@ export const sparePartsBatchAudit = (params) => {
   return axios({
     url: `/spareParts/batchAudit`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量审核')
+    }
   })
 }
 // 多审核校验
@@ -41,7 +53,10 @@ export const sparePartsAuditVerify = (params) => {
   return axios({
     url: `/spareParts/auditVerify`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('审核校验')
+    }
   })
 }
 // 导出审核错误项
@@ -50,7 +65,10 @@ export const sparePartsAuditFail = (params) => {
     url: `/spareParts/downloadAuditFail`,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出审核错误项')
+    }
   })
 }
 
@@ -59,7 +77,10 @@ export const sparePartsDelete = (params) => {
   return axios({
     url: `/spareParts/delete/${params.sn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -68,7 +89,10 @@ export const sparePartsDeleteDetail = (params) => {
   return axios({
     url: `/spareParts/deleteDetail/${params.sn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -80,7 +104,10 @@ export const sparePartsDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 
@@ -93,12 +120,15 @@ export const sparePartsPageCount = (params) => {
   })
 }
 
-// 保存
+// 新增散件入库单
 export const sparePartsSave = (params) => {
   return axios({
     url: `/spareParts/save`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.id?'编辑':'新增')
+    }
   })
 }
 
@@ -107,7 +137,10 @@ export const sparePartsSaveDetail = (params) => {
   return axios({
     url: `/spareParts/saveDetail`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.id?'编辑':'新增产品')
+    }
   })
 }
 // 明细  详情
@@ -139,7 +172,10 @@ export const sparePartsDetailBatchInsert = params => {
   return axios({
     url: '/spareParts/detail/batchInsert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('导入')
+    }
   })
 }
 //  散件入库 导入产品 导出错误项
@@ -149,7 +185,10 @@ export const sparePartsDetailFailExcel = (params) => {
     url: url,
     method: 'post',
     data: params.list,
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 
@@ -161,6 +200,9 @@ export const queryDetailStockPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }

+ 40 - 10
src/api/sparePartsReturn.js

@@ -13,7 +13,10 @@ export const sparePartsReturnList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -22,7 +25,10 @@ export const sparePartsReturnDelete = (params) => {
   return axios({
     url: `/sparePartsReturn/delete/${params.sn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -31,7 +37,10 @@ export const againSubmit = (params) => {
   return axios({
     url: `/sparePartsReturn/againSubmit`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('再次提交')
+    }
   })
 }
 
@@ -55,7 +64,10 @@ export const sparePartsReturnQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 
@@ -76,7 +88,10 @@ export const sparePartsReturnSave = (params) => {
   return axios({
     url: `/sparePartsReturn/save`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
 
@@ -85,7 +100,10 @@ export const sparePartsReturnSubmit = (params) => {
   return axios({
     url: `/sparePartsReturn/submit`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 
@@ -94,7 +112,10 @@ export const sparePartsReturnDetailDelete = (params) => {
   return axios({
     url: `sparePartsReturn/detail/delete/${params.detailSn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -103,7 +124,10 @@ export const sparePartsReturnDetailSave = (params) => {
   return axios({
     url: `/sparePartsReturn/detail/save`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.sparePartsReturnDetailSn ? '编辑申请退货数量':'添加')
+    }
   })
 }
 
@@ -113,7 +137,10 @@ export const sparePartsReturnExportDetail = (params) => {
     url: `/report/sparePartsReturn/exportDetail`,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出明细')
+    }
   })
 }
 // 批量保存
@@ -121,7 +148,10 @@ export const sparePartsReturnDetailSaveBatch = (params) => {
   return axios({
     url: `/sparePartsReturn/detail/saveBatch`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量添加')
+    }
   })
 }
 

+ 44 - 11
src/api/stock.js

@@ -8,7 +8,10 @@ export const stockList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  库存 列表 合计
@@ -25,7 +28,10 @@ export const stockExport = (params) => {
     url: '/stock/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 //  库存 详情列表  分页
@@ -36,7 +42,10 @@ export const stockDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 //  库存 详情列表 合计
@@ -56,7 +65,10 @@ export const queryStockProductPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 非经销商产品库存列表
@@ -67,7 +79,10 @@ export const queryStockProductForOtherPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 分页查询促销产品
@@ -78,7 +93,10 @@ export const queryPromoProductPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -90,7 +108,10 @@ export const stockFlowList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  出入库明细  列表  合计
@@ -110,7 +131,10 @@ export const stockWarnList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  库存预警 保存
@@ -118,7 +142,10 @@ export const stockWarnSaveBatch = (params) => {
   return axios({
     url: '/stock/updateStateBatch',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('保存')
+    }
   })
 }
 
@@ -128,7 +155,10 @@ export const stockByProductSn = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('库存查询')
+    }
   })
 }
 //  库存 出入库明细 导出
@@ -137,6 +167,9 @@ export const stockFlowExport = (params) => {
     url: '/stock/exportStockFlow',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }

+ 16 - 4
src/api/stockOut.js

@@ -8,7 +8,10 @@ export const stockOutList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  出库 出库
@@ -16,7 +19,10 @@ export const stockOutOut = (params) => {
   return axios({
     url: '/stockOut/out',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.length==1?'出库':'批量出库')
+    }
   })
 }
 //  出库 详情
@@ -36,7 +42,10 @@ export const stockOutDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表')
+    }
   })
 }
 //  出库 详情 合计
@@ -56,6 +65,9 @@ export const exportSalesOutProduct = (params) => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }

+ 12 - 3
src/api/stockPut.js

@@ -8,7 +8,10 @@ export const stockPutList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  入库确认
@@ -16,7 +19,10 @@ export const stockPutConfirm = (params) => {
   return axios({
     url: '/stockPut/confirm',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('入库确认')
+    }
   })
 }
 //  入库确认 明细 列表 有分页
@@ -27,6 +33,9 @@ export const stockPutDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }

+ 44 - 11
src/api/subarea.js

@@ -4,7 +4,10 @@ import { axios } from '@/utils/request'
 export const subareaQueryAll = (params) => {
   return axios({
     url: `/subarea/queryAll`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('区域分区查询')
+    }
   })
 }
 // 查询区域
@@ -12,7 +15,10 @@ export const subareaQuerySubarea = (params) => {
   return axios({
     url: `/subarea/querySubarea`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('查询区域')
+    }
   })
 }
 // 保存区域信息
@@ -20,7 +26,10 @@ export const subareaSaveSubarea = (params) => {
   return axios({
     url: `/subarea/saveSubarea`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('编辑区域')
+    }
   })
 }
 // 查询区域下分区信息
@@ -28,7 +37,10 @@ export const subareaQuerySubareaArea = (params) => {
   return axios({
     url: `/subarea/querySubareaArea`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('查询分区')
+    }
   })
 }
 // 保存分区信息
@@ -36,21 +48,30 @@ export const subareaSaveSubareaArea = (params) => {
   return axios({
     url: `/subarea/saveSubareaArea`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('编辑分区')
+    }
   })
 }
 // 根据sn删除区域信息
 export const deleteSubareaBySn = (params) => {
   return axios({
     url: `/subarea/deleteSubarea/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除区域信息')
+    }
   })
 }
 //  根据sn删除分区信息
 export const deleteSubareaAreaBySn = (params) => {
   return axios({
     url: `/subarea/deleteSubareaArea/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除分区信息')
+    }
   })
 }
 
@@ -59,7 +80,10 @@ export const batchBindDealer = (params) => {
   return axios({
     url: `/subareaAreaDealer/batchBind`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量绑定经销商')
+    }
   })
 }
 // 分区绑定经销商
@@ -67,14 +91,20 @@ export const bindDealer = (params) => {
   return axios({
     url: `/subareaAreaDealer/bind`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('绑定经销商')
+    }
   })
 }
 // 删除绑定关系
 export const deleteBindDealer = (params) => {
   return axios({
     url: `/subareaAreaDealer/deleteBind/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除经销商')
+    }
   })
 }
 // 查询绑定经销商列表
@@ -82,6 +112,9 @@ export const queryPageAreaDealer = (params) => {
   return axios({
     url: `/subareaAreaDealer/queryPage/${params.pageNo}/${params.pageSize}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('查看经销商')
+    }
   })
 }

+ 68 - 17
src/api/supplier.js

@@ -8,7 +8,10 @@ export const supplierList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+        }
   })
 }
 // 供应商成本变更记录
@@ -19,7 +22,10 @@ export const supplierProductCostLogList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+        }
   })
 }
 // 成本变更导出明细
@@ -28,7 +34,10 @@ export const supplierProductCostLogExport = params => {
     url: `/supplierProductCostLog/export`,
     method: 'post',
     data: params,
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出')
+        }
   })
 }
 // 供应商 列表 有权限
@@ -57,7 +66,10 @@ export const supplierSave = (params) => {
   return axios({
     url: '/supplier/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('新增/编辑')
+        }
   })
 }
 
@@ -66,7 +78,10 @@ export const updateEnableStatus = (params) => {
   return axios({
     url: `/supplier/enable/${params.sn}/${params.flag}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('启用禁用')
+        }
   })
 }
 
@@ -78,7 +93,10 @@ export const supplierProductList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+        }
   })
 }
 
@@ -87,7 +105,10 @@ export const settingCost = (params) => {
   return axios({
     url: `/supplierProduct/settingCost`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('设置成本价')
+        }
   })
 }
 
@@ -95,7 +116,10 @@ export const settingCost = (params) => {
 export const deleteProduct = (params) => {
   return axios({
     url: `/supplierProduct/deleteProduct/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+          'module': encodeURIComponent('删除产品')
+        }
   })
 }
 
@@ -104,7 +128,10 @@ export const addProduct = (params) => {
   return axios({
     url: `/supplierProduct/addProduct`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('增加产品')
+        }
   })
 }
 // 查询供应商产品sn集合
@@ -119,7 +146,10 @@ export const supplierProductDownload = params => {
   return axios.request({
     url: `/supplierProduct/downloadExcel`,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('下载模板')
+        }
   })
 }
 // 供应商关联产品 下载模板
@@ -127,7 +157,10 @@ export const supplierProductNewDownloadExcel = params => {
   return axios.request({
     url: `/supplierProduct/newDownloadExcel`,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('下载模板')
+        }
   })
 }
 // 设置成本导出明细
@@ -136,7 +169,10 @@ export const supplierProductExportDetail = params => {
     url: `/supplierProduct/export`,
     method: 'post',
     data: params,
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+          'module': encodeURIComponent('导出明细')
+        }
   })
 }
 // 审核成本价
@@ -144,7 +180,10 @@ export const supplierProductUpdateAuditState = params => {
   return axios.request({
     url: `/supplierProduct/updateAuditState`,
     method: 'post',
-    data: params
+    data: params,
+    headers:{
+          'module': encodeURIComponent(params.supplierProductSnList.length==1 ? '审核' : '批量审核')
+        }
   })
 }
 // 供应商关联产品  解析导入的文件
@@ -168,14 +207,20 @@ export const supplierProductBatchInsert = params => {
   return axios({
     url: '/supplierProduct/batchInsert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('导入产品')
+    }
   })
 }
 export const supplierProductNewBatchInsert = params => {
   return axios({
     url: '/supplierProduct/newBatchInsert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量导入产品')
+    }
   })
 }
 //  供应商关联产品 导入产品  导出错误项
@@ -184,7 +229,10 @@ export const supplierProductailExcel = (params) => {
     url: '/supplierProduct/downloadFailExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 export const supplierProductailNewExcel = (params) => {
@@ -192,6 +240,9 @@ export const supplierProductailNewExcel = (params) => {
     url: '/supplierProduct/newDownloadFailExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出错误项')
+    }
   })
 }

+ 8 - 2
src/api/sysParamsConfig.js

@@ -6,7 +6,10 @@ export const queryList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('获取sysParamsConfig数据')
+        }
   })
 }
 
@@ -16,6 +19,9 @@ export const batchUpdateByCode = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('修改sysParamsConfig数据')
+        }
   })
 }

+ 20 - 5
src/api/waitDispatchDetail.js

@@ -5,7 +5,10 @@ export const deleteBatch = (params) => {
   return axios({
     url: '/dispatch/detail/deleteBatch',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.dispatchBillDetailList.length==1?'删除':'批量删除')
+    }
   })
 }
 
@@ -14,7 +17,10 @@ export const pushDown = (params) => {
   return axios({
     url: `/dispatch/pushDown`,
     data:params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('下推')
+    }
   })
 }
 
@@ -42,7 +48,10 @@ export const waitDispatchDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 
@@ -54,7 +63,10 @@ export const waitDispatchDetailAllList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 
@@ -63,6 +75,9 @@ export const updateQty = (params) => {
   return axios({
     url: '/dispatch/detail/updateQty',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改本次下推数量')
+    }
   })
 }

+ 28 - 7
src/api/warehouse.js

@@ -8,7 +8,10 @@ export const warehouseList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('列表查询')
+        }
   })
 }
 
@@ -17,7 +20,10 @@ export const getDefaultWarehouse = (params) => {
   return axios({
     url: '/warehouse/getDefaultWithExt',
     data: params,
-    method: 'get'
+    method: 'get',
+    headers:{
+          'module': encodeURIComponent('获取默认仓库')
+        }
   })
 }
 //  仓库列表  无分页 有权限
@@ -51,7 +57,10 @@ export const warehouseSave = params => {
   return axios({
     url: '/warehouse/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+          'module': encodeURIComponent('新增/编辑')
+        }
   })
 }
 // 删除仓库
@@ -59,7 +68,10 @@ export const warehouseDel = params => {
   return axios({
     url: `/warehouse/delete/${params.sn}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+          'module': encodeURIComponent('删除')
+        }
   })
 }
 
@@ -71,7 +83,10 @@ export const warehouseLocList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+              'module': encodeURIComponent('列表查询')
+            }
   })
 }
 //  仓位列表  无分页
@@ -89,7 +104,10 @@ export const warehouseLocSave = params => {
   return axios({
     url: '/warehouseLoc/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+              'module': encodeURIComponent('新增/编辑')
+    }
   })
 }
 
@@ -98,6 +116,9 @@ export const warehouseLocDel = params => {
   return axios({
     url: `/warehouseLoc/delete/${params.sn}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+              'module': encodeURIComponent('删除')
+            }
   })
 }

+ 12 - 1
src/components/Table/index.js

@@ -47,6 +47,10 @@ export default {
       type: Boolean,
       default: true
     },
+    showQuickJumper: {
+      type: Boolean,
+      default: true
+    },
     size: {
       type: String,
       default: 'default'
@@ -116,6 +120,11 @@ export default {
         pageSize: val
       })
     },
+    showQuickJumper(val){
+      Object.assign(this.localPagination, {
+        showQuickJumper: val
+      })
+    },
     showSizeChanger (val) {
       Object.assign(this.localPagination, {
         showSizeChanger: val
@@ -129,7 +138,8 @@ export default {
       current: localPageNum,
       pageSize: this.pageSize,
       showTotal: total => `共 ${total} 条记录`,
-      showSizeChanger: this.showSizeChanger
+      showSizeChanger: this.showSizeChanger,
+      showQuickJumper: this.showQuickJumper
     }) || false
     // console.log('this.localPagination', this.localPagination)
     this.needTotalList = this.initTotalList(this.columns)
@@ -209,6 +219,7 @@ export default {
             current: r.pageNo, // 返回结果中的当前分页数
             total: Number(r.count), // 返回结果中的总记录数
             showSizeChanger: this.showSizeChanger,
+            showQuickJumper: this.showQuickJumper,
             pageSize: (pagination && pagination.pageSize) ||
               this.localPagination.pageSize
           }) || false

+ 5 - 6
src/components/UploadFile/index.vue

@@ -190,18 +190,17 @@ export default {
       this.$emit('remove')
     },
     handleChange ({ file, fileList }) {
-      // console.log(file, fileList, '-----change')
+      console.log(file, fileList, '-----change')
       // if (file.status == 'error' || (file.response && (file.response.status == 500 || file.response.status == 900))) {
       //   this.$message.error('上传失败,请重试!')
       //   this.$emit('remove')
       //   return
       // }
       if (file.response && (file.response.status == 500 || file.response.status == 900)) {
-        if (file.status == 'error' || file.status == 'done') {
-          this.$message.error(file.response.message || '上传失败,请重试!')
-          this.$emit('remove')
-          // return
-        }
+        this.$message.error(file.response.message || '上传失败,请重试!')
+        this.setFileList('')
+        this.$emit('remove')
+        return
       }
       this.fileList = this.validaFile(file, fileList)
       this.$emit('change', this.formatFile())

+ 1 - 0
src/store/getters.js

@@ -26,6 +26,7 @@ const getters = {
   isWarehouse: state => state.app.isWarehouse,
   defWarehouse: state => state.app.defWarehouse,
   isShowCustomerSearch: state => state.app.isShowCustomerSearch,
+  interFaceList: state => state.app.interFaceList,
 }
 
 export default getters

+ 133 - 1
src/store/modules/app.js

@@ -48,7 +48,139 @@ const app = {
     warehouseAllList: null, // 无权限所有仓库列表
     defWarehouse: null, // 默认仓库
     isWarehouse: false,// 仓库管理权限
-    isShowCustomerSearch:false //客服查询权限
+    isShowCustomerSearch:false ,//客服查询权限
+    interFaceList: [
+      // 销售单,下推
+     {
+        a: 'sales/findBySn',
+        b: [
+          'sales/submit',
+          'dispatch/pushDown',
+          'sales/detail/insert',
+          'sales/detail/delete',
+          'sales/detail/updateWarehouse',
+          'sales/detail/updateQty',
+          'sales/detail/delete/batch',
+          'sales/detail/delete/all',
+          'sales/detail/disablePromo',
+          'sales/detail/enablePromo',
+          'sales/detail/changePromo',
+          'sales/detail/addPromo',
+          'sales/auditPass',
+          'sales/auditReject',
+          'sales/auditPush',
+          'sales/detail/updateBatch',
+          'sales/detail/batchTransferOfPurchaseAmount',
+          'sales/detail/insertBatch',
+          'sales/detail/cancleOfBatch',
+          'sales/detail/cancelAll',
+          'sales/detail/pushOfBatch',
+          'dispatch/detail/deleteBatch',
+          'dispatch/detail/updateQty'
+          ],
+        timeStr: ''
+      },
+      // 销售退货
+      {
+        a: 'salesReturn/findBySn',
+        b: [
+          'salesReturn/submitVerify',
+          'salesReturn/submit',
+          'salesReturn/againCreate',
+          'salesReturn/receive',
+          'salesReturn/check',
+          'salesReturn/detail/insert',
+          'salesReturn/detail/batchInsert',
+          'salesReturn/detail/delete',
+          'salesReturn/detail/updateReason',
+          'salesReturn/detail/updateBackStockQty',
+          'salesReturn/detail/updateQty',
+          'salesReturn/detail/setReturnReason',
+          'salesReturn/detail/updateReceiveQty',
+          'salesReturn/detail/updateBatchGoodQty',
+          'salesReturn/detail/updateBatchBackStockQty',
+          'salesReturn/detail/receiveBatch',
+          'salesReturn/detail/updateByCustomerService',
+          'salesReturn/customerServiceConfirm',
+          'salesReturn/detail/setReturnPrice',
+          'salesReturn/detail/deleteByCustomerService',
+          'salesReturn/detail/deleteByReceiver',
+          'salesReturn/detail/insertByReceive',
+          'salesReturn/detail/insertByCustomerService'
+          ],
+        timeStr: ''
+      },
+      // 散件入库
+      {
+        a: 'spareParts/queryDetailPageCount',
+        b: [
+          'spareParts/saveDetail',
+          'spareParts/deleteDetail',
+          'spareParts/detail/parseProducts',
+          'spareParts/detail/batchInsert'
+          ],
+        timeStr: ''
+      },
+      // 采购退货
+      {
+        a: 'sparePartsReturn/queryBySn',
+        b: [
+          'sparePartsReturn/submit',
+          'sparePartsReturn/detail/delete',
+          'sparePartsReturn/detail/save',
+          'sparePartsReturn/detail/saveBatch'
+          ],
+        timeStr: ''
+      },
+      // 调拨
+     {
+        a: 'allocateBill/findBySn',
+        b: [
+          'allocateBill/submit',
+          'allocateBill/save',
+          'allocateBill/detail/updateBatchDepartment',
+          'allocateBill/detail/delete',
+          'allocateBill/detail/deleteAll',
+          'allocateBill/detail/save',
+          'allocateBill/detail/parseProducts',
+          'allocateBill/detail/batchInsert',
+          ''
+          ],
+        timeStr: ''
+      },
+      //调拨退货
+      {
+        a: 'allocateReturn/queryBySn',
+        b: [
+          'allocateReturn/submit',
+          'allocateReturn/check',
+          'allocReturnDetail/check',
+          'allocReturnDetail/delete',
+          'allocReturnDetail/insert',
+          'allocReturnDetail/insertBatch',
+          'allocReturnDetail/update'
+          ],
+        timeStr: ''
+      },
+      // 发货单
+      {
+        a: 'sendBill/findBySn',
+        b: [
+          'sendBill/update',
+          'sendBill/updateIssueRemark',
+          'sendBill/updateTransportInfo'
+          ],
+        timeStr: ''
+      },
+      // 提货单
+      {
+        a: 'pickUp/queryBySn',
+        b: [
+          'pickUp/submit',
+          'pickUp/save'
+        ]
+      }
+    ]
   },
   mutations: {
     SET_SIDEBAR_TYPE: (state, type) => {

+ 32 - 0
src/utils/request.js

@@ -115,6 +115,28 @@ service.interceptors.request.use(config => {
   if (token) {
     config.headers['access-token'] = token // 让每个请求携带自定义 token 请根据实际情况自行修改
   }
+  
+  // 获取当前时间撮
+  const interFaceList = store.getters.interFaceList
+  const curPath = config.url
+  if(interFaceList){
+    const hasPath = interFaceList.find(item => {
+      const hasSp = item.b.find(k => curPath.indexOf(k)>=0)
+      return hasSp
+    })
+    if(hasPath){
+      config.headers['biz-updatedate'] = hasPath.timeStr
+    }
+  }
+  
+  // 当前页面路径
+  const currentPage = router.history.current
+  if(currentPage&&currentPage.meta&&config.headers['module']){
+    config.headers['module'] = encodeURIComponent(currentPage.meta.title||'') + ',' +config.headers['module']
+  }
+  console.log(config.url)
+  console.log(decodeURIComponent(config.headers['module']))
+   
   config.headers['auth-price'] = authPrice.join(',') // 价格权限
   config.retry = 3
   config.retryDelay = 1000
@@ -161,6 +183,16 @@ service.interceptors.response.use((response) => {
     store.state.app.curActionPermission = ''
     store.commit('SET_loadingStatus', false)
   }
+  
+  // 防重复提交时间戳
+  const interFaceList = store.getters.interFaceList
+  const curPath = response.config.url
+  if(interFaceList){
+    const hasPath = interFaceList.find(item => curPath.indexOf(item.a)>=0)
+    if(hasPath){
+      hasPath.timeStr = response.data.data.updateDate
+    }
+  }
   return response.data
 }, err)
 

+ 1 - 1
src/views/allocationManagement/allocateReturnConfirmation/list.vue

@@ -304,7 +304,7 @@
         this.itemSn = ''
         this.openModal = false
       },
-      // 单个审核
+      // 退货确认
       handleAudit(row) {
         const _this = this
         this.$confirm({

+ 5 - 1
src/views/allocationManagement/transferOut/edit.vue

@@ -522,7 +522,8 @@ export default {
           snList.push({
             'allocateDetailSn': item.allocateDetailSn,
             'departmentSn': this.plSetVal,
-            'departmentName': department ? department.name : ''
+            'departmentName': department ? department.name : '',
+            'allocateSn': this.allocateSn
           })
         })
         this.showPlModal = false
@@ -561,6 +562,7 @@ export default {
       allocateBillBatchInsert(obj).then(res => {
         if (res.status == 200) {
           this.$refs.chooseTable.refresh(true)
+          this.getDetail()
         }
       })
     },
@@ -609,6 +611,7 @@ export default {
           }
           this.$refs.chooseTable.refresh()
           this.$refs.chooseTable.clearSelected()
+          this.getDetail()
           this.spinning = false
         } else {
           this.spinning = false
@@ -780,6 +783,7 @@ export default {
     },
     // 刷新当前页面
     refashPage () {
+      this.getDetail()
       // this.$refs.table.refresh()
       this.$refs.chooseTable.clearSelected()
       this.$refs.chooseTable.refresh()

+ 1 - 1
src/views/dealerManagement/businessOwnerSettings/list.vue

@@ -64,7 +64,7 @@
           </template>
           <!-- 操作 -->
           <template slot="action" slot-scope="text, record">
-            <a-button size="small" type="link" class="button-warning" v-if="record.allDealerFlag!=1 || record.allProductFlag!=1 ||record.allSupplierFlag!=1" @click="handleSetCategory(record)">设置管辖范围</a-button>
+            <a-button size="small" type="link" class="button-warning" v-if="record.allDealerFlag!=1 || record.allProductFlag!=1 ||record.allSupplierFlag&&record.allSupplierFlag!=1" @click="handleSetCategory(record)">设置管辖范围</a-button>
             <a-button size="small" type="link" class="button-info" @click="handleEdit(record)">编辑</a-button>
             <a-button size="small" type="link" class="button-error" @click="handleDelete(record)">删除</a-button>
           </template>

+ 1 - 1
src/views/dealerManagement/dealerAccountManagement/editModal.vue

@@ -191,7 +191,7 @@ export default {
           this.form.loginName = this.detailData.loginName || ''
           this.form.password = this.detailData.password || ''
           const childUserMaxNum = this.detailData ? (this.detailData.org ? (this.detailData.org.childUserMaxNum ? this.detailData.org.childUserMaxNum : '') : '') : ''
-          this.form.org.childUserMaxNum = childUserMaxNum
+          this.form.org.childUserMaxNum = Number(childUserMaxNum)
         } else {
           this.detailData = null
           this.$refs.ruleForm.resetFields()

+ 5 - 5
src/views/financialManagement/collectionDetailStatic/list.vue

@@ -407,7 +407,7 @@ export default {
               dataList.map(item => {
                 data.push({ id: item.id, printStatus: 'NO_PRINT' })
               })
-              _this.plUpdateStatus(data)
+              _this.plUpdateStatus(data,1)
             }
           })
         } else {
@@ -418,16 +418,16 @@ export default {
       if (e.key == 2) { // 批量开票
         const data = []
         rows.map(item => {
-          data.push({ id: item.id, invoiceDate: '', remarks: '' })
+          data.push({ id: item.id, invoiceDate: '', remarks: ''})
         })
         _this.plinvoiceInfo = data
         _this.plinvoiceIsShow = true
       }
     },
     // 批量操作
-    plUpdateStatus (data) {
+    plUpdateStatus (data,type) {
       this.spinning = true
-      financeBookDetailUpdateBatch(data).then(res => {
+      financeBookDetailUpdateBatch(data,type).then(res => {
         if (res.status == 200) {
           this.searchForm()
         }
@@ -440,7 +440,7 @@ export default {
         item.invoiceDate = data.invoiceDate
         item.remarks = data.remarks
       })
-      this.plUpdateStatus(this.plinvoiceInfo)
+      this.plUpdateStatus(this.plinvoiceInfo,0)
     },
     // 表格选中项
     rowSelectionFun (obj) {

+ 1 - 1
src/views/financialManagement/collectionDetailStatic/printModal.vue

@@ -92,7 +92,7 @@ export default {
       
       _this.spinning = true
       _this.confirmLoading = true
-      updateFinanceBookDetail(ajax_form).then(res => {
+      updateFinanceBookDetail(ajax_form,0).then(res => {
         if (res.status == 200) {
           _this.$message.success(res.message)
           _this.cancel(1)

+ 2 - 2
src/views/productManagement/priceChangeRecord/list.vue

@@ -58,7 +58,7 @@
       </div>
     </a-card>
     <!-- 列表 -->
-    <a-card size="small" :bordered="false">
+    <a-card size="small" class="productChangeRecordList-wrap" :bordered="false">
       <a-spin :spinning="spinning" tip="Loading...">
         <s-table
           class="sTable fixPagination"
@@ -380,7 +380,7 @@ export default {
 }
 </script>
 
-<style lang="less" scoped>
+<style lang="less">
   .productChangeRecordList-wrap{
     .red{
       color: #ed1c24;

+ 1 - 1
src/views/promotionRulesManagement/dealerPromotions/list.vue

@@ -248,7 +248,7 @@
 import { commonMixin } from '@/utils/mixin'
 import { STable, VSelect } from '@/components'
 import addModal from './addModal.vue'
-import lookUpCustomersModal from './lookUpCustomersModal'
+import lookUpCustomersModal from './lookUpCustomersModal' 
 import rangeDate from '@/views/common/rangeDate.vue'
 import creatorList from '@/views/common/creatorList.vue'
 import editActiveEndTime from './editActiveEndTime.vue'

+ 1 - 1
src/views/purchasingManagement/bulkWarehousingOrder/edit.vue

@@ -121,7 +121,7 @@ import { STable, VSelect } from '@/components'
 import { getOperationalPrecision } from '@/libs/tools.js'
 import sparePartsProductModal from './productModal.vue'
 import ImportGuideModal from './importGuideModal.vue'
-import { sparePartsDetailList, sparePartsPageCount, sparePartsDeleteDetail, sparePartsDetailBatchInsert, sparePartsSave } from '@/api/spareParts'
+import { sparePartsDetailList, sparePartsPageCount, sparePartsDeleteDetail, sparePartsDetailBatchInsert } from '@/api/spareParts'
 export default {
   name: 'BulkWarehousingOrderEdit',
   mixins: [commonMixin],

+ 7 - 4
src/views/purchasingManagement/purchaseReturn/purchaseReturnDeatil.vue

@@ -476,6 +476,7 @@ export default {
     },
     // 获取页面统计数据
     getStatisticsData () {
+      this.getBasicsData(true)
       queryPageCount({ sparePartsReturnSn: this.sparePartsReturnSn }).then(res => {
         if (res.status == 200) {
           if (res.data) {
@@ -490,7 +491,7 @@ export default {
       })
     },
     // 获取基础信息
-    getBasicsData () {
+    getBasicsData (flag) {
       sparePartsReturnInfo({ sn: this.sparePartsReturnSn }).then(res => {
         if (res.status == 200) {
           this.detailsData = res.data
@@ -498,9 +499,11 @@ export default {
           this.detailsData = null
         }
         const _this = this
-        this.$nextTick(() => {
-          _this.getChooseList()
-        })
+        if(!flag){
+          this.$nextTick(() => {
+            _this.getChooseList()
+          })
+        }
       })
     }
   },

+ 2 - 1
src/views/purchasingManagement/purchaseReturn/queryPart.vue

@@ -49,7 +49,8 @@
       class="sTable"
       ref="chooseTable"
       size="small"
-      :rowKey="(record) => record.id"
+      :rowKey="(record) => record.no"
+      rowKeyName="no"
       :row-selection="{ columnWidth: 40,getCheckboxProps: record => ({ props: { disabled: record.currentStockQty == 0 || record.isCheckedFlag} }) }"
       @rowSelection="rowSelectionFun"
       :columns="columns"

+ 1 - 1
src/views/salesManagement/receiptPrint/list.vue

@@ -415,7 +415,7 @@ export default {
       this.showPrintModal = false
     },
     updatePrintStatus () {
-      updateFinanceBookDetail({ id: this.tipData.id, printStatus: 'UNABLE_PRINT' }).then(res => {
+      updateFinanceBookDetail({ id: this.tipData.id, printStatus: 'UNABLE_PRINT' },1).then(res => {
         if (res.status == 200) {
           this.canselModal()
           this.$message.info(res.message)

+ 1 - 1
src/views/salesReturnManagement/billOfLading/selectXtModal.vue

@@ -122,7 +122,7 @@ export default {
         this.disabled = true
         this.spinning = true
         this.queryParam.warehouseSn = this.warehouseSn
-        return salesReturnList(Object.assign(parameter, this.queryParam)).then(res => {
+        return salesReturnList(Object.assign(parameter, this.queryParam),1).then(res => {
           let data
           if (res.status == 200) {
             data = res.data

+ 3 - 1
src/views/salesReturnManagement/custConfirm/list.vue

@@ -468,6 +468,7 @@ export default {
         if (res.status == 200) {
           this.$message.success(res.message)
           this.handleCancel(record)
+          this.getOrderDetail()
         }
         this.spinning = false
       })
@@ -483,7 +484,7 @@ export default {
         onOk () {
           _this.loading = true
           _this.spinning = true
-          deleteByCustomerService({ salesReturnDetailSn: row.salesReturnDetailSn }).then(res => {
+          deleteByCustomerService({ salesReturnDetailSn: row.salesReturnDetailSn, salesReturnBillSn: _this.orderSn }).then(res => {
             if (res.status == 200) {
               _this.resetSearchForm(false)
             }
@@ -543,6 +544,7 @@ export default {
         this.$refs.table.clearSelected()
       }
       this.$refs.table.refresh(flag)
+      this.getOrderDetail()
     },
     searchForm () {
       this.$refs.table.refresh(true)

+ 5 - 0
src/views/salesReturnManagement/receiveCheck/checking.vue

@@ -294,6 +294,7 @@ export default {
         if (res.status == 200) {
           this.$refs.table.clearSelected()
           this.$refs.table.refresh()
+          this.getOrderDetail()
           this.$message.success(res.message)
         }
         this.spinning = false
@@ -331,6 +332,7 @@ export default {
             this.showPlModal = false
             this.$refs.table.clearSelected()
             this.$refs.table.refresh()
+            this.getOrderDetail()
           }
           this.spinning = false
         })
@@ -358,6 +360,7 @@ export default {
       salesReturnDetailUpdateReason(params).then(res => {
         if (res.status == 200) {
           this.$refs.table.refresh()
+          this.getOrderDetail()
           this.$message.success(res.message)
         } else {
           row.returnReason = row.returnReasonBackups
@@ -381,6 +384,7 @@ export default {
         }]).then(res => {
           if (res.status == 200) {
             this.resetSearchForm(false)
+            this.getOrderDetail()
             this.$message.success(res.message)
             record.goodQtyBackups = record.goodQty
           } else {
@@ -408,6 +412,7 @@ export default {
         }]).then(res => {
           if (res.status == 200) {
             this.resetSearchForm(false)
+            this.getOrderDetail()
             this.$message.success(res.message)
           } else {
             record.backStockQty = record.backStockQtyBackups

+ 2 - 1
src/views/salesReturnManagement/receiveCheck/receiving.vue

@@ -267,7 +267,7 @@ export default {
         onOk () {
           _this.loading = true
           _this.spinning = true
-          deleteByReceiver({ salesReturnDetailSn: row.salesReturnDetailSn }).then(res => {
+          deleteByReceiver({ salesReturnDetailSn: row.salesReturnDetailSn, salesReturnBillSn: _this.orderSn }).then(res => {
             if (res.status == 200) {
               _this.resetSearchForm(false)
             }
@@ -426,6 +426,7 @@ export default {
         this.$refs.table.clearSelected()
       }
       this.$refs.table.refresh(flag)
+      this.getOrderDetail()
     },
     searchForm () {
       this.$refs.table.refresh(true)

+ 1 - 1
src/views/salesReturnManagement/salesReturn/salesReturnEdit.vue

@@ -433,7 +433,7 @@ export default {
         onOk () {
           _this.delLoading = true
           _this.spinning = true
-          salesReturnDetailDel({ salesReturnDetailSn: row.salesReturnDetailSn }).then(res => {
+          salesReturnDetailDel({ salesReturnDetailSn: row.salesReturnDetailSn, salesReturnBillSn: _this.orderSn }).then(res => {
             if (res.status == 200) {
               _this.resetTable(false)
             }

+ 1 - 1
vue.config.js

@@ -108,7 +108,7 @@ const vueConfig = {
     // If you want to turn on the proxy, please remosve the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        // target: 'http://192.168.2.113:8660/ocs-admin',
+        // target: 'http://192.168.2.103:8602/ocs-admin',
         // target: 'https://t.ocs.360arrow.com/ocs-admin', //  练习
         target: 'https://p.ocs.360arrow.com/ocs-admin', //  预发布
         ws: false,