|
@@ -34,6 +34,22 @@
|
|
|
<h5>健康状态</h5>
|
|
|
</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-text="report.healthCodeN">其他</span>
|
|
|
+
|
|
|
+ <button class="mui-btn mui-btn-block mui-navigate-right" v-if="!curDateIsUpload" @click="selectHealth" type='button'
|
|
|
+ style="width:50%">
|
|
|
+ {{report.healthCodeN?report.healthCodeN:'请选择'}}
|
|
|
+ </button>
|
|
|
+ <i style="
|
|
|
+ margin-left: 14px;
|
|
|
+ font-size: 10px;
|
|
|
+ "
|
|
|
+ v-if="!curDateIsUpload">以湖北健康码的颜色为准</i>
|
|
|
+ </div>
|
|
|
<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-text="report.healthStatusN">其他</span>
|
|
@@ -200,6 +216,8 @@
|
|
|
report: {
|
|
|
isJingzhou:null,
|
|
|
isProvince:null,
|
|
|
+ healthCode: "",
|
|
|
+ healthCodeN: "请选择",
|
|
|
healthStatus: "",
|
|
|
healthStatusN: "请选择",
|
|
|
vaccinationStatus: "",
|
|
@@ -224,6 +242,25 @@
|
|
|
max: 37.3,
|
|
|
healthStatusList: [],
|
|
|
healthStatusListVaccination: [],
|
|
|
+ healthCodeList:[{
|
|
|
+ text: "绿码",
|
|
|
+ value: "00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: "黄码",
|
|
|
+ value: "01"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: "红码",
|
|
|
+ value: "10"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ healthCodeObj:{
|
|
|
+ "00":"绿码",
|
|
|
+ "01":"黄码",
|
|
|
+ "10":"红码",
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -392,6 +429,16 @@
|
|
|
this.report.isGoto = selectItems[0].value;
|
|
|
});
|
|
|
},
|
|
|
+ selectHealth() {
|
|
|
+ var picker = new mui.PopPicker();
|
|
|
+
|
|
|
+ picker.setData(this.healthCodeList);
|
|
|
+
|
|
|
+ picker.show((selectItems) => {
|
|
|
+ this.report.healthCode = selectItems[0].value;
|
|
|
+ this.report.healthCodeN = selectItems[0].text;
|
|
|
+ });
|
|
|
+ },
|
|
|
selectTouch() {
|
|
|
var picker = new mui.PopPicker();
|
|
|
|
|
@@ -439,11 +486,13 @@
|
|
|
mui.toast("页面加载失败!");
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
- if (this.report.address=='定位中……'||this.report.address=='无法获取定位') {
|
|
|
- mui.alert("定位失败,请检查手机权限后,点击<span class=\"mui-icon mui-icon-location\" style=\"color: #096DD9;font-size: 16px;\"></span>蓝色定位图标重新获取位置信息!");
|
|
|
- return;
|
|
|
- }
|
|
|
+ if (process.env.VUE_APP_NODE_NAME != 'devlopment') {
|
|
|
+ if (this.report.address=='定位中……'||this.report.address=='无法获取定位') {
|
|
|
+ mui.alert("定位失败,请检查手机权限后,点击<span class=\"mui-icon mui-icon-location\" style=\"color: #096DD9;font-size: 16px;\"></span>蓝色定位图标重新获取位置信息!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// if (this.report.healthStatus.length == 0) {
|
|
|
// mui.toast("请选择自身健康情况!");
|
|
|
// return;
|
|
@@ -453,8 +502,9 @@
|
|
|
// mui.toast("请选择疫苗接种情况!");
|
|
|
// return;
|
|
|
// }
|
|
|
- if (!this.report.vaccinationStatusN||this.report.vaccinationStatusN=='请选择') {
|
|
|
- mui.toast("请选择疫苗接种情况!");
|
|
|
+
|
|
|
+ if (!this.report.healthCodeN||this.report.healthCodeN=='请选择') {
|
|
|
+ mui.toast("请选择健康码颜色!");
|
|
|
return;
|
|
|
}
|
|
|
// if (this.report.familyStatus.length == 0) {
|
|
@@ -465,6 +515,10 @@
|
|
|
mui.toast("请选择自身健康情况!");
|
|
|
return;
|
|
|
}
|
|
|
+ if (!this.report.vaccinationStatusN||this.report.vaccinationStatusN=='请选择') {
|
|
|
+ mui.toast("请选择疫苗接种情况!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (!this.report.familyStatusN||this.report.familyStatusN=='请选择') {
|
|
|
mui.toast("请选择家庭成员身体健康情况!");
|
|
|
return;
|
|
@@ -523,6 +577,11 @@
|
|
|
|
|
|
if (response.personHealthLedger != null) {
|
|
|
this.report.vaccinationStatusN = response.personHealthLedger.vaccinationStatusN;
|
|
|
+ if(response.personHealthLedger.healthCode){
|
|
|
+ this.report.healthCodeN = this.healthCodeObj[response.personHealthLedger.healthCode];
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
this.report.healthStatusN = response.personHealthLedger.healthStatusN;
|
|
|
this.report.healthRemark = response.personHealthLedger.healthRemark;
|
|
|
this.report.familyStatusN = response.personHealthLedger.familyStatusN;
|
|
@@ -552,7 +611,11 @@
|
|
|
this.report.familyStatusN = response.personHealthLedger.familyStatusN;
|
|
|
this.report.vaccinationStatusN = response.personHealthLedger.vaccinationStatusN;
|
|
|
this.report.vaccinationStatus = response.personHealthLedger.vaccinationStatus;
|
|
|
-
|
|
|
+
|
|
|
+ this.report.healthCode = response.personHealthLedger.healthCode;
|
|
|
+ if(response.personHealthLedger.healthCode){
|
|
|
+ this.report.healthCodeN = this.healthCodeObj[response.personHealthLedger.healthCode];
|
|
|
+ }
|
|
|
this.report.healthStatus = response.personHealthLedger.healthStatus;
|
|
|
this.report.familyStatus = response.personHealthLedger.familyStatus;
|
|
|
|