wgl 4 gadi atpakaļ
vecāks
revīzija
5b4f78fa96

+ 1 - 0
src/projects/business/router/guest.js

@@ -34,6 +34,7 @@ const routesGuest = [
 							requireAuth: false,
 							role: [],
 							title: '邀请访客',
+							form: true
 						}
 					},
 					//邀请函详情

+ 100 - 106
src/projects/business/views/Master/Health/WorkerReport.vue

@@ -38,111 +38,101 @@
 			</div>
 			<form class="mui-input-group vongi-editme">
 				<div class="mui-input-row">
-					<label style="width:50%">自身健康情况<i class="colorfe616c"  v-if="!curDateIsUpload" >*</i></label>
-					<span v-if="curDateIsUpload" style="width:50%"
-						  v-html="report.healthStatusN">其他</span>
-
-					<button class="mui-btn mui-btn-block mui-navigate-right"
-							v-if="!curDateIsUpload"
-							@click="selectHealthStatus"
-							type='button' style="width:50%">
+					<label style="width:50%">自身健康情况<i class="colorfe616c" v-if="!curDateIsUpload">*</i></label>
+					<span v-if="curDateIsUpload" style="width:50%" v-html="report.healthStatusN">其他</span>
+
+					<button class="mui-btn mui-btn-block mui-navigate-right" v-if="!curDateIsUpload" @click="selectHealthStatus" type='button'
+					 style="width:50%">
 						{{report.healthStatusN}}
 					</button>
 				</div>
 				<div class="mui-input-row">
-					<label>今日体温<i class="colorfe616c"  v-if="!curDateIsUpload" >*</i></label>
-					<span v-if="curDateIsUpload"
-						  style="width:50%" v-html="report.temperature"></span>
+					<label>今日体温<i class="colorfe616c" v-if="!curDateIsUpload">*</i></label>
+					<span v-if="curDateIsUpload" style="width:50%" v-html="report.temperature"></span>
 
-					<input type="text" class="mui-input-clear"
-						   v-if="!curDateIsUpload"
-						   v-model="report.temperature" placeholder="请输入体温度数  ">
+					<input type="text" class="mui-input-clear" v-if="!curDateIsUpload" v-model="report.temperature" placeholder="请输入体温度数  ">
 				</div>
 				<div class="mui-input-row">
 					<label>其他情况</label>
-					<span v-if="curDateIsUpload"
-						  style="width:50%" v-html="report.healthRemark"></span>
-					<input type="text" class="mui-input-clear"
-						   v-if="!curDateIsUpload"
-						   v-model="report.healthRemark" placeholder="请填写具体情况  ">
+					<span v-if="curDateIsUpload" style="width:50%" v-html="report.healthRemark"></span>
+					<input type="text" class="mui-input-clear" v-if="!curDateIsUpload" v-model="report.healthRemark" placeholder="请填写具体情况  ">
 
 
 
 				</div>
 				<div class="mui-input-row">
-					<label style="width:70%">家庭成员身体健康情况<i class="colorfe616c"  v-if="!curDateIsUpload" >*</i></label>
-					<span v-if="curDateIsUpload"   style="width:30%" v-html="report.familyStatusN">其他</span>
+					<label style="width:70%">家庭成员身体健康情况<i class="colorfe616c" v-if="!curDateIsUpload">*</i></label>
+					<span v-if="curDateIsUpload" style="width:30%" v-html="report.familyStatusN">其他</span>
 
-					<button  v-if="!curDateIsUpload"
-							 @click="selectFamilyHealthStatus"
-							 class="mui-btn mui-btn-block mui-navigate-right" type='button' style="width:30%">
+					<button v-if="!curDateIsUpload" @click="selectFamilyHealthStatus" class="mui-btn mui-btn-block mui-navigate-right"
+					 type='button' style="width:30%">
 						{{report.familyStatusN}}
 					</button>
 				</div>
 				<div class="mui-input-row vongi-wordcard vongi-input-up">
 					<div class="mui-media-body">上传家庭成员健康码</div>
 					<div class="fyy-upphoto">
-						<div class="mui-col-xs-3 fyy-upphoto-close" v-for="(picture,index) in report.pictures" :key="index"  >
-							<img  v-if="picture" :src="picture + '?x-oss-process=image/resize,m_fill,w_128,h_128'" />
-							<a class="mui-icon mui-icon-closeempty" v-if="!curDateIsUpload" @click="delImg(index)" ></a>
+						<div class="mui-col-xs-3 fyy-upphoto-close" v-for="(picture,index) in report.pictures" :key="index">
+							<img v-if="picture" :src="picture + '?x-oss-process=image/resize,m_fill,w_128,h_128'" />
+							<a class="mui-icon mui-icon-closeempty" v-if="!curDateIsUpload" @click="delImg(index)"></a>
 						</div>
-						<div class="mui-col-xs-3"  v-if="!curDateIsUpload"   @click="changeImg" >
+						<div class="mui-col-xs-3" v-if="!curDateIsUpload" @click="changeImg">
 							<a><i class="mui-icon mui-icon-plusempty"></i></a>
 						</div>
 					</div>
 				</div>
 				<div class="mui-input-row " :class="!curDateIsUpload?'vongi-pad':''">
-					<div class="mui-media-body" v-if="!curDateIsUpload">假期是否曾前往重点疫区<i class="colorfe616c"   >*</i></div>
-					<label v-if="curDateIsUpload"  style="width:70%;">假期是否曾前往重点疫区</label>
-					<span v-if="curDateIsUpload"   style="width:30%" v-html="report.isGoto ? '是' : '否'">是</span>
+					<div class="mui-media-body" v-if="!curDateIsUpload">假期是否曾前往重点疫区<i class="colorfe616c">*</i></div>
+					<label v-if="curDateIsUpload" style="width:70%;">假期是否曾前往重点疫区</label>
+					<span v-if="curDateIsUpload" style="width:30%" v-html="report.isGoto ? '是' : '否'">是</span>
 
-					<div class="mui-input-group flew" v-if="!curDateIsUpload" >
+					<div class="mui-input-group flew" v-if="!curDateIsUpload">
 
 						<div class="mui-radio mui-left mui-col-xs-6">
 							<label>是</label>
-							<input     v-model="report.isGoto" name="isGoto" value="true" type="radio">
+							<input v-model="report.isGoto" name="isGoto" value="true" type="radio">
 						</div>
 						<div class="mui-radio mui-left mui-col-xs-6">
 							<label>否</label>
-							<input     v-model="report.isGoto" name="isGoto" value="false" type="radio">
+							<input v-model="report.isGoto" name="isGoto" value="false" type="radio">
 						</div>
 
 					</div>
 				</div>
 				<div class="mui-input-row " :class="!curDateIsUpload?'vongi-pad':''">
-					<div class="mui-media-body" v-if="!curDateIsUpload">是否接触重点疫区高危人群<i class="colorfe616c"   >*</i></div>
+					<div class="mui-media-body" v-if="!curDateIsUpload">是否接触重点疫区高危人群<i class="colorfe616c">*</i></div>
 
-					<label v-if="curDateIsUpload"  style="width:70%;">是否接触重点疫区高危人群</label>
+					<label v-if="curDateIsUpload" style="width:70%;">是否接触重点疫区高危人群</label>
 
-					<span v-if="curDateIsUpload"   style="width:30%" v-html="report.isTouch ? '是' : '否'">是</span>
+					<span v-if="curDateIsUpload" style="width:30%" v-html="report.isTouch ? '是' : '否'">是</span>
 
-					<div class="mui-input-group flew" v-if="!curDateIsUpload" >
+					<div class="mui-input-group flew" v-if="!curDateIsUpload">
 
 						<div class="mui-radio mui-left mui-col-xs-6">
 							<label>是</label>
-							<input     v-model="report.isTouch" name="isTouch" value="true" type="radio">
+							<input v-model="report.isTouch" name="isTouch" value="true" type="radio">
 						</div>
 						<div class="mui-radio mui-left mui-col-xs-6">
 							<label>否</label>
-							<input     v-model="report.isTouch" name="isTouch" value="false" type="radio">
+							<input v-model="report.isTouch" name="isTouch" value="false" type="radio">
 						</div>
 
 					</div>
 				</div>
 			</form>
 			<div class="vongi-btn vongi-login-btn" v-if="!curDateIsUpload&&!send">
-				<button class="mui-btn mui-btn-primary " @click="submitReport()" >
+				<button class="mui-btn mui-btn-primary " @click="submitReport()">
 					提交
 				</button>
 			</div>
-			<div class="fyy-popup-button" v-if="curDateIsUpload&&!send" >
+			<div class="fyy-popup-button" v-if="curDateIsUpload&&!send">
 				<div class="mui-col-xs-6">
-					<button class="mui-btn mui-btn-primary " @click="sendReport()" >
+					<button class="mui-btn mui-btn-primary " @click="sendReport()">
 						确认提交
 					</button>
 				</div>
 				<div class="mui-col-xs-6">
-					<button class="mui-btn mui-btn-warning " @click="noSubmitReport()" >
+					<button class="mui-btn mui-btn-warning " @click="noSubmitReport()">
 						撤回编辑
 					</button>
 				</div>
@@ -194,33 +184,33 @@
 					isGoto: false,
 					isTouch: false
 				},
-				curDateIsUpload:false,
-				send:false,
+				curDateIsUpload: false,
+				send: false,
 				isLoading: false,
-				max:37.3,
-				healthStatusList:[],
+				max: 37.3,
+				healthStatusList: [],
 			}
 		},
 		created() {
 			this.id = this.$route.query.id;
 			this.getStatus();
 			API_Health.curDateIsUpload().then(data => {
-				this.curDateIsUpload=data;
-				this.send=data;
+				this.curDateIsUpload = data;
+				this.send = data;
 
 				if (data) {
-					API_Health.getDetail(this.id,'1').then(response => {
+					API_Health.getDetail(this.id, '1').then(response => {
 						this.isLoading = false;
 						this.student = response;
 
-						if(response.personHealthLedger!=null){
-							this.report.healthStatusN=response.personHealthLedger.healthStatusN;
-							this.report.healthRemark=response.personHealthLedger.healthRemark;
-							this.report.familyStatusN=response.personHealthLedger.familyStatusN;
-							this.report.isGoto=response.personHealthLedger.isGoto;
-							this.report.isTouch=response.personHealthLedger.isTouch;
-							this.report.pictures=response.personHealthLedger.familyGreenCode.split(',');
-							this.report.temperature=response.personHealthLedger.temperature;
+						if (response.personHealthLedger != null) {
+							this.report.healthStatusN = response.personHealthLedger.healthStatusN;
+							this.report.healthRemark = response.personHealthLedger.healthRemark;
+							this.report.familyStatusN = response.personHealthLedger.familyStatusN;
+							this.report.isGoto = response.personHealthLedger.isGoto;
+							this.report.isTouch = response.personHealthLedger.isTouch;
+							this.report.pictures = response.personHealthLedger.familyGreenCode.split(',');
+							this.report.temperature = response.personHealthLedger.temperature;
 
 						}
 
@@ -232,21 +222,21 @@
 				} else {
 					API_Health.getPersonInfo('1').then(response => {
 						this.student = response;
-						if(response.personHealthLedger!=null){
-							this.report.healthRemark=response.personHealthLedger.healthRemark;
+						if (response.personHealthLedger != null) {
+							this.report.healthRemark = response.personHealthLedger.healthRemark;
 							//this.report.temperature=response.personHealthLedger.temperature;
 
-							this.report.healthStatusN=response.personHealthLedger.healthStatusN;
-							this.report.familyStatusN=response.personHealthLedger.familyStatusN;
+							this.report.healthStatusN = response.personHealthLedger.healthStatusN;
+							this.report.familyStatusN = response.personHealthLedger.familyStatusN;
 
-							this.report.healthStatus=response.personHealthLedger.healthStatus;
-							this.report.familyStatus=response.personHealthLedger.familyStatus;
+							this.report.healthStatus = response.personHealthLedger.healthStatus;
+							this.report.familyStatus = response.personHealthLedger.familyStatus;
 
-							this.report.isGoto=response.personHealthLedger.isGoto;
-							this.report.isTouch=response.personHealthLedger.isTouch;
+							this.report.isGoto = response.personHealthLedger.isGoto;
+							this.report.isTouch = response.personHealthLedger.isTouch;
 							//this.report.pictures=response.personHealthLedger.familyGreenCode.split(',');
 						}
-						this.id=response.id;
+						this.id = response.id;
 
 
 
@@ -263,13 +253,13 @@
 
 		},
 		methods: {
-			asynCallBack(){},
-			delImg(index){
+			asynCallBack() {},
+			delImg(index) {
 
 				this.report.pictures.splice(index, 1);
 			},
 			changeImg() {
-				if(this.report.pictures.length >= 3){
+				if (this.report.pictures.length >= 3) {
 					mui.toast("只能上传3张家庭成员健康码");
 					return;
 				}
@@ -325,7 +315,7 @@
 
 			},
 			uploadPicture(event) {
-				if(this.report.pictures.length >= 3){
+				if (this.report.pictures.length >= 3) {
 					mui.toast("只能上传3张家庭成员健康码");
 					return;
 				}
@@ -342,16 +332,16 @@
 					mui.toast(error);
 				})
 			},
-			fatherMethod(idCard){
-				this.student.idCard=idCard
+			fatherMethod(idCard) {
+				this.student.idCard = idCard
 			},
 			selectGoto() {
 				var picker = new mui.PopPicker();
 
 				picker.setData([{
-					text: "是",
-					value: true
-				},
+						text: "是",
+						value: true
+					},
 					{
 						text: "否",
 						value: false
@@ -366,9 +356,9 @@
 				var picker = new mui.PopPicker();
 
 				picker.setData([{
-					text: "是",
-					value: true
-				},
+						text: "是",
+						value: true
+					},
 					{
 						text: "否",
 						value: false
@@ -379,7 +369,7 @@
 					this.report.isTouch = selectItems[0].value;
 				});
 			},
-			sendReport(){
+			sendReport() {
 				this.isLoading = true;
 				API_Health.save({
 					...this.report,
@@ -387,15 +377,16 @@
 					familyGreenCode: this.report.pictures.join(",")
 				}).then(data => {
 					mui.toast("已提交");
-					this.send=true;
+					this.send = true;
 					this.isLoading = false;
 
 				}).catch(error => {
 					this.isLoading = false;
 					mui.toast(error);
 				})
-			} 	,noSubmitReport(){
-				this.curDateIsUpload=false;
+			},
+			noSubmitReport() {
+				this.curDateIsUpload = false;
 			},
 			submitReport() {
 
@@ -410,42 +401,43 @@
 				}
 				if (!this.report.temperature) {
 					mui.toast('请输入体温度数');
-					return ;
+					return;
 				}
 				var reg = new RegExp("^((3\\d)|(3\\d\\.\\d|40|40.0))$");
 
 				if (!reg.test(this.report.temperature)) {
 					mui.toast('请输入正确的数字[30.0-40.0]');
-					return ;
+					return;
 				}
-				if(this.report.isGoto=="true"||this.report.isGoto==true){
-					this.report.isGoto=true;
-				}else{
-					this.report.isGoto=false;
+				if (this.report.isGoto == "true" || this.report.isGoto == true) {
+					this.report.isGoto = true;
+				} else {
+					this.report.isGoto = false;
 				}
-				if(this.report.isTouch=="true"||this.report.isTouch==true){
-					this.report.isTouch=true;
-				}else{
-					this.report.isTouch=false;
+				if (this.report.isTouch == "true" || this.report.isTouch == true) {
+					this.report.isTouch = true;
+				} else {
+					this.report.isTouch = false;
 				}
 				// if (this.report.pictures.length == 0) {
 				// 	mui.toast("请上传家庭成员健康码!");
 				// 	return;
 				// }
-				this.curDateIsUpload=true;
+				this.curDateIsUpload = true;
 
-				if(this.report.temperature>this.max){
+				if (this.report.temperature > this.max) {
 					//	mui.alert("提交温度大于等于<span style='color: red'>37.2°</span><br/>需要点击下方【确认提交】<br/>确认后不能修改!");
 					//	mui.alert("提交温度大于等于<span style='color: red'>37.2°</span><br/><ul><li>1、过高体温将会上报至平台管理人员</li><li>2、过高体温将会上报至学校领导</li></ul><br/>需要点击下方【确认提交】<br/>确认后不能修改!");
-					mui.alert("提交体温<span style='color: red'>"+this.report.temperature+"℃</span>为异常体温,系统会将异常数据通报公司相关负责人。<br>如体温属实请点击下方【确认提交】按钮,确认后无法修改!");
-				}else{
+					mui.alert("提交体温<span style='color: red'>" + this.report.temperature +
+						"℃</span>为异常体温,系统会将异常数据通报公司相关负责人。<br>如体温属实请点击下方【确认提交】按钮,确认后无法修改!");
+				} else {
 					mui.alert("需要点击下方【确认提交】<br/>确认后不能修改!");
 				}
 				//mui.alert("需要点击下方确认提交,确认后不能修改!");
 
 
 			},
-			getStatus(){
+			getStatus() {
 
 				API_Health.getHealthStatusList().then(data => {
 					var arr = data.map(item => {
@@ -454,7 +446,7 @@
 							text: item.name
 						};
 					});
-					this.healthStatusList=arr
+					this.healthStatusList = arr
 
 
 				}).catch(error => {
@@ -497,14 +489,16 @@
 <style scoped src="$project/assets/css/xpwyfyy.css"></style>
 <style src="$project/assets/css/iconfont.css"></style>
 <style scoped>
-	.fyy-popup-button{
+	.fyy-popup-button {
 		display: flex;
-		padding:10px
+		padding: 10px
 	}
-	.fyy-popup-button .mui-col-xs-6{
-		padding:0 5px
+
+	.fyy-popup-button .mui-col-xs-6 {
+		padding: 0 5px
 	}
-	.fyy-popup-button button{
-		width:100%
+
+	.fyy-popup-button button {
+		width: 100%
 	}
 </style>

+ 0 - 4
src/projects/pension/router/master.js

@@ -318,7 +318,6 @@ const routesMaster = [
 							requireAuth: false,
 							role: [],
 							title: '产品介绍',
-
 						}
 					},
 					//直播房间
@@ -330,7 +329,6 @@ const routesMaster = [
 							requireAuth: false,
 							role: [],
 							title: '直播房间',
-
 						}
 					},
 					//收银台
@@ -342,7 +340,6 @@ const routesMaster = [
 							requireAuth: false,
 							role: [],
 							title: '收银台',
-
 						}
 					},
 					//支付成功
@@ -354,7 +351,6 @@ const routesMaster = [
 							requireAuth: false,
 							role: [],
 							title: '支付成功',
-
 						}
 					},