From 0e5cc5f682866e32be324024a72f54d117eb6423 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 28 九月 2022 17:39:17 +0800
Subject: [PATCH] 1.设备维修申请静态页面开发完成

---
 pages/sbgl/rcdj.html |   67 ++++++++++++++++-----------------
 1 files changed, 33 insertions(+), 34 deletions(-)

diff --git a/pages/sbgl/rcdj.html b/pages/sbgl/rcdj.html
index a00c143..e68683f 100644
--- a/pages/sbgl/rcdj.html
+++ b/pages/sbgl/rcdj.html
@@ -19,19 +19,22 @@
 
 		<script type="text/javascript" src="../../js/common.js"></script>
 
+		<script type="text/javascript" src="../../js/global.js"></script>
+
 		<!-- <link rel="stylesheet" href="../../css/global.css" type="text/css" charset="utf-8" /> -->
 
 		<script type="text/javascript">
 			var topContent = [
+			
 				// {
-				// 	code: 'SB001',
+				// 	code: 'SB003',
 				// 	name: '榻胯疆绠辩粍',
 				// 	wksp_code: "CJ002",
 				// 	wksp_name: '瑁呴厤杞﹂棿',
 				// 	eqpchkmain_code: "djbz002"
 				// },
 				// {
-				// 	code: 'SB003',
+				// 	code: 'SB001',
 				// 	name: '榻胯疆绠辩粍',
 				// 	wksp_code: "CJ002",
 				// 	wksp_name: '瑁呴厤杞﹂棿',
@@ -139,7 +142,7 @@
 				}).then(res => {
 					if (res.code === '200') {
 						centerContent = res.data
-						centerContent = JSON.parse(JSON.stringify(centerContent))
+						// centerContent = JSON.parse(JSON.stringify(centerContent))
 						centerContent.forEach(item => {
 							item.isDisabled = item.isscan === 'Y'
 							item.inputValue = ''
@@ -344,19 +347,19 @@
 					immediate: true,
 				},
 
-				'topContent.length': {
-					handler(newValue, oldValue) {
-						if (newValue !== oldValue) {
-							this.$forceUpdate()
-							// if (topContent[0]&&topContent[0].code) {
-							// 	this.$forceUpdate()
-							// 	this.topContentClcik(topContent[0].code)
-							// }
-						}
-					},
-					deep: true,
-					immediate: true,
-				},
+				// 'topContent.length': {
+				// 	handler(newValue, oldValue) {
+				// 		if (newValue !== oldValue) {
+				// 			this.$forceUpdate()
+				// 			// if (topContent[0]&&topContent[0].code) {
+				// 			// 	this.$forceUpdate()
+				// 			// 	this.topContentClcik(topContent[0].code)
+				// 			// }
+				// 		}
+				// 	},
+				// 	deep: true,
+				// 	immediate: true,
+				// },
 				'number2.length': {
 					handler(newValue, oldValue) {
 						this.$forceUpdate()
@@ -364,13 +367,13 @@
 					deep: true,
 					immediate: true,
 				},
-				'number.length': {
-					handler(newValue, oldValue) {
-						this.$forceUpdate()
-					},
-					deep: true,
-					immediate: true,
-				},
+				// 'number.length': {
+				// 	handler(newValue, oldValue) {
+				// 		this.$forceUpdate()
+				// 	},
+				// 	deep: true,
+				// 	immediate: true,
+				// },
 			},
 			created() {},
 			mounted() {},
@@ -393,9 +396,6 @@
 						result: resultValue,
 						children: children
 					}
-
-					console.log(data, 1)
-
 					post('AppDeviceManage/AppDeviceCheckSave?username=' + localStorage.getItem('username'), data)
 						.then(res => {
 							if (res.code === '200') {
@@ -451,16 +451,10 @@
 						}
 					})
 				},
-
 				resultClick(val) {
 					resultValue = val
 					this.$forceUpdate()
 				},
-
-				selected(id) {
-					alert(id)
-				},
-
 				// 鎵弿鐐规宸ヤ綅鎵弿
 				topScanClick() {
 					createWithoutTitle('../../components/barcode_scan.html', {
@@ -498,7 +492,6 @@
 						}
 					});
 				},
-
 				// 閮ㄤ綅姝e父 寮傚父鎸夐挳鐐瑰嚮
 				bwClick(item, val) {
 					item.isOK = val
@@ -518,7 +511,13 @@
 					this.overlayShow = true
 				},
 				onSelect(action) {
-					vant.Toast(action.text);
+					if(action.text==='鎿嶄綔鎸囧'){
+						topPopoverClick('鎿嶄綔鎸囧')
+					}else if(action.text==='鎴愬搧杩芥函'){
+						topPopoverClick('鎴愬搧杩芥函')
+					}else if(action.text==='閫�鍑虹櫥褰�'){
+						topPopoverClick('閫�鍑虹櫥褰�')					
+					}
 					this.overlayShow = false
 				},
 			}

--
Gitblit v1.9.3