lilei 1 рік тому
батько
коміт
4c5918d47e

+ 20 - 5
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('登录')
+    }
   })
 }
 
@@ -165,7 +168,10 @@ export const printLogQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('打印记录列表查询')
+    }
   })
 }
 
@@ -174,7 +180,10 @@ export const printLogSave = (params) => {
   return axios({
     url: `/printLog/save`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增打印记录')
+    }
   })
 }
 // 打印记录-批量新增
@@ -182,7 +191,10 @@ export const printLogSaveBatch = (params) => {
   return axios({
     url: `/printLog/saveBatch`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量新增打印记录')
+    }
   })
 }
 // 下载模板文件
@@ -190,6 +202,9 @@ export const downLoadTemp = (params) => {
   return axios({
     url: `downLoad/temp/${params.type}`,
     method: 'get',
-    responseType: 'blob'
+    responseType: 'blob',
+    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('列表查询')
+    }
   })
 }
 // 发货单统计查询

+ 32 - 8
src/api/financeBook.js

@@ -16,7 +16,10 @@ export const checkPrintStatus = (params) => {
   return axios({
     url: `/financeBook/detail/checkPrintStatus `,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.length==1?'收款打印':'批量打印')
+    }
   })
 }
 // 获取最新一次钉钉审核人员信息
@@ -51,7 +54,10 @@ export const financeBookDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 // 财务收款明细-报表分页列表
@@ -62,7 +68,10 @@ export const financeBookDetailQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细报表查询')
+    }
   })
 }
 // 财务收款明细-统计
@@ -81,7 +90,10 @@ export const financeBookDetailExport = (params) => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -107,7 +119,10 @@ export const financeBookDeleteBySn = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -117,7 +132,10 @@ export const financeBookDgainEditBySn = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('再次编辑')
+    }
   })
 }
 
@@ -127,7 +145,10 @@ export const financeBookSave = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
 
@@ -202,7 +223,10 @@ export const updateFinanceBookDetail = (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('修改密码')
+    }
   })
 }

+ 21 - 7
src/api/sales.js

@@ -5,7 +5,9 @@ export const supperCodeByVin = (params) => {
   return axios({
     url: `/vinIdentify/queryPartCodeByVin/${params.vin}`,
     method: 'get',
-    actionId: '按车架号(VIN)查询列表'
+    headers:{
+      'module': encodeURIComponent('按车架号查询列表')
+    }
   })
 }
 // 车架号  识别图片内容
@@ -15,7 +17,9 @@ export const vinCodeParse = params => {
     method: 'post',
     data: params,
     responseType: 'blob',
-    actionId: '车架号图片识别'
+    headers:{
+      'module': encodeURIComponent('车架号图片识别')
+    }
   })
 }
 
@@ -25,7 +29,9 @@ export const salesPrint = (params) => {
     url: '/sales/print',
     data: params,
     method: 'post',
-    actionId: '销售打印'
+    headers:{
+      'module': encodeURIComponent('销售打印')
+    }
   })
 }
 
@@ -35,7 +41,9 @@ export const salesPrintPreview = (params) => {
     url: '/sales/printPreview',
     data: params,
     method: 'post',
-    actionId: '销售打印预览'
+    headers:{
+      'module': encodeURIComponent('销售打印预览')
+    }
   })
 }
 
@@ -77,7 +85,9 @@ export const salesDetailPrint = params => {
     data: params,
     method: 'post',
     responseType: 'blob',
-    actionId: id
+    headers:{
+      'module': encodeURIComponent(id)
+    }
   })
 }
 // 销售 详情  导出
@@ -89,7 +99,9 @@ export const salesDetailExcel = params => {
     data: params,
     method: 'post',
     responseType: 'blob',
-    actionId: '销售导出'
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 // 销售 详情  分类导出
@@ -100,6 +112,8 @@ export const salesDetailTypeExcel = params => {
     data: params,
     method: 'post',
     responseType: 'blob',
-    actionId: '销售分类导出'
+    headers:{
+      'module': encodeURIComponent('分类导出')
+    }
   })
 }

+ 4 - 1
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报表 表头

+ 68 - 19
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('启用活动')
+    }
   })
 }
  // 更换活动
@@ -145,7 +181,9 @@ export const salesEnablePromoPromo = params => {
     url: '/sales/detail/changePromo',
     data: params,
     method: 'post',
-    actionId: '更换促销活动'
+    headers:{
+      'module': encodeURIComponent('更换促销活动')
+    }
   })
 }
 // 新活动是否参与
@@ -154,7 +192,9 @@ export const salesDetailAddPromo = (params) => {
     url: '/sales/detail/addPromo',
     data: params,
     method: 'post',
-    actionId: '添加新活动'
+    headers:{
+      'module': encodeURIComponent('添加新活动')
+    }
   })
 }
 // 修改销售明细取消数量
@@ -162,7 +202,10 @@ export const salesDetailUpdateCancelQty = (params) => {
   return axios({
     url: '/sales/detail/cancleOfBatch',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量取消')
+    }
   })
 }
 // 整单取消待下推
@@ -170,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?'添加产品':'批量添加产品')
+      }
     })
   }
 
@@ -215,5 +265,4 @@ export const exportGroupStockout = params => {
     method: 'post',
     responseType: 'blob'
   })
-}
-
+}

+ 68 - 23
src/api/salesNew.js

@@ -5,8 +5,7 @@ export const salesCount = (params) => {
     return axios({
       url: `/sales/queryCount`,
       data: params,
-      method: 'post',
-      actionId: '统计查询'
+      method: 'post'
     })
   }
 //  销售 列表  有分页
@@ -18,7 +17,9 @@ export const salesList = (params) => {
         url: url,
         data: params,
         method: 'post',
-        actionId: '列表查询'
+        headers:{
+          'module': encodeURIComponent('列表查询')
+        }
     })
 }
 //  销售 新增
@@ -36,7 +37,9 @@ export const salesModify = (params) => {
       url: '/sales/modifyWarehouse',
       data: params,
       method: 'post',
-      actionId: '修改仓库'
+      headers:{
+        'module': encodeURIComponent('修改仓库')
+      }
     })
   }
 //  销售 详情bysn
@@ -59,7 +62,9 @@ export const salesDel = (params) => {
     return axios({
       url: `/sales/delete/${params.salesBillSn}`,
       method: 'get',
-      actionId: '删除'
+      headers:{
+        'module': encodeURIComponent('删除')
+      }
     })
   }
 //  销售 取消
@@ -67,7 +72,9 @@ export const salesCancle = (params) => {
     return axios({
       url: `/sales/cancle/${params.salesBillSn}`,
       method: 'get',
-      actionId: '取消'
+      headers:{
+        'module': encodeURIComponent('取消')
+      }
     })
   }
 
@@ -111,7 +118,9 @@ export const salesPromoValidaSubmit = (params) => {
       url: `/salesPromo/validationSubmit/${params.salesBillSn}`,
       data: params,
       method: 'post',
-      actionId: '提交时活动规则校验'
+      headers:{
+        'module': encodeURIComponent('提交前活动规则校验')
+      }
   })
 }
 
@@ -121,7 +130,9 @@ export const salesWriteAuditPass = (params) => {
     url: '/sales/auditPass',
     data: params,
     method: 'post',
-    actionId: '审核通过'
+    headers:{
+      'module': encodeURIComponent('审核通过')
+    }
   })
 }
 //  销售 审核驳回
@@ -130,7 +141,9 @@ export const salesWriteAuditReject = (params) => {
     url: '/sales/auditReject',
     data: params,
     method: 'post',
-    actionId: '审核驳回'
+    headers:{
+      'module': encodeURIComponent('审核驳回')
+    }
   })
 }
 //  销售 一键审核下推
@@ -139,7 +152,9 @@ export const salesWriteAuditPush = (params) => {
     url: '/sales/auditPush',
     data: params,
     method: 'post',
-    actionId: '一键审核'
+    headers:{
+      'module': encodeURIComponent('一键审核')
+    }
   })
 }
 //  销售 提交
@@ -148,7 +163,9 @@ export const salesWriteSubmit = (params) => {
     url: '/sales/submit',
     data: params,
     method: 'post',
-    actionId: '销售单提交'
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 
@@ -166,7 +183,9 @@ export const updateBatch = (params) => {
     url: '/sales/detail/updateBatch',
     method: 'post',
     data: params,
-    actionId: '提交时价格批量更新'
+    headers:{
+      'module': encodeURIComponent('价格批量更新')
+    }
   })
 }
 
@@ -177,7 +196,9 @@ export const salesDetailAllList = (params) => {
     url: url,
     data: params,
     method: 'post',
-    actionId: '促销活动产品列表查询'
+    headers:{
+      'module': encodeURIComponent('销售单明细列表查询')
+    }
   })
 }
 
@@ -195,7 +216,9 @@ export const expenseAccountSave = (params) => {
     url: `/expenseAccount/saveCreate`,
     data: params,
     method: 'post',
-    actionId: '转费用报销单'
+    headers:{
+      'module': encodeURIComponent('转费用报销单')
+    }
   })
 }
 
@@ -206,7 +229,9 @@ export const salesPrint = (params) => {
     url: '/sales/print',
     data: params,
     method: 'post',
-    actionId: '销售打印'
+    headers:{
+      'module': encodeURIComponent('销售打印')
+    }
   })
 }
 //  销售 打印预览
@@ -215,7 +240,9 @@ export const salesPrintPreview = (params) => {
     url: '/sales/printPreview',
     data: params,
     method: 'post',
-    actionId: '销售打印预览'
+    headers:{
+      'module': encodeURIComponent('销售打印预览')
+    }
   })
 }
 // 销售  详情  该销售单的产品二级分类
@@ -235,7 +262,9 @@ export const salesDetailPrint = params => {
     data: params,
     method: 'post',
     responseType: 'blob',
-    actionId: id
+    headers:{
+      'module': encodeURIComponent(id)
+    }
   })
 }
 // 销售 详情  导出
@@ -247,7 +276,9 @@ export const salesDetailExcel = params => {
     data: params,
     method: 'post',
     responseType: 'blob',
-    actionId: '销售导出'
+    headers:{
+      'module': encodeURIComponent('导出Excel')
+    }
   })
 }
 // 销售 详情  分类导出
@@ -258,7 +289,9 @@ export const salesDetailTypeExcel = params => {
     data: params,
     method: 'post',
     responseType: 'blob',
-    actionId: '销售分类导出'
+    headers:{
+      'module': encodeURIComponent('销售分类导出')
+    }
   })
 }
 
@@ -272,7 +305,10 @@ export const queryPageForWarehouse = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 获取按仓库查询销售单数量
@@ -291,7 +327,10 @@ export const queryPageForWarehouseDetail = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 
@@ -310,7 +349,10 @@ export const exportForWarehouse = params => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 // 销售一览表 列表
@@ -321,6 +363,9 @@ export const salesOverviewQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }

+ 31 - 7
src/api/sendBill.js

@@ -12,7 +12,10 @@ export const sendBillUpdate = params => {
   return axios({
     url: '/sendBill/update',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改发货单')
+    }
   })
 }
 // 修改问题反馈
@@ -20,7 +23,10 @@ export const updateIssueRemark = params => {
   return axios({
     url: '/sendBill/updateIssueRemark',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改问题反馈')
+    }
   })
 }
 // 删除出库单修改发货状态
@@ -28,7 +34,10 @@ export const deleteSendBillStockOut = params => {
   return axios({
     url: '/sendBill/deleteSendBillStockOut',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 // 获取客户信息
@@ -44,7 +53,10 @@ export const validateStockOut = params => {
   return axios({
     url: '/sendBill/validateStockOut',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('发货')
+    }
   })
 }
 // 发货单列表分页查询
@@ -55,7 +67,10 @@ export const sendBillQueryPageList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('发货单列表查询')
+    }
   })
 }
 // 导入发货单 
@@ -64,6 +79,9 @@ export const sendBillInsertBatch = (params) => {
     url: '/sendBill/insertBatch',
     data: params,
     method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增发货单')
+    }
   })
 }
 // 导出错误项
@@ -82,7 +100,10 @@ export const sendBillExcel = (params) => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 // 更新发货单物流信息
@@ -90,7 +111,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('收款打印')
+    }
   })
 }

+ 8 - 2
src/api/stock.js

@@ -56,7 +56,10 @@ export const queryStockProductPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加产品-列表查询')
+    }
   })
 }
 // 非经销商产品库存列表
@@ -78,7 +81,10 @@ export const queryPromoProductPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    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('导出')
+    }
   })
 }

+ 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('修改数量')
+    }
   })
 }

+ 6 - 5
src/utils/request.js

@@ -130,11 +130,12 @@ service.interceptors.request.use(config => {
     }
   }
   
-  // 日志记录
-  // const logId = config.actionId
-  // if(logId){
-  //   config.headers['biz-logId'] = logId
-  // }
+  // 当前页面路径
+  const currentPage = router.history.current
+  if(currentPage&&currentPage.meta&&config.headers['module']){
+    config.headers['module'] = encodeURIComponent(currentPage.meta.title||'') + ',' +config.headers['module']
+  }
+  console.log(decodeURIComponent(config.headers['module']))
    
   config.headers['auth-price'] = authPrice.join(',') // 价格权限
   config.retry = 3

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