替换第6页的字段

parent 3b8bf781
<!--
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-11-03 13:25:11
* @LastEditors: wsq
* @LastEditTime: 2022-11-03 16:08:42
* @Description:
-->
<template>
......@@ -15,8 +15,8 @@
<van-field colon clearable name="orNotByEntry" :label="$t('orNotByEntry')">
<template #input>
<van-radio-group @change="setLocalStorge('orNotByEntry')" v-model="orNotByEntry" 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>
......@@ -37,18 +37,18 @@
}
" />
</van-popup>
<van-field colon v-if="nationality != '中国'" clearable v-model="passportId" name="passportId"
<van-field colon v-if="nationality != $t('China')" clearable v-model="passportId" name="passportId"
:label="$t('passportId')" :placeholder="$t('passportId')" :rules="[
{
required: nationality != '中国' ? true : false,
required: nationality != $t('China') ? true : false,
message: `请填写${$t('passportId')}`,
},
]"></van-field>
<van-field colon clearable v-if="nationality == '中国'" v-model="idCard" name="idCard" :label="$t('idCard')"
<van-field colon clearable v-if="nationality == $t('China')" v-model="idCard" name="idCard" :label="$t('idCard')"
:placeholder="$t('idCard')" @blur="getdate" :rules="[
{ required: true, message: '请填写身份证号' },
{ validator, message: '身份证号码格式错误!' },
{ required: true, message: `请填写${$t('idCard')}` },
{ validator, message: `${$t('idCard')}格式错误!` },
]"></van-field>
<van-field colon clearable name="gender" :label="$t('gender')">
......@@ -56,78 +56,80 @@
<van-radio-group @change="
() => {
setLocalStorge('gender');
if (gender == '男') {
isConceive = '未孕';
if (gender == $t('boy')) {
isConceive = $t('Nonpregnant');
gestationalWeeks = '';
setValue('isConceive', '未孕');
setValue('isConceive', $t('Nonpregnant'));
setValue('gestationalWeeks', '');
}
}
" v-model="gender" direction="horizontal">
<van-radio name="男"></van-radio>
<van-radio name="女"></van-radio>
<van-radio :name="$t('boy')">{{$t('boy')}}</van-radio>
<van-radio :name="$t('girl')">{{$t('girl')}}</van-radio>
</van-radio-group>
</template>
</van-field>
<van-field colon clearable readonly clickable name="birthday" :value="birthday" label="出生日期" placeholder="出生日期"
@click="showbirthday = true" :rules="[{ required: true, message: '请选择出生日期' }]" />
<van-field colon clearable readonly clickable name="birthday" :value="birthday" :label="$t('birthday')" :placeholder="$t('birthday')"
@click="showbirthday = true" :rules="[{ required: true, message: `请选择${$t('birthday')}` }]" />
<van-popup v-model="showbirthday" position="bottom">
<van-datetime-picker type="date" :min-date="minbirthday" :max-date="maxDate" @confirm="onbirthday"
@cancel="showbirthday = false" :formatter="formatter" />
</van-popup>
<van-field colon clearable v-model="age" name="age" label="年龄" placeholder="年龄" type="digit"
@blur="setLocalStorge('age')" :rules="[{ required: true, message: '请填写年龄' }]"></van-field>
<van-field colon clearable v-model="age" name="age" :label="$t('age')" :placeholder="$t('age')" type="digit"
@blur="setLocalStorge('age')" :rules="[{ required: true, message: `请填写${$t('age')}` }]"></van-field>
<van-field colon clearable v-model="height" name="height" label="身高" placeholder="身高" type="digit"
@blur="setLocalStorge('height')" :rules="[{ required: true, message: '请填写身高' }]">
<van-field colon clearable v-model="height" name="height" :label="$t('height')" :placeholder="$t('height')" type="digit"
@blur="setLocalStorge('height')" :rules="[{ required: true, message: `请填写${$t('height')}`}]">
<template #extra>
CM
</template>
</van-field>
<van-field colon clearable v-model="weight" name="weight" label="体重" placeholder="体重" type="number"
@blur="setLocalStorge('weight')" :rules="[{ required: true, message: '请填写体重' }]">
<van-field colon clearable v-model="weight" name="weight" :label="$t('weight')" :placeholder="$t('weight')" type="number"
@blur="setLocalStorge('weight')" :rules="[{ required: true, message: `请填写${$t('weight')}` }]">
<template #extra>
KG
</template>
</van-field>
<van-field colon clearable name="maritalStatus" label="婚姻状况">
<van-field colon clearable name="maritalStatus" :label="$t('maritalStatus')">
<template #input>
<van-radio-group @change="setLocalStorge('maritalStatus')" v-model="maritalStatus"
direction="horizontal">
<van-radio name="已婚">已婚</van-radio>
<van-radio name="未婚">未婚</van-radio>
<van-radio :name="$t('married')">{{$t('married')}}</van-radio>
<van-radio :name="$t('unmarried')">{{$t('unmarried')}}</van-radio>
</van-radio-group>
</template>
</van-field>
<van-field colon clearable v-if="gender == '女'" name="isConceive" label="怀孕状况">
<van-field colon clearable v-if="gender == $t('girl')" name="isConceive" :label="$t('isConceive')">
<template #input>
<van-radio-group @change="setLocalStorge('isConceive')" v-model="isConceive" direction="horizontal">
<van-radio name="未孕">未孕</van-radio>
<van-radio name="已孕">已孕</van-radio>
<van-radio :name="$t('Nonpregnant')">{{$t('Nonpregnant')}}</van-radio>
<van-radio :name="$t('pregnant')">{{$t('pregnant')}}</van-radio>
</van-radio-group>
</template>
</van-field>
<van-field colon clearable v-if="gender == '女' && isConceive == '已孕'" v-model="gestationalWeeks"
name="gestationalWeeks" label="怀孕周期" placeholder="怀孕周期" type="number"
<van-field colon clearable v-if="gender == $t('girl') && isConceive == $t('pregnant')" v-model="gestationalWeeks"
name="gestationalWeeks" :label="$t('gestationalWeeks')" :placeholder="$t('gestationalWeeks')" type="number"
@blur="setLocalStorge('gestationalWeeks')" :rules="[
{
required: gender == '女' && isConceive == '已孕' ? true : false,
message: '请填写怀孕周期',
required: gender == $t('girl') && isConceive == $t('pregnant') ? true : false,
message: `请填写${$t('gestationalWeeks')}`,
},
]">
<template #extra> </template>
<template #extra>{{$t('week')}} </template>
</van-field>
<van-field colon clearable name="occupation" label="职业" readonly :value="occupation"
@click="showoccupation = true" :rules="[{ required: true, message: '请填写职业' }]">
<van-field colon clearable name="occupation" :label="$t('occupation')" readonly :value="occupation"
@click="showoccupation = true" :rules="[{ required: true, message: `请填写${$t('occupation')}` }]">
</van-field>
<van-popup v-model="showoccupation" position="bottom">
<van-picker title="职业" show-toolbar :columns="occupationList" @confirm="
<van-picker :title="$t('occupation')" show-toolbar :columns="occupationList" @confirm="
(value, index) => {
occupation = value;
setLocalStorge('occupation');
......@@ -140,42 +142,40 @@
" />
</van-popup>
<van-field colon v-show="occupation == '其他'" clearable autosize type="textarea" v-model="otherOccupation"
name="otherOccupation" label="其他职业" placeholder="其他职业" :rules="[
<van-field colon v-show="occupation == $t('other')" clearable autosize type="textarea" v-model="otherOccupation"
name="otherOccupation" :label="$t('otherOccupation')" :placeholder="$t('otherOccupation')" :rules="[
{
required: occupation == '其他' ? true : false,
message: '请填写其他职业',
required: occupation == $t('other') ? true : false,
message: `请填写${$t('otherOccupation')}`,
},
]" @blur="setLocalStorge('otherOccupation')"></van-field>
<van-field colon clearable v-model="contactInformation" name="contactInformation" label="联系方式"
placeholder="联系方式" @blur="setLocalStorge('contactInformation')"
:rules="[{ required: true, message: '请填写联系方式' }]"></van-field>
<van-field colon clearable v-model="FamilyMembersPhone" name="FamilyMembersPhone" label="家属联系方式"
placeholder="家属联系方式" @blur="setLocalStorge('FamilyMembersPhone')"
:rules="[{ required: true, message: '请填写家属联系方式' }]"></van-field>
<van-field colon clearable v-model="contactInformation" name="contactInformation" :label="$t('contactInformation')" :placeholder="$t('contactInformation')" @blur="setLocalStorge('contactInformation')"
:rules="[{ required: true, message: `请填写${$t('contactInformation')}` }]"></van-field>
<van-field colon clearable v-model="FamilyMembersPhone" name="FamilyMembersPhone" :label="$t('FamilyMembersPhone')" :placeholder="$t('FamilyMembersPhone')" @blur="setLocalStorge('FamilyMembersPhone')"
:rules="[{ required: true, message:`请填写${$t('FamilyMembersPhone')}` }]"></van-field>
<van-field colon clearable readonly clickable name="province" :value="province" label="户籍地(省)" v-show="false" />
<van-field colon clearable readonly clickable name="city" :value="city" label="户籍地(市)" v-show="false" />
<!-- <van-field colon clearable readonly clickable name="province" :value="province" :label="$t('province')" v-show="false" />
<van-field colon clearable readonly clickable name="city" :value="city" label="户籍地(市)" v-show="false" /> -->
<van-field colon clearable readonly clickable name="Registeredresidence" :value="Registeredresidence"
label="户籍地" placeholder="点击选择户籍地" @click="showArea = true"
:rules="[{ required: true, message: '请点击选择户籍地' }]" />
:label="$t('Registeredresidence')" :placeholder="`点击选择${$t('Registeredresidence')}`" @click="showArea = true"
:rules="[{ required: true, message: `请点击选择${$t('Registeredresidence')}` }]" />
<van-popup v-model="showArea" position="bottom">
<van-area :area-list="areaList" :columns-num="2" @confirm="onConfirm" @cancel="showArea = false" />
</van-popup>
<van-field colon clearable autosize type="textarea" v-model="address" name="address" label="现居住地"
placeholder="现居住地" @blur="setLocalStorge('address')" :rules="[{ required: true, message: '请填写现居住地' }]">
<van-field colon clearable autosize type="textarea" v-model="address" name="address" :label="$t('address')"
:placeholder="$t('address')" @blur="setLocalStorge('address')" :rules="[{ required: true, message: `请填写${$t('address')}` }]">
</van-field>
<van-field colon clearable name="typeOfMedicalInsurance" label="医保类型" readonly :value="typeOfMedicalInsurance"
@click="showtypeOfMedicalInsurance = true" :rules="[{ required: true, message: '请填写医保类型' }]">
<van-field colon clearable name="typeOfMedicalInsurance" :label="$t('typeOfMedicalInsurance')" readonly :value="typeOfMedicalInsurance"
@click="showtypeOfMedicalInsurance = true" :rules="[{ required: true, message: `请填写${$t('typeOfMedicalInsurance')}` }]">
</van-field>
<van-popup v-model="showtypeOfMedicalInsurance" position="bottom">
<van-picker title="医保类型" show-toolbar :columns="typeOfMedicalInsuranceList" @confirm="
<van-picker :title="$t('typeOfMedicalInsurance')" show-toolbar :columns="typeOfMedicalInsuranceList" @confirm="
(value, index) => {
typeOfMedicalInsurance = value;
setLocalStorge('typeOfMedicalInsurance');
......@@ -189,19 +189,19 @@
</van-popup>
<!-- 有无商业保险 -->
<van-field colon clearable name="insurance" label="商业保险">
<van-field colon clearable name="insurance" :label="$t('insurance')">
<template #input>
<van-radio-group @change="setLocalStorge('insurance')" v-model="insurance" direction="horizontal">
<van-radio name="有"></van-radio>
<van-radio name="无"></van-radio>
<van-radio :name="$t('have')">{{ $t('have') }}</van-radio>
<van-radio :name="$t('noHave')">{{ $t('noHave') }}</van-radio>
</van-radio-group>
</template>
</van-field>
<van-field style="margin-left: -35px;" colon clearable name="HasSymptom" label-width="130px" label="是否有症状">
<van-field style="margin-left: -35px;" colon clearable name="HasSymptom" label-width="130px" :label="$t('HasSymptom')">
<template #input>
<van-radio-group @change="
() => {
if (HasSymptom == '否') {
if (HasSymptom == $t('no')) {
symptom = [];
otherSymptom = '';
......@@ -211,18 +211,18 @@
setLocalStorge('HasSymptom');
}
" v-model="HasSymptom" 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 style="margin-left: -35px;" v-if="HasSymptom == '是'" colon :rules="[
<van-field style="margin-left: -35px;" v-if="HasSymptom == $t('yes')" colon :rules="[
{
required: HasSymptom == '是' ? true : false,
message: '请选择症状',
required: HasSymptom == $t('yes') ? true : false,
message: `请选择${$t('symptom')}`,
},
]" clearable name="symptom" label="症状" label-width="130px">
]" clearable name="symptom" :label="$t('symptom')" label-width="130px">
<template #input>
<van-checkbox-group @change="
() => {
......@@ -239,11 +239,11 @@
</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="[
<van-field style="margin-left: 10px;" colon v-if="symptom.includes($t('other')) && HasSymptom == $t('yes')" clearable
autosize type="textarea" v-model="otherSymptom" name="otherSymptom" :label="$t('otherSymptom')" :placeholder="$t('otherSymptom')" :rules="[
{
required: symptom.includes('其他') && HasSymptom == '是' ? true : false,
message: '请填写其他症状',
required: symptom.includes($t('other')) && HasSymptom == $t('yes') ? true : false,
message: `请填写${$t('otherSymptom')}` ,
},
]" @blur="setLocalStorge('otherSymptom')"></van-field>
......
......@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: wsq
* @LastEditTime: 2022-11-03 14:18:38
* @LastEditTime: 2022-11-03 16:43:33
* @Description:
-->
<template>
......@@ -50,7 +50,7 @@
<van-field v-if="thirtyDays == $t('yes')" colon clearable v-model="LeaveShangHai" name="LeaveShangHai" :label="$t('LeaveShangHai')"
label-width="130px" placeholder="回上海天数" type="digit" @blur="setLocalStorge('LeaveShangHai')" :rules="[
label-width="130px" :placeholder="$t('LeaveShangHai')" type="digit" @blur="setLocalStorge('LeaveShangHai')" :rules="[
{
required: thirtyDays == $t('yes') ? true : false,
message: `请填写${$t('LeaveShangHai')}`,
......@@ -143,10 +143,10 @@
</template>
</van-field>
<van-field colon v-if="vaccineType.includes('其他')" clearable autosize type="textarea" label-width="130px"
<van-field colon v-if="vaccineType.includes($t('other'))" clearable autosize type="textarea" label-width="130px"
v-model="othervaccines" name="othervaccines" :label="$t('othervaccines')" :placeholder="$t('othervaccines')" :rules="[
{
required: vaccineType.includes('其他') ? true : false,
required: vaccineType.includes($t('other')) ? true : false,
message: `请填写${$t('othervaccines')}`,
},
]" @blur="setLocalStorge('othervaccines')"></van-field>
......
/*
* @Author: ninglupeng
* @Date: 2022-10-31 14:22:41
* @LastEditors: ninglupeng
* @LastEditTime: 2022-11-03 13:35:30
* @LastEditors: wsq
* @LastEditTime: 2022-11-03 16:42:11
* @Description:
*/
module.exports = {
......@@ -29,25 +29,106 @@ module.exports = {
//第四页
"patientName": "بىمارنىڭ ئىسىم-فامىلىسى", //患者姓名
"orNotByEntry": "يېقىنقى مەزگىلدە چەتئەل چېگرىدىن كىرگەنمۇ؟",//近期是否由国外入境
"nationality": "دۆلەت تەۋەلىكى", //国籍
"passportId": "护照号", //护照号
"symptom":'كېسەللىك ئالامىتى',//症状
"HasSymptom": "كېسەللىك ئالامىتى",//是否有症状
"otherSymptom": "其他症状",//其他症状
"otherOccupation": "其他职业",//其他职业
"age": "يېشى ", //年龄
"gender": "性别", //性别
"height": "بوي ئېگىزلىكى", //身高
"weight": "体重", //体重
"maritalStatus": "婚姻状况", //婚姻状况
"birthday": "出生日期", //出生日期
"isConceive": "怀孕状况", //怀孕状况
"gestationalWeeks": "怀孕周期", //怀孕周期
"occupation": "职业", //职业
"contactInformation": "联系方式", //联系方式
"FamilyMembersPhone": "家属联系方式", //家属联系方式
"Registeredresidence": "户籍地(市)", //户籍地
// "province", //籍贯 (省)
// "city", //籍贯 (市)
"address": "现居住地", //现居住地
"idCard": "身份证号", //身份证号
"typeOfMedicalInsurance": "医保类型", //医保类型
"insurance": "سودا سۇغۇرتىسى", //商业保险
"boy":'男',
"girl":'女',
"Nonpregnant":'未孕',
"pregnant":'已孕',
"unmarried":'未婚',
"married":'已婚',
//第五页
"HasOnlineClass": "", // 是否上网课
"HasOnlineClass": "是否上网课", // 是否上网课
"purpose": "来沪目的", //来沪目的
"study": '学习',//学习
"workOrNotCovid": "日常工作是否需要接触新冠病", //日常工作是否需要接触新冠病
"thirtyDays": "近两月是否离开过上海", //近两月是否离开过上海
"LeaveShangHai": "回上海天数", //回上海天数
'More30days': '天数不能大于三十天',//天数不能大于三十天
'Day': '天',//天
"normalDate": "未发生异常时间", //未发生异常时间
"unusualDate": "核酸检测异常时间", //核酸检测异常时间
"inHospitalDate": "120转运时间或者入院时间", //120转运时间或者入院时间
"beforeIsolationPoint": "之前隔离点(无隔离点填救护车出发地址)", //之前隔离点(无隔离点填救护车出发地址)
"hasCOVIDVaccine": "是否接种过疫苗", //是否接种过疫苗
"covidVaccine": "接种针数", //接种针数
"needle": "针", //针
"vaccineType": "疫苗公司", //疫苗公司
"othervaccines": "其他疫苗", //其他疫苗
"vaccineDate": "最后一次接种日期", //最后一次接种日期
//第六页
"hasHistoryAllergies": "过敏史", //过敏史
"foodAllergy": "食物过敏原", //食物过敏
"drugAllergy": "药物过敏原", //药物过敏
"otherAllergy": "其他过敏原", //其他过敏
"hasHistorySurgery": "手术史", //手术史
"historySurgery": "手术史具体内容", //手术史具体内容
"HasPreviousHistory": "有无既往史", //有无既往史
"previousHistory": "既往史", //既往史
"otherPastHistory": "其他既往史", //其他既往史
"tuberculosisDate": "既往史发生时间", //既往史发生时间
"yesOrNoCt": "有无胸部CT检查",//有无胸部CT检查
"ChestCT": "CT有无病毒性肺炎表现", //CT有无病毒性肺炎表现
"ChestCTDate": "发生时间", //发生时间
"whetherSmoking": "是否吸烟", //是否吸烟
"smokingTypes": "烟草类型", //烟草类型
"smokingYears": "吸烟年数", //吸烟年数
"smokingCount": "每天吸烟支数", //每天吸烟支数
"whetherNoSmoking": "是否戒烟", //是否戒烟
"noSmokingYears": "戒烟年数", //戒烟年数
"whetherPassivitySmoking": "是否被动吸烟", //是否被动吸烟
"passivitySmokingYears": "被动吸烟年数", //是否被动吸烟年数
"year": '年',//年
"branch":'支',//支
//第七页
"concludingRemarks": 'سىز بۇ قېتىمقى تولدۇرۇش مەزمۇنىنى تاماملاپ بولدىڭىز، ياردىمىڭىز ۋە قوللىغىنىڭىزغا رەھمەت.',
"goBack": 'ئالدىغا قايتىش',
"yes": 'ھە ئە',
"no": "ياق",
"have": "بار ",
"noHave": "يوق "
"concludingRemarks": 'سىز بۇ قېتىمقى تولدۇرۇش مەزمۇنىنى تاماملاپ بولدىڭىز، ياردىمىڭىز ۋە قوللىغىنىڭىزغا رەھمەت.',//您已完成本次填写内容 ,感谢您的帮助和支持
"goBack": 'ئالدىغا قايتىش',//返回
"yes": 'ھە ئە',//是
"no": "ياق",//否
"have": "بار ",//有
"noHave": "يوق ",//无
"other":"باشقا سەۋەپ",//其他
"week":'جۇڭگو',//周
"China":'جۇڭگو',//中国
......
......@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2022-03-17 15:06:50
* @LastEditors: wsq
* @LastEditTime: 2022-11-03 14:05:23
* @LastEditTime: 2022-11-03 15:16:57
* @Description:
*/
import http from '@/http/index'
......@@ -13,7 +13,7 @@ const state = {
token: '',
name: '',
userInfo: {},
page:5,
page:4,
}
const mutations = {
......
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