|
@@ -8,7 +8,10 @@ export const allocateBillList = (params) => {
|
|
|
return axios({
|
|
|
url: url,
|
|
|
data: params,
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('列表查询')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨退货抓单-选产品列表
|
|
@@ -19,7 +22,10 @@ export const allocDetailQueryPageForReturn = (params) => {
|
|
|
return axios({
|
|
|
url: url,
|
|
|
data: params,
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('可选产品列表查询')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -28,7 +34,10 @@ export const updateBatchDepartment = params => {
|
|
|
return axios({
|
|
|
url: '/allocateBill/detail/updateBatchDepartment',
|
|
|
data: params,
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('批量设置费用归属部门')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨管理 新增
|
|
@@ -36,7 +45,10 @@ export const allocateBillSave = params => {
|
|
|
return axios({
|
|
|
url: '/allocateBill/save',
|
|
|
data: params,
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('新增')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨管理 删除
|
|
@@ -44,7 +56,10 @@ export const allocateBillDel = params => {
|
|
|
return axios({
|
|
|
url: `/allocateBill/delete/${params.sn}`,
|
|
|
data: {},
|
|
|
- method: 'get'
|
|
|
+ method: 'get',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('删除')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨管理 详情
|
|
@@ -52,7 +67,10 @@ export const allocateBillDetail = params => {
|
|
|
return axios({
|
|
|
url: `/allocateBill/findBySn/${params.sn}`,
|
|
|
data: {},
|
|
|
- method: 'get'
|
|
|
+ method: 'get',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('查看详情')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨管理 审核
|
|
@@ -60,7 +78,10 @@ export const allocateBillAudit = params => {
|
|
|
return axios({
|
|
|
url: `/allocateBill/audit/${params.sn}/${params.state}`,
|
|
|
data: {},
|
|
|
- method: 'get'
|
|
|
+ method: 'get',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('审核')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 允许打印
|
|
@@ -68,7 +89,10 @@ export const allocateBillAblePrint = params => {
|
|
|
return axios({
|
|
|
url: `/allocateBill/ablePrint/${params.sn}`,
|
|
|
data: params,
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('允许打印')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 对单通过
|
|
@@ -76,7 +100,10 @@ export const allocateBillCheck = params => {
|
|
|
return axios({
|
|
|
url: `/allocateBill/check/${params.sn}`,
|
|
|
data: params,
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('对单通过')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨管理 提交
|
|
@@ -84,7 +111,10 @@ export const allocateBillSubmit = params => {
|
|
|
return axios({
|
|
|
url: `/allocateBill/submit`,
|
|
|
data: params,
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('提交')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨管理 导出
|
|
@@ -93,7 +123,10 @@ export const allocateBillExport = (params) => {
|
|
|
url: '/allocateBill/exportExcel',
|
|
|
data: params,
|
|
|
method: 'post',
|
|
|
- responseType: 'blob'
|
|
|
+ responseType: 'blob',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('导出')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨管理 明细 列表 分页
|
|
@@ -104,7 +137,10 @@ export const allocateBillDetailList = (params) => {
|
|
|
return axios({
|
|
|
url: url,
|
|
|
data: params,
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('明细列表查询')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨管理 明细 列表 合计
|
|
@@ -120,7 +156,10 @@ export const allocateBillDetailDel = params => {
|
|
|
return axios({
|
|
|
url: `/allocateBill/detail/delete/${params.id}`,
|
|
|
data: {},
|
|
|
- method: 'get'
|
|
|
+ method: 'get',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('删除')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨管理 详情 整单删除
|
|
@@ -128,7 +167,10 @@ export const allocateBillDetailDelAll = params => {
|
|
|
return axios({
|
|
|
url: `/allocateBill/detail/deleteAll/${params.sn}`,
|
|
|
data: {},
|
|
|
- method: 'get'
|
|
|
+ method: 'get',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('整单删除')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨管理 详情 保存
|
|
@@ -136,18 +178,25 @@ export const allocateBillDetailSave = params => {
|
|
|
return axios({
|
|
|
url: '/allocateBill/detail/save',
|
|
|
data: params,
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('修改数量或费用归属部门')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨管理 详情 打印
|
|
|
export const allocateBillDetailPrint = params => {
|
|
|
const url = `/allocateBill/print/${params.printType}`
|
|
|
+ const mid = params.printType.indexOf('_TYPE')>=0 ? '调拨分类打印' : '调拨打印'
|
|
|
delete params.printType
|
|
|
delete params.isPreview
|
|
|
return axios.request({
|
|
|
url: url,
|
|
|
data: params,
|
|
|
method: 'post',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent(mid)
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨管理 详情 打印 产品列表
|
|
@@ -181,7 +230,10 @@ export const allocateBillBatchInsert = params => {
|
|
|
return axios({
|
|
|
url: '/allocateBill/detail/batchInsert',
|
|
|
data: params,
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('导入产品')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨管理 导入产品 导出错误项
|
|
@@ -190,7 +242,10 @@ export const allocateBillFailExcel = (params) => {
|
|
|
url: '/allocateBill/detail/downloadFailExcel',
|
|
|
data: params,
|
|
|
method: 'post',
|
|
|
- responseType: 'blob'
|
|
|
+ responseType: 'blob',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('导出错误项')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨 详情 导出
|
|
@@ -199,7 +254,10 @@ export const allocateBillDetailExcel = (params) => {
|
|
|
url: `/allocateBill/detail/exportExcel/${params.printType}`,
|
|
|
data: params,
|
|
|
method: 'post',
|
|
|
- responseType: 'blob'
|
|
|
+ responseType: 'blob',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent(params.printType.indexOf('_TYPE')>=0?'调拨分类导出':'导出Excel')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
// 调拨 列表 更改(暂不打印、取消打印)打印状态
|
|
@@ -207,7 +265,10 @@ export const updatePrintState = params => {
|
|
|
return axios({
|
|
|
url: '/allocateBill/updatePrintState',
|
|
|
data: params,
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('更改打印状态')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -219,6 +280,9 @@ export const queryOverviewPage = (params) => {
|
|
|
return axios({
|
|
|
url: url,
|
|
|
data: params,
|
|
|
- method: 'post'
|
|
|
+ method: 'post',
|
|
|
+ headers:{
|
|
|
+ 'module': encodeURIComponent('列表查询')
|
|
|
+ }
|
|
|
})
|
|
|
}
|