chenrui 1 éve
szülő
commit
a8116b7570

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1708909869430
+  "version": 1708939486038
 }

+ 12 - 3
src/api/approveStore.js

@@ -8,7 +8,10 @@ export const xprhStoreApplyQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 审核
@@ -17,13 +20,19 @@ export const xprhStoreApplyAudit = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('审核')
+    }
   })
 }
 // 门店认证详情
 export const xprhStoreApplyDetail = (params) => {
   return axios({
     url: `/xprhStoreApply/findBySn/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('门店认证详情')
+    }
   })
 }

+ 54 - 17
src/api/checkWarehouse.js

@@ -31,7 +31,10 @@ export const queryStockProductCostNull = (params) => {
   return axios({
     url: '/checkWarehouse/queryStockProductCostNull',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('查询没有成本价的产品')
+    }
   })
 }
 // 设置成本价
@@ -39,7 +42,10 @@ export const stockWarnSaveBatch = (params) => {
   return axios({
     url: '/stockWarn/saveBatch',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent(params.length == 1 ? '保存' : '批量更新')
+    }
   })
 }
 
@@ -48,7 +54,10 @@ export const checkWarehouseValidate = (params) => {
   return axios({
     url: '/checkWarehouse/validate',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('校验是否有未完结的盘点单')
+    }
   })
 }
 //  库存盘点  详情  保存
@@ -56,7 +65,10 @@ export const checkWarehouseDetailSave = (params) => {
   return axios({
     url: '/checkWarehouse/detail/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent(params.id ? '添加' : '修改数量')
+    }
   })
 }
 //  库存盘点  详情  批量保存
@@ -66,7 +78,7 @@ export const checkWarehouseDetailSaveBatch = (params) => {
     data: params,
     method: 'post',
     headers: {
-      'module': encodeURIComponent('添加产品')
+      'module': encodeURIComponent(params.allFlag ? '全部添加' : '批量添加')
     }
   })
 }
@@ -87,7 +99,7 @@ export const checkWarehouseDetail = (params) => {
     url: `/checkWarehouse/queryBySn/${params.sn}`,
     method: 'get',
     headers: {
-      'module': encodeURIComponent('基础信息')
+      'module': encodeURIComponent('详情信息')
     }
   })
 }
@@ -98,7 +110,7 @@ export const checkWarehouseDel = (params) => {
     data: params,
     method: 'post',
     headers: {
-      'module': encodeURIComponent('列表删除')
+      'module': encodeURIComponent('删除')
     }
   })
 }
@@ -109,7 +121,7 @@ export const checkWarehouseDetailDel = (params) => {
     data: params,
     method: 'post',
     headers: {
-      'module': encodeURIComponent('详情删除')
+      'module': encodeURIComponent('删除')
     }
   })
 }
@@ -167,7 +179,7 @@ export const checkWarehouseDetailStockList = (params) => {
     data: params,
     method: 'post',
     headers: {
-      'module': encodeURIComponent('自选盘点可选列表查询')
+      'module': encodeURIComponent('可选产品列表')
     }
   })
 }
@@ -176,7 +188,10 @@ export const checkWarehouseCheckZero = (params) => {
   return axios({
     url: '/checkWarehouse/detail/checkZero',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('整单盘零')
+    }
   })
 }
 //  库存盘点  盘点  盘点完成
@@ -184,7 +199,10 @@ export const checkWarehouseInventory = (params) => {
   return axios({
     url: '/checkWarehouse/inventory',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('盘点完成')
+    }
   })
 }
 //  库存盘点  重盘
@@ -192,7 +210,10 @@ export const checkWarehouseReInventory = (params) => {
   return axios({
     url: '/checkWarehouse/reInventory',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('重盘')
+    }
   })
 }
 //  库存盘点  财务审核
@@ -200,7 +221,10 @@ export const checkWarehouseFinanceAudit = (params) => {
   return axios({
     url: '/checkWarehouse/financeAudit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent(params.auditFlag ? '通过' : '不通过')
+    }
   })
 }
 //  库存盘点  盘点审核  列表  分页
@@ -211,7 +235,10 @@ export const checkWarehouseAuditList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 库存盘点 详情  导出
@@ -220,15 +247,22 @@ export const checkWarehouseDetailExport = params => {
     url: `checkWarehouse/detail/exportExcel`,
     method: 'post',
     data: params,
-    responseType: 'blob'
+    responseType: 'blob',
+    headers: {
+      'module': encodeURIComponent('导出Excel')
+    }
   })
 }
 // 库存盘点 详情  打印
 export const checkWarehouseDetailPrint = params => {
+  const tn = params.checkPrintFlag ? '盘点打印' : '审核打印'
   const data = {
     url: `checkWarehouse/detail/print/${params.printType}`,
     method: 'post',
-    data: params
+    data: params,
+    headers: {
+      'module': encodeURIComponent(tn + (params.type == 'INK' ? '(喷墨)' : '(针式)'))
+    }
   }
   // 喷墨打印
   if (params.type == 'INK') {
@@ -242,6 +276,9 @@ export const detailModifyCost = (params) => {
   return axios({
     url: '/checkWarehouse/detail/modifyCost',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('修改盈亏成本单价')
+    }
   })
 }

+ 5 - 5
src/api/dealerProduct.js

@@ -10,7 +10,7 @@ export const dealerProductList = (params) => {
     data: params,
     method: 'post',
     headers: {
-      'module': encodeURIComponent('列表查询')
+      'module': encodeURIComponent('经销商产品列表(自建产品)')
     }
   })
 }
@@ -25,7 +25,7 @@ export const bulkProductList = (params) => {
     data: params,
     method: 'post',
     headers: {
-      'module': encodeURIComponent('散件入库列表查询')
+      'module': encodeURIComponent('散件入库列表(自建产品)')
     }
   })
 }
@@ -62,7 +62,7 @@ export const dealerProductExport = params => {
     method: 'post',
     responseType: 'blob',
     headers: {
-      'module': encodeURIComponent('导出')
+      'module': encodeURIComponent('经销商产品导出')
     }
   })
 }
@@ -74,7 +74,7 @@ export const dealerProductDetail = (params) => {
     data: {},
     method: 'get',
     headers: {
-      'module': encodeURIComponent('产品详情')
+      'module': encodeURIComponent('经销商产品详情')
     }
   })
 }
@@ -88,7 +88,7 @@ export const giftsDetailList = (params) => {
     data: params,
     method: 'post',
     headers: {
-      'module': encodeURIComponent('赠品列表查询')
+      'module': encodeURIComponent('列表查询')
     }
   })
 }

+ 12 - 3
src/api/login.js

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

+ 24 - 6
src/api/merchant.js

@@ -8,7 +8,10 @@ export const queryMerchantCashOutPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  申请提现
@@ -16,7 +19,10 @@ export const saveMerchantCashOut = (params) => {
   return axios({
     url: '/merchant/saveMerchantCashOut',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('申请提现')
+    }
   })
 }
 // 账户明细
@@ -27,7 +33,10 @@ export const queryTradeFlowPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('账户明细列表')
+    }
   })
 }
 
@@ -53,7 +62,10 @@ export const queryShelfSettleRulePage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 结算管理合计
@@ -74,7 +86,10 @@ export const querySettleBillPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表')
+    }
   })
 }
 // 待结明细列表
@@ -85,7 +100,10 @@ export const queryOrderBillDetailPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表')
+    }
   })
 }
 // 待结明细合计

+ 16 - 4
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('列表查询')
+    }
   })
 }
 
@@ -20,7 +23,10 @@ export const outOfStockList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('采购缺货列表')
+    }
   })
 }
 // 采购缺货统计
@@ -39,7 +45,10 @@ export const outOfStockExportDetail = (params) => {
     url: url,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 //  缺货详情列表  有分页
@@ -50,6 +59,9 @@ export const outOfStockDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('采购缺货产品明细列表')
+    }
   })
 }

+ 80 - 20
src/api/purchase.js

@@ -8,7 +8,10 @@ export const purchaseList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 采购入库子单列表
@@ -16,7 +19,10 @@ export const receivingQuery = (params) => {
   return axios({
     url: `/receiving/query`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('采购入库子单列表')
+    }
   })
 }
 // 采购入库详情
@@ -24,7 +30,10 @@ export const receivingFindBySn = (params) => {
   return axios({
     url: `/receiving/findBySn`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('详情信息')
+    }
   })
 }
 // 采购入库详细列表
@@ -32,7 +41,10 @@ export const receivingDetail = (params) => {
   return axios({
     url: `/receivingDetail/queryPage/${params.pageNo}/${params.pageSize}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表')
+    }
   })
 }
 //  采购 详情
@@ -40,7 +52,10 @@ export const purchaseDetail = (params) => {
   return axios({
     url: `/purchase/findById/${params.id}`,
     data: params,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('详情信息')
+    }
   })
 }
 //  采购 详情
@@ -48,7 +63,10 @@ export const purchaseDetailBySn = (params) => {
   return axios({
     url: `/purchase/findBySn/${params.sn}`,
     data: params,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('详情信息')
+    }
   })
 }
 //  采购明细 统计
@@ -64,7 +82,10 @@ export const purchasePrint = (params) => {
   return axios({
     url: '/purchase/print',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('打印')
+    }
   })
 }
 //  采购 打印预览
@@ -72,7 +93,10 @@ export const purchasePrintPreview = (params) => {
   return axios({
     url: '/purchase/printPreview',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('打印预览')
+    }
   })
 }
 //  采购 付款
@@ -80,7 +104,10 @@ export const purchaseWritePay = (params) => {
   return axios({
     url: '/purchase/pay',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('付款')
+    }
   })
 }
 //  采购 入库
@@ -88,14 +115,20 @@ export const purchaseWriteStockIn = (params) => {
   return axios({
     url: '/receiving/stockIn',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('入库')
+    }
   })
 }
 //  采购 提交
 export const purchaseWriteSubmit = (params) => {
   return axios({
     url: `/purchase/submit/${params.id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 //  采购 保存
@@ -103,14 +136,20 @@ export const purchaseSave = (params) => {
   return axios({
     url: '/purchase/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
 //  采购 删除
 export const purchaseDel = (params) => {
   return axios({
     url: `/purchase/delete/${params.id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 //  采购 导出
@@ -118,21 +157,30 @@ export const purchaseExport = (params) => {
   return axios({
     url: '/purchase/export',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 //  采购 查询上级经销商名称
 export const getParentDealer = (params) => {
   return axios({
     url: `/dealer/findParentDealer`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('查询上级经销商名称')
+    }
   })
 }
 // 采购 详情  打印
 export const purchaseDetailPrint = params => {
   const data = {
     url: `purchase/print/${params.sn}/${params.type}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent(params.type == 'INK' ? '喷墨打印':'针式打印')
+    }
   }
   // 喷墨打印
   if (params.type == 'INK') {
@@ -168,7 +216,10 @@ export const purchaseDetailBatchInsert = params => {
   return axios({
     url: '/purchaseDetail/batchInsert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('导入产品')
+    }
   })
 }
 // 采购 详情  导出
@@ -176,7 +227,10 @@ export const purchaseDetailExport = params => {
   return axios.request({
     url: `/purchase/excel/${params.sn}`,
     method: 'get',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出Excel')
+    }
   })
 }
 // 采购 详情 导出产品
@@ -184,7 +238,10 @@ export const purchaseExportDetail = params => {
   return axios.request({
     url: `/purchase/exportDetail/${params.sn}`,
     method: 'get',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出审核订单产品')
+    }
   })
 }
 // 采购管理  修改收货地址
@@ -192,6 +249,9 @@ export const purchaseDetailAddress = params => {
   return axios({
     url: '/purchase/updateAddress',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改收货地址')
+    }
   })
 }

+ 16 - 4
src/api/purchaseCart.js

@@ -8,7 +8,10 @@ export const purchaseCartList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('购物车列表查询')
+    }
   })
 }
 // 添加到购物车
@@ -16,7 +19,10 @@ export const purchaseCartSave = params => {
   return axios({
     url: '/purchaseCart/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加到购物车')
+    }
   })
 }
 // 购物车已存在的产品
@@ -32,7 +38,10 @@ export const purchaseDeleteBatch = params => {
   return axios({
     url: '/purchaseCart/deleteBatch',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量删除')
+    }
   })
 }
 // 修改购物车数量
@@ -40,6 +49,9 @@ export const purchaseUpdateQty = params => {
   return axios({
     url: '/purchaseCart/updateQty',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改数量')
+    }
   })
 }

+ 36 - 9
src/api/purchaseDetail.js

@@ -8,7 +8,10 @@ export const purchaseDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表')
+    }
   })
 }
 //  采购详情 保存
@@ -16,14 +19,20 @@ export const purchaseDetailSave = (params) => {
   return axios({
     url: '/purchaseDetail/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.id?'修改数量':'添加')
+    }
   })
 }
 //  采购详情 删除
 export const purchaseDetailDel = (params) => {
   return axios({
     url: `/purchaseDetail/delete/${params.id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 //  采购详情 清空列表
@@ -31,7 +40,10 @@ export const purchaseDetailDelAll = (params) => {
   return axios({
     url: `/purchaseDetail/deleteAll/${params.id}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('清空列表')
+    }
   })
 }
 
@@ -49,7 +61,10 @@ export const purchaseUpdateWarehouse = (params) => {
   return axios({
     url: `/receivingDetail/updateWarehouse`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改仓库仓位')
+    }
   })
 }
 //  采购 详情 上次缺货 列表 分页
@@ -60,7 +75,10 @@ export const purchaseDetailCancelList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('上次缺货列表')
+    }
   })
 }
 //  采购 详情 上次缺货 购物车 保存
@@ -68,7 +86,10 @@ export const purchaseDetailCancelSave = (params) => {
   return axios({
     url: '/purchaseDetail/saveCancelProduct',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('加入购物车')
+    }
   })
 }
 // 采购  导出错误项
@@ -77,7 +98,10 @@ export const purchaseDetailDownloadFail = params => {
     url: `/purchaseDetail/downloadFailExcel`,
     method: 'post',
     data: params,
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导入产品-导出错误项')
+    }
   })
 }
 // 采购单明细导入缺货列表
@@ -87,6 +111,9 @@ export const importOosDetail = (params) => {
   return axios({
     url,
     data: params.arr,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('导入缺货-批量添加')
+    }
   })
 }

+ 88 - 22
src/api/purchaseReturn.js

@@ -8,7 +8,10 @@ export const purchaseReturnList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  采购退货  新增
@@ -16,21 +19,30 @@ export const purchaseReturnSave = (params) => {
   return axios({
     url: '/purchaseReturn/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
 //  采购退货 删除
 export const purchaseReturnDel = (params) => {
   return axios({
     url: `/purchaseReturn/delete/${params.id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 //  采购退货 详情 删除
 export const purchaseReturnDelAll = (params) => {
   return axios({
     url: `/purchaseReturn/detail/deleteAll/${params.purchaseReturnSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 //  采购退货  提交
@@ -38,21 +50,30 @@ export const purchaseReturnSubmit = (params) => {
   return axios({
     url: '/purchaseReturn/submit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 //  采购退货 详情
 export const purchaseReturnDetail = (params) => {
   return axios({
     url: `/purchaseReturn/findById/${params.id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('详情信息')
+    }
   })
 }
 //  采购退货 详情  根据sn查
 export const purchaseReturnDetailSn = (params) => {
   return axios({
     url: `/purchaseReturn/findBySn/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('详情信息')
+    }
   })
 }
 //  采购退货 详情 选择产品 列表  分页
@@ -63,7 +84,10 @@ export const purchaseReturnPurchaseBillDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('可选产品列表')
+    }
   })
 }
 //  采购退货 详情列表  分页
@@ -74,7 +98,10 @@ export const purchaseReturnDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表')
+    }
   })
 }
 //  采购退货 详情 添加产品
@@ -82,14 +109,20 @@ export const purchaseReturnDetailSave = (params) => {
   return axios({
     url: '/purchaseReturn/detail/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加')
+    }
   })
 }
 //  采购退货 详情 删除
 export const purchaseReturnDetailDel = (params) => {
   return axios({
     url: `/purchaseReturn/detail/delete/${params.id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 //  采购退货 生成出库单
@@ -99,14 +132,20 @@ export const purchaseReturnOutStockBill = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('生成出库单')
+    }
   })
 }
 // 采购退货详情  打印
 export const purchaseReturnDetailPrint = params => {
   const data = {
     url: `/purchaseReturn/print/${params.sn}/${params.type}/${params.showFlag}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent(params.type == 'INK' ? '喷墨打印' : '针式打印')
+    }
   }
   // 喷墨打印
   if (params.type == 'INK') {
@@ -119,7 +158,10 @@ export const purchaseReturnDetailExport = params => {
   return axios.request({
     url: `/purchaseReturn/excel/${params.sn}/${params.showFlag}`,
     method: 'get',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出Excel')
+    }
   })
 }
 //  采购退货 完结单据
@@ -129,7 +171,10 @@ export const purchaseReturnFinishBill = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('完结单据')
+    }
   })
 }
 
@@ -139,7 +184,10 @@ export const purchaseReturnSaveByNoSync = (params) => {
   return axios({
     url: '/purchaseReturn/saveByNoSync',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
 
@@ -151,7 +199,10 @@ export const purchaseReturnQueryNoSyncPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -160,7 +211,10 @@ export const purchaseReturnOutStock = (params) => {
   return axios({
     url: '/purchaseReturn/outStock',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('出库')
+    }
   })
 }
 
@@ -169,7 +223,10 @@ export const purchaseReturnAudit = (params) => {
   return axios({
     url: '/purchaseReturn/audit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('审核')
+    }
   })
 }
 
@@ -181,7 +238,10 @@ export const purchaseReturnPurchaseBillNoSyncList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('可选产品列表')
+    }
   })
 }
 
@@ -190,7 +250,10 @@ export const queryReturnSupplierList = (params) => {
   return axios({
     url: '/purchaseTarget/queryReturnSupplierList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('供应商列表')
+    }
   })
 }
 // 采购退货报表-省仓供应商列表
@@ -198,6 +261,9 @@ export const queryPurchaseReturnSupplierList = (params) => {
   return axios({
     url: '/purchaseTarget/queryPurchaseReturnSupplierList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('省仓供应商列表')
+    }
   })
 }

+ 80 - 20
src/api/purchaseReturnApply.js

@@ -7,7 +7,10 @@ export const purchaseReturnList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 申请单新增
@@ -15,7 +18,10 @@ export const purchaseReturnSave = (params) => {
   return axios({
     url: '/purchaseReturnApply/create',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增')
+    }
   })
 }
 //  采购退货申请单 删除
@@ -23,7 +29,10 @@ export const purchaseReturnDel = (params) => {
   return axios({
     url: `/purchaseReturnApply/delete`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 // 生成采购退货单
@@ -31,7 +40,10 @@ export const createPurchaseReturnBill = (params) => {
   return axios({
     url: `/purchaseReturnApply/createPurchaseReturnBill`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('生成采购退货单')
+    }
   })
 }
 // 选择产品列表
@@ -42,7 +54,10 @@ export const queryDealerScopeProductPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('可选产品列表')
+    }
   })
 }
 //  采购退货 详情 添加产品
@@ -50,7 +65,10 @@ export const purchaseReturnDetailSave = (params) => {
   return axios({
     url: '/purchaseReturnApply/detail/create',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加')
+    }
   })
 }
 //  采购退货申请单 详情 删除
@@ -58,7 +76,10 @@ export const purchaseReturnDetailDel = (params) => {
   return axios({
     url: `/purchaseReturnApply/detail/delete`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 //  采购退货 详情 全部删除
@@ -66,7 +87,10 @@ export const purchaseReturnDetailDelAll = (params) => {
   return axios({
     url: `/purchaseReturnApply/detail/deleteAll`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('清空列表')
+    }
   })
 }
 // 申请单详情修改数量
@@ -74,7 +98,10 @@ export const purchaseReturnModifyQty = (params) => {
   return axios({
     url: `/purchaseReturnApply/detail/modifyQty`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改数量')
+    }
   })
 }
 // 申请单详情修改退货原因
@@ -83,7 +110,10 @@ export const modifyReturnInfo = (params) => {
   return axios({
     url: `/purchaseReturnApply/detail/modifyInfo`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.returnReason ? '修改退货原因' : '修改备注')
+    }
   })
 }
 // 批量修改退货原因
@@ -91,7 +121,10 @@ export const modifyReturnReasonList = (params) => {
   return axios({
     url: `/purchaseReturnApply/detail/modifyInfoList`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量设置退货原因')
+    }
   })
 }
 //  申请单详情列表  分页
@@ -102,28 +135,40 @@ export const purchaseReturnDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表')
+    }
   })
 }
 //  获取采购退货申请单 详情
 export const purchaseReturnDetail = (params) => {
   return axios({
     url: `/purchaseReturnApply/findBySn/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('详情')
+    }
   })
 }
 // 采购退货申请单提交
 export const purchaseReturnSubmit = (params) => {
   return axios({
     url: `/purchaseReturnApply/submit/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 // 采购退货申请单再次编辑
 export const purchaseReturnAgainCreate = (params) => {
  return axios({
    url: `/purchaseReturnApply/againCreate/${params.sn}`,
-   method: 'get'
+   method: 'get',
+   headers:{
+     'module': encodeURIComponent('再次编辑')
+   }
  })
 }
 
@@ -133,7 +178,10 @@ export const exportDeleteExcel = (params) => {
     url: `/purchaseReturnApply/detail/downloadDeleteFailExcel/${params.sn}`,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出删除项')
+    }
   })
 }
 // 导出错误项
@@ -142,7 +190,10 @@ export const exportErrorExcel = (params) => {
     url: `/purchaseReturnApply/detail/downloadFailExcel`,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 
@@ -160,7 +211,10 @@ export const purchaseReturnApplyCreateList = (params) => {
   return axios({
     url: `/purchaseReturnApply/detail/createList`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('导入产品')
+    }
   })
 }
 // 导出明细
@@ -168,14 +222,20 @@ export const purchaseReturnApplyExport = (params) => {
  return axios({
    url: `/purchaseReturnApply/excel/${params.sn}`,
    method: 'get',
-   responseType: 'blob'
+   responseType: 'blob',
+   headers:{
+     'module': encodeURIComponent('导出Excel')
+   }
  })
 }
 // 详情  打印
 export const purchaseReturnApplyPrint = params => {
   const data = {
     url: `/purchaseReturnApply/print/${params.sn}/${params.type}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent(params.type == 'INK' ? '喷墨打印' : '针式打印')
+    }
   }
   // 喷墨打印
   if (params.type == 'INK') {

+ 40 - 10
src/api/receiving.js

@@ -8,7 +8,10 @@ export const receivingList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  入库 列表  合计
@@ -23,7 +26,10 @@ export const receivingCount = (params) => {
 export const receivingDetailSn = (params) => {
   return axios({
     url: `/receiving/findBySn/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('详情信息')
+    }
   })
 }
 //  入库 入库
@@ -31,7 +37,10 @@ export const receivingStockIn = (params) => {
   return axios({
     url: '/receiving/stockIn',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('确认入库')
+    }
   })
 }
 //  入库 入库审核
@@ -39,7 +48,10 @@ export const receivingStockInAudit = (params) => {
   return axios({
     url: '/receiving/stockInAudit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.auditState=='FINISH'?'审核通过':'审核不通过')
+    }
   })
 }
 //  入库 详情  有分页
@@ -50,14 +62,20 @@ export const receivingDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表')
+    }
   })
 }
 // 入库审核 详情  打印
 export const receivingDetailPrint = params => {
   const data = {
     url: `receiving/print/${params.sn}/${params.type}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent(params.type == 'INK' ? '喷墨打印':'针式打印')
+    }
   }
   // 喷墨打印
   if (params.type == 'INK') {
@@ -71,7 +89,10 @@ export const receivingExport = params => {
     url: `/receiving/export`,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 //  签收入库 列表  有分页
@@ -82,7 +103,10 @@ export const receivingStockList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  入库审核 列表  有分页
@@ -93,7 +117,10 @@ export const receivingAuditList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('入库审核列表查询')
+    }
   })
 }
 // 修改入库数量
@@ -102,6 +129,9 @@ export const updateRealPutQty = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改入库数量')
+    }
   })
 }

+ 76 - 19
src/api/sales.js

@@ -8,7 +8,10 @@ export const salesList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.buyerSn ? '按客户查询列表':'列表查询')
+    }
   })
 }
 //  销售 详情
@@ -16,7 +19,10 @@ export const salesDetail = (params) => {
   return axios({
     url: `/sales/findById/${params.id}`,
     data: params,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('销售单详情')
+    }
   })
 }
 //  销售 详情bysn
@@ -24,7 +30,10 @@ export const salesDetailBySn = (params) => {
   return axios({
     url: `/sales/findBySn`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('销售单详情')
+    }
   })
 }
 //  销售 打印
@@ -32,7 +41,10 @@ export const salesPrint = (params) => {
   return axios({
     url: '/sales/print',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('打印')
+    }
   })
 }
 //  销售 打印预览
@@ -40,7 +52,10 @@ export const salesPrintPreview = (params) => {
   return axios({
     url: '/sales/printPreview',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('打印预览')
+    }
   })
 }
 //  销售 冲减
@@ -48,7 +63,10 @@ export const salesWriteDown = (params) => {
   return axios({
     url: '/sales/writeDown',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('销售冲减')
+    }
   })
 }
 //  销售 审核
@@ -56,7 +74,10 @@ export const salesWriteAudit = (params) => {
   return axios({
     url: '/sales/audit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('审核')
+    }
   })
 }
 //  销售 折扣
@@ -64,7 +85,10 @@ export const salesWriteDiscount = (params) => {
   return axios({
     url: '/sales/discount',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('打折')
+    }
   })
 }
 //  销售 备货审核
@@ -72,7 +96,10 @@ export const salesWritePrepareAudit = (params) => {
   return axios({
     url: '/sales/prepareAudit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('备货审核')
+    }
   })
 }
 //  销售 收款
@@ -80,14 +107,20 @@ export const salesWriteReceipt = (params) => {
   return axios({
     url: '/sales/receipt',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('收款')
+    }
   })
 }
 //  销售 出库
 export const salesWriteStockOut = (params) => {
   return axios({
     url: `/sales/stockOut/${params.salesBillSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('出库')
+    }
   })
 }
 //  销售 提交
@@ -95,7 +128,10 @@ export const salesWriteSubmit = (params) => {
   return axios({
     url: '/sales/submit',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 //  销售 新增或编辑
@@ -103,7 +139,10 @@ export const salesSave = (params) => {
   return axios({
     url: '/sales/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.id?'编辑基本信息':params.distributionFlag == 0 ? '新增(零售)' : '新增(铺货)')
+    }
   })
 }
 
@@ -112,7 +151,10 @@ export const salesDel = (params) => {
   return axios({
     url: `/sales/delete`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.mainFlag==1?'删除/取消':'清空列表')
+    }
   })
 }
 
@@ -128,14 +170,20 @@ export const salesCount = (params) => {
 export const supperCodeByVin = (params) => {
   return axios({
     url: `/vinIdentify/queryPartCodeByVin/${params.vin}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('车架号查询')
+    }
   })
 }
 // 销售 详情  打印
 export const salesDetailPrint = params => {
   const data = {
     url: `/sales/print/${params.sn}/${params.type}/${params.printOrgCode}/${params.printAllName}/${params.remarksShowFlag}/${params.priceFlag}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent(params.type=='INK' ? '喷墨打印':'针式打印')
+    }
   }
   // 喷墨打印
   if (params.type == 'INK') {
@@ -148,7 +196,10 @@ export const salesDetailExport = params => {
   return axios.request({
     url: `/sales/excel/${params.sn}`,
     method: 'get',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出Excel')
+    }
   })
 }
 // 销售 列表  导出
@@ -157,7 +208,10 @@ export const salesExport = params => {
     url: `/sales/exportWithDetail`,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 // 车架号  识别图片内容
@@ -166,6 +220,9 @@ export const vinCodeParse = params => {
     url: `/vinIdentify/ocr`,
     method: 'post',
     data: params,
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('车架号图片ocr识别')
+    }
   })
 }

+ 42 - 9
src/api/salesDetail.js

@@ -8,7 +8,10 @@ export const salesDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('销售单明细列表')
+    }
   })
 }
 
@@ -25,7 +28,10 @@ export const salesDetailInsert = (params) => {
   return axios({
     url: '/salesDetail/insert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加')
+    }
   })
 }
 // 批量新增
@@ -33,7 +39,10 @@ export const salesDetailInsertBatch = (params) => {
   return axios({
     url: '/salesDetail/insertBatch',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量添加')
+    }
   })
 }
 //  销售详情 修改价格
@@ -41,7 +50,10 @@ export const salesDetailUpdatePrice = (params) => {
   return axios({
     url: '/salesDetail/updatePrice',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改价格')
+    }
   })
 }
 //  销售详情 修改数量
@@ -49,14 +61,20 @@ export const salesDetailUpdateQty = (params) => {
   return axios({
     url: '/salesDetail/updateQty',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改数量')
+    }
   })
 }
 //  销售详情 删除
 export const salesDetailDel = (params) => {
   return axios({
     url: `/salesDetail/delete/${params.id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 //  销售详情 清空列表
@@ -64,7 +82,10 @@ export const salesDetailDelAll = (params) => {
   return axios({
     url: `/salesDetail/deleteBySalesBillSn/${params.salesBillSn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('清空列表')
+    }
   })
 }
 
@@ -76,7 +97,10 @@ export const salesRecordlList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('销售记录')
+    }
   })
 }
 
@@ -86,6 +110,9 @@ export const salesDetailImportDetail = (params) => {
     url: '/salesDetail/importDetail',
     data: params,
     method: 'post',
+    headers:{
+      'module': encodeURIComponent('导入产品')
+    }
   })
 }
 // 确认导入明细
@@ -94,6 +121,9 @@ export const salesDetailInsertImport = (params) => {
     url: '/salesDetail/insertImport',
     data: params,
     method: 'post',
+    headers:{
+      'module': encodeURIComponent('确认导入产品')
+    }
   })
 }
 // 销售明细错误导出
@@ -102,6 +132,9 @@ export const salesDetailFailExcel = (params) => {
     url: '/salesDetail/exportImportDetailError',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('错误项导出')
+    }
   })
 }

+ 71 - 17
src/api/salesReturn.js

@@ -4,14 +4,20 @@ import { axios } from '@/utils/request'
 export const salesReturnAudit = (params) => {
   return axios({
     url: `/salesReturn/audit/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('审核')
+    }
   })
 }
 //  销售退货 删除
 export const salesReturnDel = (params) => {
   return axios({
     url: `/salesReturn/delete/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -19,7 +25,10 @@ export const salesReturnDel = (params) => {
 export const salesReturnDetailDel = (params) => {
   return axios({
     url: `/salesReturn/detail/delete/${params.id}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -27,7 +36,10 @@ export const salesReturnDetailDel = (params) => {
 export const salesReturnDelAll = (params) => {
   return axios({
     url: `/salesReturn/detail/deleteAll/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('清空列表')
+    }
   })
 }
 // 销售退货  列表  统计
@@ -57,7 +69,10 @@ export const salesReturnDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表')
+    }
   })
 }
 //  销售退货 分页查询产品
@@ -68,7 +83,10 @@ export const salesReturnProductList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('可选产品列表')
+    }
   })
 }
 //  产品添加和修改
@@ -76,7 +94,10 @@ export const salesReturnSaveProduct = (params) => {
   return axios({
     url: '/salesReturn/detail/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.id?'修改产品':'添加产品')
+    }
   })
 }
 
@@ -85,7 +106,10 @@ export const salesReturnDiscount = (params) => {
   return axios({
     url: '/salesReturn/discount',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('打折')
+    }
   })
 }
 
@@ -94,7 +118,10 @@ export const salesReturnExport = (params) => {
   return axios({
     url: '/salesReturn/export',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -102,7 +129,10 @@ export const salesReturnExport = (params) => {
 export const salesReturnDetail = (params) => {
   return axios({
     url: `/salesReturn/findBySn/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('详情信息')
+    }
   })
 }
 
@@ -111,7 +141,10 @@ export const salesReturnPay = (params) => {
   return axios({
     url: '/salesReturn/pay',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('付款')
+    }
   })
 }
 
@@ -120,7 +153,10 @@ export const salesReturnPrint = (params) => {
   return axios({
     url: '/salesReturn/print',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('打印')
+    }
   })
 }
 
@@ -129,7 +165,10 @@ export const salesReturnprintPreview = (params) => {
   return axios({
     url: '/salesReturn/printPreview',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('打印预览')
+    }
   })
 }
 
@@ -141,7 +180,10 @@ export const salesReturnList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -150,14 +192,20 @@ export const salesReturnSave = (params) => {
   return axios({
     url: '/salesReturn/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.id?'编辑基础信息':'新增')
+    }
   })
 }
 //  销售退货 提交
 export const salesReturnSubmit = (params) => {
   return axios({
     url: `/salesReturn/submit/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('提交')
+    }
   })
 }
 // 销售退货 详情  打印
@@ -165,6 +213,9 @@ export const salesReturnDetailPrint = params => {
   const data = {
     url: `salesReturn/print/${params.sn}/${params.type}`,
     method: 'get',
+    headers:{
+      'module': encodeURIComponent(params.type=='INK' ? '喷墨打印':'针式打印')
+    }
   }
   // 喷墨打印
   if(params.type=='INK'){
@@ -177,6 +228,9 @@ export const salesDetailExport = params => {
   return axios.request({
     url: `salesReturn/excel/${params.sn}`,
     method: 'get',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出Excel')
+    }
   })
 }

+ 12 - 3
src/api/salesReturnDetail.js

@@ -8,7 +8,10 @@ export const salesReturnDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }
 //  销售退货详情 保存
@@ -16,7 +19,10 @@ export const salesReturnDetailSave = (params) => {
   return axios({
     url: '/salesReturnDetail/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('添加')
+    }
   })
 }
 //  销售退货详情 删除
@@ -24,6 +30,9 @@ export const salesReturnDetailDel = (params) => {
   return axios({
     url: `/salesReturnDetail/delete/${params.id}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }

+ 20 - 5
src/api/salesman.js

@@ -8,7 +8,10 @@ export const employeeList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 export const employeeAllList = (params) => {
@@ -16,7 +19,10 @@ export const employeeAllList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('业务员列表查询')
+    }
   })
 }
 // 新增/编辑业务员
@@ -24,7 +30,10 @@ export const employeeSave = params => {
   return axios({
     url: '/employee/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.id?'编辑':'新增')
+    }
   })
 }
 
@@ -33,7 +42,10 @@ export const employeeAudit = params => {
   return axios({
     url: `/employee/audit/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('审核')
+    }
   })
 }
 
@@ -42,6 +54,9 @@ export const employeeDetail = params => {
   return axios({
     url: `/employee/queryById/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('业务员详情')
+    }
   })
 }

+ 109 - 28
src/api/shelf.js

@@ -8,7 +8,10 @@ export const shelfList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('货架列表查询')
+    }
   })
 }
 //  货架  详情
@@ -16,7 +19,10 @@ export const shelfDetail = (params) => {
   return axios({
     url: `/shelf/queryBySn/${params.sn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('货架详情')
+    }
   })
 }
 // 货架产品导出
@@ -25,7 +31,10 @@ export const shelfProductExport = params => {
     url: '/shelfProduct/export',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 // 货架启用停用
@@ -33,7 +42,10 @@ export const shelfModifState = (params) => {
   return axios({
     url: `/shelf/modifState`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.state=="WRITE_OFF"?'注销':'启用停用')
+    }
   })
 }
 // 查询客户关联的货架
@@ -41,7 +53,10 @@ export const queryByCustomerSn = (params) => {
   return axios({
     url: `/shelf/queryByCustomerSn/${params.sn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('客户关联的货架')
+    }
   })
 }
 //待补货产品列表
@@ -49,7 +64,10 @@ export const queryListForReplenish = (params) => {
   return axios({
     url: `/shelf/queryListForReplenish`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('待补货产品列表')
+    }
   })
 }
 // 补货产品明细
@@ -57,7 +75,10 @@ export const queryProductListForReplenish = (params) => {
   return axios({
     url: `/shelf/queryProductListForReplenish `,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('补货产品明细')
+    }
   })
 }
 //  货架  保存
@@ -65,7 +86,10 @@ export const shelfSave = (params) => {
   return axios({
     url: `/shelf/save`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('编辑货架基础信息')
+    }
   })
 }
 //  货架  货位产品 列表 不分页
@@ -73,7 +97,10 @@ export const shelfProductList = (params) => {
   return axios({
     url: `/shelf/placeProduct/queryList`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('货位产品列表')
+    }
   })
 }
 //  货架  货位产品 详情
@@ -81,7 +108,10 @@ export const shelfProductDetail = (params) => {
   return axios({
     url: `/shelf/placeProduct/queryByPlaceSn/${params.shelfPlaceSn}`,
     data: params,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('货位产品详情')
+    }
   })
 }
 //  货架  货位产品 保存
@@ -89,7 +119,10 @@ export const shelfProductSave = (params) => {
   return axios({
     url: `/shelf/placeProduct/save`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.updateProductFlag ? '更换产品' : '绑定产品')
+    }
   })
 }
 // 禁用货架产品 
@@ -97,14 +130,20 @@ export const shelfProductEnable = (params) => {
   return axios({
     url: `/shelfProduct/updateEnableFlag`,
     data: params,
-    method: 'post'
+    method: 'post', 
+    headers:{
+      'module': encodeURIComponent(params.enableFlag==1?'启用':'禁用')
+    }
   })
 }
 // 获取价格显示
 export const getShelfPriceShow = (params) => {
   return axios({
     url: `/shelf/queryShelfPriceShowParam/${params.shelfSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('获取价格显示设置')
+    }
   })
 }
 // 更新价格显示
@@ -112,7 +151,10 @@ export const updateShelfPriceShow = (params) => {
   return axios({
     url: `/shelf/updateShelfPriceShowParam/${params.shelfSn}`,
     data: params.paramValue,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('更新价格显示设置')
+    }
   })
 }
 // 货架  货位产品 下载模板
@@ -136,7 +178,7 @@ export const shelfPlaceReadExcel = params => {
   return axios({
     url: '/shelf/place/readExcel',
     data: params,
-    method: 'post'
+    method: 'post',
   })
 }
 // POST 导出错误项
@@ -145,7 +187,10 @@ export const shelfPlaceFailExcel = params => {
     url: '/shelf/place/downloadFailExcel',
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出错误项')
+    }
   })
 }
 // 货架  货位产品  批量插入
@@ -153,7 +198,10 @@ export const shelfProductBatchInsert = params => {
   return axios({
     url: '/shelf/placeProduct/saveBatchExcel',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('导入货位产品')
+    }
   })
 }
 // 批量保存货位
@@ -161,7 +209,10 @@ export const shelfSaveBatchExcel = params => {
   return axios({
     url: '/shelf/place/saveBatchExcel',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量导入货位')
+    }
   })
 }
 // 货架 箭冠产品  分页
@@ -172,7 +223,10 @@ export const shelfDealerProductList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('货架产品(箭冠产品)列表查询')
+    }
   })
 }
 //  货架监控 列表 不分页
@@ -180,7 +234,10 @@ export const shelfControlList = (params) => {
   return axios({
     url: `/shelf/control/queryList`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('可调回产品列表')
+    }
   })
 }
 // 货架监控 出入库明细  分页
@@ -191,7 +248,10 @@ export const shelfPutOutDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('出入库明细列表')
+    }
   })
 }
 // 货架监控 导出
@@ -200,7 +260,10 @@ export const exportShelfControlReport = (params) => {
     url: `/shelf/control/export`,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }
 
@@ -209,7 +272,10 @@ export const modifFinishFlag = (params) => {
   return axios({
     url: `/shelf/modifFinishFlag`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('是否设置完成')
+    }
   })
 }
 
@@ -218,7 +284,10 @@ export const addPlaceAndProduct = (params) => {
   return axios({
     url: `/shelf/placeAndProduct/save`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent(params.id?'编辑货位':'新增货位')
+    }
   })
 }
 // 删除货位
@@ -226,7 +295,10 @@ export const delShelfPlaceSn = (params) => {
   return axios({
     url: `/shelf/place/deleteBySn/${params.shelfPlaceSn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('删除货位')
+    }
   })
 }
 
@@ -238,7 +310,10 @@ export const orderBillQueryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -268,7 +343,10 @@ export const queryShelfOrderReportPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -288,6 +366,9 @@ export const exportShelfOrderReport = (params) => {
     url: `/shelfOrderReport/exportShelfOrderReport`,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('导出')
+    }
   })
 }

+ 56 - 14
src/api/shelfRecall.js

@@ -8,7 +8,10 @@ export const shelfRecallList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  调回单详情列表
@@ -17,7 +20,10 @@ export const shelfRecallDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表')
+    }
   })
 }
 //  确认退库
@@ -26,7 +32,10 @@ export const warehouseCascadeList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('退库-确认退库')
+    }
   })
 }
 // 取消调回单
@@ -34,14 +43,20 @@ export const shelfRecallCancel = params => {
   return axios({
     url: '/shelfRecall/cancel',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('取消调回单')
+    }
   })
 }
 // 删除回调单
 export const shelfRecallDelete = params => {
   return axios({
     url: `/shelfRecall/delete/${params.recallBillSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 // 保存 调回单
@@ -49,7 +64,10 @@ export const shelfRecallSave = params => {
   return axios({
     url: '/shelfRecall/insert',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('新增调回单-确认调回')
+    }
   })
 }
 // 查询不同状态的数据条数
@@ -64,7 +82,10 @@ export const shelfRecallStateCount = (params) => {
 export const shelfRecallDetail = params => {
   return axios({
     url: `/shelfRecall/findBySn/${params.recallSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('调回单详情')
+    }
   })
 }
 
@@ -73,7 +94,10 @@ export const generateSaleReturnBill = params => {
   return axios({
     url: `/shelfRecall/generateSaleReturnBill`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('生成销售退货单')
+    }
   })
 }
 
@@ -85,14 +109,20 @@ export const recallStockList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('调回入库列表')
+    }
   })
 }
 // 调回入库信息
 export const recallrStockDetail = params => {
   return axios({
     url: `/stockPut/findBySn/${params.stockPutSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('调回入库详情')
+    }
   })
 }
 // 调回单入库明细列表
@@ -100,7 +130,10 @@ export const recallrStockDetailList = params => {
   return axios({
     url: `/stockPut/detail/query`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('调回入库明细列表')
+    }
   })
 }
 // 修改仓库仓位
@@ -108,7 +141,10 @@ export const updateSelective = (params) => {
   return axios({
     url: '/stockPut/detail/updateSelective',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('修改仓库仓位')
+    }
   })
 }
 // 确认入库
@@ -116,7 +152,10 @@ export const confirmPutStock = (params) => {
   return axios({
     url: '/shelfRecall/confirmPutStock',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('确认入库')
+    }
   })
 }
 // 待入库数量
@@ -124,6 +163,9 @@ export const stockPutCount = params => {
   return axios({
     url: '/shelfRecall/queryStockPutCount',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('待入库数量')
+    }
   })
 }

+ 77 - 20
src/api/shelfReplenish.js

@@ -4,15 +4,21 @@ import { axios } from '@/utils/request'
 export const queryListForSettle = (params) => {
   return axios({
     url: '/shelf/queryListForSettle',
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('货架列表')
+    }
   })
 }
-// 生成补货单
+// 生成补货单 (废弃)
 export const shelfTaskInsertBill = (params) => {
   return axios({
     url: '/shelfReplenish/taskInsertBill',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('生成补货单')
+    }
   })
 }
 //  补货单列表  有分页
@@ -23,7 +29,10 @@ export const shelfReplenishList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  补货单 明细列表 不分页
@@ -31,7 +40,10 @@ export const shelfReplenishDetailList = (params) => {
   return axios({
     url: '/shelfReplenish/detail/queryList',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表')
+    }
   })
 }
 // 保存补货单和明细
@@ -39,7 +51,10 @@ export const saveMainAndDetail = (params) => {
   return axios({
     url: '/shelfReplenish/saveMainAndDetail',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('创建补货单')
+    }
   })
 }
 // 出库单详情列表
@@ -47,14 +62,20 @@ export const queryListForOutStock = (params) => {
   return axios({
     url: '/shelfReplenish/detail/queryListForOutStock',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('出库单明细列表')
+    }
   })
 }
 // 查询关联的销售单
 export const queryRelationSalesBill = (params) => {
   return axios({
     url: `/shelfReplenish/queryRelationSalesBill/${params.replenishBillSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('查询关联的销售单')
+    }
   })
 }
 // 生成销售单
@@ -62,7 +83,10 @@ export const createSalesBill = (params) => {
   return axios({
     url: `/shelfReplenish/createSalesBill/${params.replenishBillSn}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('生成销售单')
+    }
   })
 }
 //  补货单 取消补货单
@@ -70,14 +94,20 @@ export const shelfReplenishCancel = (params) => {
   return axios({
     url: '/shelfReplenish/cancel',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('取消补货单')
+    }
   })
 }
 // 删除补货单
 export const shelfReplenishDelete = (params) => {
   return axios({
     url: `/shelfReplenish/delete/${params.replenishBillSn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 //  补货单 查询每个状态的数据条数
@@ -85,7 +115,10 @@ export const shelfReplenishStateCount = (params) => {
   return axios({
     url: '/shelfReplenish/queryStateCount',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('待补货数量')
+    }
   })
 }
 //  补货单 确认补货
@@ -93,7 +126,10 @@ export const shelfReplenishConfirm = (params) => {
   return axios({
     url: '/shelfReplenish/confirm',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('确认补货')
+    }
   })
 }
 //  补货单 检查补货单库存数量
@@ -101,7 +137,10 @@ export const shelfReplenishDetailStock = (params) => {
   return axios({
     url: '/shelfReplenish/detail/checkDetailStockQty',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('补货单库存数量')
+    }
   })
 }
 //  补货单  详情
@@ -111,7 +150,10 @@ export const shelfReplenishDetail = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('补货单详情')
+    }
   })
 }
 //  补货单 入库
@@ -119,7 +161,10 @@ export const shelfReplenishPutStock = (params) => {
   return axios({
     url: '/shelfReplenish/putStock',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('签收入库')
+    }
   })
 }
 //  补货单 出库
@@ -127,7 +172,10 @@ export const shelfReplenishOutStock = (params) => {
   return axios({
     url: '/shelfReplenish/outStock',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('出库')
+    }
   })
 }
 //  补货单 打印贴签
@@ -135,7 +183,10 @@ export const shelfReplenishPrintSign = (params) => {
   return axios({
     url: '/shelfReplenish/detail/printSign',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('打印贴签')
+    }
   })
 }
 
@@ -153,7 +204,10 @@ export const queryWaitReplenish = (params) => {
   return axios({
     url: '/shelfProduct/queryWaitReplenish',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('待补货产品列表')
+    }
   })
 }
 // 货架产品
@@ -161,6 +215,9 @@ export const queryShelfProduct = (params) => {
   return axios({
     url: '/shelfProduct/queryShelfProduct',
     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('出库')
+    }
   })
 }
 //  出库 批量出库
@@ -24,7 +30,10 @@ export const stockOutBatchOut = (params) => {
   return axios({
     url: '/stockOut/outBatch',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('批量出库')
+    }
   })
 }
 // 出入库明细
@@ -32,6 +41,9 @@ export const stockOutDetailList = (params) => {
   return axios({
     url: `/stockOut/detail/queryList`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('出库明细')
+    }
   })
 }

+ 28 - 7
src/api/urgent.js

@@ -8,7 +8,10 @@ export const urgentList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  急件 打印
@@ -16,7 +19,10 @@ export const urgentPrint = (params) => {
   return axios({
     url: '/urgent/print',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('打印')
+    }
   })
 }
 //  急件 打印预览
@@ -24,7 +30,10 @@ export const urgentPrintPreview = (params) => {
   return axios({
     url: '/urgent/printPreview',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('打印预览')
+    }
   })
 }
 //  急件 冲减
@@ -32,7 +41,10 @@ export const urgentWriteDown = (params) => {
   return axios({
     url: `/urgent/writeDownBySn/${params.urgentBillSn}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('冲减')
+    }
   })
 }
 //  急件 详情
@@ -40,14 +52,20 @@ export const urgentDetail = (params) => {
   return axios({
     url: `/urgent/findById/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('急件单详情')
+    }
   })
 }
 //  急件 详情  根据sn查
 export const urgentDetailSn = (params) => {
   return axios({
     url: `/urgent/findBySn/${params.sn}`,
-    method: 'get'
+    method: 'get',
+    headers:{
+      'module': encodeURIComponent('急件单详情')
+    }
   })
 }
 //  急件详情列表  有分页
@@ -58,6 +76,9 @@ export const urgentDetailList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('明细列表查询')
+    }
   })
 }

+ 20 - 5
src/api/vinLog.js

@@ -8,7 +8,10 @@ export const queryPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('VIN扫描纪录-列表查询')
+    }
   })
 }
 //  VIN扫描纪录 - 统计
@@ -24,7 +27,10 @@ export const queryDetail = (params) => {
   return axios({
     url: `/vinLog/queryScanVinLogDetail`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('VIN扫描纪录-查看详情')
+    }
   })
 }
 
@@ -34,7 +40,10 @@ export const exportVinLog = (params) => {
     url: `/vinLog/exportVinLog`,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('VIN扫描纪录-导出')
+    }
   })
 }
 
@@ -47,7 +56,10 @@ export const reportPage = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers:{
+      'module': encodeURIComponent('适配产品统计-列表查询')
+    }
   })
 }
 // 适配产品统计 - 导出
@@ -56,6 +68,9 @@ export const exportReport = (params) => {
     url: `/vinFitReport/exportReport`,
     data: params,
     method: 'post',
-    responseType: 'blob'
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('适配产品统计-导出')
+    }
   })
 }

+ 0 - 1
src/views/purchasingManagement/purchaseReturnOutSync/edit.vue

@@ -267,7 +267,6 @@ export default {
           for (var i = 0; i < data.list.length; i++) {
             data.list[i].no = no + i + 1
           }
-          this.dataSource = data.list
           this.disabled = false
           return data
         })