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:
-->
@@ -18,9 +18,9 @@
label-position="left"
>
- Working Port
- Buffer Port
- Exception Port
+ Working Port
+ Buffer Port
+ Exception Port
@@ -41,6 +41,7 @@