lilei 1 éve
szülő
commit
565383e02e

+ 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('列表查询')
+    }
   })
 }
 

+ 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产品')
+    }
   })
 }

+ 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('导出')
+    }
   })
 }

+ 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('校验产品是否在品牌分类中')
+    }
   })
 }

+ 91 - 22
src/api/expenseManagement.js

@@ -32,7 +32,10 @@ export const expenseAccountList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 批量更新打印状态
@@ -41,7 +44,10 @@ export const expenseAccountUpdateBatch = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量更新打印状态')
+    }
   })
 }
 // 新增再次编辑
@@ -50,7 +56,10 @@ export const expenseAccountAgainEdit = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('再次编辑')
+    }
   })
 }
 // 报销单详情
@@ -66,7 +75,10 @@ export const expenseAccountSave = (params) => {
   return axios({
     url: `/expenseAccount/save`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
 // 删除
@@ -74,7 +86,10 @@ export const expenseAccountDelete = (params) => {
   return axios({
     url: `/expenseAccount/deleteBySn/${params.expenseAccountSn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 // 提交
@@ -82,7 +97,10 @@ export const expenseAccountSubmit = (params) => {
   return axios({
     url: `/expenseAccount/submit`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 
@@ -90,7 +108,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 +119,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 +130,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 +142,10 @@ export const expenseAcctDetailFindList = (params) => {
   return axios({
     url: `/expenseAcctDetail/findList`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('费用明细列表')
+    }
   })
 }
 
@@ -124,7 +154,10 @@ export const expenseAcctDetailSave = (params) => {
   return axios({
     url: `/expenseAcctDetail/saveDetail`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('保存费用明细')
+    }
   })
 }
 // 费用类型
@@ -141,6 +174,9 @@ export const expenseImportDetail = (params) => {
     url: '/expenseAcctDetail/importDetail',
     data: params,
     method: 'post',
+    headers:{
+      'module': encodeURIComponent('导入费用报销明细')
+    }
   })
 }
 // 确认导入明细
@@ -149,6 +185,9 @@ export const expenseInsertImport = (params) => {
     url: '/expenseAcctDetail/insertImport',
     data: params,
     method: 'post',
+    headers:{
+      'module': encodeURIComponent('导入明细')
+    }
   })
 }
 // 报销明细错误导出
@@ -157,7 +196,10 @@ export const expenseFailExcel = (params) => {
     url: '/expenseAcctDetail/exportImportDetailError',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出报销明细错误项')
+    }
   })
 }
 
@@ -166,7 +208,10 @@ export const expenseAcctDetailSaveProducts = (params) => {
   return axios({
     url: `/expenseAcctDetail/saveDetailProducts`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('保存费用明细产品')
+    }
   })
 }
 
@@ -178,7 +223,10 @@ export const expenseAccountDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('费用报销明细列表查询')
+    }
   })
 }
 // 费用报销明细统计
@@ -197,7 +245,10 @@ export const expenseAcctDetailReport = (params) => {
     url: '/report/expenseAcctDetailReport/exportDetailReport',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('费用报销明细导出')
+    }
   })
 }
 
@@ -206,14 +257,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 +278,10 @@ export const getDingTalkDepartmentList = (params) => {
   return axios({
     url: `/dingTalk/getDingTalkDepartmentList/${params.deptId}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('钉钉部门列表')
+    }
   })
 }
 // 钉钉人员
@@ -229,7 +289,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,15 +301,21 @@ export const queryDingTalkDeptUser = (params) => {
    return axios({
      url: `/dingTalk/syncAllDeptUser `,
      data: params,
-     method: 'post'
+     method: 'post',
+     headers:{
+       'module': encodeURIComponent('刷新部门人员数据')
+     }
    })
  }
  
 // 获取所以部门人员
  export const getDingTalkAllDeptUser = (params) => {
    return axios({
-     url: `/dingTalk/getAllDeptUser`,
+     url: `/dingTalk/                                                                                                      `,
      data: params,
-     method: 'post'
+     method: 'post',
+     headers:{
+       'module': encodeURIComponent('部门人员数据')
+     }
    })
  }

+ 61 - 19
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('列表查询')
+    }
   })
 }
 // 检查是否已打印
@@ -27,7 +30,10 @@ export const queryLastFinishDingUser = (params) => {
   return axios({
     url: `/financeBook/queryLastFinishDingUser`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('钉钉审核人员信息')
+    }
   })
 }
 // 统计
@@ -39,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 ? '批量允许打印':'批量开票')
+    }
   })
 }
 // 财务收款明细-分页列表
@@ -56,7 +65,7 @@ export const financeBookDetailList = (params) => {
     data: params,
     method: 'post',
     headers:{
-      'module': encodeURIComponent('明细列表查询')
+      'module': encodeURIComponent('列表查询')
     }
   })
 }
@@ -70,7 +79,7 @@ export const financeBookDetailQueryPage = (params) => {
     data: params,
     method: 'post',
     headers:{
-      'module': encodeURIComponent('明细报表查询')
+      'module': encodeURIComponent('表查询')
     }
   })
 }
@@ -110,7 +119,10 @@ export const queryDispatchBillListBySn = (params) => {
   const url = `/financeBook/queryDispatchBillListBySn/${params.bookSn}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('关联备货单')
+    }
   })
 }
 // 删除
@@ -158,7 +170,10 @@ export const lastPayerAccountInfo = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('查询最近一次账户信息')
+    }
   })
 }
 
@@ -168,7 +183,10 @@ export const financeBookSubmit = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 // 明细-列表
@@ -177,7 +195,10 @@ export const financeBookDetailQueryList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 // 明细-保存
@@ -186,7 +207,10 @@ export const financeBookDetailSave = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加')
+    }
   })
 }
 // 明细-详情
@@ -203,7 +227,10 @@ export const financeBookDetailDelete = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -213,19 +240,22 @@ 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',
     headers:{
-      'module': encodeURIComponent('暂不打印')
+      'module': encodeURIComponent(type==1?'暂不打印':'收款打印状态')
     }
   })
 }
@@ -236,7 +266,10 @@ export const saveSettleReceiptFinanceBook = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('选择关联单据')
+    }
   })
 }
 // 查询关联业务列表
@@ -245,7 +278,10 @@ export const querySettleReceiptFinanceBookList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 删除关联业务
@@ -254,7 +290,10 @@ export const deleteSettleReceiptFinanceBook = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -264,6 +303,9 @@ export const getBatchLastProcessInstance = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    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('结果下载')
+    }
   })
 }

+ 182 - 47
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,7 +150,10 @@ export const productExport = (params) => {
     url: '/product/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }
 //  产品 详情  根据sn查询
@@ -131,7 +167,10 @@ export const productSnDetail = (params) => {
 export const productAudit = (params) => {
   return axios({
     url: `/product/audit/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('审核')
+    }
   })
 }
 //  产品 批量审核
@@ -139,14 +178,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 +199,10 @@ export const productOffline = (params) => {
   return axios({
     url: `/product/offline`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('下线')
+    }
   })
 }
 //  产品 批量上线
@@ -162,7 +210,10 @@ export const productBatchOnline = (params) => {
   return axios({
     url: '/product/batchOnline',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量上线')
+    }
   })
 }
 
@@ -174,7 +225,10 @@ export const productPricingList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  产品  定价 详情  根据sn查询
@@ -189,7 +243,10 @@ export const productPricingSave = (params) => {
   return axios({
     url: '/product/pricing/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('编辑')
+    }
   })
 }
 //  产品  定价 审核
@@ -197,7 +254,10 @@ export const productPricingAudit = (params) => {
   return axios({
     url: '/product/pricing/audit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('审核')
+    }
   })
 }
 
@@ -209,7 +269,10 @@ export const productLogList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 产品上线、下线审核
@@ -217,7 +280,10 @@ export const productLogAudit = (params) => {
   return axios({
     url: `/productLog/audit`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('审核')
+    }
   })
 }
 // 批量上线、下线审核
@@ -225,7 +291,10 @@ export const productLogAuditBatch = (params) => {
   return axios({
     url: `/productLog/auditBatch`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量审核')
+    }
   })
 }
 
@@ -291,7 +360,10 @@ export const productPriceChangeList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  价格变更记录 导出
@@ -300,7 +372,10 @@ export const productPriceChangeExport = (params) => {
     url: '/product/priceChange/exportExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }
 //  产品  级别 列表  分页
@@ -311,7 +386,10 @@ export const productLevelList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  产品  级别 保存
@@ -319,7 +397,10 @@ export const productLevelSave = (params) => {
   return axios({
     url: '/product/saveProductLevel',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('新增/编辑')
+    }
   })
 }
 //  价格查询 列表  分页
@@ -330,14 +411,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 +435,10 @@ export const queryNewProductPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('查询最近上下线产品')
+    }
   })
 }
 
@@ -358,7 +448,10 @@ export const stackPlaceExport = (params) => {
     url: '/product/stackPlace/export',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -368,7 +461,10 @@ export const stackPlaceExportError = (params) => {
     url: '/product/stackPlace/exportError',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 
@@ -394,7 +490,10 @@ export const stackPlaceInsertImport = (params) => {
   return axios({
     url: '/product/stackPlace/insertImport',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('导入产品货位')
+    }
   })
 }
 // 查询产品货位历史变更记录
@@ -402,7 +501,10 @@ export const stackPlaceListHistory = (params) => {
   return axios({
     url: '/product/stackPlace/listHistory',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('变更记录')
+    }
   })
 }
 // 分页查询产品及货位信息
@@ -413,7 +515,10 @@ export const queryStackPlaceQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 保存产品货位信息
@@ -421,7 +526,10 @@ export const stackPlaceSave = (params) => {
   return axios({
     url: '/product/stackPlace/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('编辑')
+    }
   })
 }
 
@@ -430,7 +538,7 @@ export const batchImportProduct = (params) => {
   return axios({
     url: '/product/importProduct',
     data: params,
-    method: 'post'
+    method: 'post',
   })
 }
 // 导出错误项产品
@@ -439,7 +547,10 @@ export const exportErrorProduct = (params) => {
     url: '/product/exportErrorProduct',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出错误项产品')
+    }
   })
 }
 
@@ -448,7 +559,10 @@ export const saveBatchImportProduct = (params) => {
   return axios({
     url: '/product/saveBatchImportProduct',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量导入产品')
+    }
   })
 }
 
@@ -457,7 +571,10 @@ export const priceChangeEnabled = (params) => {
   return axios({
     url: '/product/priceChange/enabled',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('启用/禁用')
+    }
   })
 }
 
@@ -478,7 +595,10 @@ export const exportErrorOffline = (params) => {
     url: '/product/offline/exportError',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 
@@ -487,7 +607,10 @@ export const importSaveBatch = (params) => {
   return axios({
     url: '/product/offline/importSaveBatch',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('批量导入下线产品')
+    }
   })
 }
 
@@ -499,7 +622,10 @@ export const queryOnlinePage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -509,7 +635,10 @@ export const excelOnlineList = (params) => {
     url: '/product/excelOnlineList',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+        'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -518,7 +647,10 @@ export const updateShowFlag = (params) => {
   return axios({
     url: '/productLog/updateShowFlag',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('显示/隐藏')
+    }
   })
 }
 // 修改停产状态
@@ -526,6 +658,9 @@ export const updateHaltProdFlag = (params) => {
   return axios({
     url: '/product/updateHaltProdFlag',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('启用/停产')
+    }
   })
 }

+ 16 - 4
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,14 +30,20 @@ export const productBrandSave = (params) => {
   return axios({
     url: '/productBrand/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+        'module': encodeURIComponent('新增/编辑')
+    }
   })
 }
 //  产品品牌 删除
 export const productBrandDel = (params) => {
   return axios({
     url: `/productBrand/delete/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+        'module': encodeURIComponent('删除')
+    }
   })
 }
 //  产品品牌 详情  根据sn查询

+ 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('新增/编辑')
+    }
   })
 }
 //  通用产品 详情
@@ -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('导出')
+    }
   })
 }

+ 5 - 2
src/api/salesReturn.js

@@ -94,14 +94,17 @@ export const salesReturnExport = (params) => {
 }
 
 //  销售退货 分页查询产品
-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?'选择关联单据':'列表查询')
+    }
   })
 }
 //  收货品检 分页查询产品

+ 8 - 0
src/store/modules/app.js

@@ -166,6 +166,14 @@ const app = {
           ],
         timeStr: ''
       },
+      // 提货单
+      {
+        a: 'pickUp/queryBySn',
+        b: [
+          'pickUp/submit',
+          'pickUp/save'
+        ]
+      }
     ]
   },
   mutations: {