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.
 
 
 
 
 
 

72 lines
1.7 KiB

import request from '@/utils/request'
export default {
// 查询分页列表
listPage: function(params) {
return request({
url: '/wms/apiadmin/WmsOldInventory/oldPageList',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
// 获取旧件出入库记录详情
init: function(data) {
return request({
url: '/wms/apiadmin/WmsOldInventory/getDetailsList?sid=' + data,
method: 'get'
})
},
deleteBySids: function(data) {
return request({
url: '/wms/apiadmin/WmsOldInventory/delBySids',
method: 'DELETE',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
// 导出报表
exportExcel: function(data) {
return request({
url: '/wms/apiadmin/WmsOldInventory/excelList',
method: 'post',
responseType: 'blob', // 表明返回服务器返回的数据类型
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
// 查询所有仓库
getWarehouses: function(params) {
return request({
url: '/wms/apiadmin/base/wmswarehouseinfo/listAll',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
// 根据仓库查询库区
getWarehouseareas: function(data) {
return request({
url: '/wms/apiadmin/base/wmswarehousearea/selectAll',
method: 'get',
params: data
})
},
// 根据库区查询库位
getAllRackByKQSid: function(data) {
return request({
url: '/wms/apiadmin/base/wmswarehouserack/getAllRackByKQSid',
method: 'get',
params: data
})
},
}