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.
84 lines
1.7 KiB
84 lines
1.7 KiB
import request from '@/utils/request'
|
|
// 仓库区域 接口
|
|
export default {
|
|
|
|
// 查询分页列表
|
|
listPage: function(params) {
|
|
return request({
|
|
url: '/wms/apiadmin/warehousezone/listPage',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
|
|
// 区域查询
|
|
getAllWarehousezone: function(params) {
|
|
return request({
|
|
url: '/wms/apiadmin/warehousezone/listAll',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
|
|
|
|
// 根据仓库sid查询区域
|
|
getAllWarehousezoneBysid: function(params) {
|
|
return request({
|
|
url: '/wms/apiadmin/warehousezone/selectAll',
|
|
method: 'get',
|
|
params: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
|
|
|
|
// 修改是否可用状态
|
|
updateIsEnable: function(sid, isEnable) {
|
|
return request({
|
|
url: '/wms/apiadmin/warehousezone/updateIsEnable/' + sid + "/" + isEnable
|
|
});
|
|
},
|
|
|
|
|
|
// 新增、保存
|
|
saveWarehousezone: function(data) {
|
|
return request({
|
|
url: '/wms/apiadmin/warehousezone/saveOrUpdate',
|
|
method: 'post',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
});
|
|
},
|
|
|
|
// 初始化
|
|
initWarehousezone: function(data) {
|
|
return request({
|
|
url: '/wms/apiadmin/warehousezone/initialization/' + data,
|
|
method: 'get'
|
|
});
|
|
},
|
|
|
|
|
|
// 区域-- 删除
|
|
deleteBySids: function(data) {
|
|
return request({
|
|
url: '/wms/apiadmin/warehousezone/delBySids',
|
|
method: 'DELETE',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
},
|
|
|
|
}
|
|
|