From 7877f85776a5916372eb2c06292eb3684bd0c5f9 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Sat, 9 Nov 2024 15:04:26 +0800 Subject: [PATCH] =?UTF-8?q?11/9=20=E6=A0=B9=E6=8D=AE=E5=8F=96=E8=B4=A7?= =?UTF-8?q?=E6=9E=B6=E6=9F=A5=E7=9C=8B=E6=91=86=E8=B4=A7=E5=B1=82=E5=8F=8A?= =?UTF-8?q?=E8=B4=A7=E4=BD=8D1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basic/workPlace/SysWorkplaceLayer.js | 9 + src/components/ShelfDisplay/index.vue | 42 +++-- .../workplace/addWorkplaceFreightDialog.vue | 24 ++- src/views/basic/workplace/rackManage.vue | 178 ++++++++++++++++++ 4 files changed, 239 insertions(+), 14 deletions(-) create mode 100644 src/views/basic/workplace/rackManage.vue diff --git a/src/api/basic/workPlace/SysWorkplaceLayer.js b/src/api/basic/workPlace/SysWorkplaceLayer.js index 2da9230a..68c8f477 100644 --- a/src/api/basic/workPlace/SysWorkplaceLayer.js +++ b/src/api/basic/workPlace/SysWorkplaceLayer.js @@ -33,3 +33,12 @@ export function deleteLayer(query) { data: query }); } + + +export function getListByFreightCode(query) { + return axios({ + url: "/udiwms/WorkplaceLayer/getListByFreightCode", + method: "get", + params: query + }); +} diff --git a/src/components/ShelfDisplay/index.vue b/src/components/ShelfDisplay/index.vue index 1ddb6e19..e0bd4109 100644 --- a/src/components/ShelfDisplay/index.vue +++ b/src/components/ShelfDisplay/index.vue @@ -1,21 +1,27 @@ @@ -27,6 +33,10 @@ export default { type: Array, required: true, }, + freightCode:{ + type: Object, + required: true, + }, }, methods: { handleSlotClick(slot) { @@ -35,7 +45,7 @@ export default { }, }, created() { - this.shelfData = this.shelfData.sort((a, b) => a.row - b.row); + this.shelfData = this.shelfData.sort((a, b) => a.id - b.id); } }; @@ -57,4 +67,10 @@ export default { padding: 10px; /* Adjust padding as needed */ text-align: center; /* Center text inside the slot */ } +.centered-container { + display: flex; + align-items: center; /* 垂直居中 */ + justify-content: center; /* 水平居中 */ + /*height: 100px; !* 假设父容器的高度 *!*/ +} diff --git a/src/views/basic/workplace/addWorkplaceFreightDialog.vue b/src/views/basic/workplace/addWorkplaceFreightDialog.vue index a5bdc758..7d3c6599 100644 --- a/src/views/basic/workplace/addWorkplaceFreightDialog.vue +++ b/src/views/basic/workplace/addWorkplaceFreightDialog.vue @@ -67,6 +67,19 @@ > + + + + + + + + + + + + + +