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.
117 lines
2.7 KiB
117 lines
2.7 KiB
import request from '@/utils/request'
|
|
|
|
export default {
|
|
|
|
// 查询分页列表
|
|
listPage: function(params) {
|
|
return request({
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/listPage',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
|
|
deleteBySids: function(data) {
|
|
return request({
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/delBySids',
|
|
method: 'DELETE',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
|
|
|
|
// 保存物流信息
|
|
saveLogisticsInfo: function(data) {
|
|
return request({
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
url: '/wms/v1/wmsinventoryallocatebilllogistics/saveLogisticsInfo',
|
|
method: 'post',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
});
|
|
},
|
|
// 新增、保存
|
|
save: function(data) {
|
|
return request({
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/save',
|
|
method: 'post',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
});
|
|
},
|
|
|
|
// 初始化
|
|
init: function(data) {
|
|
return request({
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/fetchDetailsBySid/' + data,
|
|
method: 'get'
|
|
});
|
|
},
|
|
|
|
// 调拨
|
|
allocation: function(data) {
|
|
return request({
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
url: '/wms/apiadmin/inventory/wmsinventoryallocatebill/submitApply',
|
|
method: 'post',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
});
|
|
},
|
|
|
|
|
|
// 查询所有商品
|
|
getGoods: function(params) {
|
|
return request({
|
|
// baseURL: "http://127.0.0.1:4523/m1/4061550-0-default",
|
|
url: '/wms/apiadmin/inventory/wmsinventory/alloGoodsListPage',
|
|
method: 'post',
|
|
data: params,
|
|
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,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
});
|
|
},
|
|
|
|
}
|
|
|