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.

76 lines
1.5 KiB

1 year ago
import request from '@/utils/request'
export default {
// 查询分页列表
listPage: function(params) {
return request({
url: '/wms/apiadmin/warehousearea/listPage',
1 year ago
method: 'post',
data: params,
})
},
// 库区查询
getAllWarehousearea: function(params) {
return request({
url: '/wms/apiadmin/warehousearea/listAll',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
1 year ago
})
},
// 根据仓库sid查询库区
getAllWarehouseareaBysid: function(params) {
return request({
url: '/wms/apiadmin//warehousearea/selectAll',
method: 'get',
params: params,
headers: {
'Content-Type': 'application/json'
}
})
},
1 year ago
// 修改是否可用状态
updateIsEnable: function(sid, isEnable) {
return request({
url: '/wms/apiadmin/warehousearea/updateIsEnable/' + sid + "/" + isEnable
});
1 year ago
},
// 新增、保存
saveWarehousearea: function(data) {
return request({
url: '/wms/apiadmin/warehousearea/saveOrUpdate',
1 year ago
method: 'post',
data: data
});
},
// 初始化
initWarehousearea: function(data) {
return request({
url: '/wms/apiadmin/warehousearea/initialization/' + data,
1 year ago
method: 'get'
});
},
// 库区-- 删除
deleteBySids: function(data) {
return request({
url: '/wms/apiadmin/warehousearea/delBySids',
method: 'DELETE',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
1 year ago
}