Commit 594f2e3f by nlp97

暂存

parent b39b20a5
...@@ -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: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-11-01 10:26:03 * @LastEditTime: 2022-11-03 13:25:11
* @Description: * @Description:
--> -->
<template> <template>
...@@ -140,9 +140,6 @@ ...@@ -140,9 +140,6 @@
" /> " />
</van-popup> </van-popup>
<van-field colon v-show="occupation == '其他'" clearable autosize type="textarea" v-model="otherOccupation" <van-field colon v-show="occupation == '其他'" clearable autosize type="textarea" v-model="otherOccupation"
name="otherOccupation" label="其他职业" placeholder="其他职业" :rules="[ name="otherOccupation" label="其他职业" placeholder="其他职业" :rules="[
{ {
......
<!-- <!--
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: wsq * @LastEditors: ninglupeng
* @LastEditTime: 2022-05-09 15:07:51 * @LastEditTime: 2022-11-03 14:21:19
* @Description: * @Description:
--> -->
<template> <template>
<div class="page6"> <div class="page6">
<van-field <van-field colon clearable name="hasHistoryAllergies" label-width="125px" :label="$t('hasHistoryAllergies')">
colon <template #input>
clearable <van-radio-group @change="
name="hasHistoryAllergies" () => {
label-width="125px" setLocalStorge('hasHistoryAllergies');
label="过敏史" if (hasHistoryAllergies == $t('noHave')) {
> foodAllergy = '';
<template #input> drugAllergy = '';
<van-radio-group otherAllergy = '';
@change=" setValue('foodAllergy', '');
() => { setValue('drugAllergy', '');
setLocalStorge('hasHistoryAllergies'); setValue('otherAllergy', '');
if (hasHistoryAllergies == '无') { }
foodAllergy = ''; }
drugAllergy = ''; " v-model="hasHistoryAllergies" direction="horizontal">
otherAllergy = ''; <van-radio :name="$t('have')">{{ $t('have') }}</van-radio>
setValue('foodAllergy', ''); <van-radio :name="$t('noHave')">{{ $t('noHave') }}</van-radio>
setValue('drugAllergy', ''); </van-radio-group>
setValue('otherAllergy', ''); </template>
} </van-field>
}
"
v-model="hasHistoryAllergies"
direction="horizontal" <van-field v-show="hasHistoryAllergies == $t('have')" colon clearable label-width="125px" v-model="foodAllergy"
> name="foodAllergy" :label="$t('foodAllergy')" :placeholder="$t('foodAllergy')"
<van-radio name="有"></van-radio> @blur="setLocalStorge('foodAllergy')">
<van-radio name="无"></van-radio> </van-field>
</van-radio-group>
</template> <!-- 药物过敏原 -->
</van-field> <van-field v-show="hasHistoryAllergies == $t('have')" colon clearable label-width="125px" v-model="drugAllergy"
name="drugAllergy" :label="$t('drugAllergy')" :placeholder="$t('drugAllergy')"
<!-- <van-field @blur="setLocalStorge('drugAllergy')">
v-if="hasHistoryAllergies == '有'" </van-field>
colon <!-- 其他过敏原 -->
clearable <van-field v-show="hasHistoryAllergies == $t('have')" colon clearable label-width="125px" v-model="otherAllergy"
label-width="125px" name="otherAllergy" :label="$t('otherAllergy')" :placeholder="$t('otherAllergy')"
v-model="historyAllergies" @blur="setLocalStorge('otherAllergy')">
name="historyAllergies" </van-field>
label="过敏原"
placeholder="过敏原" <van-field colon clearable name="hasHistorySurgery" label-width="125px" :label="$t('hasHistorySurgery')">
:rules="[ <template #input>
{ <van-radio-group @change="
required: hasHistoryAllergies == '有' ? true : false, () => {
message: '请填写过敏原', setLocalStorge('hasHistorySurgery');
}, if (hasHistorySurgery == $t('noHave')) {
]" historySurgery = '';
></van-field> -->
setValue('historySurgery', '');
<van-field }
v-show="hasHistoryAllergies == '有'" }
colon " v-model="hasHistorySurgery" direction="horizontal">
clearable <van-radio :name="$t('have')">{{ $t('have') }}</van-radio>
label-width="125px" <van-radio :name="$t('noHave')">{{ $t('noHave') }}</van-radio>
v-model="foodAllergy" </van-radio-group>
name="foodAllergy" </template>
label="食物过敏原" </van-field>
placeholder="食物过敏原"
@blur="setLocalStorge('foodAllergy')" <van-field v-show="hasHistorySurgery == $t('have')" colon clearable label-width="125px" v-model="historySurgery"
></van-field> name="historySurgery" :label="$t('historySurgery')" :placeholder="$t('historySurgery')"
<van-field @blur="setLocalStorge('historySurgery')" :rules="[
v-show="hasHistoryAllergies == '有'" {
colon required: hasHistorySurgery == $t('have') ? true : false,
clearable message: `请填写${$t('historySurgery')}`,
label-width="125px" },
v-model="drugAllergy" ]">
name="drugAllergy" </van-field>
label="药物过敏原"
placeholder="药物过敏原" <van-field colon clearable name="HasPreviousHistory" label-width="125px" :label="$t('HasPreviousHistory')">
@blur="setLocalStorge('drugAllergy')" <template #input>
></van-field> <van-radio-group @change="
<van-field () => {
v-show="hasHistoryAllergies == '有'" setLocalStorge('HasPreviousHistory');
colon if (HasPreviousHistory == $t('noHave')) {
clearable previousHistory = [];
label-width="125px" otherPastHistory = '';
v-model="otherAllergy" tuberculosisDate = '';
name="otherAllergy" setValue('previousHistory', '');
label="其他过敏原" setValue('otherPastHistory', '');
placeholder="其他过敏原" setValue('tuberculosisDate', '');
@blur="setLocalStorge('otherAllergy')" }
></van-field> }
" v-model="HasPreviousHistory" direction="horizontal">
<van-field <van-radio :name="$t('have')">{{ $t('have') }}</van-radio>
colon <van-radio :name="$t('noHave')"></van-radio>
clearable </van-radio-group>
name="hasHistorySurgery" </template>
label-width="125px" </van-field>
label="手术史"
> <van-field colon clearable name="previousHistory" label-width="125px" :label="$t('previousHistory')"
<template #input> v-show="HasPreviousHistory == $t('have')" :rules="[
<van-radio-group {
@change=" required: HasPreviousHistory == $t('have') ? true : false,
() => { message: `请选择${$t('previousHistory')}`,
setLocalStorge('hasHistorySurgery'); },
if (hasHistorySurgery == '无') { ]">
historySurgery = ''; <template #input>
<van-checkbox-group @change="setLocalStorge('previousHistory')" v-model="previousHistory">
setValue('historySurgery', ''); <van-cell-group>
} <van-cell v-for="(item, index) in previousHistoryList" :key="index">
} <van-checkbox :name="item.element" shape="square">{{
" item.element
v-model="hasHistorySurgery" }}</van-checkbox>
direction="horizontal" </van-cell>
> </van-cell-group>
<van-radio name="有"></van-radio> </van-checkbox-group>
<van-radio name="无"></van-radio> </template>
</van-radio-group> </van-field>
</template>
</van-field> <van-field colon v-show="previousHistory.includes('其他')" clearable autosize type="textarea"
v-model="otherPastHistory" name="otherPastHistory" :label="$t('otherPastHistory')"
<van-field :placeholder="$t('otherPastHistory')" :rules="[
v-show="hasHistorySurgery == '有'" {
colon required: previousHistory.includes('其他') ? true : false,
clearable message: '请填写其他既往史',
label-width="125px" },
v-model="historySurgery" ]" @blur="setLocalStorge('otherPastHistory')"></van-field>
name="historySurgery"
label="手术史具体内容"
placeholder="具体内容" <van-field colon clearable readonly clickable
@blur="setLocalStorge('historySurgery')" v-if="HasPreviousHistory != $t('noHave') && previousHistory.includes('肺结核')" :rules="[
:rules="[ {
{ required:
required: hasHistorySurgery == '有' ? true : false, HasPreviousHistory != $t('noHave') && previousHistory.includes('肺结核')
message: '请填写手术史具体内容', ? true
}, : false,
]" message: '请选择既往史发生时间',
></van-field> },
]" name="tuberculosisDate" :value="tuberculosisDate" label="既往史发生时间" placeholder="点击选择既往史发生时间"
<van-field @click="showPicker = true" />
colon <van-popup v-model="showPicker" position="bottom">
clearable <van-datetime-picker :min-date="minDate" :max-date="maxDate" type="date" @confirm="onConfirm"
name="HasPreviousHistory" @cancel="showPicker = false" :formatter="formatter" v-model="deathDate2" />
label-width="125px" </van-popup>
label="有无既往史"
>
<template #input> <van-field colon clearable name="whetherSmoking" label="是否吸烟" label-width="125px">
<van-radio-group <template #input>
@change=" <van-radio-group @change="
() => { () => {
setLocalStorge('HasPreviousHistory'); setLocalStorge('whetherSmoking');
if (HasPreviousHistory == '无') { if (whetherSmoking == '否') {
previousHistory = []; smokingTypes = []; //烟草类型
otherPastHistory = ''; smokingYears = ''; //吸烟年数
tuberculosisDate=''; smokingCount = ''; //吸烟支数
setValue('previousHistory',''); whetherNoSmoking = ''; //是否戒烟
setValue('otherPastHistory', ''); setValue('smokingTypes', '');
setValue('tuberculosisDate', ''); setValue('smokingYears', '');
} setValue('smokingCount', '');
} setValue('whetherNoSmoking', '');
" }
v-model="HasPreviousHistory" }
direction="horizontal" " v-model="whetherSmoking" direction="horizontal">
> <van-radio name="是"></van-radio>
<van-radio name="有"></van-radio> <van-radio name="否"></van-radio>
<van-radio name="无"></van-radio> </van-radio-group>
</van-radio-group> </template>
</template> </van-field>
</van-field> <van-field colon clearable label-width="125px" name="smokingTypes" label="烟草类型" v-if="whetherSmoking == '是'">
<template #input>
<van-field <van-checkbox-group @change="setLocalStorge('smokingTypes')" v-model="smokingTypes"
colon direction="horizontal" class="smokingTypes">
clearable <template v-for="(item, index) in smokingTypesList">
name="previousHistory" <van-checkbox :key="index" :name="item.element" shape="square">{{
label-width="125px" item.element
label="既往史" }}</van-checkbox>
v-show="HasPreviousHistory == '有'" </template>
:rules="[ </van-checkbox-group>
{ </template>
required: HasPreviousHistory == '有' ? true : false, </van-field>
message: '请选择既往史',
}, <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: '请填写吸烟年数' }]">
<template #input> <template #extra>
<van-checkbox-group
@change="setLocalStorge('previousHistory')" </template>
v-model="previousHistory" </van-field>
>
<van-cell-group> <van-field v-if="whetherSmoking == '是'" label-width="125px" colon clearable v-model="smokingCount"
<van-cell v-for="(item, index) in previousHistoryList" :key="index"> name="smokingCount" label="每天吸烟支数" placeholder="每天吸烟支数" type="digit" @blur="setLocalStorge('smokingCount')"
<van-checkbox :name="item.element" shape="square">{{ :rules="[{ required: false, message: '请填写每天吸烟支数' }]">
item.element <template #extra>
}}</van-checkbox>
</van-cell> </template>
</van-cell-group> </van-field>
</van-checkbox-group>
</template> <van-field colon clearable label-width="125px" name="whetherNoSmoking" label="是否戒烟"
</van-field> v-if="whetherSmoking == '是'">
<template #input>
<van-field <van-radio-group @change="
colon () => {
v-show="previousHistory.includes('其他')" setLocalStorge('whetherNoSmoking');
clearable if (whetherNoSmoking == '否') {
autosize noSmokingYears = ''; //戒烟年数
type="textarea" setValue('noSmokingYears', '');
v-model="otherPastHistory" }
name="otherPastHistory" }
label="其他既往史" " v-model="whetherNoSmoking" direction="horizontal">
placeholder="其他既往史" <van-radio name="是"></van-radio>
:rules="[ <van-radio name="否"></van-radio>
{ </van-radio-group>
required: previousHistory.includes('其他') ? true : false, </template>
message: '请填写其他既往史', </van-field>
},
]" <van-field v-if="whetherNoSmoking == '是'" colon label-width="125px" clearable v-model="noSmokingYears"
@blur="setLocalStorge('otherPastHistory')" name="noSmokingYears" label="戒烟年数" placeholder="戒烟年数" type="digit" @blur="setLocalStorge('noSmokingYears')"
></van-field> :rules="[{ required: false, message: '请填写戒烟年数' }]">
<template #extra>
<!-- <van-field
colon </template>
clearable </van-field>
readonly
clickable <van-field colon clearable name="whetherPassivitySmoking" label="是否被动吸烟" label-width="125px">
label-width="125px" <template #input>
v-show="HasPreviousHistory == '有' && previousHistory.includes('肺结核')" <van-radio-group @change="
:rules="[ () => {
{ setLocalStorge('whetherPassivitySmoking');
required: if (whetherPassivitySmoking == '否') {
HasPreviousHistory == '有' && previousHistory.includes('肺结核') passivitySmokingYears = ''; //被动吸烟年数
? true setValue('passivitySmokingYears', '');
: false, }
message: '请选择既往史发生时间', }
}, " v-model="whetherPassivitySmoking" direction="horizontal">
]" <van-radio name="是"></van-radio>
name="tuberculosisDate" <van-radio name="否"></van-radio>
:min-date="minDate" </van-radio-group>
:max-date="maxDate" </template>
:value="tuberculosisDate" </van-field>
label="既往史发生时间"
placeholder="点击选择既往史发生时间" <van-field v-if="whetherPassivitySmoking == '是'" colon label-width="125px" clearable
@click="showPicker = true" v-model="passivitySmokingYears" name="passivitySmokingYears" label="被动吸烟年数" placeholder="被动吸烟年数"
v-model="tuberculosisDate1" type="digit" @blur="setLocalStorge('passivitySmokingYears')">
:formatter="formatter" <template #extra>
/> -->
<van-field </template>
colon </van-field>
clearable
readonly
clickable <van-popup v-model="showPicker" position="bottom">
v-if="HasPreviousHistory != '无' && previousHistory.includes('肺结核')" <van-datetime-picker :min-date="minDate" :max-date="maxDate" type="date" @confirm="onConfirm"
:rules="[ @cancel="showPicker = false" :formatter="formatter" />
{ </van-popup>
required:
HasPreviousHistory != '无' && previousHistory.includes('肺结核') <van-field colon clearable name="yesOrNoCt" label-width="125px" label="有无胸部CT检查">
? true <template #input>
: false, <van-radio-group @change="
message: '请选择既往史发生时间', () => {
}, setLocalStorge('yesOrNoCt');
]" if (yesOrNoCt == $t('noHave')) {
name="tuberculosisDate" ChestCT = $t('noHave');
:value="tuberculosisDate" ChestCTDate = '';
label="既往史发生时间" setValue('ChestCT', '');
placeholder="点击选择既往史发生时间" setValue('ChestCTDate', '');
@click="showPicker = true" }
/> }
<van-popup v-model="showPicker" position="bottom"> " v-model="yesOrNoCt" direction="horizontal">
<van-datetime-picker <van-radio :name="$t('have')">{{ $t('have') }}</van-radio>
:min-date="minDate" <van-radio :name="$t('noHave')">{{ $t('noHave') }}</van-radio>
:max-date="maxDate" </van-radio-group>
type="date" </template>
@confirm="onConfirm" </van-field>
@cancel="showPicker = false"
:formatter="formatter" <van-field v-if="yesOrNoCt == $t('have')" colon clearable name="ChestCT" label-width="125px"
v-model="deathDate2" label="CT有无病毒性肺炎表现">
/> <template #input>
</van-popup> <van-radio-group @change="
() => {
setLocalStorge('ChestCT');
<van-field colon clearable name="whetherSmoking" label="是否吸烟" label-width="125px"> }
<template #input> " v-model="ChestCT" direction="horizontal">
<van-radio-group <van-radio :name="$t('have')">{{ $t('have') }}</van-radio>
@change=" <van-radio :name="$t('noHave')">{{ $t('noHave') }}</van-radio>
() => { </van-radio-group>
setLocalStorge('whetherSmoking'); </template>
if (whetherSmoking == '否') { </van-field>
smokingTypes = []; //烟草类型
smokingYears = ''; //吸烟年数 <van-field v-if="yesOrNoCt == $t('have')" colon clearable readonly clickable name="ChestCTDate"
smokingCount = ''; //吸烟支数 :value="ChestCTDate" label="发生时间" label-width="125px" placeholder="点击选择新冠肺炎CT拍照时间"
whetherNoSmoking = ''; //是否戒烟 @click="showCalendar = true" :rules="[
setValue('smokingTypes', ''); {
setValue('smokingYears', ''); required: ChestCT == $t('have') ? true : false,
setValue('smokingCount', ''); message: '请选择新冠肺炎CT拍照时间',
setValue('whetherNoSmoking', ''); },
} ]" />
} <van-popup v-model="showCalendar" position="bottom">
" <van-datetime-picker type="date" :min-date="minChestCTDate" :max-date="maxDate" @confirm="onChestCT"
v-model="whetherSmoking" @cancel="showCalendar = false" :formatter="formatter" v-model="ChestCTDate1" />
direction="horizontal" </van-popup>
> </div>
<van-radio name="是"></van-radio>
<van-radio name="否"></van-radio>
</van-radio-group>
</template>
</van-field>
<van-field
colon
clearable
label-width="125px"
name="smokingTypes"
label="烟草类型"
v-if="whetherSmoking == '是'"
>
<template #input>
<van-checkbox-group
@change="setLocalStorge('smokingTypes')"
v-model="smokingTypes"
direction="horizontal"
class="smokingTypes"
>
<template v-for="(item, index) in smokingTypesList">
<van-checkbox :key="index" :name="item.element" shape="square">{{
item.element
}}</van-checkbox>
</template>
</van-checkbox-group>
</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: '请填写吸烟年数' }]"
>
<template #extra>
</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: '请填写每天吸烟支数' }]"
>
<template #extra>
</template>
</van-field>
<van-field
colon
clearable
label-width="125px"
name="whetherNoSmoking"
label="是否戒烟"
v-if="whetherSmoking == '是'"
>
<template #input>
<van-radio-group
@change="
() => {
setLocalStorge('whetherNoSmoking');
if (whetherNoSmoking == '否') {
noSmokingYears = ''; //戒烟年数
setValue('noSmokingYears', '');
}
}
"
v-model="whetherNoSmoking"
direction="horizontal"
>
<van-radio name="是"></van-radio>
<van-radio name="否"></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: '请填写戒烟年数' }]"
>
<template #extra>
</template>
</van-field>
<van-field colon clearable name="whetherPassivitySmoking" label="是否被动吸烟" label-width="125px">
<template #input>
<van-radio-group
@change="
() => {
setLocalStorge('whetherPassivitySmoking');
if (whetherPassivitySmoking == '否') {
passivitySmokingYears = ''; //被动吸烟年数
setValue('passivitySmokingYears', '');
}
}
"
v-model="whetherPassivitySmoking"
direction="horizontal"
>
<van-radio name="是"></van-radio>
<van-radio name="否"></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="被动吸烟年数"
type="digit"
@blur="setLocalStorge('passivitySmokingYears')"
>
<template #extra>
</template>
</van-field>
<van-popup v-model="showPicker" position="bottom">
<van-datetime-picker
:min-date="minDate"
:max-date="maxDate"
type="date"
@confirm="onConfirm"
@cancel="showPicker = false"
:formatter="formatter"
/>
</van-popup>
<van-field
colon
clearable
name="yesOrNoCt"
label-width="125px"
label="有无胸部CT检查"
>
<template #input>
<van-radio-group
@change="
() => {
setLocalStorge('yesOrNoCt');
if (yesOrNoCt == '无') {
ChestCT = '无';
ChestCTDate='';
setValue('ChestCT', '');
setValue('ChestCTDate', '');
}
}
"
v-model="yesOrNoCt"
direction="horizontal"
>
<van-radio name="有"></van-radio>
<van-radio name="无"></van-radio>
</van-radio-group>
</template>
</van-field>
<van-field
v-if="yesOrNoCt == '有'"
colon
clearable
name="ChestCT"
label-width="125px"
label="CT有无病毒性肺炎表现"
>
<template #input>
<van-radio-group
@change="
() => {
setLocalStorge('ChestCT');
}
"
v-model="ChestCT"
direction="horizontal"
>
<van-radio name="有"></van-radio>
<van-radio name="无"></van-radio>
</van-radio-group>
</template>
</van-field>
<van-field
v-if="yesOrNoCt == '有'"
colon
clearable
readonly
clickable
name="ChestCTDate"
:value="ChestCTDate"
label="发生时间"
label-width="125px"
placeholder="点击选择新冠肺炎CT拍照时间"
@click="showCalendar = true"
:rules="[
{
required: ChestCT == '有' ? true : false,
message: '请选择新冠肺炎CT拍照时间',
},
]"
/>
<van-popup v-model="showCalendar" position="bottom">
<van-datetime-picker
type="date"
:min-date="minChestCTDate"
:max-date="maxDate"
@confirm="onChestCT"
@cancel="showCalendar = false"
:formatter="formatter"
v-model="ChestCTDate1"
/>
</van-popup>
</div>
</template> </template>
<script> <script>
import { mapState, mapMutations } from "vuex"; import { mapState, mapMutations } from "vuex";
import { formatDate } from "../utils/common.js"; import { formatDate } from "../utils/common.js";
export default { export default {
inject: ["setLoading"], inject: ["setLoading"],
name: "page6", name: "page6",
data() { data() {
return { return {
hasHistoryAllergies: "无", //过敏史 hasHistoryAllergies: "无", //过敏史
historyAllergies: "", //过敏原 historyAllergies: "", //过敏原
foodAllergy: "", //食物过敏 foodAllergy: "", //食物过敏
drugAllergy: "", //药物过敏 drugAllergy: "", //药物过敏
otherAllergy: "", //其他过敏 otherAllergy: "", //其他过敏
hasHistorySurgery: "无", //手术史 hasHistorySurgery: "无", //手术史
historySurgery: "", //具体内容 historySurgery: "", //具体内容
HasPreviousHistory: "无", //有无既往史 HasPreviousHistory: "无", //有无既往史
previousHistory: [], //既往史 previousHistory: [], //既往史
otherPastHistory: "", //其他既往史 otherPastHistory: "", //其他既往史
tuberculosisDate: "", //既往史发生时间 tuberculosisDate: "", //既往史发生时间
yesOrNoCt: "无", yesOrNoCt: "无",
ChestCT: "无", //有无CT ChestCT: "无", //有无CT
ChestCTDate: "", //CT拍照时间 ChestCTDate: "", //CT拍照时间
whetherSmoking: "", //是否吸烟 whetherSmoking: "", //是否吸烟
smokingTypes: [], //烟草类型 smokingTypes: [], //烟草类型
smokingYears: "", //吸烟年数 smokingYears: "", //吸烟年数
smokingCount: "", //每天吸烟支数 smokingCount: "", //每天吸烟支数
whetherNoSmoking: "", //是否戒烟 whetherNoSmoking: "", //是否戒烟
noSmokingYears: "", //戒烟年数 noSmokingYears: "", //戒烟年数
whetherPassivitySmoking: "", //是否被动吸烟 whetherPassivitySmoking: "", //是否被动吸烟
passivitySmokingYears: "", //是否被动吸烟年数 passivitySmokingYears: "", //是否被动吸烟年数
smokingTypesList: [], smokingTypesList: [],
previousHistoryList: [], previousHistoryList: [],
showPicker: false, showPicker: false,
showCalendar: false, showCalendar: false,
minChestCTDate: new Date(2020, 0, 1), minChestCTDate: new Date(2020, 0, 1),
minDate: new Date(2010, 0, 1), minDate: new Date(2010, 0, 1),
maxDate: new Date(), maxDate: new Date(),
deathDate2:new Date(), deathDate2: new Date(),
ChestCTDate1: new Date(), ChestCTDate1: new Date(),
tuberculosisDate1:new Date(), tuberculosisDate1: new Date(),
}; };
},
mounted() {
this.getResource();
this.setChestCTDate();
this.setLastValue();
},
methods: {
setLastValue() {
let arr = [
"hasHistoryAllergies", //过敏史
"historyAllergies", //过敏原
"foodAllergy", //食物过敏
"drugAllergy", //药物过敏
"otherAllergy", //其他过敏
"hasHistorySurgery", //手术史
"historySurgery", //具体内容
"HasPreviousHistory", //有无既往史
"previousHistory", //既往史
"otherPastHistory", //其他既往史
"tuberculosisDate", //既往史发生时间
"yesOrNoCt",
"ChestCT", //有无CT
"ChestCTDate", //CT拍照时间
"whetherSmoking", //是否吸烟
"smokingTypes", //烟草类型
"smokingYears", //吸烟年数
"smokingCount", //每天吸烟支数
"whetherNoSmoking", //是否戒烟
"noSmokingYears", //戒烟年数
"whetherPassivitySmoking", //是否被动吸烟
"passivitySmokingYears", //是否被动吸烟年数
];
arr.map((item) => {
if (this.getLocalStorge(item)) {
// if (item == "previousHistory") {
// this[`${item}`] = this.getLocalStorge(item).split(",");
// } else if (item != "previousHistory") {
this[`${item}`] = this.getLocalStorge(item);
// }
}
});
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(",");
}
if (this.smokingTypes.length > 0) {
this.smokingTypes = this.getLocalStorge("smokingTypes").split(",");
}
}, },
mounted() {
this.getResource();
this.setChestCTDate();
getLocalStorge(key) { this.setLastValue();
return window.localStorage.getItem(key);
}, },
methods: {
setLastValue() {
let arr = [
"hasHistoryAllergies", //过敏史
"historyAllergies", //过敏原
"foodAllergy", //食物过敏
"drugAllergy", //药物过敏
"otherAllergy", //其他过敏
"hasHistorySurgery", //手术史
"historySurgery", //具体内容
"HasPreviousHistory", //有无既往史
"previousHistory", //既往史
"otherPastHistory", //其他既往史
"tuberculosisDate", //既往史发生时间
"yesOrNoCt",
"ChestCT", //有无CT
"ChestCTDate", //CT拍照时间
"whetherSmoking", //是否吸烟
"smokingTypes", //烟草类型
"smokingYears", //吸烟年数
"smokingCount", //每天吸烟支数
"whetherNoSmoking", //是否戒烟
"noSmokingYears", //戒烟年数
"whetherPassivitySmoking", //是否被动吸烟
"passivitySmokingYears", //是否被动吸烟年数
];
arr.map((item) => {
if (this.getLocalStorge(item)) {
// if (item == "previousHistory") {
// this[`${item}`] = this.getLocalStorge(item).split(",");
// } else if (item != "previousHistory") {
this[`${item}`] = this.getLocalStorge(item);
// }
}
});
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(",");
}
if (this.smokingTypes.length > 0) {
this.smokingTypes = this.getLocalStorge("smokingTypes").split(",");
}
setLocalStorge(key) {
window.localStorage.setItem(key, this[`${key}`]);
},
setValue(key, value) { },
window.localStorage.setItem(key, value);
},
setChestCTDate() {
// this.ChestCTDate = formatDate(new Date(), "yyyy-MM-dd");
},
getResource() {
this.setLoading(true);
this.$http.get(`/Research/Resource`, {}).then((data) => {
this.previousHistoryList = data.filter((item) => {
return item.category == "既往史";
});
this.smokingTypesList = data.filter((item) => {
return item.category == "烟草类型";
});
this.setLoading(false);
});
},
onConfirm(date) {
this.tuberculosisDate = formatDate(date, "yyyy-MM-dd");
this.setLocalStorge("tuberculosisDate");
this.showPicker = false;
},
onChestCT(date) { getLocalStorge(key) {
this.ChestCTDate = formatDate(date, "yyyy-MM-dd"); return window.localStorage.getItem(key);
this.setLocalStorge("ChestCTDate"); },
this.showCalendar = false;
}, setLocalStorge(key) {
window.localStorage.setItem(key, this[`${key}`]);
},
setValue(key, value) {
window.localStorage.setItem(key, value);
},
formatter(type, val) { setChestCTDate() {
if (type === "year") { // this.ChestCTDate = formatDate(new Date(), "yyyy-MM-dd");
return `${val}年`; },
} getResource() {
if (type === "month") { this.setLoading(true);
return `${val}月`; this.$http.get(`/Research/Resource`, {}).then((data) => {
} else if (type === "day") { this.previousHistoryList = data.filter((item) => {
return `${val}日`; return item.category == "既往史";
} else if (type === "hour") { });
return `${val}时`; this.smokingTypesList = data.filter((item) => {
} else if (type === "minute") { return item.category == "烟草类型";
return `${val}分`; });
} this.setLoading(false);
return val; });
},
onConfirm(date) {
this.tuberculosisDate = formatDate(date, "yyyy-MM-dd");
this.setLocalStorge("tuberculosisDate");
this.showPicker = false;
},
onChestCT(date) {
this.ChestCTDate = formatDate(date, "yyyy-MM-dd");
this.setLocalStorge("ChestCTDate");
this.showCalendar = false;
},
formatter(type, val) {
if (type === "year") {
return `${val}年`;
}
if (type === "month") {
return `${val}月`;
} else if (type === "day") {
return `${val}日`;
} else if (type === "hour") {
return `${val}时`;
} else if (type === "minute") {
return `${val}分`;
}
return val;
},
}, },
}, computed: {},
computed: {},
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.page6 { .page6 {
.smokingTypes { .smokingTypes {
.van-checkbox { .van-checkbox {
width: 43%; width: 43%;
margin-bottom: 5%; margin-bottom: 5%;
}
} }
}
} }
</style> </style>
...@@ -2,33 +2,34 @@ ...@@ -2,33 +2,34 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2022-10-31 14:22:41 * @Date: 2022-10-31 14:22:41
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-11-03 13:12:44 * @LastEditTime: 2022-11-03 13:35:30
* @Description: * @Description:
*/ */
module.exports = { module.exports = {
//第一页、第二页 //第一页、第二页
'project': '', 'project': ' دوختۇرخانىغا كىرگەن ئۇچۇرنى توپلاش ',
'paragraph1': ' ', 'paragraph1': 'تىببى خادىملار دوختۇرخانىدا يېتىپ داۋالانغان مەزگىلدە ئەھۋالدىن خەۋەردار بولۇش ھوقۇقىدىن تولۇق بەھرىمان بولۇشىڭىزغا كاپالەتلىك قىلىش ئۈچۈن، كېسەللىك ئەھۋالى، ئاساسلىق داۋالاش تەدبىرلىرى، داۋالاش خەۋپ-خەتىرى قاتارلىق ئەھۋاللارنى ئۇقتۇرۇپ، كېسەللىك توغرىسىدىكى مەسلىھەتلىرىڭىزگە جاۋاب بېرىدۇ.سىزنىڭ تولۇق ئەھۋالدىن خەۋەردار بولۇشىڭنى ئالماي ۋە ئىمزا قويۇپ ماقۇللىقىڭىز ئالمايلا تىببى خادىملار ئوپېراتسىيە قىلىش قاتارلىق زور داۋالاش قىلمىشىنى قىلسا بولمايدۇ. لېكىن ھەرقايسى كىشىلەرنىڭ پسىخىكىلىق بەرداشلىق بېرىش ئىقتىدارى ئوخشىمىغاچقا ھەمدە كېسەللىكنىڭ تەرەققىياتىنى مۆلچەرلىگىلى بولمايدىغان بولغاچقا، داۋالاشقا پايدىلىق بولۇش ئۈچۈن، سىز تولۇق ئىشەنگەن بىر ۋاكالەتچىگە ھاۋالە قىلىپ، ئەھۋالدىن خەۋەردار بولۇش ھوقۇقىڭىزنى ۋاكالىتەن يۈرگۈزۈشكە ھوقۇق بېرىڭ.دوختۇرخانىمىز سىزنىڭ ئىمزا قويۇپ بەرگەن ھوقۇق ھاۋالە خېتىڭىزگە ئاساسەن، ۋاكالەتچىنىڭ ۋاكالەتچىلىك قىلمىشىغا قاراپ ئۆزىڭىزنىڭ ھەقىقىي مەنىسىگە ئاساسەن ئىپادىلىنىدۇ. ئەگەر سىزنىڭ ئاخىرقى 18 ياشقا توشقان ياكى ھەق تەلەپ قىلمىش ئىقتىدارىڭىز ۋە ھەق تەلەپ قىلمىشىنى چەكلەش ئىقتىدارىڭىز بولمىسا، سىزنىڭ قانۇندا بەلگىلەنگەن ھامىيلىقىڭىز سىزنىڭ قانۇندا بەلگىلەنگەن دەۋالاشقۇچىڭىز ئۈچۈن، ئەھۋالدىن خەۋەردار بولۇش ھوقۇقىڭىزنى ۋاكالىتەن يۈرگۈزىدۇ. ',
"paragraph2": ' ', "paragraph2": ' ',
"paragraph3": ' ', "paragraph3": ' ',
"isAgree": ' ', "isAgree": ' ',
//第三页 //第三页
"AgreementMode": '',//本人决定选择以下方式 "AgreementMode": 'مەن تۆۋەندىكى ئۇسۇلنى تاللاشنى قارار قىلدىم',//本人决定选择以下方式
"Mode1": '', "Mode1": 'دوختۇخانغا ۋاكالەتچى بەلگىلەنگەن ھوقۇق بېرىش ھاۋالە خىتى چىقىرىپ بىرىمەن',
"Mode2": '', "Mode2": 'دوختۇرخانغا نوپۇس قاتارلىق ئالاقىدار ئىسپاتلارنى چىقىرىپ، قانۇندا بەلگىلەنگەن ۋاكالەتچىنى بەلگىلەپبىرىمەن',
"Mode3": '', "Mode3": 'مەن ۋاكالەتچىگە ھاۋالە قىلمايمەن، ئەگەر كېسەللىكتە خەتەر كۆرۈلسە ياكى ئويلىمىغان ئەھۋاللار يۈز بىرىپ قالسا دوختۇرغا داۋالاش توغۇرسىدا قارار قىلىش ھقوقىنى بىرىمەن .ئەگەر داۋالاش خەتىرى يامان ئاقىۋەت كېلىپ چىقسا مەن ئۆزەم مەسۇل بۇلىمەن.',
"buildingNumber": '', //楼号 "buildingNumber": 'بىنا نومۇرى', //楼号
"agreementFloor": '', //楼层 "agreementFloor": 'قەۋەت', //楼层
"bedNumber": '', //床号 "bedNumber": 'كارۋات نومۇرى', //床号
"agreementSign": '', // 患者签字 "agreementSign": 'بىمارنىڭ ئىمزاسى', // 患者签字
"agreementDate": '',// 签字日期 "agreementDate": 'ئىمزا قويغان ۋاقتى',// 签字日期
//第四页 //第四页
//第五页 //第五页
"HasOnlineClass": "", // 是否上网课 "HasOnlineClass": "", // 是否上网课
...@@ -40,7 +41,14 @@ module.exports = { ...@@ -40,7 +41,14 @@ module.exports = {
//第七页 //第七页
"concludingRemarks": 'سىز بۇ قېتىمقى تولدۇرۇش مەزمۇنىنى تاماملاپ بولدىڭىز، ياردىمىڭىز ۋە قوللىغىنىڭىزغا رەھمەت.', "concludingRemarks": 'سىز بۇ قېتىمقى تولدۇرۇش مەزمۇنىنى تاماملاپ بولدىڭىز، ياردىمىڭىز ۋە قوللىغىنىڭىزغا رەھمەت.',
"goBack": 'ئالدىغا قايتىش' "goBack": 'ئالدىغا قايتىش',
"yes": 'ھە ئە',
"no": "ياق",
"have": "بار ",
"noHave": "يوق "
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2022-10-31 14:22:35 * @Date: 2022-10-31 14:22:35
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-11-03 13:17:25 * @LastEditTime: 2022-11-03 13:49:28
* @Description: * @Description:
*/ */
module.exports = { module.exports = {
...@@ -80,7 +80,80 @@ module.exports = { ...@@ -80,7 +80,80 @@ module.exports = {
"yes": '是', "yes": '是',
"no": "否", "no": "否",
"have": "有", "have": "有",
"noHave": "没有" "noHave": "无",
"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": '年'
......
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