diff --git a/src/api/mes/wm/location.js b/src/api/mes/wm/location.js index 09fdb18..6238649 100644 --- a/src/api/mes/wm/location.js +++ b/src/api/mes/wm/location.js @@ -43,6 +43,30 @@ export function delLocation(locationId) { }) } +// 设置库区下所有库位是否允许产品混放 +export function setProductMixing(locationId, flag){ + return request({ + url: '/mes/wm/location/setProductMixing', + method: 'post', + params: { + 'locationId': locationId, + 'flag': flag + } + }) +} + +// 设置库区下所有库位是否允许批次混放 +export function setBatchMixing(locationId, flag){ + return request({ + url: '/mes/wm/location/setBatchMixing', + method: 'post', + params: { + 'locationId': locationId, + 'flag': flag + } + }) +} + //更改库区的冻结状态 export function changeFrozenState(locationId, status) { const data = { diff --git a/src/views/mes/wm/area/index.vue b/src/views/mes/wm/area/index.vue index f2d3cf7..cd8ef42 100644 --- a/src/views/mes/wm/area/index.vue +++ b/src/views/mes/wm/area/index.vue @@ -122,6 +122,16 @@ + + + + + +