Commit d8815275 by wangshuangqing

1.去除过敏史空格

2.添加其他职业
parent 16e91a8c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: wsq * @LastEditors: wsq
* @LastEditTime: 2022-03-30 12:23:58 * @LastEditTime: 2022-04-21 11:02:35
* @Description: * @Description:
--> -->
<template> <template>
...@@ -138,18 +138,27 @@ export default { ...@@ -138,18 +138,27 @@ export default {
"patientName", //患者姓名 "patientName", //患者姓名
"nationality", //国籍 "nationality", //国籍
"passportId", //护照号 "passportId", //护照号
"HasSymptom", //是否有症状
"otherSymptom", //其他症状
"otherOccupation", //其他职业
"age", //年龄 "age", //年龄
"gender", //性别
"height", //身高 "height", //身高
"weight", //体重 "weight", //体重
"maritalStatus", //婚姻状况
"birthday", //出生日期 "birthday", //出生日期
"isConceive", //怀孕状况
"gestationalWeeks", //怀孕周期 "gestationalWeeks", //怀孕周期
"occupation", //职业 "occupation", //职业
"contactInformation", //联系方式 "contactInformation", //联系方式
"FamilyMembersPhone", //家属联系方式 "FamilyMembersPhone", //家属联系方式
"Registeredresidence", //籍贯 (包括省市) "Registeredresidence", //籍贯 (包括省市)
"address", "province", //籍贯 (省)
"idCard", "city", //籍贯 (市)
"address", //地址
"idCard", //身份证号
"typeOfMedicalInsurance", //医保类型 "typeOfMedicalInsurance", //医保类型
"insurance", //商业保险
]) ])
.then(() => { .then(() => {
this.$store.dispatch("user/setpage", 5); this.$store.dispatch("user/setpage", 5);
...@@ -172,15 +181,20 @@ export default { ...@@ -172,15 +181,20 @@ export default {
// vaccineDate: "", //最后一次接种日期 // vaccineDate: "", //最后一次接种日期
this.$refs.vantform this.$refs.vantform
.validate([ .validate([
"LeaveShangHai", //多少天未出上海 "HasOnlineClass", //是否上网课
"purpose", // 来沪目的
"thirtyDays", //近三十天内无离开上海
"LeaveShangHai", //回上海天数
"unusualDate", //核酸检测异常时间 "unusualDate", //核酸检测异常时间
"normalDate", //未发生异常时间 "normalDate", //未发生异常时间
"inHospitalDate", //120转运时间 "inHospitalDate", //120转运时间
"beforeIsolationPoint", "otherSymptom", //其他症状
"symptom", //患者症状 "vaccineType",
"beforeIsolationPoint", //之前隔离点
"HasSymptom", //有无症状
"hasCOVIDVaccine", //是否接种过疫苗
"covidVaccine", //接种针数 "covidVaccine", //接种针数
"vaccineType", //疫苗公司 "othervaccines", //其他疫苗
"othervaccines", //其他疫苗文本
"vaccineDate", //最后一次接种日期 "vaccineDate", //最后一次接种日期
]) ])
.then(() => { .then(() => {
...@@ -205,14 +219,18 @@ export default { ...@@ -205,14 +219,18 @@ export default {
this.$refs.vantform this.$refs.vantform
.validate([ .validate([
"hasHistoryAllergies", //过敏史 "hasHistoryAllergies", //过敏史
// "historyAllergies", //过敏原 "historyAllergies", //过敏原
"foodAllergy", //食物过敏
"drugAllergy", //药物过敏
"otherAllergy", //其他过敏
"hasHistorySurgery", //手术史 "hasHistorySurgery", //手术史
"historySurgery", //具体内容 "historySurgery", //具体内容
"HasPreviousHistory", //有无既往史 "HasPreviousHistory", //有无既往史
"previousHistory", //既往史 "previousHistory", //既往史
"otherPastHistory", //其他既往史
"tuberculosisDate", //既往史发生时间 "tuberculosisDate", //既往史发生时间
"yesOrNoCt",
"ChestCT", //有无CT "ChestCT", //有无CT
"otherPastHistory", //其他既往史
"ChestCTDate", //CT拍照时间 "ChestCTDate", //CT拍照时间
]) ])
.then(() => { .then(() => {
......
<!-- <!--
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng * @LastEditors: wsq
* @LastEditTime: 2022-04-02 10:04:49 * @LastEditTime: 2022-04-21 10:54:43
* @Description: * @Description:
--> -->
<template> <template>
...@@ -264,6 +264,30 @@ ...@@ -264,6 +264,30 @@
/> />
</van-popup> </van-popup>
<van-field
colon
v-show="occupation == '其他'"
clearable
autosize
type="textarea"
v-model="otherOccupation"
name="otherOccupation"
label="其他职业"
placeholder="其他职业"
:rules="[
{
required: occupation == '其他' ? true : false,
message: '请填写其他职业',
},
]"
@blur="setLocalStorge('otherOccupation')"
></van-field>
<van-field <van-field
colon colon
clearable clearable
...@@ -285,23 +309,6 @@ ...@@ -285,23 +309,6 @@
:rules="[{ required: true, message: '请填写家属联系方式' }]" :rules="[{ required: true, message: '请填写家属联系方式' }]"
></van-field> ></van-field>
<van-field
colon
clearable
name="workOrNotCovid"
label="日常工作是否需要接触新冠病"
>
<template #input>
<van-radio-group
@change="setLocalStorge('workOrNotCovid')"
v-model="workOrNotCovid"
direction="horizontal"
>
<van-radio name="是"></van-radio>
<van-radio name="否"></van-radio>
</van-radio-group>
</template>
</van-field>
<van-field <van-field
colon colon
...@@ -401,6 +408,96 @@ ...@@ -401,6 +408,96 @@
</van-radio-group> </van-radio-group>
</template> </template>
</van-field> </van-field>
<van-field
style="margin-left: -35px;"
colon
clearable
name="HasSymptom"
label-width="130px"
label="是否有症状"
>
<template #input>
<van-radio-group
@change="
() => {
if (HasSymptom == '否') {
symptom = [];
otherSymptom = '';
setValue('symptom','');
setValue('otherSymptom', '');
}
setLocalStorge('HasSymptom');
}
"
v-model="HasSymptom"
direction="horizontal"
>
<van-radio name="是"></van-radio>
<van-radio name="否"></van-radio>
</van-radio-group>
</template>
</van-field>
<van-field
style="margin-left: -35px;"
v-if="HasSymptom == '是'"
colon
:rules="[
{
required: HasSymptom == '是' ? true : false,
message: '请选择症状',
},
]"
clearable
name="symptom"
label="症状"
label-width="130px"
>
<template #input>
<van-checkbox-group
@change="
() => {
setLocalStorge('symptom');
}
"
v-model="symptom"
direction="horizontal"
class="symptom"
>
<template v-for="(item, index) in symptomList">
<van-checkbox :key="index" :name="item.element" shape="square">
{{ item.element }}</van-checkbox
>
</template>
</van-checkbox-group>
</template>
</van-field>
<van-field
style="margin-left: 10px;"
colon
v-if="symptom.includes('其他') && HasSymptom == '是' "
clearable
autosize
type="textarea"
v-model="otherSymptom"
name="otherSymptom"
label="其他症状"
placeholder="其他症状"
:rules="[
{
required: symptom.includes('其他') && HasSymptom == '是' ? true : false,
message: '请填写其他症状',
},
]"
@blur="setLocalStorge('otherSymptom')"
></van-field>
</div> </div>
</template> </template>
...@@ -427,9 +524,10 @@ export default { ...@@ -427,9 +524,10 @@ export default {
isConceive: "未孕", //怀孕状况 isConceive: "未孕", //怀孕状况
gestationalWeeks: "", //怀孕周期 gestationalWeeks: "", //怀孕周期
occupation: "", //职业 occupation: "", //职业
otherOccupation:"",//其他职业
contactInformation: "", //联系方式 contactInformation: "", //联系方式
FamilyMembersPhone: "", //家属联系方式 FamilyMembersPhone: "", //家属联系方式
workOrNotCovid: "否", // workOrNotCovid: "否",
Registeredresidence: "", //籍贯 (包括省市) Registeredresidence: "", //籍贯 (包括省市)
province: "", //籍贯 (省) province: "", //籍贯 (省)
city: "", //籍贯 (市) city: "", //籍贯 (市)
...@@ -438,6 +536,11 @@ export default { ...@@ -438,6 +536,11 @@ export default {
typeOfMedicalInsurance: "上海医保", //医保类型 typeOfMedicalInsurance: "上海医保", //医保类型
insurance: "无", //商业保险 insurance: "无", //商业保险
HasSymptom: "否", //有无症状
symptom: [], //患者症状
otherSymptom: "", //其他症状
symptomList: [],//症状列表
areaList, //地址数据选项列表 areaList, //地址数据选项列表
showArea: false, //控制地址弹窗 showArea: false, //控制地址弹窗
...@@ -459,10 +562,16 @@ export default { ...@@ -459,10 +562,16 @@ export default {
}, },
methods: { methods: {
setLastValue() { setLastValue() {
if (this.getLocalStorge("symptom")) {
this.symptom = this.getLocalStorge("symptom").split(",");
}
let arr = [ let arr = [
"patientName", //患者姓名 "patientName", //患者姓名
"nationality", //国籍 "nationality", //国籍
"passportId", //护照号 "passportId", //护照号
"HasSymptom",//是否有症状
"otherSymptom",//其他症状
"otherOccupation",//其他职业
"age", //年龄 "age", //年龄
"gender", //性别 "gender", //性别
"height", //身高 "height", //身高
...@@ -481,6 +590,7 @@ export default { ...@@ -481,6 +590,7 @@ export default {
"idCard", //身份证号 "idCard", //身份证号
"typeOfMedicalInsurance", //医保类型 "typeOfMedicalInsurance", //医保类型
"insurance", //商业保险 "insurance", //商业保险
]; ];
arr.map((item) => { arr.map((item) => {
...@@ -537,6 +647,9 @@ export default { ...@@ -537,6 +647,9 @@ export default {
let arr2 = data.filter((item) => { let arr2 = data.filter((item) => {
return item.category == "职业"; return item.category == "职业";
}); });
this.symptomList = data.filter((item) => {
return item.category == "症状";
});
this.nationalityList = arr.map((item) => { this.nationalityList = arr.map((item) => {
return item.element; return item.element;
...@@ -682,5 +795,12 @@ export default { ...@@ -682,5 +795,12 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.page4 { .page4 {
.symptom {
.van-checkbox--horizontal {
margin-right: 0.32rem;
min-width: 35%;
margin-bottom: 5%;
}
}
} }
</style> </style>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: wsq * @LastEditors: wsq
* @LastEditTime: 2022-04-19 14:31:00 * @LastEditTime: 2022-04-21 10:55:08
* @Description: * @Description:
--> -->
<template> <template>
...@@ -45,18 +45,41 @@ ...@@ -45,18 +45,41 @@
/> />
</van-popup> </van-popup>
<!-- --> <van-field
colon
clearable
name="workOrNotCovid"
label="日常工作是否需要接触新冠病"
style="margin-left: 40px;"
>
<template #input>
<van-radio-group
@change="setLocalStorge('workOrNotCovid')"
v-model="workOrNotCovid"
direction="horizontal"
>
<van-radio name="是"></van-radio>
<van-radio name="否"></van-radio>
</van-radio-group>
</template>
</van-field>
<van-field <van-field
colon colon
clearable clearable
name="thirtyDays" name="thirtyDays"
label-width="130px"
label="近两月是否离开过上海" label="近两月是否离开过上海"
label-width="130px"
:rules="[{ required: true, message: '请选择近两月是否离开过上海' }]"
> >
<template #input> <template #input>
<van-radio-group <van-radio-group
@change="setLocalStorge('thirtyDays')" @change="
setLocalStorge('thirtyDays')
"
v-model="thirtyDays" v-model="thirtyDays"
direction="horizontal" direction="horizontal"
> >
...@@ -66,6 +89,7 @@ ...@@ -66,6 +89,7 @@
</template> </template>
</van-field> </van-field>
<van-field <van-field
v-if="thirtyDays == '是'" v-if="thirtyDays == '是'"
colon colon
...@@ -85,7 +109,7 @@ ...@@ -85,7 +109,7 @@
{ validator, message: '天数不能大于三十天' }, { validator, message: '天数不能大于三十天' },
]" ]"
> >
<template #extra></template></van-field <template #extra v-if="thirtyDays == '是'"></template></van-field
> >
<van-field <van-field
...@@ -179,76 +203,12 @@ ...@@ -179,76 +203,12 @@
:rules="[{ required: true, message: '请填写之前隔离点' }]" :rules="[{ required: true, message: '请填写之前隔离点' }]"
></van-field> ></van-field>
<van-field
colon
clearable
name="HasSymptom"
label-width="130px"
label="是否有症状"
>
<template #input>
<van-radio-group
@change="
() => {
if (HasSymptom == '否') {
symptom = [];
setValue('symptom', '');
}
setLocalStorge('HasSymptom');
}
"
v-model="HasSymptom"
direction="horizontal"
>
<van-radio name="是"></van-radio>
<van-radio name="否"></van-radio>
</van-radio-group>
</template>
</van-field>
<van-field
v-show="HasSymptom == '是'"
colon
:rules="[
{
required: HasSymptom == '是' ? true : false,
message: '请选择症状',
},
]"
clearable
name="symptom"
label="症状"
label-width="130px"
>
<template #input>
<van-checkbox-group
@change="
() => {
setLocalStorge('symptom');
}
"
v-model="symptom"
direction="horizontal"
class="symptom"
>
<!-- <van-cell-group> -->
<template v-for="(item, index) in symptomList">
<van-checkbox :key="index" :name="item.element" shape="square">
{{ item.element }}</van-checkbox
>
</template>
<!-- </van-cell-group> -->
</van-checkbox-group>
</template>
</van-field>
<!-- {{ symptom }} -->
<!-- -->
<van-field <van-field
v-if="hasCOVIDVaccine=='是' || hasCOVIDVaccine=='否'"
colon colon
clearable clearable
name="HasCOVIDVaccine" name="hasCOVIDVaccine"
label-width="130px" label-width="130px"
label="是否接种过疫苗" label="是否接种过疫苗"
> >
...@@ -256,9 +216,9 @@ ...@@ -256,9 +216,9 @@
<van-radio-group <van-radio-group
@change=" @change="
() => { () => {
setLocalStorge('HasCOVIDVaccine'); setLocalStorge('hasCOVIDVaccine');
if (HasCOVIDVaccine == '否') { if (hasCOVIDVaccine == '否') {
covidVaccine = ''; covidVaccine = '';
vaccineType = []; vaccineType = [];
othervaccines = ''; othervaccines = '';
...@@ -268,7 +228,7 @@ ...@@ -268,7 +228,7 @@
} }
} }
" "
v-model="HasCOVIDVaccine" v-model="hasCOVIDVaccine"
direction="horizontal" direction="horizontal"
> >
<van-radio name="是"></van-radio> <van-radio name="是"></van-radio>
...@@ -278,7 +238,7 @@ ...@@ -278,7 +238,7 @@
</van-field> </van-field>
<van-field <van-field
v-if="HasCOVIDVaccine == '是'" v-if="hasCOVIDVaccine == '是'"
colon colon
clearable clearable
v-model="covidVaccine" v-model="covidVaccine"
...@@ -290,23 +250,21 @@ ...@@ -290,23 +250,21 @@
@blur="setLocalStorge('covidVaccine')" @blur="setLocalStorge('covidVaccine')"
:rules="[{ required: true, message: '请填写接种针数' }]" :rules="[{ required: true, message: '请填写接种针数' }]"
> >
<template #extra></template></van-field <template #extra v-if="hasCOVIDVaccine == '是'"></template></van-field
> >
<van-field <van-field
v-if="HasCOVIDVaccine == '是'" v-if="hasCOVIDVaccine == '是'"
colon colon
clearable clearable
name="vaccineType" name="vaccineType"
label="疫苗公司" label="疫苗公司"
:rules="[ :rules="[
{ {
required: HasCOVIDVaccine == '是' ? true : false, required: hasCOVIDVaccine == '是' ? true : false,
message: '请选择疫苗公司', message: '请选择疫苗公司',
}, },
]" ]"
> >
<template #input> <template #input>
<van-checkbox-group <van-checkbox-group
...@@ -318,9 +276,7 @@ ...@@ -318,9 +276,7 @@
setLocalStorge('vaccineType'); setLocalStorge('vaccineType');
} }
" "
> >
<template v-for="(item, index) in vaccineTypeList"> <template v-for="(item, index) in vaccineTypeList">
<van-checkbox :key="index" :name="item.element" shape="square">{{ <van-checkbox :key="index" :name="item.element" shape="square">{{
item.element item.element
...@@ -330,13 +286,9 @@ ...@@ -330,13 +286,9 @@
</template> </template>
</van-field> </van-field>
<van-field <van-field
colon colon
v-if="vaccineType == '其他'" v-if="vaccineType.includes('其他')"
clearable clearable
autosize autosize
type="textarea" type="textarea"
...@@ -346,7 +298,7 @@ ...@@ -346,7 +298,7 @@
placeholder="其他疫苗" placeholder="其他疫苗"
:rules="[ :rules="[
{ {
required: vaccineType == '其他' ? true : false, required: vaccineType.includes('其他') ? true : false,
message: '请填写其他疫苗', message: '请填写其他疫苗',
}, },
]" ]"
...@@ -354,7 +306,7 @@ ...@@ -354,7 +306,7 @@
></van-field> ></van-field>
<van-field <van-field
v-if="HasCOVIDVaccine == '是'" v-if="hasCOVIDVaccine == '是'"
colon colon
clearable clearable
readonly readonly
...@@ -396,6 +348,7 @@ export default { ...@@ -396,6 +348,7 @@ export default {
name: "page5", name: "page5",
data() { data() {
return { return {
workOrNotCovid: "否",//是否需要接触新冠
HasOnlineClass: "否", //是否上网课 HasOnlineClass: "否", //是否上网课
purpose: "学习", // 来沪目的 purpose: "学习", // 来沪目的
thirtyDays: "是", //近三十天内无离开上海 thirtyDays: "是", //近三十天内无离开上海
...@@ -405,16 +358,18 @@ export default { ...@@ -405,16 +358,18 @@ export default {
beforeIsolationPoint: "", //之前隔离点 beforeIsolationPoint: "", //之前隔离点
inHospitalDate: "", //120转运时间 inHospitalDate: "", //120转运时间
HasSymptom: "否", //有无症状 // HasSymptom: "否", //有无症状
symptom: [], //患者症状 // symptom: [], //患者症状
HasCOVIDVaccine: "是", // otherSymptom: "", //其他症状
//symptomList: [],
hasCOVIDVaccine: "是",
covidVaccine: "", //接种针数 covidVaccine: "", //接种针数
vaccineType: [], //疫苗公司 vaccineType: [], //疫苗公司
othervaccines: "", //其他疫苗 othervaccines: "", //其他疫苗
vaccineDate: "", //最后一次接种日期 vaccineDate: "", //最后一次接种日期
vaccineTypeList: [], vaccineTypeList: [],
symptomList: [],
showNormalDate: false, //未发生异常时间弹窗 showNormalDate: false, //未发生异常时间弹窗
showUnusualDate: false, //核酸时间弹窗 showUnusualDate: false, //核酸时间弹窗
...@@ -456,12 +411,12 @@ export default { ...@@ -456,12 +411,12 @@ export default {
"unusualDate", //核酸检测异常时间 "unusualDate", //核酸检测异常时间
"normalDate", //未发生异常时间 "normalDate", //未发生异常时间
"inHospitalDate", //120转运时间 "inHospitalDate", //120转运时间
"otherSymptom", //其他症状
"vaccineType",
"beforeIsolationPoint", //之前隔离点 "beforeIsolationPoint", //之前隔离点
"HasSymptom", //有无症状 "HasSymptom", //有无症状
"HasCOVIDVaccine", "hasCOVIDVaccine",//是否接种过疫苗
"covidVaccine", //接种针数 "covidVaccine", //接种针数
// "vaccineType", //疫苗公司
"othervaccines", //其他疫苗 "othervaccines", //其他疫苗
"vaccineDate", //最后一次接种日期 "vaccineDate", //最后一次接种日期
]; ];
...@@ -471,10 +426,11 @@ export default { ...@@ -471,10 +426,11 @@ export default {
this[`${arr[i]}`] = this.getLocalStorge(arr[i]); this[`${arr[i]}`] = this.getLocalStorge(arr[i]);
} }
} }
if (this.getLocalStorge("vaccineType")) { if (this.getLocalStorge("vaccineType")) {
this.symptom = this.getLocalStorge("vaccineType").split(","); this.vaccineType = this.getLocalStorge("vaccineType").split(",");
}
}
}, },
getLocalStorge(key) { getLocalStorge(key) {
...@@ -493,7 +449,7 @@ export default { ...@@ -493,7 +449,7 @@ export default {
// this.unusualDate = formatDate(new Date(), "yyyy-MM-dd"); //核酸检测异常时间 // this.unusualDate = formatDate(new Date(), "yyyy-MM-dd"); //核酸检测异常时间
// this.normalDate = formatDate(new Date(), "yyyy-MM-dd"); //未发生异常时间 // this.normalDate = formatDate(new Date(), "yyyy-MM-dd"); //未发生异常时间
// this.inHospitalDate = formatDate(new Date(), "yyyy-MM-dd"); //120转运时间 // this.inHospitalDate = formatDate(new Date(), "yyyy-MM-dd"); //120转运时间
this.vaccineDate = formatDate(new Date(), "yyyy-MM-dd"); //最后一次接种日期 // this.vaccineDate = formatDate(new Date(), "yyyy-MM-dd"); //最后一次接种日期
}, },
onpurpose(value, index) { onpurpose(value, index) {
...@@ -566,18 +522,12 @@ export default { ...@@ -566,18 +522,12 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.page5 { .page5 {
.symptom { .vaccineType {
.van-checkbox--horizontal { .van-checkbox {
margin-right: 0.32rem;
min-width: 35%;
margin-bottom: 5%;
}
}
.vaccineType{
.van-checkbox{
width: 43%; width: 43%;
margin-bottom: 5%; margin-bottom: 5%;
} }
} }
} }
</style> </style>
<!-- <!--
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng * @LastEditors: wsq
* @LastEditTime: 2022-03-24 14:38:02 * @LastEditTime: 2022-04-21 10:55:31
* @Description: * @Description:
--> -->
<template> <template>
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
></van-field> --> ></van-field> -->
<van-field <van-field
v-if="hasHistoryAllergies == '有'" v-show="hasHistoryAllergies == '有'"
colon colon
clearable clearable
label-width="125px" label-width="125px"
...@@ -67,18 +67,18 @@ ...@@ -67,18 +67,18 @@
@blur="setLocalStorge('foodAllergy')" @blur="setLocalStorge('foodAllergy')"
></van-field> ></van-field>
<van-field <van-field
v-if="hasHistoryAllergies == '有'" v-show="hasHistoryAllergies == '有'"
colon colon
clearable clearable
label-width="125px" label-width="125px"
v-model="drugAllergy" v-model="drugAllergy"
name="drugAllergy " name="drugAllergy"
label="药物过敏原" label="药物过敏原"
placeholder="物过敏原" placeholder="物过敏原"
@blur="setLocalStorge('drugAllergy')" @blur="setLocalStorge('drugAllergy')"
></van-field> ></van-field>
<van-field <van-field
v-if="hasHistoryAllergies == '有'" v-show="hasHistoryAllergies == '有'"
colon colon
clearable clearable
label-width="125px" label-width="125px"
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
</van-field> </van-field>
<van-field <van-field
v-if="hasHistorySurgery == '有'" v-show="hasHistorySurgery == '有'"
colon colon
clearable clearable
label-width="125px" label-width="125px"
...@@ -150,8 +150,10 @@ ...@@ -150,8 +150,10 @@
if (HasPreviousHistory == '无') { if (HasPreviousHistory == '无') {
previousHistory = []; previousHistory = [];
otherPastHistory = ''; otherPastHistory = '';
setValue('previousHistory'); tuberculosisDate='';
setValue('previousHistory','');
setValue('otherPastHistory', ''); setValue('otherPastHistory', '');
setValue('tuberculosisDate', '');
} }
} }
" "
...@@ -170,10 +172,10 @@ ...@@ -170,10 +172,10 @@
name="previousHistory" name="previousHistory"
label-width="125px" label-width="125px"
label="既往史" label="既往史"
v-show="HasPreviousHistory != '无'" v-show="HasPreviousHistory == '有'"
:rules="[ :rules="[
{ {
required: HasPreviousHistory != '无' ? true : false, required: HasPreviousHistory == '有' ? true : false,
message: '请选择既往史', message: '请选择既往史',
}, },
]" ]"
...@@ -196,7 +198,7 @@ ...@@ -196,7 +198,7 @@
<van-field <van-field
colon colon
v-if="previousHistory.includes('其他')" v-show="previousHistory.includes('其他')"
clearable clearable
autosize autosize
type="textarea" type="textarea"
...@@ -219,11 +221,11 @@ ...@@ -219,11 +221,11 @@
readonly readonly
clickable clickable
label-width="125px" label-width="125px"
v-if="HasPreviousHistory != '无' && previousHistory.includes('肺结核')" v-show="HasPreviousHistory == '有' && previousHistory.includes('肺结核')"
:rules="[ :rules="[
{ {
required: required:
HasPreviousHistory != '无' && previousHistory.includes('肺结核') HasPreviousHistory == '有' && previousHistory.includes('肺结核')
? true ? true
: false, : false,
message: '请选择既往史发生时间', message: '请选择既往史发生时间',
...@@ -261,7 +263,9 @@ ...@@ -261,7 +263,9 @@
setLocalStorge('yesOrNoCt'); setLocalStorge('yesOrNoCt');
if (yesOrNoCt == '无') { if (yesOrNoCt == '无') {
ChestCT = '无'; ChestCT = '无';
ChestCTDate='';
setValue('ChestCT', ''); setValue('ChestCT', '');
setValue('ChestCTDate', '');
} }
} }
" "
...@@ -401,8 +405,16 @@ export default { ...@@ -401,8 +405,16 @@ export default {
// } // }
} }
}); });
this.tuberculosisDate = this.getLocalStorge('tuberculosisDate')
this.otherPastHistory = this.getLocalStorge('otherPastHistory')
this.foodAllergy = this.getLocalStorge('foodAllergy')
this.drugAllergy = this.getLocalStorge('drugAllergy')
this.otherAllergy = this.getLocalStorge('otherAllergy')
if (this.getLocalStorge("previousHistory")) {
this.previousHistory = this.getLocalStorge("previousHistory").split(","); this.previousHistory = this.getLocalStorge("previousHistory").split(",");
}
}, },
getLocalStorge(key) { getLocalStorge(key) {
...@@ -418,7 +430,7 @@ export default { ...@@ -418,7 +430,7 @@ export default {
}, },
setChestCTDate() { setChestCTDate() {
this.ChestCTDate = formatDate(new Date(), "yyyy-MM-dd"); // this.ChestCTDate = formatDate(new Date(), "yyyy-MM-dd");
}, },
getResource() { getResource() {
this.setLoading(true); this.setLoading(true);
...@@ -430,13 +442,13 @@ export default { ...@@ -430,13 +442,13 @@ export default {
}); });
}, },
onConfirm(date) { onConfirm(date) {
this.tuberculosisDate = formatDate(date, "yyyy-MM"); this.tuberculosisDate = formatDate(date, "yyyy-MM-dd");
this.setLocalStorge("tuberculosisDate"); this.setLocalStorge("tuberculosisDate");
this.showPicker = false; this.showPicker = false;
}, },
onChestCT(date) { onChestCT(date) {
this.ChestCTDate = formatDate(date, "yyyy-MM-dd "); this.ChestCTDate = formatDate(date, "yyyy-MM-dd");
this.setLocalStorge("ChestCTDate"); this.setLocalStorge("ChestCTDate");
this.showCalendar = false; this.showCalendar = false;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment