Commit af1910e1 by wangshuangqing

修改疫苗公示卫多选

parent 8583be27
...@@ -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-16 15:27:49 * @LastEditTime: 2022-04-19 14:25:11
* @Description: * @Description:
--> -->
<template> <template>
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
() => { () => {
if (HasSymptom == '否') { if (HasSymptom == '否') {
symptom = []; symptom = [];
otherSymptom=''; otherSymptom = '';
setValue('symptom', ''); setValue('symptom', '');
setValue('otherSymptom', ''); setValue('otherSymptom', '');
...@@ -245,8 +245,6 @@ ...@@ -245,8 +245,6 @@
</template> </template>
</van-field> </van-field>
<van-field <van-field
colon colon
v-if="symptom.includes('其他')" v-if="symptom.includes('其他')"
...@@ -266,8 +264,6 @@ ...@@ -266,8 +264,6 @@
@blur="setLocalStorge('otherSymptom')" @blur="setLocalStorge('otherSymptom')"
></van-field> ></van-field>
<van-field <van-field
colon colon
clearable clearable
...@@ -282,10 +278,10 @@ ...@@ -282,10 +278,10 @@
setLocalStorge('HasCOVIDVaccine'); setLocalStorge('HasCOVIDVaccine');
if (HasCOVIDVaccine == '否') { if (HasCOVIDVaccine == '否') {
covidVaccine = 0; covidVaccine = '';
vaccineType = ''; vaccineType = [];
othervaccines = ''; othervaccines = '';
setValue('covidVaccine', 0); setValue('covidVaccine', '');
setValue('vaccineType', ''); setValue('vaccineType', '');
setValue('othervaccines', ''); setValue('othervaccines', '');
} }
...@@ -317,31 +313,41 @@ ...@@ -317,31 +313,41 @@
> >
<van-field <van-field
v-if="HasCOVIDVaccine == '是'"
colon colon
clearable clearable
name="vaccineType" name="vaccineType"
label-width="130px"
label="疫苗公司" label="疫苗公司"
v-if="HasCOVIDVaccine == '是'" :rules="[
{
required: HasCOVIDVaccine == '是' ? true : false,
message: '请选择疫苗公司',
},
]"
> >
<template #input> <template #input>
<van-radio-group <van-checkbox-group
@change="setLocalStorge('vaccineType')"
v-model="vaccineType" v-model="vaccineType"
direction="horizontal" direction="horizontal"
class="vaccineType"
@change="
() => {
setLocalStorge('vaccineType');
}
"
> >
<van-cell-group> <template v-for="(item, index) in vaccineTypeList">
<van-cell :key="index" v-for="(item, index) in vaccineTypeList"> <van-checkbox :key="index" :name="item.element" shape="square">{{
<van-radio :name="item.element">{{ item.element }}</van-radio> item.element
</van-cell> }}</van-checkbox>
</van-cell-group> </template>
</van-radio-group> </van-checkbox-group>
</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"
...@@ -351,7 +357,7 @@ ...@@ -351,7 +357,7 @@
placeholder="其他疫苗" placeholder="其他疫苗"
:rules="[ :rules="[
{ {
required: vaccineType == '其他' ? true : false, required: vaccineType.includes('其他') ? true : false,
message: '请填写其他疫苗', message: '请填写其他疫苗',
}, },
]" ]"
...@@ -412,10 +418,10 @@ export default { ...@@ -412,10 +418,10 @@ export default {
HasSymptom: "否", //有无症状 HasSymptom: "否", //有无症状
symptom: [], //患者症状 symptom: [], //患者症状
otherSymptom:'',//其他症状 otherSymptom: "", //其他症状
HasCOVIDVaccine: "是", HasCOVIDVaccine: "是",
covidVaccine: "", //接种针数 covidVaccine: "", //接种针数
vaccineType: "", //疫苗公司 vaccineType: [], //疫苗公司
othervaccines: "", //其他疫苗 othervaccines: "", //其他疫苗
vaccineDate: "", //最后一次接种日期 vaccineDate: "", //最后一次接种日期
...@@ -462,13 +468,12 @@ export default { ...@@ -462,13 +468,12 @@ export default {
"unusualDate", //核酸检测异常时间 "unusualDate", //核酸检测异常时间
"normalDate", //未发生异常时间 "normalDate", //未发生异常时间
"inHospitalDate", //120转运时间 "inHospitalDate", //120转运时间
"otherSymptom",//其他症状 "otherSymptom", //其他症状
"beforeIsolationPoint", //之前隔离点 "beforeIsolationPoint", //之前隔离点
"HasSymptom", //有无症状 "HasSymptom", //有无症状
"HasCOVIDVaccine", "HasCOVIDVaccine",
"covidVaccine", //接种针数 "covidVaccine", //接种针数
"vaccineType", //疫苗公司
"othervaccines", //其他疫苗 "othervaccines", //其他疫苗
"vaccineDate", //最后一次接种日期 "vaccineDate", //最后一次接种日期
]; ];
...@@ -478,6 +483,9 @@ export default { ...@@ -478,6 +483,9 @@ export default {
this[`${arr[i]}`] = this.getLocalStorge(arr[i]); this[`${arr[i]}`] = this.getLocalStorge(arr[i]);
} }
} }
if (this.getLocalStorge("vaccineType")) {
this.symptom = this.getLocalStorge("vaccineType").split(",");
}
}, },
getLocalStorge(key) { getLocalStorge(key) {
...@@ -569,6 +577,12 @@ export default { ...@@ -569,6 +577,12 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.page5 { .page5 {
.vaccineType {
.van-checkbox {
width: 43%;
margin-bottom: 5%;
}
}
.symptom { .symptom {
.van-checkbox--horizontal { .van-checkbox--horizontal {
margin-right: 0.32rem; margin-right: 0.32rem;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2022-03-17 15:06:50 * @Date: 2022-03-17 15:06:50
* @LastEditors: wsq * @LastEditors: wsq
* @LastEditTime: 2022-04-18 20:14:52 * @LastEditTime: 2022-04-19 14:03:14
* @Description: * @Description:
*/ */
const path = require('path'); const path = require('path');
...@@ -62,7 +62,7 @@ module.exports = { ...@@ -62,7 +62,7 @@ module.exports = {
'/api': { '/api': {
// 移动端 // 移动端
//target: 'http://flowtone_fdpd.suvalue.com',//方舱 target: 'http://flowtone_fdpd.suvalue.com',//方舱
//target: 'http://flowtone_lgfc.suvalue.com',//方舱 //target: 'http://flowtone_lgfc.suvalue.com',//方舱
//target: 'http://flowtone_rjny.suvalue.com',//方舱 //target: 'http://flowtone_rjny.suvalue.com',//方舱
//target: 'http://flowtone_syzy.sualvue.com',//方舱 //target: 'http://flowtone_syzy.sualvue.com',//方舱
...@@ -74,7 +74,7 @@ module.exports = { ...@@ -74,7 +74,7 @@ module.exports = {
//target: 'http://flowtone7.suvalue.com',//方舱 //target: 'http://flowtone7.suvalue.com',//方舱
//target: 'http://flowtone8.suvalue.com',//方舱 //target: 'http://flowtone8.suvalue.com',//方舱
//target: 'http://flowtone9.suvalue.com',//方舱 //target: 'http://flowtone9.suvalue.com',//方舱
target: 'http://flowtone10.suvalue.com',//方舱 //target: 'http://flowtone10.suvalue.com',//方舱
ws: true, //如果要代理 websockets,配置这个参数 ws: true, //如果要代理 websockets,配置这个参数
// secure: false, // 如果是https接口,需要配置这个参数 // secure: false, // 如果是https接口,需要配置这个参数
......
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