From 9c72071815347c493e08061971b1ceed27a6f37f Mon Sep 17 00:00:00 2001
From: z_yu <1534695664@qq.com>
Date: Tue, 16 Aug 2022 16:42:53 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=86=E9=9B=86=E6=9E=B6=E5=9B=A0=E4=B8=9A?=
=?UTF-8?q?=E5=8A=A1=E5=8E=9F=E5=9B=A0=EF=BC=8C=E6=9C=80=E5=90=8E2?=
=?UTF-8?q?=E5=88=97(9,10=E5=88=97)=E4=B8=BA=E6=88=98=E5=A4=87=E6=9F=9C?=
=?UTF-8?q?=EF=BC=8C=E4=B8=94=E5=B1=82=E6=95=B0=E5=8F=AA=E6=9C=895?=
=?UTF-8?q?=E5=B1=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../inStorage/module/inDialog.vue | 30 +++++++++++++++----
1 file changed, 25 insertions(+), 5 deletions(-)
diff --git a/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue b/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue
index d8acd84..729047f 100644
--- a/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue
+++ b/src/views/archivesManage/outInStorage/inStorage/module/inDialog.vue
@@ -29,25 +29,25 @@
列
-
+
节
-
+
层
-
+
方向
-
+
@@ -151,6 +151,7 @@ export default {
columnOptions: [], // 密集架-列,回转柜-列
partOptions: [], // 密集架-节
rowOptions: [], // 密集架-层,回转柜-层
+ rowNo: 1,
directionOptions: [
{ value: '1', label: '左边' },
{ value: '2', label: '右边' }
@@ -197,6 +198,7 @@ export default {
this.partOptions.push({ value: i, label: i })
}
this.rowOptions.splice(0, this.rowOptions.length)
+ this.rowNo = res.rowNo
for (let i = 1; i <= res.rowNo; i++) {
this.rowOptions.push({ value: i, label: i })
}
@@ -230,8 +232,26 @@ export default {
this.singleVisible = true
},
// 校验
- async selectChange(index) {
+ async selectChange(index, position) {
const obj = this.childData[index]
+ // 密集架因业务原因,最后2列(9,10列)为战备柜,且层数只有5层
+ // if (this.deviceType === 1 && position === 'col') {
+ // if (obj.colNum > 8) {
+ // if (obj.levelNum > 5) {
+ // this.childData[index].levelNum = ''
+ // obj.levelNum = ''
+ // }
+ // this.rowOptions.splice(0, this.rowOptions.length)
+ // for (let i = 1; i <= 5; i++) {
+ // this.rowOptions.push({ value: i, label: i })
+ // }
+ // } else {
+ // this.rowOptions.splice(0, this.rowOptions.length)
+ // for (let i = 1; i <= this.rowNo; i++) {
+ // this.rowOptions.push({ value: i, label: i })
+ // }
+ // }
+ // }
// let bool = 0
// for (const key in obj) { // 校验是否全部选择
// if (!obj[key]) {