| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  | import { voiceService } from '../common/service/voiceService'; | 
					
						
							|  |  |  | import router from '@ohos.router'; | 
					
						
							|  |  |  | import { carConfigurationInfo, uploadExamCarCheckResult } from '../api/checkCar'; | 
					
						
							| 
									
										
										
										
											2024-06-04 12:08:32 +08:00
										 |  |  | import TopLogo from './compontents/TopLogo'; | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  | import testNapi from '@ohos.hiserialsdk'; | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  | import { dateFormat } from '../common/utils/tools'; | 
					
						
							| 
									
										
										
										
											2024-07-02 11:39:46 +08:00
										 |  |  | import { DwMapData, PassData, RealNumData, StackValueData, WarnFlagData, WarnFlagTipData } from '../mock'; | 
					
						
							| 
									
										
										
										
											2025-03-24 15:14:13 +08:00
										 |  |  | import FileUtil from '../common/utils/File'; | 
					
						
							|  |  |  | import { GlobalConfig } from '../config'; | 
					
						
							|  |  |  | import common from '@ohos.app.ability.common'; | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | @Entry | 
					
						
							|  |  |  | @Component | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  | export default struct Index { | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   @State angle: number = 0 | 
					
						
							| 
									
										
										
										
											2024-05-16 09:53:10 +08:00
										 |  |  |   @State ratio: number = 1700 / 960 | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   @State index: number = -1 | 
					
						
							|  |  |  |   @State time: string = '' | 
					
						
							|  |  |  |   @State msg: string = '' | 
					
						
							|  |  |  |   @State zjMsg: string = '' | 
					
						
							|  |  |  |   @State zjFlag: boolean = false | 
					
						
							|  |  |  |   @State loading: boolean = false | 
					
						
							|  |  |  |   @State breakFlag: boolean = false | 
					
						
							|  |  |  |   @State checkFlag: boolean = false | 
					
						
							|  |  |  |   @State msgFlag: boolean = false | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  |   @State confirmDialogFlag: boolean = false | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   @State checkList: Array<any> = [] | 
					
						
							|  |  |  |   @State subFlag: boolean = true | 
					
						
							|  |  |  |   @State signArr: Array<any> = [] | 
					
						
							|  |  |  |   @State checkListCopy: Array<any> = [] | 
					
						
							| 
									
										
										
										
											2024-07-02 11:39:46 +08:00
										 |  |  |   @State warnFlag: object = WarnFlagData | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   @State @Watch('outClick') outFlag: boolean = false; | 
					
						
							| 
									
										
										
										
											2024-07-02 11:39:46 +08:00
										 |  |  |   @State passArray: object = PassData | 
					
						
							|  |  |  |   @State stachValue: object = StackValueData | 
					
						
							|  |  |  |   @State warnFlagTip: object = WarnFlagTipData | 
					
						
							|  |  |  |   @State realNum: object = RealNumData | 
					
						
							|  |  |  |   @State dwMap: object = DwMapData | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   @State fd: number = -1; | 
					
						
							| 
									
										
										
										
											2024-05-16 09:53:10 +08:00
										 |  |  |   @State devPath: string = "/dev/ttyS3" | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  |   @State stopFlag: boolean = false | 
					
						
							| 
									
										
										
										
											2024-10-28 13:47:03 +08:00
										 |  |  |   @State fromIndex: boolean = false | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  |   private vocObj = null; | 
					
						
							| 
									
										
										
										
											2025-03-24 15:14:13 +08:00
										 |  |  |   private context = getContext(this) as common.UIAbilityContext; | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   // private AccountTable = new AccountTable(()=>{},CommonConstants); | 
					
						
							| 
									
										
										
										
											2025-01-02 11:01:09 +08:00
										 |  |  |   aboutToAppear() { | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |     const that = this | 
					
						
							|  |  |  |     this.vocObj = new voiceService(async (status, val, next) => { | 
					
						
							|  |  |  |       if (!that.breakFlag) { | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |         return | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |       if (status == 'idle') { | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |         if (val == 'kszj.wav') { | 
					
						
							| 
									
										
										
										
											2024-03-12 15:32:48 +08:00
										 |  |  |           console.log('finsh') | 
					
						
							| 
									
										
										
										
											2024-08-12 09:28:12 +08:00
										 |  |  |           this.initfackCheck(0) | 
					
						
							|  |  |  |           // this.getCheckList(true) | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |         } else { | 
					
						
							|  |  |  |           this.subFlag = false | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |           this.getNextNode() | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }); | 
					
						
							| 
									
										
										
										
											2024-10-28 13:47:03 +08:00
										 |  |  |     let routParam: any = router.getParams(); | 
					
						
							|  |  |  |     this.fromIndex=routParam?.fromIndex || false | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |     this.carConfigurationInfoFn() | 
					
						
							| 
									
										
										
										
											2024-06-04 11:30:44 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   openChuankouFn() { | 
					
						
							| 
									
										
										
										
											2024-05-29 10:13:37 +08:00
										 |  |  |     console.log('SerialOpen in carcheck, path=' + this.devPath) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |     this.fd = testNapi.SerialOpen(this.devPath); | 
					
						
							|  |  |  |     let parity = 0x4e; // 'N' | 
					
						
							|  |  |  |     let ret = testNapi.SerialSet(this.fd, 115200, 0, 8, 1, parity); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   getChuankouFn() { | 
					
						
							| 
									
										
										
										
											2024-05-16 09:53:10 +08:00
										 |  |  |     let timeout = 50000; // 2秒超时 | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |     let databuff = [0x61, 0xAA, 0x0A, 0X15, 0X00]; // send ABCDE | 
					
						
							| 
									
										
										
										
											2024-05-16 09:53:10 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |     let ret = testNapi.SerialSend(this.fd, databuff); | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  |     console.log('mmmm', ret) | 
					
						
							| 
									
										
										
										
											2024-05-09 13:42:56 +08:00
										 |  |  |     let revTestInfo = testNapi?.SerialRecv(this.fd, timeout); | 
					
						
							| 
									
										
										
										
											2024-05-16 09:53:10 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  |     console.log('revTestInfo', revTestInfo.recevedBuf.length) | 
					
						
							| 
									
										
										
										
											2024-05-16 09:53:10 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-05-09 13:42:56 +08:00
										 |  |  |     const message = revTestInfo?.recevedBuf?.toString() | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  |     console.log('chuankou', this.index, message) | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |     if (message == '') { | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  |       this.stopFlag = true | 
					
						
							| 
									
										
										
										
											2024-05-09 13:42:56 +08:00
										 |  |  |       return | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     const msg = message?.split(',') | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  |     if (!msg?.length) { | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |       return | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |     if (msg[0] != '98' || msg[1] != '85' || msg.length < 9) { | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |       return | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  |     globalThis.chuankoMsg = msg[9] | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |     if (msg[9] == this.dwMap[this.index]) { | 
					
						
							|  |  |  |       this.warnFlag[this.index] = '2' | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   async xhxs() { | 
					
						
							|  |  |  |     this.vocObj.avPlayerStop() | 
					
						
							|  |  |  |     this.vocObj.releasePlayer() | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |     router.pushUrl({ | 
					
						
							| 
									
										
										
										
											2024-03-12 15:32:48 +08:00
										 |  |  |       url: 'pages/SignDisplay', | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |     }, router.RouterMode.Single); | 
					
						
							| 
									
										
										
										
											2024-08-08 18:09:06 +08:00
										 |  |  |     this.stachValue = JSON.parse(JSON.stringify(StackValueData)) | 
					
						
							|  |  |  |     this.warnFlag = JSON.parse(JSON.stringify(WarnFlagData)) | 
					
						
							|  |  |  |     this.passArray = JSON.parse(JSON.stringify(PassData)) | 
					
						
							| 
									
										
										
										
											2024-05-16 09:53:10 +08:00
										 |  |  |     // clearInterval(this.interval) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-05-09 13:42:56 +08:00
										 |  |  |   // | 
					
						
							| 
									
										
										
										
											2025-03-24 15:14:13 +08:00
										 |  |  |  async carConfigurationInfoFn() { | 
					
						
							|  |  |  |     const fileUtil = new FileUtil(this.context) | 
					
						
							|  |  |  |     const checkListStr = await fileUtil.readFile(GlobalConfig.comoonfileWriteAddress + '/config/carcheck.txt'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     if (checkListStr === '' || checkListStr === undefined) { | 
					
						
							|  |  |  |       //模拟真实数据 | 
					
						
							|  |  |  |       const param = { | 
					
						
							|  |  |  |         "body": | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |           "carIdString": globalThis.carInfo.carId, //考车ID | 
					
						
							|  |  |  |           "deviceNo": globalThis.deviceNo | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       carConfigurationInfo(param).then(res => { | 
					
						
							|  |  |  |         // @ts-ignore | 
					
						
							|  |  |  |         console.log('ES_CHECK_CAR_ITEM',JSON.stringify(res.body)) | 
					
						
							|  |  |  |         // @ts-ignore | 
					
						
							|  |  |  |         if(res?.body?.ES_CHECK_CAR_ITEM){ | 
					
						
							|  |  |  |           // @ts-ignore | 
					
						
							|  |  |  |           const data = res.body.ES_CHECK_CAR_ITEM[0].ITEMS.split(';'); | 
					
						
							|  |  |  |           this.checkList = [] | 
					
						
							|  |  |  |           const list = data | 
					
						
							|  |  |  |           list.map(res => { | 
					
						
							|  |  |  |             const arr = res.split(':') | 
					
						
							|  |  |  |             this.checkList.push({ | 
					
						
							|  |  |  |               'key': parseInt(arr[0]) + 2, 'time': arr[1] | 
					
						
							|  |  |  |             }) | 
					
						
							|  |  |  |           }) | 
					
						
							|  |  |  |           this.checkListCopy = JSON.parse(JSON.stringify(this.checkList)) | 
					
						
							|  |  |  |         }else{ | 
					
						
							|  |  |  |           const str = "1:5;2:5;3:5;4:5;5:5;6:5;7:5;8:5;9:5;10:5;11:5;12:5;13:5;14:5;15:5;16:5;17:5;18:5;19:5;20:5;21:5;22:2;23:5;24:5" | 
					
						
							|  |  |  |           const data = str.split(';') | 
					
						
							|  |  |  |           this.checkList = [] | 
					
						
							|  |  |  |           const list = data | 
					
						
							|  |  |  |           list.map(res => { | 
					
						
							|  |  |  |             const arr = res.split(':') | 
					
						
							|  |  |  |             this.checkList.push({ | 
					
						
							|  |  |  |               'key': parseInt(arr[0]) + 2, 'time': arr[1] | 
					
						
							|  |  |  |             }) | 
					
						
							|  |  |  |           }) | 
					
						
							|  |  |  |           this.checkListCopy = JSON.parse(JSON.stringify(this.checkList)) | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       }).catch((error) => { | 
					
						
							|  |  |  |         console.log('error12error' + error) | 
					
						
							|  |  |  |         const str = "1:5;2:5;3:5;4:5;5:5;6:5;7:5;8:5;9:5;10:5;11:5;12:5;13:5;14:5;15:5;16:5;17:5;18:5;19:5;20:5;21:5;22:2;23:5;24:5" | 
					
						
							|  |  |  |         const data = str.split(';') | 
					
						
							|  |  |  |         this.checkList = [] | 
					
						
							|  |  |  |         const list = data | 
					
						
							|  |  |  |         list.map(res => { | 
					
						
							|  |  |  |           const arr = res.split(':') | 
					
						
							|  |  |  |           this.checkList.push({ | 
					
						
							|  |  |  |             'key': parseInt(arr[0]) + 2, 'time': arr[1] | 
					
						
							|  |  |  |           }) | 
					
						
							|  |  |  |         }) | 
					
						
							|  |  |  |         this.checkListCopy = JSON.parse(JSON.stringify(this.checkList)) | 
					
						
							|  |  |  |       }) | 
					
						
							|  |  |  |     }else { | 
					
						
							|  |  |  |       const data = checkListStr.split(';') | 
					
						
							| 
									
										
										
										
											2024-07-02 11:39:46 +08:00
										 |  |  |       this.checkList = [] | 
					
						
							|  |  |  |       const list = data | 
					
						
							|  |  |  |       list.map(res => { | 
					
						
							|  |  |  |         const arr = res.split(':') | 
					
						
							|  |  |  |         this.checkList.push({ | 
					
						
							|  |  |  |           'key': parseInt(arr[0]) + 2, 'time': arr[1] | 
					
						
							|  |  |  |         }) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |       }) | 
					
						
							| 
									
										
										
										
											2024-07-02 11:39:46 +08:00
										 |  |  |       this.checkListCopy = JSON.parse(JSON.stringify(this.checkList)) | 
					
						
							|  |  |  |       return | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-02 11:39:46 +08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   async kszj() { | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |     this.breakFlag = true | 
					
						
							| 
									
										
										
										
											2024-07-02 11:39:46 +08:00
										 |  |  |     this.stachValue = StackValueData | 
					
						
							|  |  |  |     this.warnFlag = WarnFlagData | 
					
						
							|  |  |  |     this.passArray = PassData | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |     this.checkListCopy = JSON.parse(JSON.stringify(this.checkList)) | 
					
						
							| 
									
										
										
										
											2024-08-08 18:09:06 +08:00
										 |  |  |     this.stachValue = JSON.parse(JSON.stringify(StackValueData)) | 
					
						
							|  |  |  |     this.warnFlag = JSON.parse(JSON.stringify(WarnFlagData)) | 
					
						
							|  |  |  |     this.passArray = JSON.parse(JSON.stringify(PassData)) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |     this.index = this.checkListCopy[0].key | 
					
						
							|  |  |  |     this.vocObj.playAudio({ | 
					
						
							|  |  |  |       type: 1, | 
					
						
							|  |  |  |       name: 'kszj.wav' | 
					
						
							|  |  |  |     }) | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   getPLCInfo() { | 
					
						
							|  |  |  |     const that = this | 
					
						
							| 
									
										
										
										
											2024-07-29 08:56:01 +08:00
										 |  |  |     globalThis.udpClient.onMessage_1 && globalThis.udpClient.onMessage_1((msg) => { | 
					
						
							| 
									
										
										
										
											2024-08-08 18:09:06 +08:00
										 |  |  |       console.log('getUDPonMessage_1byCarCheck2') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |       if (!this.breakFlag) { | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |       const stachArr = msg.split(',') | 
					
						
							|  |  |  |       if (stachArr[0] != '#DN_GD') { | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |       this.signArr = stachArr | 
					
						
							|  |  |  |       const dw = [14, 15, 16, 17, 18, 19, 20]; | 
					
						
							|  |  |  |       const dwArr = [14, 15, 16, 17, 18, 19, 20] | 
					
						
							| 
									
										
										
										
											2024-05-16 09:53:10 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  |       if (dwArr.indexOf(this.index) >= 0) { | 
					
						
							| 
									
										
										
										
											2024-05-16 09:53:10 +08:00
										 |  |  |         if (stachArr[28] == this.dwMap[this.index]) { | 
					
						
							|  |  |  |           this.warnFlag[this.index] = '2' | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |       } | 
					
						
							| 
									
										
										
										
											2024-05-16 09:53:10 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |       if (this.subFlag) { | 
					
						
							|  |  |  |         //进项目 | 
					
						
							|  |  |  |         that.stachValue[that.index] = that.signArr[that.realNum[that.index]] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |       if (this.index == 26) { | 
					
						
							|  |  |  |         //关闭所有灯光 | 
					
						
							|  |  |  |         if (that.signArr[2] != '0' || that.signArr[3] != '0' || that.signArr[7] != '0' || that.signArr[8] != '0') { | 
					
						
							|  |  |  |         } else { | 
					
						
							|  |  |  |           this.warnFlag[26] = '2' | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       if (that.index == 10 || that.index == 11 || that.index == 12 || that.index == 13) { | 
					
						
							|  |  |  |         if (that.signArr[that.realNum[that.index]] != '1200') { | 
					
						
							|  |  |  |           that.warnFlag[that.index] = '2' | 
					
						
							|  |  |  |         } else { | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       if (this.warnFlagTip[that.index].length > 1) { | 
					
						
							|  |  |  |         if (that.stachValue[that.index] != that.signArr[that.realNum[that.index]]) { | 
					
						
							|  |  |  |           that.warnFlag[that.index] = '2' | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |       if (!Array.isArray(that.realNum[that.index])) { | 
					
						
							|  |  |  |         if (dw.indexOf(that.index) >= 0) { | 
					
						
							|  |  |  |           that.warnFlag[that.index] = (that.signArr[28] == that.dwMap[that.index] ? '2' : '0') | 
					
						
							|  |  |  |           return | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |         if (that.signArr[that.realNum[that.index]] !== '0') { | 
					
						
							|  |  |  |           that.warnFlag[that.index] = '2' | 
					
						
							|  |  |  |         } else { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }) | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   stopCheck() { | 
					
						
							|  |  |  |     this.breakFlag = false | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |   getNextNode() { | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |     setTimeout(() => { | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |       if (this.warnFlag[this.index] != '2') { | 
					
						
							|  |  |  |         this.warnFlag[this.index] = '1' | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  |         this.warnFlag = JSON.parse(JSON.stringify(this.warnFlag)) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |       } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |       if (!this.breakFlag) { | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |         return | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |       this.checkListCopy.splice(0, 1) | 
					
						
							|  |  |  |       if (this.checkListCopy.length) { | 
					
						
							|  |  |  |         this.getCheckList() | 
					
						
							|  |  |  |       } else { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         this.zjFlag = true | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |         let flag = false | 
					
						
							|  |  |  |         for (let item in this.warnFlag) { | 
					
						
							|  |  |  |           if (this.warnFlag[item] == '1') { | 
					
						
							|  |  |  |             flag = true | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |         this.vocObj.playAudio({ | 
					
						
							|  |  |  |           type: 1, | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |           name: flag ? 'zjwtg.wav' : 'zjtg.wav' | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |         }) | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |         if (globalThis.singlePlay) { | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |           return | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |         let date = new Date(); | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |         const data = { | 
					
						
							|  |  |  |           time: dateFormat(date), | 
					
						
							|  |  |  |           carId: globalThis.carInfo.carId, | 
					
						
							|  |  |  |           examinationRoomId: globalThis.carInfo.examinationRoomId, | 
					
						
							|  |  |  |           plateNo: globalThis.carInfo.plateNo, | 
					
						
							|  |  |  |           flag: flag ? 'N' : 'Y', | 
					
						
							|  |  |  |           condition: flag ? '自检不通过' : '自检通过' | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |         } | 
					
						
							| 
									
										
										
										
											2024-10-28 13:47:03 +08:00
										 |  |  |         if(!flag&&this.fromIndex||true){ | 
					
						
							|  |  |  |           router.pushUrl({ | 
					
						
							|  |  |  |             url: 'pages/ExaminerLogin', | 
					
						
							|  |  |  |           }, router.RouterMode.Single); | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |         this.stopCheck() | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |         uploadExamCarCheckResult(data).then((res) => { | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |         }) | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }, parseInt(this.checkListCopy[0].time) * 1000) | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-08-12 09:28:12 +08:00
										 |  |  |   initfackCheck(index){ | 
					
						
							|  |  |  |     const that=this | 
					
						
							|  |  |  |       setTimeout(()=>{ | 
					
						
							|  |  |  |         console.log('indexindex',index) | 
					
						
							|  |  |  |           if(index>=3){ | 
					
						
							|  |  |  |             this.getCheckList() | 
					
						
							|  |  |  |             return | 
					
						
							|  |  |  |           } | 
					
						
							| 
									
										
										
										
											2024-12-24 16:43:59 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |         console.log('this.index',index,) | 
					
						
							| 
									
										
										
										
											2024-08-12 09:28:12 +08:00
										 |  |  |         that.passArray[index]=true | 
					
						
							| 
									
										
										
										
											2024-12-24 16:43:59 +08:00
										 |  |  |         if(index==2){ | 
					
						
							|  |  |  |           let flag=false | 
					
						
							|  |  |  |           console.log('globalThis.spzd[key]',globalThis.spzd) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           for(let key in globalThis.spzd){ | 
					
						
							|  |  |  |             console.log('globalThis.spzd[key]',globalThis.spzd[key]) | 
					
						
							|  |  |  |             if(globalThis.spzd[key]){ | 
					
						
							|  |  |  |               that.warnFlag[index]='1' | 
					
						
							|  |  |  |               flag=true | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |           if(!flag){ | 
					
						
							|  |  |  |             that.warnFlag[index]='2' | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }else{ | 
					
						
							|  |  |  |           that.warnFlag[index]='2' | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2024-08-12 09:28:12 +08:00
										 |  |  |         that.passArray=JSON.parse(JSON.stringify(that.passArray)) | 
					
						
							|  |  |  |         that.warnFlag=JSON.parse(JSON.stringify(that.warnFlag)) | 
					
						
							|  |  |  |         index++ | 
					
						
							|  |  |  |         this.initfackCheck(index) | 
					
						
							|  |  |  |       },1000) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-12 09:28:12 +08:00
										 |  |  |   } | 
					
						
							|  |  |  |   async getCheckList() { | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |     this.index = this.checkListCopy[0].key | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |     this.passArray[this.index] = true | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  |     this.passArray = JSON.parse(JSON.stringify(this.passArray)) | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |     this.subFlag = true | 
					
						
							|  |  |  |     if (this.warnFlagTip[this.index].length == 1) { | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |       this.vocObj.playAudio({ | 
					
						
							|  |  |  |         type: 1, | 
					
						
							|  |  |  |         name: this.warnFlagTip[this.index][0], | 
					
						
							|  |  |  |       }) | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |     } else if (this.warnFlagTip[this.index].length == 2) { | 
					
						
							|  |  |  |       if (this.signArr[this.realNum[this.index]] && this.signArr[this.realNum[this.index]] != '0') { | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |         this.vocObj.playAudio({ | 
					
						
							|  |  |  |           type: 1, | 
					
						
							|  |  |  |           name: this.warnFlagTip[this.index][1], | 
					
						
							|  |  |  |         }) | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |       } else { | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |         this.vocObj.playAudio({ | 
					
						
							|  |  |  |           type: 1, | 
					
						
							|  |  |  |           name: this.warnFlagTip[this.index][0], | 
					
						
							|  |  |  |         }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   outClick() { | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  |     this.vocObj && this.vocObj.releasePlayer() | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |     this.breakFlag = false | 
					
						
							| 
									
										
										
										
											2024-08-08 18:09:06 +08:00
										 |  |  |     this.stachValue = JSON.parse(JSON.stringify(StackValueData)) | 
					
						
							|  |  |  |     this.warnFlag = JSON.parse(JSON.stringify(WarnFlagData)) | 
					
						
							|  |  |  |     this.passArray = JSON.parse(JSON.stringify(PassData)) | 
					
						
							| 
									
										
										
										
											2024-05-16 09:53:10 +08:00
										 |  |  |     // clearInterval(this.interval) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   build() { | 
					
						
							|  |  |  |     Column() { | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |       TopLogo({ outFlag: $outFlag }).margin({ bottom: 25.5 * this.ratio }) | 
					
						
							|  |  |  |       Flex({ justifyContent: FlexAlign.SpaceBetween }) { | 
					
						
							|  |  |  |         Column() { | 
					
						
							|  |  |  |           Row() { | 
					
						
							| 
									
										
										
										
											2024-05-09 13:42:56 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |             Image(this.passArray[0] ? (this.warnFlag[0] == '0' ? $r('app.media.cheliangmoxing') : (this.warnFlag[0] == '1' ? $r('app.media.cheliangmoxing_r') : $r('app.media.cheliangmoxing_g'))) : $r('app.media.cheliangmoxing')) | 
					
						
							|  |  |  |               .width(138.5 * this.ratio) | 
					
						
							|  |  |  |               .height(112.5 * this.ratio) | 
					
						
							| 
									
										
										
										
											2024-08-12 09:28:12 +08:00
										 |  |  |             Image(this.passArray[0] ? (this.warnFlag[1] == '0' ? $r('app.media.weixingxinhao') : (this.warnFlag[1] == '1' ? $r('app.media.weixingxinhao_r') : $r('app.media.weixingxinhao_g'))) : $r('app.media.weixingxinhao')) | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |               .width(138.5 * this.ratio) | 
					
						
							|  |  |  |               .height(112.5 * this.ratio) | 
					
						
							|  |  |  |             Image(this.passArray[2] ? (this.warnFlag[2] == '0' ? $r('app.media.shipinjiankong') : (this.warnFlag[2] == '1' ? $r('app.media.shipingjiankong_r') : $r('app.media.shipinjiankong_g'))) : $r('app.media.shipinjiankong')) | 
					
						
							|  |  |  |               .width(138.5 * this.ratio) | 
					
						
							|  |  |  |               .height(112.5 * this.ratio) | 
					
						
							|  |  |  |             Image(this.passArray[3] ? (this.warnFlag[3] == '0' ? $r('app.media.anquandai') : (this.warnFlag[3] == '1' ? $r('app.media.anquandai_r') : $r('app.media.anquandai_g'))) : $r('app.media.anquandai')) | 
					
						
							|  |  |  |               .width(138.5 * this.ratio) | 
					
						
							|  |  |  |               .height(112.5 * this.ratio) | 
					
						
							|  |  |  |             Image(this.passArray[4] ? (this.warnFlag[4] == '0' ? $r('app.media.liheqi') : (this.warnFlag[4] == '1' ? $r('app.media.liheqi_r') : $r('app.media.leheqi_g'))) : $r('app.media.liheqi')) | 
					
						
							|  |  |  |               .width(138.5 * this.ratio) | 
					
						
							|  |  |  |               .height(112.5 * this.ratio) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |           } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |           Row() { | 
					
						
							|  |  |  |             Image(this.passArray[5] ? (this.warnFlag[5] == '0' ? $r('app.media.shousha') : (this.warnFlag[5] == '1' ? $r('app.media.shousha_r') : $r('app.media.shousha_g'))) : $r('app.media.shousha')) | 
					
						
							|  |  |  |               .width(138.5 * this.ratio) | 
					
						
							|  |  |  |               .height(112.5 * this.ratio) | 
					
						
							|  |  |  |             Image(this.passArray[6] ? (this.warnFlag[6] == '0' ? $r('app.media.jiaosha') : (this.warnFlag[6] == '1' ? $r('app.media.jiaosha_r') : $r('app.media.jiaosha_g'))) : $r('app.media.jiaosha')) | 
					
						
							|  |  |  |               .width(138.5 * this.ratio) | 
					
						
							|  |  |  |               .height(112.5 * this.ratio) | 
					
						
							|  |  |  |             Image(this.passArray[7] ? (this.warnFlag[7] == '0' ? $r('app.media.chemen') : (this.warnFlag[7] == '1' ? $r('app.media.chemen_r') : $r('app.media.chemeen_g'))) : $r('app.media.chemen')) | 
					
						
							|  |  |  |               .width(138.5 * this.ratio) | 
					
						
							|  |  |  |               .height(112.5 * this.ratio) | 
					
						
							|  |  |  |             Image(this.passArray[8] ? (this.warnFlag[8] == '0' ? $r('app.media.fusha') : (this.warnFlag[8] == '1' ? $r('app.media.fusha_r') : $r('app.media.fusha_g'))) : $r('app.media.fusha')) | 
					
						
							|  |  |  |               .width(138.5 * this.ratio) | 
					
						
							|  |  |  |               .height(112.5 * this.ratio) | 
					
						
							|  |  |  |             Image(this.passArray[9] ? (this.warnFlag[9] == '0' ? $r('app.media.dianhuo') : (this.warnFlag[9] == '1' ? $r('app.media.dianhuo_r') : $r('app.media.dianhuo_g'))) : $r('app.media.dianhuo')) | 
					
						
							|  |  |  |               .width(138.5 * this.ratio) | 
					
						
							|  |  |  |               .height(112.5 * this.ratio) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |         if (this.breakFlag) { | 
					
						
							|  |  |  |           Column() { | 
					
						
							|  |  |  |             Image($r('app.media.open_loading')) | 
					
						
							|  |  |  |               .width(100 * this.ratio) | 
					
						
							|  |  |  |               .rotate({ angle: this.angle }) | 
					
						
							|  |  |  |               .height(100 * this.ratio) | 
					
						
							|  |  |  |               .animation({ | 
					
						
							|  |  |  |                 duration: 5000, // 动画时长 | 
					
						
							|  |  |  |                 curve: Curve.EaseOut, // 动画曲线 | 
					
						
							|  |  |  |                 delay: 500, // 动画延迟 | 
					
						
							|  |  |  |                 iterations: -1, // 播放次数 | 
					
						
							|  |  |  |                 playMode: PlayMode.Normal, // 动画模式 | 
					
						
							|  |  |  |               }) | 
					
						
							|  |  |  |             Text('等待检测…').fontSize(24 * this.ratio).fontColor('#FFB133').margin({ top: 35 * this.ratio }) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |           }.align(Alignment.Center).flexGrow(1) | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |       Flex({ justifyContent: FlexAlign.SpaceBetween }) { | 
					
						
							|  |  |  |         Row() { | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |           //绕车 | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |           Column() { | 
					
						
							|  |  |  |             Row() { | 
					
						
							|  |  |  |               Image(this.warnFlag[10] == '1' ? $r('app.media.zq_r') : this.warnFlag[10] == '2' ? $r('app.media.zq') : '') | 
					
						
							|  |  |  |                 .width(102 * this.ratio) | 
					
						
							|  |  |  |                 .height(118.5 * this.ratio) | 
					
						
							|  |  |  |                 .visibility(this.passArray[10] ? Visibility.Visible : Visibility.Hidden) | 
					
						
							|  |  |  |               Image(this.warnFlag[11] == '1' ? $r('app.media.yq_r') : this.warnFlag[11] == '2' ? $r('app.media.yq') : '') | 
					
						
							|  |  |  |                 .width(102 * this.ratio) | 
					
						
							|  |  |  |                 .height(118.5 * this.ratio) | 
					
						
							|  |  |  |                 .visibility(this.passArray[11] ? Visibility.Visible : Visibility.Hidden) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |             } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |             Row() { | 
					
						
							|  |  |  |               Image(this.warnFlag[12] == '1' ? $r('app.media.zh_r') : this.warnFlag[12] == '2' ? $r('app.media.zh') : '') | 
					
						
							|  |  |  |                 .width(103 * this.ratio) | 
					
						
							|  |  |  |                 .height(118.5 * this.ratio) | 
					
						
							|  |  |  |                 .visibility(this.passArray[12] ? Visibility.Visible : Visibility.Hidden) | 
					
						
							|  |  |  |               Image(this.warnFlag[13] == '1' ? $r('app.media.yh_r') : this.warnFlag[13] == '2' ? $r('app.media.yh') : '') | 
					
						
							|  |  |  |                 .width(103 * this.ratio) | 
					
						
							|  |  |  |                 .height(118.5 * this.ratio) | 
					
						
							|  |  |  |                 .visibility(this.passArray[13] ? Visibility.Visible : Visibility.Hidden) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |             } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |           } | 
					
						
							|  |  |  |           .backgroundImage($r('app.media.rc')) | 
					
						
							|  |  |  |           .backgroundImageSize({ width: '100%', height: '100%' }) | 
					
						
							|  |  |  |           .width(206 * this.ratio) | 
					
						
							|  |  |  |           .height(235.5 * this.ratio) | 
					
						
							| 
									
										
										
										
											2024-06-04 11:19:22 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |           //档位 | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |           Column() { | 
					
						
							|  |  |  |             Image(this.warnFlag[14] == '1' ? $r('app.media.1_r') : this.warnFlag[14] == '2' ? $r('app.media.1') : '') | 
					
						
							|  |  |  |               .width(44.5 * this.ratio) | 
					
						
							|  |  |  |               .height(44.5 * this.ratio) | 
					
						
							|  |  |  |               .position({ x: 25 * this.ratio, y: 57 * this.ratio }) | 
					
						
							|  |  |  |               .visibility(this.passArray[14] ? Visibility.Visible : Visibility.Hidden) | 
					
						
							|  |  |  |             Image(this.warnFlag[16] == '1' ? $r('app.media.3_r') : this.warnFlag[16] == '2' ? $r('app.media.3') : '') | 
					
						
							|  |  |  |               .width(44.5 * this.ratio) | 
					
						
							|  |  |  |               .height(44.5 * this.ratio) | 
					
						
							|  |  |  |               .position({ x: 82.5 * this.ratio, y: 57 * this.ratio }) | 
					
						
							|  |  |  |               .visibility(this.passArray[16] ? Visibility.Visible : Visibility.Hidden) | 
					
						
							|  |  |  |             Image(this.warnFlag[18] == '1' ? $r('app.media.5_r') : this.warnFlag[18] == '2' ? $r('app.media.5') : '') | 
					
						
							|  |  |  |               .width(44.5 * this.ratio) | 
					
						
							|  |  |  |               .height(44.5 * this.ratio) | 
					
						
							|  |  |  |               .position({ x: 139.5 * this.ratio, y: 57 * this.ratio }) | 
					
						
							|  |  |  |               .visibility(this.passArray[18] ? Visibility.Visible : Visibility.Hidden) | 
					
						
							|  |  |  |             Image(this.warnFlag[15] == '1' ? $r('app.media.2_r') : this.warnFlag[15] == '2' ? $r('app.media.2') : '') | 
					
						
							|  |  |  |               .width(44.5 * this.ratio) | 
					
						
							|  |  |  |               .height(44.5 * this.ratio) | 
					
						
							|  |  |  |               .position({ x: 25 * this.ratio, y: 173.5 * this.ratio }) | 
					
						
							|  |  |  |               .visibility(this.passArray[15] ? Visibility.Visible : Visibility.Hidden) | 
					
						
							|  |  |  |             Image(this.warnFlag[17] == '1' ? $r('app.media.4_r') : this.warnFlag[17] == '2' ? $r('app.media.4') : '') | 
					
						
							|  |  |  |               .width(44.5 * this.ratio) | 
					
						
							|  |  |  |               .height(44.5 * this.ratio) | 
					
						
							|  |  |  |               .position({ x: 82.5 * this.ratio, y: 173.5 * this.ratio }) | 
					
						
							|  |  |  |               .visibility(this.passArray[17] ? Visibility.Visible : Visibility.Hidden) | 
					
						
							|  |  |  |             Image(this.warnFlag[19] == '1' ? $r('app.media.R_r') : this.warnFlag[19] == '2' ? $r('app.media.R') : '') | 
					
						
							|  |  |  |               .width(44.5 * this.ratio) | 
					
						
							|  |  |  |               .height(44.5 * this.ratio) | 
					
						
							|  |  |  |               .position({ x: 139.5 * this.ratio, y: 173.5 * this.ratio }) | 
					
						
							|  |  |  |               .visibility(this.passArray[19] ? Visibility.Visible : Visibility.Hidden) | 
					
						
							|  |  |  |             Image(this.warnFlag[20] == '1' ? $r('app.media.N_r') : this.warnFlag[20] == '2' ? $r('app.media.N') : '') | 
					
						
							|  |  |  |               .width(44.5 * this.ratio) | 
					
						
							|  |  |  |               .height(44.5 * this.ratio) | 
					
						
							|  |  |  |               .position({ x: 82.5 * this.ratio, y: 115.5 * this.ratio }) | 
					
						
							|  |  |  |               .visibility(this.passArray[20] ? Visibility.Visible : Visibility.Hidden) | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |           .backgroundImage($r('app.media.dw')) | 
					
						
							|  |  |  |           .backgroundImageSize({ width: '100%', height: '100%' }) | 
					
						
							|  |  |  |           .width(206 * this.ratio) | 
					
						
							|  |  |  |           .height(235.5 * this.ratio) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Column() { | 
					
						
							|  |  |  |             Row() { | 
					
						
							|  |  |  |               Image(this.passArray[21] ? (this.warnFlag[21] == '0' ? $r('app.media.zuo') : (this.warnFlag[21] == '1' ? $r('app.media.zuo_r') : $r('app.media.zuo_g'))) : $r('app.media.zuo')) | 
					
						
							|  |  |  |                 .width(138.5 * this.ratio) | 
					
						
							|  |  |  |                 .height(81.5 * this.ratio) | 
					
						
							|  |  |  |               Image(this.passArray[22] ? (this.warnFlag[22] == '0' ? $r('app.media.you') : (this.warnFlag[22] == '1' ? $r('app.media.you_r') : $r('app.media.you_g'))) : $r('app.media.you')) | 
					
						
							|  |  |  |                 .width(138.5 * this.ratio) | 
					
						
							|  |  |  |                 .height(81.5 * this.ratio) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |             } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |             Row() { | 
					
						
							|  |  |  |               Image(this.passArray[23] ? (this.warnFlag[23] == '0' ? $r('app.media.zuo1') : (this.warnFlag[23] == '1' ? $r('app.media.yuanguangdeng_r') : $r('app.media.yuanguangdeng_g'))) : $r('app.media.zuo1')) | 
					
						
							|  |  |  |                 .width(138.5 * this.ratio) | 
					
						
							|  |  |  |                 .height(81.5 * this.ratio) | 
					
						
							|  |  |  |               Image(this.passArray[24] ? (this.warnFlag[24] == '0' ? $r('app.media.jinguangdeng') : (this.warnFlag[24] == '1' ? $r('app.media.jinguangdeng_r') : $r('app.media.jinguangdeng_g'))) : $r('app.media.jinguangdeng')) | 
					
						
							|  |  |  |                 .width(138.5 * this.ratio) | 
					
						
							|  |  |  |                 .height(81.5 * this.ratio) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |             } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |             Row() { | 
					
						
							|  |  |  |               Image(this.passArray[25] ? (this.warnFlag[25] == '0' ? $r('app.media.guzhang') : (this.warnFlag[25] == '1' ? $r('app.media.guzhang_r') : $r('app.media.guzhang_g'))) : $r('app.media.guzhang')) | 
					
						
							|  |  |  |                 .width(138.5 * this.ratio) | 
					
						
							|  |  |  |                 .height(81.5 * this.ratio) | 
					
						
							|  |  |  |               Image(this.passArray[26] ? (this.warnFlag[26] == '0' ? $r('app.media.jinzhi') : (this.warnFlag[26] == '1' ? $r('app.media.jinzhi_r') : $r('app.media.jinzhi_g'))) : $r('app.media.jinzhi')) | 
					
						
							|  |  |  |                 .width(138.5 * this.ratio) | 
					
						
							|  |  |  |                 .height(81.5 * this.ratio) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |         Column() { | 
					
						
							|  |  |  |           if (this.breakFlag) { | 
					
						
							|  |  |  |             Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |             .width(215 * this.ratio) | 
					
						
							|  |  |  |             .height(64 * this.ratio) | 
					
						
							|  |  |  |             .margin({ bottom: 10 * this.ratio }) | 
					
						
							|  |  |  |             .onClick(() => { | 
					
						
							|  |  |  |             }) | 
					
						
							|  |  |  |             .zIndex(11) | 
					
						
							|  |  |  |           } else { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |             Image($r('app.media.xhxs_btn')) | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |               .width(215 * this.ratio) | 
					
						
							|  |  |  |               .height(64 * this.ratio) | 
					
						
							|  |  |  |               .backgroundImage($r('app.media.button_nor')) | 
					
						
							|  |  |  |               .backgroundImageSize({ width: '100%', height: '100%' }) | 
					
						
							|  |  |  |               .margin({ bottom: 10 * this.ratio }) | 
					
						
							|  |  |  |               .onClick(() => { | 
					
						
							| 
									
										
										
										
											2024-05-16 09:53:10 +08:00
										 |  |  |                 console.log('xhsx') | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |                 this.xhxs() | 
					
						
							|  |  |  |               }) | 
					
						
							|  |  |  |               .zIndex(11) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Image($r('app.media.tczj_btn')) | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |             .width(215 * this.ratio) | 
					
						
							|  |  |  |             .height(64 * this.ratio) | 
					
						
							|  |  |  |             .backgroundImage($r('app.media.button_nor')) | 
					
						
							|  |  |  |             .backgroundImageSize({ width: '100%', height: '100%' }) | 
					
						
							|  |  |  |             .margin({ bottom: 10 * this.ratio }) | 
					
						
							|  |  |  |             .onClick(() => { | 
					
						
							|  |  |  |               this.stopCheck() | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |             }) | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |             .zIndex(11) | 
					
						
							|  |  |  |           Image($r('app.media.kszj_btn')) | 
					
						
							|  |  |  |             .width(215 * this.ratio) | 
					
						
							|  |  |  |             .height(64 * this.ratio) | 
					
						
							|  |  |  |             .backgroundImage($r('app.media.anniu_nor')) | 
					
						
							|  |  |  |             .backgroundImageSize({ width: '100%', height: '100%' }) | 
					
						
							|  |  |  |             .margin({ bottom: 10 * this.ratio }) | 
					
						
							|  |  |  |             .onClick(() => { | 
					
						
							|  |  |  |               this.kszj() | 
					
						
							|  |  |  |               this.getPLCInfo() | 
					
						
							|  |  |  |               setTimeout(() => { | 
					
						
							|  |  |  |                 this.angle = 360 | 
					
						
							|  |  |  |               }, 1000) | 
					
						
							|  |  |  |             }) | 
					
						
							|  |  |  |             .zIndex(11) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |         } | 
					
						
							|  |  |  |       }.width('100%') | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2024-02-23 15:23:48 +08:00
										 |  |  |     .height('100%') | 
					
						
							|  |  |  |     .width('100%') | 
					
						
							|  |  |  |     .backgroundImage($r('app.media.bg')) | 
					
						
							|  |  |  |     .backgroundImageSize({ width: '100%', height: '100%' }) | 
					
						
							| 
									
										
										
										
											2024-01-05 11:11:15 +08:00
										 |  |  |   } | 
					
						
							|  |  |  | } |