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