更换第4,5页的字段

parent 6f648605
<!--
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-11-03 14:21:19
* @LastEditors: wsq
* @LastEditTime: 2022-11-03 15:14:27
* @Description:
-->
<template>
......@@ -115,12 +115,12 @@
</template>
</van-field>
<van-field colon v-show="previousHistory.includes('其他')" clearable autosize type="textarea"
<van-field colon v-show="previousHistory.includes($t('other'))" clearable autosize type="textarea"
v-model="otherPastHistory" name="otherPastHistory" :label="$t('otherPastHistory')"
:placeholder="$t('otherPastHistory')" :rules="[
{
required: previousHistory.includes('其他') ? true : false,
message: '请填写其他既往史',
required: previousHistory.includes($t('other')) ? true : false,
message: `请填写${$t('otherPastHistory')}`,
},
]" @blur="setLocalStorge('otherPastHistory')"></van-field>
......@@ -132,9 +132,9 @@
HasPreviousHistory != $t('noHave') && previousHistory.includes('肺结核')
? true
: false,
message: '请选择既往史发生时间',
message: `请选择${$t('tuberculosisDate')}`,
},
]" name="tuberculosisDate" :value="tuberculosisDate" label="既往史发生时间" placeholder="点击选择既往史发生时间"
]" name="tuberculosisDate" :value="tuberculosisDate" :label="$t('tuberculosisDate')" :placeholder="`点击选择${$t('tuberculosisDate')}`"
@click="showPicker = true" />
<van-popup v-model="showPicker" position="bottom">
<van-datetime-picker :min-date="minDate" :max-date="maxDate" type="date" @confirm="onConfirm"
......@@ -142,12 +142,12 @@
</van-popup>
<van-field colon clearable name="whetherSmoking" label="是否吸烟" label-width="125px">
<van-field colon clearable name="whetherSmoking" :label="$t('whetherSmoking')" label-width="125px">
<template #input>
<van-radio-group @change="
() => {
setLocalStorge('whetherSmoking');
if (whetherSmoking == '否') {
if (whetherSmoking == $t('no')) {
smokingTypes = []; //烟草类型
smokingYears = ''; //吸烟年数
smokingCount = ''; //吸烟支数
......@@ -159,12 +159,12 @@
}
}
" v-model="whetherSmoking" direction="horizontal">
<van-radio name="是"></van-radio>
<van-radio name="否"></van-radio>
<van-radio :name="$t('yes')">{{$t('yes')}}</van-radio>
<van-radio :name="$t('no')">{{$t('no')}}</van-radio>
</van-radio-group>
</template>
</van-field>
<van-field colon clearable label-width="125px" name="smokingTypes" label="烟草类型" v-if="whetherSmoking == '是'">
<van-field colon clearable label-width="125px" name="smokingTypes" :label="$t('smokingTypes')" v-if="whetherSmoking == '是'">
<template #input>
<van-checkbox-group @change="setLocalStorge('smokingTypes')" v-model="smokingTypes"
direction="horizontal" class="smokingTypes">
......@@ -177,70 +177,70 @@
</template>
</van-field>
<van-field v-if="whetherSmoking == '是'" colon clearable label-width="125px" v-model="smokingYears"
name="smokingYears" label="吸烟年数" placeholder="吸烟年数" type="digit" @blur="setLocalStorge('smokingYears')"
:rules="[{ required: false, message: '请填写吸烟年数' }]">
<van-field v-if="whetherSmoking == $t('yes')" colon clearable label-width="125px" v-model="smokingYears"
name="smokingYears" :label="$t('smokingYears')" :placeholder="`${$t('smokingYears')}`" type="digit" @blur="setLocalStorge('smokingYears')"
:rules="[{ required: false, message:`请填写${$t('smokingYears')}`}]">
<template #extra>
{{$t('year')}}
</template>
</van-field>
<van-field v-if="whetherSmoking == '是'" label-width="125px" colon clearable v-model="smokingCount"
name="smokingCount" label="每天吸烟支数" placeholder="每天吸烟支数" type="digit" @blur="setLocalStorge('smokingCount')"
:rules="[{ required: false, message: '请填写每天吸烟支数' }]">
<van-field v-if="whetherSmoking == $t('yes')" label-width="125px" colon clearable v-model="smokingCount"
name="smokingCount" :label="$t('smokingCount')" :placeholder="$t('smokingCount')" type="digit" @blur="setLocalStorge('smokingCount')"
:rules="[{ required: false, message: `请填写${$t('smokingCount')}` }]">
<template #extra>
{{$t('branch')}}
</template>
</van-field>
<van-field colon clearable label-width="125px" name="whetherNoSmoking" label="是否戒烟"
v-if="whetherSmoking == '是'">
<van-field colon clearable label-width="125px" name="whetherNoSmoking" :label="$t('whetherNoSmoking')"
v-if="whetherSmoking == $t('yes')">
<template #input>
<van-radio-group @change="
() => {
setLocalStorge('whetherNoSmoking');
if (whetherNoSmoking == '否') {
if (whetherNoSmoking == $t('no')) {
noSmokingYears = ''; //戒烟年数
setValue('noSmokingYears', '');
}
}
" v-model="whetherNoSmoking" direction="horizontal">
<van-radio name="是"></van-radio>
<van-radio name="否"></van-radio>
<van-radio :name="$t('yes')">{{$t('yes')}}</van-radio>
<van-radio :name="$t('no')">{{$t('no')}}</van-radio>
</van-radio-group>
</template>
</van-field>
<van-field v-if="whetherNoSmoking == '是'" colon label-width="125px" clearable v-model="noSmokingYears"
name="noSmokingYears" label="戒烟年数" placeholder="戒烟年数" type="digit" @blur="setLocalStorge('noSmokingYears')"
:rules="[{ required: false, message: '请填写戒烟年数' }]">
<van-field v-if="whetherNoSmoking == $t('yes')" colon label-width="125px" clearable v-model="noSmokingYears"
name="noSmokingYears" :label="$t('noSmokingYears')" :placeholder="$t('noSmokingYears')" type="digit" @blur="setLocalStorge('noSmokingYears')"
:rules="[{ required: false, message: `请填写${$t('noSmokingYears')}` }]">
<template #extra>
{{$t('year')}}
</template>
</van-field>
<van-field colon clearable name="whetherPassivitySmoking" label="是否被动吸烟" label-width="125px">
<van-field colon clearable name="whetherPassivitySmoking" :label="$t('noSmokingYears')" label-width="125px">
<template #input>
<van-radio-group @change="
() => {
setLocalStorge('whetherPassivitySmoking');
if (whetherPassivitySmoking == '否') {
if (whetherPassivitySmoking == $t('no')) {
passivitySmokingYears = ''; //被动吸烟年数
setValue('passivitySmokingYears', '');
}
}
" v-model="whetherPassivitySmoking" direction="horizontal">
<van-radio name="是"></van-radio>
<van-radio name="否"></van-radio>
<van-radio :name="$t('yes')">{{$t('yes')}}</van-radio>
<van-radio :name="$t('no')">{{$t('no')}}</van-radio>
</van-radio-group>
</template>
</van-field>
<van-field v-if="whetherPassivitySmoking == '是'" colon label-width="125px" clearable
v-model="passivitySmokingYears" name="passivitySmokingYears" label="被动吸烟年数" placeholder="被动吸烟年数"
<van-field v-if="whetherPassivitySmoking == $t('yes')" colon label-width="125px" clearable
v-model="passivitySmokingYears" name="passivitySmokingYears" :label="$t('passivitySmokingYears')" :placeholder="$t('passivitySmokingYears')"
type="digit" @blur="setLocalStorge('passivitySmokingYears')">
<template #extra>
{{$t('year')}}
</template>
</van-field>
......@@ -250,7 +250,7 @@
@cancel="showPicker = false" :formatter="formatter" />
</van-popup>
<van-field colon clearable name="yesOrNoCt" label-width="125px" label="有无胸部CT检查">
<van-field colon clearable name="yesOrNoCt" label-width="125px" :label="$t('yesOrNoCt')">
<template #input>
<van-radio-group @change="
() => {
......@@ -270,7 +270,7 @@
</van-field>
<van-field v-if="yesOrNoCt == $t('have')" colon clearable name="ChestCT" label-width="125px"
label="CT有无病毒性肺炎表现">
:label="$t('ChestCT')">
<template #input>
<van-radio-group @change="
() => {
......@@ -284,11 +284,11 @@
</van-field>
<van-field v-if="yesOrNoCt == $t('have')" colon clearable readonly clickable name="ChestCTDate"
:value="ChestCTDate" label="发生时间" label-width="125px" placeholder="点击选择新冠肺炎CT拍照时间"
:value="ChestCTDate" :label="$t('ChestCTDate')" label-width="125px" :placeholder="`点击选择${$t('ChestCTDate')}`"
@click="showCalendar = true" :rules="[
{
required: ChestCT == $t('have') ? true : false,
message: '请选择新冠肺炎CT拍照时间',
message: `请选择${$t('ChestCTDate')}`,
},
]" />
<van-popup v-model="showCalendar" position="bottom">
......
/*
* @Author: ninglupeng
* @Date: 2022-10-31 14:22:35
* @LastEditors: ninglupeng
* @LastEditTime: 2022-11-03 14:40:09
* @LastEditors: wsq
* @LastEditTime: 2022-11-03 16:09:49
* @Description:
*/
module.exports = {
......@@ -37,6 +37,7 @@ module.exports = {
"orNotByEntry": "近期是否由国外入境",//近期是否由国外入境
"nationality": "国籍", //国籍
"passportId": "护照号", //护照号
"symptom":'症状',//症状
"HasSymptom": "是否有症状",//是否有症状
"otherSymptom": "其他症状",//其他症状
"otherOccupation": "其他职业",//其他职业
......@@ -51,7 +52,7 @@ module.exports = {
"occupation": "职业", //职业
"contactInformation": "联系方式", //联系方式
"FamilyMembersPhone": "家属联系方式", //家属联系方式
"Registeredresidence": "户籍地", //户籍地
"Registeredresidence": "户籍地(市)", //户籍地
// "province", //籍贯 (省)
// "city", //籍贯 (市)
"address": "现居住地", //现居住地
......@@ -59,6 +60,22 @@ module.exports = {
"typeOfMedicalInsurance": "医保类型", //医保类型
"insurance": "商业保险", //商业保险
"boy":'男',
"girl":'女',
"Nonpregnant":'未孕',
"pregnant":'已孕',
"unmarried":'未婚',
"married":'已婚',
//第五页
"HasOnlineClass": "是否上网课", // 是否上网课
......@@ -107,7 +124,7 @@ module.exports = {
"whetherPassivitySmoking": "是否被动吸烟", //是否被动吸烟
"passivitySmokingYears": "被动吸烟年数", //是否被动吸烟年数
"year": '年',
"branch":'支',
//第七页
......@@ -121,5 +138,8 @@ module.exports = {
"no": "否",
"have": "有",
"noHave": "无",
"other":"其他",
"week":'周',
"China":'中国',
}
\ No newline at end of file
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