瀏覽代碼

日志记录

lilei 1 年之前
父節點
當前提交
4f4a4b4349

+ 1 - 1
public/version.json

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

+ 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('门店认证详情')
+    }
   })
 }

+ 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('入库审核')
+    }
   })
 }
 //  入库 详情  有分页
@@ -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('修改入库数量')
+    }
   })
 }

+ 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('待入库数量')
+    }
   })
 }

+ 69 - 18
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('打印贴签')
+    }
   })
 }
 

+ 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
         })