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 @@ > + + + + + + + + + + + + + +