From 66630600d354a821e920c16c30aff588a0360dac Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Thu, 27 Nov 2025 17:48:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=9C=82=E9=B8=9F=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/deviceManage/map3d/map.vue | 1 + .../shelfManage/shelf3dPosition.vue | 50 +- .../visualCheck/bookstore/book/index2.vue | 488 ++++++++++++++++++ .../checkManage/dataScreening/shelfList.vue | 1 + 4 files changed, 521 insertions(+), 19 deletions(-) create mode 100644 src/views/visualCheck/bookstore/book/index2.vue diff --git a/src/views/deviceManage/map3d/map.vue b/src/views/deviceManage/map3d/map.vue index 0e6f5c6..a15d081 100644 --- a/src/views/deviceManage/map3d/map.vue +++ b/src/views/deviceManage/map3d/map.vue @@ -163,6 +163,7 @@ export default { console.log('name:', target?.name) console.log('FID:', target?.FID) this.areaFid = target?.FID + window.vueInstance.$emit('refreshAreaFid', this.areaFid) }, { passive: true }) this.map.on('mapInitError', (err) => { diff --git a/src/views/deviceManage/shelfManage/shelf3dPosition.vue b/src/views/deviceManage/shelfManage/shelf3dPosition.vue index 2c7694e..1171186 100644 --- a/src/views/deviceManage/shelfManage/shelf3dPosition.vue +++ b/src/views/deviceManage/shelfManage/shelf3dPosition.vue @@ -51,7 +51,7 @@ -
+
@@ -80,19 +80,20 @@ -
- FTZN-03-001-A-01-1 - FTZN-03-001-A-01-2 +
+ {{ item.name }} +
+
-
已选定位:模型ID【7069947319919185920】
-
已选架位:6
+
已选定位:模型ID【{{ currentFid }}】
+
已选架位:{{ filterShelfList.length }}
绑定
@@ -118,7 +119,7 @@
- +
@@ -159,13 +160,15 @@ export default { is3DMap: false, rackOptions: [], bindAllRackList: [], - bindAllInquiryList: [] + bindAllInquiryList: [], + filterShelfList: [], + currentFid: null } }, created() { FetchRegionTree().then(res => { this.regionTreeData = [this.transformData(res)] - console.log('regionTreeData', this.regionTreeData) + console.log(this.regionTreeData) this.$nextTick(() => { if (!this.regionTreeData[0].children?.length) return const targetFloor = this.regionTreeData[0].children.find(floor => floor.children?.length > 0) @@ -242,11 +245,11 @@ export default { } FetchMapDetails(params).then(res => { this.mapData = res + console.log('this.mapData', this.mapData) this.$nextTick(() => { if (this.$refs.map) { this.$refs.map.dispose() } - console.log('this.mapData', this.mapData) if (this.currentTreeNode.mapLevel) { this.$refs.map.level = Number(this.currentTreeNode.mapLevel) } else { @@ -298,16 +301,25 @@ export default { getInitBookShelfList(data) { const params = { 'floorId': data.parentFloorId, 'regionId': data.regionId } FetchInitBookShelfList(params).then(res => { - this.layerOptions = res.content.map(item => { - return { - name: item.shelfName, - id: item.shelfId, - toward: item.toward, - rowType: item.rowType - } - }) + if (res.content.length === 0) { + this.layerOptions = [] + this.rackOptions = [] + } else { + this.layerOptions = res.content.map(item => { + return { + name: item.shelfName, + id: item.shelfId, + toward: item.toward, + rowType: item.rowType + } + }) + } }).catch(() => { }) + }, + handleAreaFid(areaFid) { + this.currentFid = areaFid + console.log('mapAreaFid', areaFid) } } } diff --git a/src/views/visualCheck/bookstore/book/index2.vue b/src/views/visualCheck/bookstore/book/index2.vue new file mode 100644 index 0000000..9614d90 --- /dev/null +++ b/src/views/visualCheck/bookstore/book/index2.vue @@ -0,0 +1,488 @@ + + + + + diff --git a/src/views/visualCheck/checkManage/dataScreening/shelfList.vue b/src/views/visualCheck/checkManage/dataScreening/shelfList.vue index ac815d6..98e9187 100644 --- a/src/views/visualCheck/checkManage/dataScreening/shelfList.vue +++ b/src/views/visualCheck/checkManage/dataScreening/shelfList.vue @@ -357,6 +357,7 @@ export default { // this.$refs.eform.formVisible = true this.$refs.eform.form.shelfId = this.bookShelfDetails.id this.$refs.eform.form.stockRegion = this.floorName + '-' + this.regionName + '-' + this.bookShelfDetails.shelfName + this.$refs.eform.form.toward = parseInt(this.tabIndex) + 1 this.$refs.eform.setData(type) }, doExport(type) {