From 81f42ac21b3cd7e0f6a54fb8ef27f65501bbc94c Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期一, 10 十月 2022 16:50:52 +0800
Subject: [PATCH] 1.维修验证页面优化

---
 pages/sbgl/wxyz.html                                |   29 ++++++++++++-----------------
 unpackage/release/apk/H5EDA0853__20221010164720.apk |    0 
 unpackage/cache/wgt/H5EDA0853/pages/sbgl/wxyz.html  |   29 ++++++++++++-----------------
 3 files changed, 24 insertions(+), 34 deletions(-)

diff --git a/pages/sbgl/wxyz.html b/pages/sbgl/wxyz.html
index 2211185..ff65c09 100644
--- a/pages/sbgl/wxyz.html
+++ b/pages/sbgl/wxyz.html
@@ -230,7 +230,7 @@
 											{{messageDescr}}
 										</div>
 										<div v-show="fileList.length!==0" style="width: 96%;margin: auto;">
-											<van-uploader multiple v-model="fileList" multiple :max-count="3" />
+											<van-uploader  multiple :deletable='false' v-model="fileList" multiple :max-count="fileList.length" />
 										</div>
 
 									</div>
@@ -294,7 +294,7 @@
 											{{messageDescr3}}
 										</div>
 										<div v-show="fileList2.length!==0" style="width: 96%;margin: auto;">
-											<van-uploader multiple v-model="fileList2" multiple :max-count="3" />
+											<van-uploader :deletable='false' multiple v-model="fileList2" multiple :max-count="fileList2.length" />
 										</div>
 
 									</div>
@@ -392,15 +392,12 @@
 					messageDescr3: '', //鏇存崲澶囦欢
 					falseArray2: falseArray,
 					baseUrl: 'http://121.196.36.24:8001', //ip鍩虹鍦板潃
-					// resultValue: '', //楠岃瘉缁撴灉
 				}
 			},
 			watch: {
 				'topContent2.length': {
 					handler(newValue, oldValue) {
 						if (newValue !== oldValue) {
-							// this.topContent2 = topContent
-							// this.$forceUpdate()
 							if (topContent[0] && topContent[0].repair_code) {
 								this.$forceUpdate()
 								this.topContentClcik(topContent[0].repair_code, topContent[0].eqpcode, topContent[0]
@@ -477,6 +474,10 @@
 				arrowTypeChangeUp(repair_code) {
 					topContent.forEach(item => {
 						item.arrowType = true
+						// if (item.repair_code === repair_code) {
+						// 	// item.resultValue=
+						// 	item.arrowType = true
+						// }
 					})
 					this.$forceUpdate()
 				},
@@ -487,24 +488,18 @@
 						item.arrowType = true
 						if (item.repair_code === repair_code) {
 							item.arrowType = false
-							item.resultValue = ''
+							item.resultValue = item.resultValue?item.resultValue:''
 							this.messageDescr = ''
 							this.messageDescr2 = ''
 							this.messageDescr3 = ''
 							this.fileList = []
 							this.fileList2 = []
-							// this.resultValue =''
 							this.getDetail(item.repair_code, item.eqpcode, item.wksp_code)
 						}
 					})
 					this.$forceUpdate()
 				},
 				submit() {
-
-					// if(this.resultValue===''){
-					// return 
-					// }
-
 					const result = topContent.find(item => item.repair_code === radioValue)
 
 					const formData = new FormData()
@@ -541,7 +536,6 @@
 							item.resultValue = val
 						}
 					})
-					// this.resultValue = val
 					this.$forceUpdate()
 				},
 				topScanClick() {
@@ -568,11 +562,12 @@
 				topContentClcik(repair_code, eqpcode, wksp_code) {
 					radioValue = repair_code
 					// this.resultValue = ''
-					// topContent.forEach(item => {
-					// 	if (item.repair_code === repair_code) {
+					topContent.forEach(item => {
+						if (item.repair_code !== repair_code) {
+							item.resultValue=''
 					// 		this.getDetail(item.repair_code, item.eqpcode, item.wksp_code)
-					// 	}
-					// })
+						}
+					})
 
 					this.$forceUpdate()
 				},
diff --git a/unpackage/cache/wgt/H5EDA0853/pages/sbgl/wxyz.html b/unpackage/cache/wgt/H5EDA0853/pages/sbgl/wxyz.html
index 2211185..ff65c09 100644
--- a/unpackage/cache/wgt/H5EDA0853/pages/sbgl/wxyz.html
+++ b/unpackage/cache/wgt/H5EDA0853/pages/sbgl/wxyz.html
@@ -230,7 +230,7 @@
 											{{messageDescr}}
 										</div>
 										<div v-show="fileList.length!==0" style="width: 96%;margin: auto;">
-											<van-uploader multiple v-model="fileList" multiple :max-count="3" />
+											<van-uploader  multiple :deletable='false' v-model="fileList" multiple :max-count="fileList.length" />
 										</div>
 
 									</div>
@@ -294,7 +294,7 @@
 											{{messageDescr3}}
 										</div>
 										<div v-show="fileList2.length!==0" style="width: 96%;margin: auto;">
-											<van-uploader multiple v-model="fileList2" multiple :max-count="3" />
+											<van-uploader :deletable='false' multiple v-model="fileList2" multiple :max-count="fileList2.length" />
 										</div>
 
 									</div>
@@ -392,15 +392,12 @@
 					messageDescr3: '', //鏇存崲澶囦欢
 					falseArray2: falseArray,
 					baseUrl: 'http://121.196.36.24:8001', //ip鍩虹鍦板潃
-					// resultValue: '', //楠岃瘉缁撴灉
 				}
 			},
 			watch: {
 				'topContent2.length': {
 					handler(newValue, oldValue) {
 						if (newValue !== oldValue) {
-							// this.topContent2 = topContent
-							// this.$forceUpdate()
 							if (topContent[0] && topContent[0].repair_code) {
 								this.$forceUpdate()
 								this.topContentClcik(topContent[0].repair_code, topContent[0].eqpcode, topContent[0]
@@ -477,6 +474,10 @@
 				arrowTypeChangeUp(repair_code) {
 					topContent.forEach(item => {
 						item.arrowType = true
+						// if (item.repair_code === repair_code) {
+						// 	// item.resultValue=
+						// 	item.arrowType = true
+						// }
 					})
 					this.$forceUpdate()
 				},
@@ -487,24 +488,18 @@
 						item.arrowType = true
 						if (item.repair_code === repair_code) {
 							item.arrowType = false
-							item.resultValue = ''
+							item.resultValue = item.resultValue?item.resultValue:''
 							this.messageDescr = ''
 							this.messageDescr2 = ''
 							this.messageDescr3 = ''
 							this.fileList = []
 							this.fileList2 = []
-							// this.resultValue =''
 							this.getDetail(item.repair_code, item.eqpcode, item.wksp_code)
 						}
 					})
 					this.$forceUpdate()
 				},
 				submit() {
-
-					// if(this.resultValue===''){
-					// return 
-					// }
-
 					const result = topContent.find(item => item.repair_code === radioValue)
 
 					const formData = new FormData()
@@ -541,7 +536,6 @@
 							item.resultValue = val
 						}
 					})
-					// this.resultValue = val
 					this.$forceUpdate()
 				},
 				topScanClick() {
@@ -568,11 +562,12 @@
 				topContentClcik(repair_code, eqpcode, wksp_code) {
 					radioValue = repair_code
 					// this.resultValue = ''
-					// topContent.forEach(item => {
-					// 	if (item.repair_code === repair_code) {
+					topContent.forEach(item => {
+						if (item.repair_code !== repair_code) {
+							item.resultValue=''
 					// 		this.getDetail(item.repair_code, item.eqpcode, item.wksp_code)
-					// 	}
-					// })
+						}
+					})
 
 					this.$forceUpdate()
 				},
diff --git a/unpackage/release/apk/H5EDA0853__20221010164720.apk b/unpackage/release/apk/H5EDA0853__20221010164720.apk
new file mode 100644
index 0000000..680a5cf
--- /dev/null
+++ b/unpackage/release/apk/H5EDA0853__20221010164720.apk
Binary files differ

--
Gitblit v1.9.3