diff --git a/ruoyi-ui/src/api/storageLocation/storageConsuming.js b/ruoyi-ui/src/api/storageLocation/storageConsuming.js new file mode 100644 index 0000000..61fd134 --- /dev/null +++ b/ruoyi-ui/src/api/storageLocation/storageConsuming.js @@ -0,0 +1,37 @@ +import request from '@/utils/request' + +// 获取库位信息 +export function listStorageLocation(query) { + return request({ + url: '/storageLocation/storageLocation/list', + method: 'get', + params: query + }) +} + +// 录入库位信息 +export function addStorageLocation(data) { + return request({ + url: '/storageLocation/storageLocation', + method: 'post', + data: data + }) +} + +// 校验库位是否已占用 +export function checkStorageLocation(data) { + return request({ + url: '/storageLocation/storageLocation/checkStorageLocation', + method: 'post', + data: data + }) +} + +// 弹窗取消按钮 清除库位缓存 +export function cancelStorageLocation(data) { + return request({ + url: '/storageLocation/storageLocation/cancelStorageLocation', + method: 'post', + data: data + }) +} diff --git a/ruoyi-ui/src/views/storageLocation/locationConsuming.vue b/ruoyi-ui/src/views/storageLocation/locationConsuming.vue new file mode 100644 index 0000000..504120d --- /dev/null +++ b/ruoyi-ui/src/views/storageLocation/locationConsuming.vue @@ -0,0 +1,388 @@ + + + diff --git a/ruoyi-ui/src/views/storageLocation/locationSet.vue b/ruoyi-ui/src/views/storageLocation/locationSet.vue index ef533a3..48205ff 100644 --- a/ruoyi-ui/src/views/storageLocation/locationSet.vue +++ b/ruoyi-ui/src/views/storageLocation/locationSet.vue @@ -16,13 +16,13 @@ - + {{item.materialBh}} - + @@ -30,28 +30,28 @@ 空闲 - 已用 + 占用 - + {{item.materialXingh}} - + {{item.materialGuig}} - + {{item.materialDiany}} - + @@ -77,7 +77,7 @@ 空闲 - 已用 + 占用 @@ -124,7 +124,7 @@ 空闲 - 已用 + 占用 @@ -203,7 +203,6 @@ .kw{ font-size: 15px;color: black;font-weight: bold } - /*卡片内容滚动条设置*/ ::-webkit-scrollbar { display: none; /* Chrome Safari */ @@ -244,6 +243,10 @@ name: "locationSet", data() { return { + + //label样式 + labelStyle: { 'width': '100px' }, + queryParams: { materialBh: null, materialXingh: null,