From b862802a59bf6a171e2dda75478f607766a1460c Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Fri, 15 Mar 2024 09:24:35 +0800 Subject: [PATCH] '123' --- .../api/storageLocation/storageConsuming.js | 37 ++ .../storageLocation/locationConsuming.vue | 388 ++++++++++++++++++ .../src/views/storageLocation/locationSet.vue | 23 +- 3 files changed, 438 insertions(+), 10 deletions(-) create mode 100644 ruoyi-ui/src/api/storageLocation/storageConsuming.js create mode 100644 ruoyi-ui/src/views/storageLocation/locationConsuming.vue 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,