You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.6 KiB
91 lines
2.6 KiB
import request from '@/utils/request'
|
|
|
|
export default {
|
|
// 查询分页列表
|
|
listPage: function(data) {
|
|
return request({
|
|
url: '/scm/v1/scmvehrebate/listPage',
|
|
method: 'post',
|
|
data: data,
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
},
|
|
// 查询不分页
|
|
listAll: function(data) {
|
|
return request({
|
|
url: '/scm/v1/scmvehrebate/listAll',
|
|
method: 'post',
|
|
data: data,
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
},
|
|
// 选择车辆信息--查询分页列表
|
|
pageList: function(data) {
|
|
return request({
|
|
url: '/base/v1/basevehicle/vehicleRebateList',
|
|
method: 'post',
|
|
data: data,
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
},
|
|
// 清空
|
|
clear: function(data) {
|
|
return request({
|
|
url: '/scm/v1/scmvehrebate/clear/' + data,
|
|
method: 'get'
|
|
})
|
|
},
|
|
// 删除
|
|
delete: function(params) {
|
|
return request({
|
|
url: '/scm/v1/scmvehrebate/delBySids',
|
|
method: 'DELETE',
|
|
data: params,
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
},
|
|
// 新增保存修改记录
|
|
save: function(data) {
|
|
return request({
|
|
url: '/scm/v1/scmvehrebate/save',
|
|
method: 'post',
|
|
data: data,
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
},
|
|
// 编辑保存修改记录
|
|
update: function(data) {
|
|
return request({
|
|
url: '/scm/v1/scmvehrebate/update',
|
|
method: 'post',
|
|
data: data,
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
},
|
|
// 通过sid查询一条记录
|
|
fetchBySid: function(data) {
|
|
return request({
|
|
url: '/scm/v1/scmvehrebate/fetchDetailsBySid/' + data,
|
|
method: 'get'
|
|
})
|
|
},
|
|
// 导出
|
|
exportExcel: function(data) {
|
|
return request({
|
|
url: '/scm/v1/scmvehrebate/excelList',
|
|
method: 'post',
|
|
data: data,
|
|
responseType: 'blob', // 表明返回服务器返回的数据类型
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
},
|
|
// 下载模板
|
|
downloadExcel: function() {
|
|
return request({
|
|
url: '/scm/v1/scmvehrebate/download',
|
|
method: 'post',
|
|
responseType: 'blob', // 表明返回服务器返回的数据类型
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
}
|
|
}
|
|
|