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