Просмотр исходного кода

挂号预约,APP消息提醒的详情页修改

miaofuhao 1 год назад
Родитель
Сommit
edbd4d7844

+ 1 - 1
CallCenterWeb.UI/RMYYAPP/manifest.json

@@ -2,7 +2,7 @@
2 2
     "name" : "郑州人民医院综合服务保障调度平台",
3 3
     "appid" : "__UNI__5A5207D",
4 4
     "description" : "",
5
-    "versionName" : "1.2.93",
5
+    "versionName" : "1.2.94",
6 6
     "versionCode" : 180,
7 7
     "transformPx" : false,
8 8
     /* 5+App特有相关 */

+ 1 - 1
CallCenterWeb.UI/RMYYAPP/pages/login/login.vue

@@ -5,7 +5,7 @@
5 5
 			<view class="header">
6 6
 				<image @click="logShow" :src="logoImage"></image>
7 7
 			</view>
8
-			<!-- 主体表单 -->
8
+			<!-- 主体表单 --> 
9 9
 			<view class="main">
10 10
 				<wInput v-model="phoneData" type="text" maxlength="11" placeholder="账号" :focus="isFocus"></wInput>
11 11
 				<wInput v-model="passData" type="password" maxlength="110" placeholder="密码" isShowPass></wInput>

+ 8 - 0
CallCenterWeb.UI/RMYYAPP/pages/myTask/repairList/repairDetail/finishDetail/finishDetail.vue

@@ -139,6 +139,14 @@
139 139
 			}
140 140
 		},
141 141
 		onLoad(option) {
142
+			// console.log(JSON.parse(getCurrentPages()))
143
+			if(getCurrentPages().length > 0 ){
144
+				getCurrentPages().forEach((e)=>{
145
+					console.log(e)
146
+					// console.log(JSON.parse(e))
147
+					// console.log(JSON.stringify(e))
148
+				})
149
+			}
142 150
 			this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem'
143 151
 			this.valiFormData.workorderid = option.wid
144 152
 			this.showBeforePic = option.showBeforePic

+ 75 - 44
CallCenterWeb.UI/RMYYAPP/pages/myTask/workOrderDetail/workOrderDetail.vue

@@ -423,53 +423,84 @@
423 423
 				}
424 424
 			}
425 425
 		},
426
-		async onLoad(optioin) {
426
+		onShow(){
427
+			const pages = getCurrentPages();
428
+			const currentPage = pages[pages.length - 1];
429
+			const routeParams = currentPage.options;
430
+			
431
+			// let fullPath = `${currentPage.route}`;
432
+			// console.log(fullPath)
433
+			// if(fullPath === '/pages/myTask/workOrderDetail/workOrderDetail'){
434
+			// 	if (Object.keys(routeParams).length > 0) {
435
+			// 		fullPath += '?';
436
+			// 		for (const key in routeParams) {
437
+			// 		  fullPath += `${key}=${routeParams[key]}&`;
438
+			// 		}
439
+			// 		fullPath = fullPath.slice(0, -1); // 去除最后一个多余的 '&'
440
+			// 	}
441
+			// 	uni.reLaunch({
442
+			// 	  url:fullPath
443
+			// 	});
444
+			// }
445
+			// console.log(fullPath);
446
+			  
447
+			this.init(routeParams)
448
+		},
449
+		onLoad(optioin) {
427 450
 			console.log(optioin,'1111111111111')
428
-			await this.getGongDanType()
429
-			this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem'
430
-			this.workorderid = optioin.wid
431
-			this.sms_id = optioin.sms_id
432
-			this.listtype = optioin.listtype
433
-			this.getDetail(0)
434
-			this.getDetail(3)
435
-			this.getDetail(1)
436
-			this.getDetail(4)
437
-			if(this.sms_id) {
438
-				this.getButtons()
439
-			}else if(optioin.buttons) {
440
-				console.log(JSON.parse(optioin.buttons))
441
-				JSON.parse(optioin.buttons).forEach(v => {
442
-					let btn = this.$mButtonConfig[v.key];
443
-					if (btn != undefined) {
444
-						this.orderButtonData.push(btn);
445
-					}
446
-					//判断有没有返回按钮有的话显示维修确认页面
447
-					if(v.key == "repairconfirmnew"){
448
-						this.isconfirm = 1
449
-					}
450
-				})
451
-			}
452
-			// pageData.getDet((res, data) => {
453
-			// 	this.departList = data
454
-			// })
455
-			this.departList = JSON.parse(uni.getStorageSync('deptTreeData'))
456
-			// pageData.getApplicant('', (res) => {
457
-			// 	this.userCodeList = res
458
-			// })
459
-			 if(this.sms_id) {
460
-				this.isDisplay.displaySegmentedControl = true
461
-				this.segmenter.type = 0
462
-				this.segmenter.items = ["处理结果", "协作工单","工单流程",  "维修记录", "评价"]
463
-				this.getDetail(2)
464
-			} else {
465
-				this.isDisplay.displaySegmentedControl = true
466
-				this.segmenter.type = optioin.segmenter
467
-				this.segmenter.items = segmenterData[optioin.segmenter]
468
-				this.getDetail(2)
469
-			}
470
-			this.roleCode = uni.getStorageSync("roleCode")
451
+			// 页面
452
+			uni.$on("updateDetail", (res) => {
453
+				this.init(optioin)
454
+			})
455
+			// this.init(optioin)
471 456
 		},
472 457
 		methods: {
458
+			async init(optioin){
459
+				await this.getGongDanType()
460
+				this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem'
461
+				this.workorderid = optioin.wid
462
+				this.sms_id = optioin.sms_id
463
+				this.listtype = optioin.listtype
464
+				this.getDetail(0)
465
+				this.getDetail(3)
466
+				this.getDetail(1)
467
+				this.getDetail(4)
468
+				if(this.sms_id) {
469
+					this.getButtons()
470
+				}else if(optioin.buttons) {
471
+					console.log(JSON.parse(optioin.buttons))
472
+					this.orderButtonData = []
473
+					JSON.parse(optioin.buttons).forEach(v => {
474
+						let btn = this.$mButtonConfig[v.key];
475
+						if (btn != undefined) {
476
+							this.orderButtonData.push(btn);
477
+						}
478
+						//判断有没有返回按钮有的话显示维修确认页面
479
+						if(v.key == "repairconfirmnew"){
480
+							this.isconfirm = 1
481
+						}
482
+					})
483
+				}
484
+				// pageData.getDet((res, data) => {
485
+				// 	this.departList = data
486
+				// })
487
+				this.departList = JSON.parse(uni.getStorageSync('deptTreeData'))
488
+				// pageData.getApplicant('', (res) => {
489
+				// 	this.userCodeList = res
490
+				// })
491
+				 if(this.sms_id) {
492
+					this.isDisplay.displaySegmentedControl = true
493
+					this.segmenter.type = 0
494
+					this.segmenter.items = ["处理结果", "协作工单","工单流程",  "维修记录", "评价"]
495
+					this.getDetail(2)
496
+				} else {
497
+					this.isDisplay.displaySegmentedControl = true
498
+					this.segmenter.type = optioin.segmenter
499
+					this.segmenter.items = segmenterData[optioin.segmenter]
500
+					this.getDetail(2)
501
+				}
502
+				this.roleCode = uni.getStorageSync("roleCode")
503
+			},
473 504
 			clickEye(){
474 505
 				this.detailContentData.F_DeptPhone = decrypt(this.detailContentData.F_DeptPhoneShow)
475 506
 				this.detailContentData.F_Applicantsphone = decrypt(this.detailContentData.F_ApplicantsphoneShow)

+ 11 - 1
CallCenterWeb.UI/RMYYAPP/utils/helper.js

@@ -62,7 +62,17 @@ export default {
62 62
 				});
63 63
 				setTimeout(() => {
64 64
 					uni.$emit("updateList", {}); //列表刷新数据
65
-					uni.navigateBack({delta})
65
+					console.log(getCurrentPages())
66
+					if(getCurrentPages().length > Number(delta)){
67
+						uni.navigateBack({delta})
68
+					} else {
69
+						if(Number(delta) === 2 ){
70
+							uni.navigateBack({delta:1})
71
+						}if(Number(delta) === 1){
72
+							uni.$emit("updateDetail", {}); //列表刷新数据
73
+						}
74
+					}
75
+					
66 76
 					fn(false)
67 77
 				}, 500)
68 78