From 018695fe70d8cd30661ea1a0cadb2e23cfe93213 Mon Sep 17 00:00:00 2001 From: zwq Date: Fri, 18 Mar 2022 09:49:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/processStorageLink.vue | 34 +++++++++---------- .../components/processStorageType.vue | 23 +++++++++---- 2 files changed, 33 insertions(+), 24 deletions(-) diff --git a/src/views/basicData/Warehouse/components/processStorageLink.vue b/src/views/basicData/Warehouse/components/processStorageLink.vue index cbc8de7..34c4116 100644 --- a/src/views/basicData/Warehouse/components/processStorageLink.vue +++ b/src/views/basicData/Warehouse/components/processStorageLink.vue @@ -2,7 +2,7 @@ * @Author: gtz * @Date: 2022-03-03 09:16:10 * @LastEditors: zwq - * @LastEditTime: 2022-03-17 10:56:14 + * @LastEditTime: 2022-03-18 09:25:04 * @Description: file content * @FilePath: \mt-ck-wms-ui\src\views\basicData\Warehouse\components\processStorageLink.vue --> @@ -151,17 +151,15 @@ }" />
StorageItem.id === z.portVoList[ (current - 1) * 80 + (item - 1) * 20 + (x - 1) ].id - ) - ? 'dashboard-layout-item-horn' - : '' - " + )" + class="dashboard-layout-item-horn" /> {{ z.portVoList[ @@ -282,17 +280,15 @@ }" />
StorageItem.id === z.portVoList[ (current - 1) * 80 + (item - 1) * 20 + (x - 1) ].id - ) - ? 'dashboard-layout-item-horn' - : '' - " + )" + class="dashboard-layout-item-horn" /> {{ z.portVoList[ @@ -376,17 +372,15 @@ }" />
StorageItem.id === z.portVoList[ (current - 1) * 80 + (item - 1) * 20 + (x - 1) ].id - ) - ? 'dashboard-layout-item-horn' - : '' - " + )" + class="dashboard-layout-item-horn" /> {{ z.portVoList[ @@ -457,7 +451,7 @@ export default { if (response.data.records) { this.StorageList = response.data.records } else { - this.StorageList.splice(0, this.list.length) + this.StorageList.splice(0, this.StorageList.length) } }) this.selectStorageList.splice(0, this.selectStorageList.length) @@ -476,9 +470,13 @@ export default { 1 ) } else { + const isExist = this.StorageList.some( + StorageItem => + StorageItem.id === item.id + ) this.typeVisible = true this.$nextTick(() => { - this.$refs.typeRef.init(item.id, item.name) + this.$refs.typeRef.init(item.id, item.name, item.attribute, isExist) }) } } diff --git a/src/views/basicData/Warehouse/components/processStorageType.vue b/src/views/basicData/Warehouse/components/processStorageType.vue index 9e0fcdc..006ee12 100644 --- a/src/views/basicData/Warehouse/components/processStorageType.vue +++ b/src/views/basicData/Warehouse/components/processStorageType.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2020-12-29 16:37:56 * @LastEditors: zwq - * @LastEditTime: 2022-03-16 09:47:01 + * @LastEditTime: 2022-03-18 09:39:09 * @Description: -->