11
This commit is contained in:
105
src/api/lpk/reservoorder.js
Normal file
105
src/api/lpk/reservoorder.js
Normal file
@@ -0,0 +1,105 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export default {
|
||||
|
||||
// 获取订单列表
|
||||
orderList: function(data) {
|
||||
return request({
|
||||
url: '/lpksreservoorder/orderList',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
},
|
||||
|
||||
// 获取所有门店
|
||||
getAllStore: function(data) {
|
||||
return request({
|
||||
url: '/lpkstore/getAllStore',
|
||||
method: 'delete',
|
||||
data: data
|
||||
});
|
||||
},
|
||||
|
||||
// 导出报表
|
||||
exportExcel: function(data) {
|
||||
return request({
|
||||
url: '/lpksreservoorder/exportExcel',
|
||||
method: 'post',
|
||||
responseType: 'blob', // 表明返回服务器返回的数据类型
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
// 获取配货列表
|
||||
distributionList: function(data) {
|
||||
return request({
|
||||
url: '/lpksreservoorder/orderListByStore',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
},
|
||||
|
||||
// 导出报表
|
||||
distributionExportExcel: function(data) {
|
||||
return request({
|
||||
url: '/lpksreservoorder/exportExcelByStore',
|
||||
method: 'post',
|
||||
responseType: 'blob', // 表明返回服务器返回的数据类型
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
// 获取支行汇总列表
|
||||
bankOrderList: function(data) {
|
||||
return request({
|
||||
url: '/lpksreservoorder/orderListByBank',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
},
|
||||
|
||||
// 导出支行报表
|
||||
bankOrderExportExcel: function(data) {
|
||||
return request({
|
||||
url: '/lpksreservoorder/exportExcelByBank',
|
||||
method: 'post',
|
||||
responseType: 'blob', // 表明返回服务器返回的数据类型
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 获取支行汇总列表
|
||||
ZOrderList: function(data) {
|
||||
return request({
|
||||
url: '/lpksreservoorder/orderListByZ',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
},
|
||||
|
||||
// 导出总报表
|
||||
allOrderExportExcel: function(data) {
|
||||
return request({
|
||||
url: '/lpksreservoorder/exportExcelByZ',
|
||||
method: 'post',
|
||||
responseType: 'blob', // 表明返回服务器返回的数据类型
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user