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