<template>
|
<div class="app-container" id="printable-content">
|
<!-- 回到顶部-->
|
<el-backtop :bottom="150" :right="30">
|
<el-button type="primary" circle
|
class="el-icon-top"
|
></el-button>
|
</el-backtop>
|
<h1 style="font-size:21px;padding-top:30px;display: flex;justify-content: space-between;align-items: center;">
|
<span>现状健康情况</span>
|
<!-- <div style="display: flex; align-items: center;">-->
|
<!-- <el-button size="mini" type="text" @click="toYearhealthy" v-hasPermi="['person:healthy:healthYear']">-->
|
<!-- <div class="form" ><el-icon style="padding-right:110px;"></el-icon>-->
|
<!-- <span class="text" style="width: 69px;height: 26px;font-size: 16px; padding-left: 10px;-->
|
<!-- font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">体检/看病</span></div>-->
|
<!-- </el-button>-->
|
<!-- </div>-->
|
</h1>
|
|
<el-divider />
|
|
<el-row :gutter="2">
|
<el-col :border="1" :span="4" v-for="(item, index) in allBasicInfo" :key="o" :offset="1">
|
<div>
|
<el-card :body-style="{ padding: '1px' }">
|
<img src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" class="image">
|
<div style="">
|
<span>{{item}}</span>
|
<div class="bottom clearfix">
|
|
<el-button type="text" class="button" @click="handleEditInfo(index)">查看详情</el-button>
|
</div>
|
</div>
|
</el-card>
|
</div>
|
</el-col>
|
</el-row>
|
|
|
<el-dialog :visible.sync="open" width="800px" append-to-body @close="">
|
|
|
<h2 style="font-size:21px">基本情况</h2>
|
<el-container>
|
<div style="padding-left:0px" >
|
<el-container >
|
<el-col >
|
<el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left"
|
v-loading="loading" :data="HealthyBaseList" >
|
<el-row :span="16">
|
<el-form-item label="姓名" prop="name" label-width="40px">
|
<el-input v-model="HealthyBaseList.name " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="职业" prop="work" label-width="40px">
|
<el-input v-model="HealthyBaseList.work" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="住址" prop="address" label-width="40px">
|
<el-input v-model="HealthyBaseList.address" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
<div style="padding-left:150px">
|
<el-container>
|
<el-col v-loading="loading" :data="HealthyBaseList" >
|
<el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left">
|
<el-row :span="16">
|
|
<el-form-item label="性别" prop="sex" label-width="40px">
|
<template v-if="!isEditing">
|
<el-input v-model="HealthyBaseList.sex === '男' ? sinds='男':sinds='女'" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"></el-input>
|
</template>
|
<template v-else>
|
<el-select v-model="sinds" placeholder="请选择性别" clearable :style="{width: '100%'}" :disabled="dsb">
|
<el-option label="男" value='男'></el-option>
|
<el-option label="女" value='女'></el-option>
|
</el-select>
|
</template>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="电话" prop="phone" label-width="40px">
|
<el-input v-model="HealthyBaseList.phone " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
|
</el-form>
|
|
<el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left"
|
v-loading="loading" :data="HealthyBaseList" >
|
|
<el-row :span="16">
|
<el-form-item label="血型" prop="bloodClass" label-width="40px">
|
<!-- <el-radio label="a" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">A型血</el-radio>
|
<el-radio label="b" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">B型血</el-radio>
|
<el-radio label="o" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange"> O型血</el-radio>
|
<el-radio label="ab" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange" >AB型血</el-radio>
|
<el-radio label="rh" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">RH型血</el-radio>
|
<el-radio label="other" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">其他</el-radio>
|
<el-radio label="unknown" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">未知血型</el-radio>
|
--> <el-select :disabled="dsb" v-model="selectedBloodType" @change="handlebloodChange" placeholder="请选择">
|
<el-option
|
v-for="item in Bloodoptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
|
|
</el-form-item>
|
</el-row>
|
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
|
<div style="padding-left:150px">
|
<el-container>
|
<el-col v-loading="loading" :data="HealthyBaseList" >
|
<el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left">
|
<el-row :span="16">
|
<el-form-item label="文化程度" prop="educationLevel" label-width="70px">
|
<el-input v-model="HealthyBaseList.educationLevel " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="电子邮件" prop="email" label-width="70px">
|
<el-input v-model="HealthyBaseList.email" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
|
|
<!-- </el-dialog> self:user:export-->
|
</el-container>
|
<div>
|
|
</div>
|
<el-container>
|
<div >
|
<el-container >
|
<el-col >
|
<el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left"
|
v-loading="loading" :data="HealthyBaseList" >
|
<el-row :span="16">
|
|
<el-form-item label="过敏史" prop="allergyClass" label-width="60px">
|
<!-- <el-radio label="a" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">A型血</el-radio>
|
<el-radio label="b" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">B型血</el-radio>
|
<el-radio label="o" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange"> O型血</el-radio>
|
<el-radio label="ab" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange" >AB型血</el-radio>
|
<el-radio label="rh" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">RH型血</el-radio>
|
<el-radio label="other" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">其他</el-radio>
|
<el-radio label="unknown" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">未知血型</el-radio>
|
--> <el-select :disabled="dsb" v-model="selectedallergyType" @change="handleAllergyChange" placeholder="请选择">
|
<el-option
|
v-for="item in gmoptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
<el-dialog title="填写其他过敏史" :visible="showOtherDialog" @close="closeOtherDialog">
|
<el-input v-model="otherText" placeholder="请输入其他过敏史"></el-input>
|
</el-dialog>
|
<el-row :span="16">
|
<el-form-item label="常用药物" prop="medicine" label-width="70px">
|
<el-input v-model="HealthyBaseList.medicine" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
|
<div style="padding-left: 130px;">
|
<el-container >
|
<el-col >
|
<el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left"
|
v-loading="loading" :data="HealthyBaseList" >
|
<el-row :span="20">
|
<!-- <el-form-item label="遗传病史" prop="geneticDiseaseClass" label-width="80px">
|
<el-radio label="hypertension" v-model="selectedgeneticDiseaseType" :disabled="dsb" @change="handlegeneticDiseaseChange">高血压</el-radio>
|
<el-radio label="diabetes" v-model="selectedgeneticDiseaseType" :disabled="dsb" @change="handlegeneticDiseaseChange">糖尿病</el-radio>
|
<el-radio label="tumor" v-model="selectedgeneticDiseaseType" :disabled="dsb" @change="handlegeneticDiseaseChange">肿瘤</el-radio>
|
<el-radio label="other" v-model="selectedgeneticDiseaseType" :disabled="dsb" @change="handlegeneticDiseaseChange">其他</el-radio>
|
|
</el-form-item>
|
-->
|
<el-form-item label="遗传病史" prop="geneticDiseaseClass" label-width="80px">
|
<!-- <el-radio label="a" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">A型血</el-radio>
|
<el-radio label="b" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">B型血</el-radio>
|
<el-radio label="o" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange"> O型血</el-radio>
|
<el-radio label="ab" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange" >AB型血</el-radio>
|
<el-radio label="rh" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">RH型血</el-radio>
|
<el-radio label="other" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">其他</el-radio>
|
<el-radio label="unknown" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">未知血型</el-radio>
|
--> <el-select :disabled="dsb" v-model="selectedgeneticDiseaseType" @change="handlegeneticDiseaseChange" placeholder="请选择">
|
<el-option
|
v-for="item in ycoptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
|
|
</el-form-item>
|
</el-row>
|
<el-row :span="20">
|
<el-form-item label="目前基础病" prop="baseDisease" label-width="90px">
|
<el-input v-model="HealthyBaseList.baseDisease" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
</el-container>
|
|
<div style="padding-top:30px" >
|
<el-container >
|
|
|
<el-row :gutter="10" class="mb8">
|
<el-col >
|
<el-button
|
plain
|
@click="handleEdit()"
|
style="width: 80px;height: 32px;background: #E0EEFE;"
|
v-if="isShow"
|
v-hasPermi="['system:role:edit']"
|
>编辑</el-button>
|
<el-button v-if="isShow_2" style="width: 80px;height: 32px;background: #E0EEFE;" @click="submitForm" :disabled="dsb">完成</el-button>
|
<br>
|
|
</el-col>
|
|
<!-- <el-col style="padding-top: 10px;">-->
|
<!-- <el-button-->
|
<!-- plain-->
|
<!-- style="width: 80px;height: 32px;background: #D2F3E0;"-->
|
<!-- @click="handleExport"-->
|
<!-- v-hasPermi="['family:note:export']"-->
|
<!-- >导出</el-button></el-col>-->
|
|
<!-- <el-col style="padding-top: 10px;">
|
<el-button
|
plain
|
style="width: 80px;height: 32px;background: #FFDDE3;"
|
v-print="'#printable-content'"
|
v-hasPermi="['family:note:export']"
|
>打印</el-button></el-col> -->
|
|
|
</el-row>
|
|
</el-container>
|
</div>
|
</el-dialog>
|
|
|
<el-dialog :visible.sync="open1" width="800px" append-to-body @close="">
|
<h2 style="font-size:21px">生活习惯</h2>
|
<el-container>
|
<div style="padding-left:0px" >
|
<el-container >
|
<el-col >
|
<el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left"
|
v-loading="loading" :data="LiveHabbitList" >
|
<el-row :span="16">
|
<el-form-item label="饮食(喜)" prop="eatGood" label-width="70px">
|
<el-input v-model="LiveHabbitList.eatGood " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="爱好" prop="hobby" label-width="40px">
|
<el-input v-model="LiveHabbitList.hobby" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
|
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
<div style="padding-left:150px">
|
<el-container>
|
<el-col v-loading="loading" :data="LiveHabbitList" >
|
<el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left">
|
<el-row :span="16">
|
|
<el-form-item label="饮食(忌)" prop="eatBad" label-width="70px">
|
<el-input v-model="LiveHabbitList.eatBad " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="嗜好" prop="addition" label-width="40px">
|
<el-input v-model="LiveHabbitList.addition " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
</el-container>
|
<div>
|
<el-container >
|
<el-col >
|
<el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left"
|
v-loading="loading" :data="LiveHabbitList" >
|
<el-row :span="16">
|
<!-- <el-form-item label="睡眠:" prop="sleepClass" label-width="80px">
|
<el-radio label="good" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange">良好</el-radio>
|
<el-radio label="general" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange">一般</el-radio>
|
<el-radio label="easyWake" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange"> 易醒</el-radio>
|
<el-radio label="dreaminess" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange" >多梦</el-radio>
|
<el-radio label="sleepless" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange">失眠</el-radio>
|
<el-radio label="snore" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange">打鼾</el-radio>
|
<el-radio label="wakefulness" v-model="selectedsleepType" :disabled="dsb" @change="handlesleepChange">睡不熟</el-radio>
|
</el-form-item> -->
|
<el-form-item label="睡眠:" prop="sleepClass" label-width="80px">
|
<!-- <el-radio label="a" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">A型血</el-radio>
|
<el-radio label="b" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">B型血</el-radio>
|
<el-radio label="o" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange"> O型血</el-radio>
|
<el-radio label="ab" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange" >AB型血</el-radio>
|
<el-radio label="rh" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">RH型血</el-radio>
|
<el-radio label="other" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">其他</el-radio>
|
<el-radio label="unknown" v-model="selectedBloodType" :disabled="dsb" @change="handlebloodChange">未知血型</el-radio>
|
--> <el-select :disabled="dsb" v-model="selectedsleepType" @change="handlesleepChange" placeholder="请选择">
|
<el-option
|
v-for="item in spoptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
<el-container>
|
<div style="padding-left:0px" >
|
<el-container >
|
<el-col >
|
<el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left"
|
v-loading="loading" :data="LiveHabbitList" >
|
<el-row :span="16">
|
<el-form-item label="大便" prop="stool" label-width="40px">
|
<el-input v-model="LiveHabbitList.stool" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="小便" prop="urine" label-width="40px">
|
<el-input v-model="LiveHabbitList.urine" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
<div style="padding-left:170px">
|
<el-container>
|
<el-col v-loading="loading" :data="LiveHabbitList" >
|
<el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left">
|
<el-row :span="16" >
|
|
<el-form-item label="大便规律" prop="stoolStatusClass" label-width="70px">
|
<el-select :disabled="dsb" v-model="selectedstoolStatusType" @change="handlestoolStatusChange" placeholder="请选择">
|
<el-option
|
v-for="item in dboptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
</el-row>
|
<el-row :span="16">
|
|
|
<el-form-item label="小便规律" prop="urineStatusClass" label-width="70px">
|
<el-select :disabled="dsb" v-model="selectedurineStatusType" @change="handleurineStatusChange" placeholder="请选择">
|
<el-option
|
v-for="item in xboptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
|
</el-row>
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
</el-container>
|
<el-container>
|
<div>
|
<el-container >
|
<el-col >
|
<el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left"
|
v-loading="loading" :data="LiveHabbitList" >
|
|
<el-row :span="16">
|
|
|
|
<el-form-item label="饮食习惯" prop="eatingHabitsClass" label-width="70px">
|
<el-select :disabled="dsb" v-model="selectedeatingHabitsType" @change="handleeatingHabitsChange" placeholder="请选择">
|
<el-option
|
v-for="item in ysoptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
|
|
|
<el-form-item label="生活事件" prop="lifeEventClass" label-width="70px">
|
<el-select :disabled="dsb" v-model="selectedlifeEventType" @change="handlelifeEventChange" placeholder="请选择">
|
<el-option
|
v-for="item in shoptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</el-row>
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
</el-container>
|
|
|
<div style="padding-top:30px" >
|
<el-container >
|
|
|
<el-row :gutter="10" class="mb8">
|
<el-col >
|
<el-button
|
plain
|
@click="handleEdit()"
|
style="width: 80px;height: 32px;background: #E0EEFE;"
|
v-if="isShow"
|
v-hasPermi="['system:role:edit']"
|
>编辑</el-button>
|
<el-button v-if="isShow_2" style="width: 80px;height: 32px;background: #E0EEFE;" @click="submitForm" :disabled="dsb">完成</el-button>
|
<br>
|
|
</el-col>
|
|
<!-- <el-col style="padding-top: 10px;">-->
|
<!-- <el-button-->
|
<!-- plain-->
|
<!-- style="width: 80px;height: 32px;background: #D2F3E0;"-->
|
<!-- @click="handleExport"-->
|
<!-- v-hasPermi="['family:note:export']"-->
|
<!-- >导出</el-button></el-col>-->
|
|
<!-- <el-col style="padding-top: 10px;">
|
<el-button
|
plain
|
style="width: 80px;height: 32px;background: #FFDDE3;"
|
v-print="'#printable-content'"
|
v-hasPermi="['family:note:export']"
|
>打印</el-button></el-col> -->
|
|
|
</el-row>
|
|
</el-container>
|
</div>
|
</el-dialog>
|
<el-dialog :visible.sync="open2" width="800px" append-to-body @close="">
|
<h2 style="font-size:21px">护理查体</h2>
|
<el-container>
|
<div style="padding-left:0px" >
|
<el-container >
|
<el-col >
|
<el-form ref="elForm" :model="HealthHuliList" :rules="rules" size="medium" label-position="left"
|
v-loading="loading" :data="HealthHuliList" >
|
<el-row :span="16">
|
<el-form-item label="体温" prop="temperature" label-width="40px">
|
<el-input v-model="HealthHuliList.temperature " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="血压" prop="bloodPressure" label-width="40px">
|
<el-input v-model="HealthHuliList.bloodPressure" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
|
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
<div style="padding-left:150px">
|
<el-container>
|
<el-col v-loading="loading" :data="HealthHuliList" >
|
<el-form ref="elForm" :model="HealthHuliList" :rules="rules" size="medium" label-position="left">
|
<el-row :span="16">
|
|
<el-form-item label="脉搏" prop="pulse" label-width="40px">
|
<el-input v-model="HealthHuliList.pulse " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="体重" prop="weight" label-width="40px">
|
<el-input v-model="HealthHuliList.weight " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
<div style="padding-left:150px">
|
<el-container>
|
<el-col v-loading="loading" :data="HealthHuliList" >
|
<el-form ref="elForm" :model="HealthHuliList" :rules="rules" size="medium" label-position="left">
|
<el-row :span="16">
|
|
<el-form-item label="呼吸" prop="breathe" label-width="40px">
|
<el-input v-model="HealthHuliList.breathe " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="四肢活动" prop="movement" label-width="70px">
|
<el-input v-model="HealthHuliList.movement " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-row>
|
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
</el-container>
|
<el-container>
|
<div>
|
<el-container >
|
<el-col >
|
<el-form ref="elForm" :model="HealthHuliList" :rules="rules" size="medium" label-position="left"
|
v-loading="loading" :data="HealthHuliList" >
|
|
<el-row :span="16">
|
|
<el-form-item label="皮肤粘膜" prop="skinTypeClass" label-width="70px">
|
<el-select :disabled="dsb" v-model="selectedskinType" @change="handleskinTypeChange" placeholder="请选择">
|
<el-option
|
v-for="item in pfoptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
|
|
<el-form-item label="心理状态" prop="psychologyTypeClass" label-width="70px">
|
<el-select :disabled="dsb" v-model="selectedpsychologyType" @change="handlepsychologyTypeChange" placeholder="请选择">
|
<el-option
|
v-for="item in xloptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
|
|
|
<el-form-item label="病理态度" prop="attitudeClass" label-width="70px">
|
<el-select :disabled="dsb" v-model="selectedpattitudeType" @change="handlepattitudeTypeChange" placeholder="请选择">
|
<el-option
|
v-for="item in bloptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
|
|
<el-form-item label="全身营养情况" prop="nutritionClass" label-width="100px">
|
<el-select :disabled="dsb" v-model="selectednutritionType" @change="handlenutritionTypeChange" placeholder="请选择">
|
<el-option
|
v-for="item in qsoptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</el-row>
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
</el-container>
|
<div style="padding-top:30px" >
|
<el-container >
|
|
|
<el-row :gutter="10" class="mb8">
|
<el-col >
|
<el-button
|
plain
|
@click="handleEdit()"
|
style="width: 80px;height: 32px;background: #E0EEFE;"
|
v-if="isShow"
|
v-hasPermi="['system:role:edit']"
|
>编辑</el-button>
|
<el-button v-if="isShow_2" style="width: 80px;height: 32px;background: #E0EEFE;" @click="submitForm" :disabled="dsb">完成</el-button>
|
<br>
|
|
</el-col>
|
|
<!-- <el-col style="padding-top: 10px;">-->
|
<!-- <el-button-->
|
<!-- plain-->
|
<!-- style="width: 80px;height: 32px;background: #D2F3E0;"-->
|
<!-- @click="handleExport"-->
|
<!-- v-hasPermi="['family:note:export']"-->
|
<!-- >导出</el-button></el-col>-->
|
|
<!-- <el-col style="padding-top: 10px;">
|
<el-button
|
plain
|
style="width: 80px;height: 32px;background: #FFDDE3;"
|
v-print="'#printable-content'"
|
v-hasPermi="['family:note:export']"
|
>打印</el-button></el-col> -->
|
|
|
</el-row>
|
|
</el-container>
|
</div>
|
</el-dialog>
|
<el-dialog :visible.sync="open3" width="1200px" append-to-body @close="">
|
<h2 style="font-size:21px">现存健康问题</h2>
|
|
<el-container>
|
<div>
|
<el-container >
|
<el-col >
|
<el-form ref="elForm" :model="HealthNowList" :rules="rules" size="medium" label-position="left"
|
v-loading="loading" :data="HealthNowList" >
|
|
<el-row :span="16">
|
|
|
<el-form-item label="脑血管疾病" prop="brainDiseaseClass" label-width="100px">
|
<el-select :disabled="dsb" v-model="selectedbrainDiseaseType" @change="handlebrainDiseaseTypeChange" placeholder="请选择">
|
<el-option
|
v-for="item in nxoptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
|
|
<el-form-item label="心脏疾病" prop="heartDiseaseClass" label-width="100px">
|
<el-select :disabled="dsb" v-model="selectedheartDiseaseType" @change="handleheartDiseaseTypeChange" placeholder="请选择">
|
<el-option
|
v-for="item in xzoptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
|
|
<el-form-item label="血管疾病" prop="vascularDiseaseClass" label-width="100px">
|
<el-select :disabled="dsb" v-model="selectedvascularDiseaseType" @change="handlevascularDiseaseTypeChange" placeholder="请选择">
|
<el-option
|
v-for="item in xgoptions"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="消化系统疾病" prop="digestiveSystemDiseaseClass" label-width="100px">
|
<el-radio label="gastroduodenalUlcer" v-model="selecteddigestiveSystemDiseaseType" :disabled="dsb" @change="handledigestiveSystemDiseaseTypeChange">胃十二指肠溃疡</el-radio>
|
<el-radio label="esophagitis" v-model="selecteddigestiveSystemDiseaseType" :disabled="dsb" @change="handledigestiveSystemDiseaseTypeChange">反流性食管炎</el-radio>
|
<el-radio label="gastritis" v-model="selecteddigestiveSystemDiseaseType" :disabled="dsb" @change="handledigestiveSystemDiseaseTypeChange"> 慢性胃炎</el-radio>
|
<el-radio label="colitis" v-model="selecteddigestiveSystemDiseaseType" :disabled="dsb" @change="handledigestiveSystemDiseaseTypeChange" >溃疡性结肠炎</el-radio>
|
<el-radio label="hepatitis" v-model="selecteddigestiveSystemDiseaseType" :disabled="dsb" @change="handledigestiveSystemDiseaseTypeChange"> 肝炎</el-radio>
|
<el-radio label="cholecystitis" v-model="selecteddigestiveSystemDiseaseType" :disabled="dsb" @change="handledigestiveSystemDiseaseTypeChange"> 胆囊炎</el-radio>
|
<el-radio label="cholelithiasis" v-model="selecteddigestiveSystemDiseaseType" :disabled="dsb" @change="handledigestiveSystemDiseaseTypeChange">胆石症</el-radio>
|
<el-radio label="fattyLiver" v-model="selecteddigestiveSystemDiseaseType" :disabled="dsb" @change="handledigestiveSystemDiseaseTypeChange">脂肪肝</el-radio>
|
<el-radio label="hyperlipidemia" v-model="selecteddigestiveSystemDiseaseType" :disabled="dsb" @change="handledigestiveSystemDiseaseTypeChange"> 高脂血症</el-radio>
|
<el-radio label="haemorrhoids" v-model="selecteddigestiveSystemDiseaseType" :disabled="dsb" @change="handledigestiveSystemDiseaseTypeChange" >痔疮</el-radio>
|
<el-radio label="other" v-model="selecteddigestiveSystemDiseaseType" :disabled="dsb" @change="handledigestiveSystemDiseaseTypeChange"> 其它</el-radio>
|
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="呼吸系统疾病" prop="respiratorySystemDiseaseClass" label-width="100px">
|
<el-radio label="COPD" v-model="selectedrespiratorySystemDiseaseType" :disabled="dsb" @change="handlerespiratorySystemDiseaseTypeChange">COPD</el-radio>
|
<el-radio label="pneumonia" v-model="selectedrespiratorySystemDiseaseType" :disabled="dsb" @change="handlerespiratorySystemDiseaseTypeChange">肺炎</el-radio>
|
<el-radio label="bronchitis" v-model="selectedrespiratorySystemDiseaseType" :disabled="dsb" @change="handlerespiratorySystemDiseaseTypeChange"> 支气管炎</el-radio>
|
<el-radio label="bronchialAsthma" v-model="selectedrespiratorySystemDiseaseType" :disabled="dsb" @change="handlerespiratorySystemDiseaseTypeChange" >支气管哮喘</el-radio>
|
<el-radio label="pulmonaryTuberculosis" v-model="selectedrespiratorySystemDiseaseType" :disabled="dsb" @change="handlerespiratorySystemDiseaseTypeChange"> 肺结核</el-radio>
|
<el-radio label="upperRespiratoryTractInfection" v-model="selectedrespiratorySystemDiseaseType" :disabled="dsb" @change="handlerespiratorySystemDiseaseTypeChange"> 上呼吸道感染</el-radio>
|
<el-radio label="other" v-model="selectedrespiratorySystemDiseaseType" :disabled="dsb" @change="handlerespiratorySystemDiseaseTypeChange">其他</el-radio>
|
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="肾脏疾病" prop="kidneyDiseaseClass" label-width="100px">
|
<el-radio label="diabetes" v-model="selectedkidneyDiseaseDiseaseType" :disabled="dsb" @change="handlekidneyDiseaseTypeChange">糖尿病肾病</el-radio>
|
<el-radio label="renalFailure" v-model="selectedkidneyDiseaseDiseaseType" :disabled="dsb" @change="handlekidneyDiseaseTypeChange">肾功能衰竭</el-radio>
|
<el-radio label="acuteNephritis" v-model="selectedkidneyDiseaseDiseaseType" :disabled="dsb" @change="handlekidneyDiseaseTypeChange"> 急性肾炎</el-radio>
|
<el-radio label="chronicNephritis" v-model="selectedkidneyDiseaseDiseaseType" :disabled="dsb" @change="handlekidneyDiseaseTypeChange" >慢性肾炎</el-radio>
|
<el-radio label="urinaryCalculus" v-model="selectedkidneyDiseaseDiseaseType" :disabled="dsb" @change="handlekidneyDiseaseTypeChange"> 泌尿系统结石</el-radio>
|
<el-radio label="urinaryTractInfection" v-model="selectedkidneyDiseaseDiseaseType" :disabled="dsb" @change="handlekidneyDiseaseTypeChange"> 泌尿系统感染</el-radio>
|
<el-radio label="other" v-model="selectedkidneyDiseaseDiseaseType" :disabled="dsb" @change="handlekidneyDiseaseTypeChange">其他</el-radio>
|
|
</el-form-item>
|
</el-row>
|
<el-row :span="16">
|
<el-form-item label="其它疾病" prop="otherDiseaseClass" label-width="100px">
|
<el-radio label="pregnant" v-model="selectedotherDiseaseType" :disabled="dsb" @change="handleotherDiseaseTypeChange">孕期三个月以内的孕妇</el-radio>
|
<el-radio label="cold" v-model="selectedotherDiseaseType" :disabled="dsb" @change="handleotherDiseaseTypeChange">病毒性重感冒</el-radio>
|
<el-radio label="infectious" v-model="selectedotherDiseaseType" :disabled="dsb" @change="handleotherDiseaseTypeChange"> 传染性疾病</el-radio>
|
<el-radio label="pulmonaryBulla" v-model="selectedotherDiseaseType" :disabled="dsb" @change="handleotherDiseaseTypeChange" >肺大疱</el-radio>
|
<el-radio label="hemoptysis" v-model="selectedotherDiseaseType" :disabled="dsb" @change="handleotherDiseaseTypeChange"> 结核性空洞形成的咯血</el-radio>
|
<el-radio label="activeBleeding" v-model="selectedotherDiseaseType" :disabled="dsb" @change="handleotherDiseaseTypeChange"> 未经处理的气胸</el-radio>
|
<el-radio label="other" v-model="selectedotherDiseaseType" :disabled="dsb" @change="handleotherDiseaseTypeChange">活动性出血</el-radio>
|
|
</el-form-item>
|
</el-row>
|
</el-form>
|
</el-col>
|
</el-container>
|
</div>
|
</el-container>
|
|
<div style="position:relative">
|
<el-tabs type="border-card" v-model="activeName"
|
v-loading="loading" :data="HealthNoteList" >
|
|
|
<el-tab-pane label="生活习惯" name="lifeHabits" >
|
<template v-if="editMode">
|
<div style="padding-top: 10px">
|
<el-input v-model="HealthNoteList.lifeHabits" type="textarea" ></el-input>
|
</div>
|
</template>
|
<template v-else>
|
{{ HealthNoteList.lifeHabits }}
|
</template>
|
</el-tab-pane>
|
<el-tab-pane label="以往病史" name="historyDisease">
|
<template v-if="editMode">
|
<div style="padding-top: 10px">
|
<el-input v-model="HealthNoteList.historyDisease" type="textarea" ></el-input>
|
</div>
|
</template>
|
<template v-else>
|
{{HealthNoteList.historyDisease}}
|
</template>
|
</el-tab-pane>
|
<el-tab-pane label="治疗信息" name="treatmentInfo">
|
<!-- 治疗信息的内容 -->
|
<template v-if="editMode">
|
<div style="padding-top: 10px">
|
<el-input v-model="HealthNoteList.treatmentInfo" type="textarea" ></el-input>
|
</div>
|
</template>
|
<template v-else>
|
{{HealthNoteList.treatmentInfo}}
|
</template>
|
</el-tab-pane>
|
<el-tab-pane label="家族病史" name="familyDisease">
|
<!-- 家族病史的内容 -->
|
<template v-if="editMode">
|
<div style="padding-top: 10px">
|
<el-input v-model="HealthNoteList.familyDisease" type="textarea" ></el-input>
|
</div>
|
</template>
|
<template v-else>
|
{{HealthNoteList.familyDisease}}
|
</template>
|
</el-tab-pane>
|
<el-tab-pane label="现病史" name="nowDisease">
|
<!-- 目前病情的内容 -->
|
<template v-if="editMode">
|
<div style="padding-top: 10px">
|
<el-input v-model="HealthNoteList.nowDisease" type="textarea" ></el-input>
|
</div>
|
</template>
|
<template v-else>
|
{{HealthNoteList.nowDisease}}
|
</template>
|
</el-tab-pane>
|
<el-tab-pane label="疾病发生" name="diseaseHappen">
|
<!-- 疾病发生的内容 -->
|
<template v-if="editMode">
|
<div style="padding-top: 10px">
|
<el-input v-model="HealthNoteList.diseaseHappen" type="textarea" ></el-input>
|
</div>
|
</template>
|
<template v-else>
|
{{HealthNoteList.diseaseHappen}}
|
</template>
|
</el-tab-pane>
|
<el-tab-pane label="疾病发展" name="diseaseDevelop">
|
<!-- 疾病发展的内容 -->
|
<template v-if="editMode">
|
<div style="padding-top: 10px">
|
<el-input v-model="HealthNoteList.diseaseDevelop" type="textarea" ></el-input>
|
</div>
|
</template>
|
<template v-else>
|
{{HealthNoteList.diseaseDevelop}}
|
</template>
|
</el-tab-pane>
|
<el-tab-pane label="疾病治疗" name="diseaseTreat">
|
<!-- 疾病治疗的内容 -->
|
<template v-if="editMode">
|
<div style="padding-top: 10px">
|
<el-input v-model="HealthNoteList.diseaseTreat" type="textarea" ></el-input>
|
</div>
|
</template>
|
<template v-else>
|
{{HealthNoteList.diseaseTreat}}
|
</template>
|
</el-tab-pane>
|
<el-tab-pane label="疾病复发" name="diseaseBack">
|
<!-- 疾病复发的内容 -->
|
<template v-if="editMode">
|
<div style="padding-top: 10px">
|
<el-input v-model="HealthNoteList.diseaseBack" type="textarea" ></el-input>
|
</div>
|
</template>
|
<template v-else>
|
{{HealthNoteList.diseaseBack}}
|
</template>
|
</el-tab-pane>
|
</el-tabs>
|
|
<div style="margin-bottom: 10px;position: absolute;right:10px;top:5px" >
|
<el-button size='mini' type="text" class="btn_edit" @click="saveData" style='top: 0px; bottom:0px;right: 20px;'>
|
<sapn v-html="'\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'"></sapn>
|
<span >{{ editMode ? this.bstn='保存' : this.bstn='修改' }}</span>
|
</el-button>
|
</div>
|
</div>
|
<div style="padding-top:30px" >
|
<el-container >
|
|
|
<el-row :gutter="10" class="mb8">
|
<el-col >
|
<el-button
|
plain
|
@click="handleEdit()"
|
style="width: 80px;height: 32px;background: #E0EEFE;"
|
v-if="isShow"
|
v-hasPermi="['system:role:edit']"
|
>编辑</el-button>
|
<el-button v-if="isShow_2" style="width: 80px;height: 32px;background: #E0EEFE;" @click="submitForm" :disabled="dsb">完成</el-button>
|
<br>
|
|
</el-col>
|
|
<!-- <el-col style="padding-top: 10px;">-->
|
<!-- <el-button-->
|
<!-- plain-->
|
<!-- style="width: 80px;height: 32px;background: #D2F3E0;"-->
|
<!-- @click="handleExport"-->
|
<!-- v-hasPermi="['family:note:export']"-->
|
<!-- >导出</el-button></el-col>-->
|
|
<!-- <el-col style="padding-top: 10px;">
|
<el-button
|
plain
|
style="width: 80px;height: 32px;background: #FFDDE3;"
|
v-print="'#printable-content'"
|
v-hasPermi="['family:note:export']"
|
>打印</el-button></el-col> -->
|
|
|
</el-row>
|
|
</el-container>
|
</div>
|
</el-dialog>
|
</div>
|
</template>
|
|
<script>
|
import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role";
|
import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu";
|
import {
|
listHealthNote,
|
updateHealthNote,listHealthBase,
|
updateHealthBase,
|
listHealthHabit,
|
updateHealthHabit,
|
listHealthHuli,
|
updateHealthHuli,
|
listHealthNow,
|
updateHealthNow,
|
} from "@/api/healthy/index";
|
|
import { blobValidate } from '../../utils/ruoyi'
|
|
export default {
|
name: "show",
|
dicts: ['sys_normal_disable'],
|
data() {
|
return {
|
open:false,
|
open1:false,
|
open2:false,
|
open3:false,
|
allBasicInfo:["基本情况","生活习惯","护理查体","现在健康问题"],
|
dictionary: {},
|
// 遮罩层
|
editMode: false, // 是否处于编辑模式
|
activeName: 'lifeHabits',
|
disabled: false,
|
isEditing:false,
|
inds: undefined,
|
sinds: undefined,
|
loading: false,
|
showOtherDialog: false, // 是否显示"其他"过敏史输入框对话框的标志位
|
otherText:undefined ,// 输入的其他过敏史
|
formData:[],
|
bloodData:{},
|
allergyData: {},
|
geneticDiseaseData: {},
|
sleepData:{},
|
stoolStatusData:{},
|
urineStatusData:{},
|
eatingHabitsData:{},
|
lifeEventData:{},
|
skinTypeData:{},
|
sychologyTypeData:{},
|
attitudeTypeData:{},
|
nutritionTypeData:{},
|
brainDiseaseTypeData:{},
|
vascularDiseaseTypeData:{},
|
digestiveSystemTypeData:{},
|
respiratorySystemTypeData:{},
|
kidneyDiseaseSystemTypeData:{},
|
otherDiseaseTypeData:{},
|
// 选中数组
|
ids: [],
|
// 非单个禁用
|
single: true,
|
bstn: '修改',
|
// 非多个禁用
|
multiple: true,
|
// 显示搜索条件
|
showSearch: true,
|
// 总条数
|
total: 0,
|
//头像上传
|
showBtnDealImg:true,
|
noneBtnImg:false,
|
limitCountImg:1,//上传图片的最大数量
|
selectedBloodType: undefined, // 用于存储选中的血型
|
originalBloodType:undefined,
|
selectedallergyType: undefined, //用于存储选中的过敏史
|
selectedgeneticDiseaseType:undefined, //遗传病史
|
selectedsleepType:undefined,//睡眠
|
selectedstoolStatusType:undefined,//大便
|
selectedurineStatusType:undefined,//小便
|
selectedeatingHabitsType:undefined,//饮食习惯
|
selectedlifeEventType:undefined,//生活事件
|
selectedskinType:undefined,//皮肤粘膜
|
selectedpsychologyType:undefined,//心理状态
|
selectedpattitudeType:undefined,//病理态度
|
selectednutritionType:undefined,//全身营养
|
selectedbrainDiseaseType:undefined,//脑血管
|
selectedheartDiseaseType:undefined,//心脏疾病
|
selectedvascularDiseaseType:undefined,//血管疾病
|
selecteddigestiveSystemDiseaseType:undefined,//消化系统疾病
|
selectedrespiratorySystemDiseaseType:undefined,//呼吸系统疾病
|
selectedkidneyDiseaseDiseaseType:undefined,//肾脏疾病
|
selectedotherDiseaseType:undefined,//其它疾病
|
//个人信息数据
|
HealthyBaseList:{
|
bloodClass: {
|
a: undefined,
|
b: undefined,
|
o: undefined,
|
ab: undefined,
|
rh: undefined,
|
other: undefined,
|
otherText: "其他血型",
|
unknown: undefined
|
},
|
allergyClass: {
|
medicine: undefined,
|
food: undefined,
|
other: undefined,
|
otherText: "其他过敏"
|
},
|
geneticDiseaseClass: {
|
hypertension: undefined,
|
diabetes: undefined,
|
tumor:undefined,
|
other: undefined,
|
otherText: "其他过敏"
|
},
|
},
|
LiveHabbitList:{
|
sleepClass: {
|
good: undefined,
|
general: undefined,
|
easyWake: undefined,
|
dreaminess: undefined,
|
sleepless: undefined,
|
other: undefined,
|
otherText: "其他血型",
|
snore: undefined,
|
wakefulness:undefined,
|
},
|
stoolStatusClass: {
|
normal: undefined,
|
constipation: undefined,
|
diarrhea: undefined,
|
incontinence: undefined,
|
},
|
urineStatusClass: {
|
normal: undefined,
|
nightUrinaryRetention: undefined,
|
enuresis: undefined,
|
incontinence: undefined,
|
},
|
eatingHabitsClass: {
|
uniformityOfMeatAndVegetables: undefined,
|
meat: undefined,
|
vegetable: undefined,
|
salt: undefined,
|
oil:undefined,
|
sugar:undefined,
|
other:undefined,
|
},
|
lifeEventClass: {
|
bereave: undefined,
|
liveAlone: undefined,
|
inHospital: undefined,
|
divide: undefined,
|
other:undefined,
|
},
|
},
|
HealthHuliList:{
|
skinTypeClass: {
|
acne: undefined,
|
psoriasis: undefined,
|
color: undefined,
|
edema: undefined,
|
rash: undefined,
|
other: undefined,
|
bloodStasis: undefined,
|
snom:undefined,
|
nevus: undefined,
|
ulcer:undefined,
|
},
|
psychologyTypeClass: {
|
optimistic: undefined,
|
worry: undefined,
|
fear: undefined,
|
suspicion: undefined,
|
constrain: undefined,
|
other: undefined,
|
miss: undefined,
|
},
|
attitudeClass: {
|
lucidity: undefined,
|
unknown: undefined,
|
normal: undefined,
|
abnormal: undefined,
|
other: undefined,
|
},
|
nutritionClass: {
|
good: undefined,
|
medium: undefined,
|
poor: undefined,
|
obesity: undefined,
|
thin: undefined,
|
fluid: undefined,
|
other: undefined,
|
},
|
},
|
HealthNowList:{
|
brainDiseaseClass: {
|
ischemicStroke: undefined,
|
cerebralHemorrhage: undefined,
|
subarachnoidHemorrhage: undefined,
|
TIA: undefined,
|
other: undefined,
|
|
},
|
heartDiseaseClass: {
|
myocardialInfarct: undefined,
|
anginaPectoris: undefined,
|
coronaryRevascularization: undefined,
|
congestiveHeartFailure: undefined,
|
precordialPain:undefined,
|
other: undefined,
|
|
},
|
vascularDiseaseClass: {
|
dissectingAneurysm: undefined,
|
arterialOcclusiveDiseases: undefined,
|
other: undefined,
|
|
},
|
digestiveSystemDiseaseClass: {
|
gastroduodenalUlcer: undefined,
|
esophagitis: undefined,
|
gastritis: undefined,
|
colitis: undefined,
|
hepatitis: undefined,
|
cholecystitis: undefined,
|
cholelithiasis: undefined,
|
fattyLiver: undefined,
|
hyperlipidemia:undefined,
|
haemorrhoids:undefined,
|
other: undefined,
|
|
},
|
respiratorySystemDiseaseClass: {
|
COPD: undefined,
|
pneumonia: undefined,
|
bronchitis: undefined,
|
bronchialAsthma: undefined,
|
pulmonaryTuberculosis: undefined,
|
upperRespiratoryTractInfection: undefined,
|
other: undefined,
|
|
},
|
kidneyDiseaseClass: {
|
diabetes: undefined,
|
renalFailure: undefined,
|
acuteNephritis: undefined,
|
chronicNephritis: undefined,
|
urinaryCalculus: undefined,
|
urinaryTractInfection: undefined,
|
other: undefined,
|
|
},
|
otherDiseaseClass: {
|
pregnant: undefined,
|
cold: undefined,
|
infectious: undefined,
|
pulmonaryBulla: undefined,
|
hemoptysis: undefined,
|
activeBleeding: undefined,
|
other: undefined,
|
|
},
|
},
|
HealthNoteList:{
|
lifeHabits:undefined,
|
historyDisease:undefined,
|
treatmentInfo:undefined,
|
familyDisease:undefined,
|
nowDisease:undefined,
|
diseaseHappen:undefined,
|
diseaseDevelop:undefined,
|
diseaseTreat:undefined,
|
diseaseBack:undefined
|
},
|
fit:['fill'],
|
//下拉实现
|
activeNames:['1'],
|
// 弹出层标题
|
title: "",
|
// 是否显示弹出层
|
open: false,
|
// open:true,
|
code:undefined,
|
// 是否显示弹出层(数据权限)
|
bear:undefined,
|
mrs:undefined,
|
smrs:undefined,
|
openDataScope: false,
|
menuExpand: false,
|
menuNodeAll: false,
|
deptExpand: true,
|
deptNodeAll: false,
|
// 日期范围
|
dateRange: [],
|
// 数据范围选项
|
// 数据范围选项
|
fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx',
|
'.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'],
|
|
fileList:[
|
],
|
fileListOther:[
|
|
],
|
editStatus: {},
|
dsb:true,
|
btn:false,
|
isShow:true,
|
isShow_2:false,
|
|
formDat: {
|
|
|
},
|
|
nxoptions:
|
[
|
{ value: 'ischemicStroke',
|
label: '缺血性卒中'},
|
|
{ value: 'cerebralHemorrhage',
|
label: '脑出血'},
|
{ value: 'subarachnoidHemorrhage',
|
label: '蛛网膜下腔出血'},
|
{ value: 'TIA',
|
label: '短暂性脑缺血发作'},
|
|
{ value: 'other',
|
label: '其它'},
|
],
|
xzoptions:
|
[
|
{ value: 'myocardialInfarct',
|
label: '心肌梗塞'},
|
{ value: 'anginaPectoris',
|
label: '心绞痛'},
|
|
{ value: 'coronaryRevascularization',
|
label: '冠状动脉血运重建'},
|
{ value: 'congestiveHeartFailure',
|
label: '充血性心力衰竭'},
|
{ value: 'precordialPain',
|
label: '心前区疼痛'},
|
|
{ value: 'other',
|
label: '其它'},
|
],
|
xgoptions:
|
[
|
{ value: 'dissectingAneurysm',
|
label: '夹层动脉瘤'},
|
{ value: 'arterialOcclusiveDiseases',
|
label: '动脉闭塞性疾病'},
|
|
{ value: 'other',
|
label: '其它'},
|
],
|
qsoptions:
|
[
|
{ value: 'good',
|
label: '良好'},
|
{ value: 'medium',
|
label: '中等'},
|
{ value: 'poor',
|
label: '欠佳'},
|
{ value: 'obesity',
|
label: '肥胖'},
|
{ value: 'thin',
|
label: '消瘦'},
|
{ value: 'fluid',
|
label: '恶液质'},
|
{ value: 'other',
|
label: '其它'},
|
],
|
xloptions:
|
[
|
{ value: 'optimistic',
|
label: '开朗'},
|
{ value: 'worry',
|
label: '焦虑'},
|
{ value: 'fear',
|
label: '忧愁恐惧'},
|
{ value: 'suspicion',
|
label: '猜疑'},
|
{ value: 'miss',
|
label: '思念'},
|
{ value: 'constrain',
|
label: '压抑'},
|
{ value: 'other',
|
label: '其它'},
|
],
|
bloptions:
|
[
|
{ value: 'lucidity',
|
label: '明朗'},
|
{ value: 'unknown',
|
label: '不了解'},
|
{ value: 'normal',
|
label: '正常'},
|
{ value: 'abnormal',
|
label: '不正常'},
|
{ value: 'other',
|
label: '其它'},
|
],
|
pfoptions:
|
[
|
{ value: 'acne',
|
label: '青春痘'},
|
{ value: 'psoriasis',
|
label: '牛皮藓'},
|
{ value: 'color',
|
label: '色素沉着'},
|
{ value: 'edema',
|
label: '水肿'},
|
{ value: 'rash',
|
label: '皮疹'},
|
{ value: 'bloodStasis',
|
label: '淤点淤斑'},
|
{ value: 'snom',
|
label: '皮下结节或肿块'},
|
{ value: 'nevus',
|
label: '蜘蛛痣'},
|
{ value: 'ulcer',
|
label: '溃疡及瘢痕'},
|
{ value: 'other',
|
label: '其它'},
|
],
|
shoptions:
|
[
|
{ value: 'bereave',
|
label: '丧偶(两年之内)'},
|
{ value: 'liveAlone',
|
label: '目前独居'},
|
{ value: 'inHospital',
|
label: '一年内住院治疗'},
|
{ value: 'divide',
|
label: '子女分家生活'},
|
|
{ value: 'other',
|
label: '其它'},
|
],
|
ysoptions:
|
[
|
{ value: 'uniformityOfMeatAndVegetables',
|
label: '荤素均衡'},
|
{ value: 'meat',
|
label: '荤食为主'},
|
{ value: 'vegetable',
|
label: '素食为主'},
|
{ value: 'salt',
|
label: '嗜盐'},
|
{ value: 'oil',
|
label: '嗜油'},
|
{ value: 'sugar',
|
label: '嗜糖'},
|
{ value: 'other',
|
label: '其它'},
|
],
|
dboptions:
|
[
|
{ value: 'normal',
|
label: '正常'},
|
{ value: 'constipation',
|
label: '秘结'},
|
{ value: 'diarrhea',
|
label: '腹泻'},
|
{ value: 'incontinence',
|
label: '失禁'},
|
|
],
|
|
xboptions:
|
[
|
{ value: 'normal',
|
label: '正常'},
|
{ value: 'nightUrinaryRetention',
|
label: '夜尿潴留'},
|
{ value: 'incontinence',
|
label: '失禁'},
|
{ value: 'enuresis',
|
label: '遗尿'},
|
|
],
|
spoptions:[
|
{ value: 'good',
|
label: '良好'},
|
{ value: 'general',
|
label: '一般'},
|
{ value: 'easyWake',
|
label: '易醒'},
|
{ value: 'dreaminess',
|
label: '多梦'},
|
{ value: 'sleepless',
|
label: '失眠'},
|
{ value: 'snore',
|
label: '打鼾'},
|
{ value: 'wakefulness',
|
label: '睡不熟'},
|
|
],
|
ycoptions:[
|
{ value: 'hypertension',
|
label: '高血压'},
|
{ value: 'diabetes',
|
label: '糖尿病'},
|
{ value: 'tumor',
|
label: '肿瘤'},
|
{ value: 'other',
|
label: '其它'},
|
],
|
gmoptions:[
|
{ value: 'medicine',
|
label: '药物'},
|
{ value: 'food',
|
label: '食物'},
|
{ value: 'other',
|
label: '其它'},
|
],
|
Bloodoptions: [{
|
value: 'a',
|
label: 'A型血'
|
}, {
|
value: 'b',
|
label: 'B型血'
|
},
|
{
|
value: 'o',
|
label: 'o型血'
|
}, {
|
|
value: 'ab',
|
label: 'AB型血'
|
},
|
{
|
value: 'rh',
|
label: 'RH型血'
|
}, {
|
value: 'otherText',
|
label: '其它'
|
},
|
{
|
value: 'unknown',
|
label: '未知血型'
|
}],
|
// 菜单列表
|
menuOptions: [],
|
// 部门列表
|
deptOptions: [],
|
// 查询参数
|
queryParams: {
|
|
},
|
// 表单参数
|
form: {},
|
defaultProps: {
|
children: "children",
|
label: "label"
|
},
|
// 表单校验
|
rules: {
|
|
|
},
|
|
};
|
},
|
created() {
|
this.getList()
|
this.$route.meta.title = "现状健康情况";
|
this.$route.meta.title = "现状健康情况";
|
},
|
|
methods: {
|
handleEditInfo(index)
|
{
|
|
if(index==0)
|
this.open = true
|
else if(index==1)
|
this.open1 = true;
|
else if(index==2)
|
this.open2 = true;
|
else
|
this.open3 = true;
|
},
|
saveData() {
|
// 将数据发送给后端
|
// alert(this.bstn)
|
this.editMode= true
|
if(this.bstn=="保存")
|
{
|
const data = {
|
lifeHabits: this.HealthNoteList.lifeHabits,
|
historyDisease: this.HealthNoteList.historyDisease,
|
treatmentInfo: this.HealthNoteList.treatmentInfo,
|
familyDisease:this.HealthNoteList.familyDisease,
|
nowDisease: this.HealthNoteList.nowDisease,// 现病史
|
diseaseHappen: this.HealthNoteList.diseaseHappen,// 疾病的发生
|
diseaseDevelop: this.HealthNoteList.diseaseDevelop,// 疾病的发展
|
diseaseTreat: this.HealthNoteList.diseaseTreat,// 疾病的治疗
|
diseaseBack: this.HealthNoteList.diseaseBack// 疾病的转归
|
// 其他字段省略,请补充完整
|
};
|
updateHealthNote(data).then(response=>{
|
this.$modal.msgSuccess("修改成功!");
|
})
|
this.editMode = false
|
}
|
|
},
|
//血型修改
|
handlebloodChange() {
|
|
if (this.selectedBloodType === '') {
|
// 没有选择血型,不进行修改,保留原始数据
|
this.selectedBloodType = this.originalBloodType;
|
} else {
|
// 点击按钮时进行修改
|
this.bloodData = {
|
a: this.selectedBloodType === 'a' ? 1 : 0,
|
b: this.selectedBloodType === 'b' ? 1 : 0,
|
o: this.selectedBloodType === 'o' ? 1 : 0,
|
ab: this.selectedBloodType === 'ab' ? 1 : 0,
|
rh: this.selectedBloodType === 'rh' ? 1 : 0,
|
unknown: this.selectedBloodType === 'unknown' ? 1 : 0
|
};
|
}
|
// 将结果以对象形式返回给后端进行处理
|
console.log(this.bloodData);
|
},
|
//过敏史
|
handleAllergyChange() {
|
this.allergyData = {
|
medicine: this.selectedallergyType === 'medicine' ? 1 : 0,
|
food: this.selectedallergyType === 'food' ? 1 : 0,
|
other: this.selectedallergyType === 'other' ? 1 : 0
|
};
|
|
// 将结果以对象形式返回给后端进行处理
|
console.log(this.allergyData);
|
},
|
//遗传病史
|
handlegeneticDiseaseChange() {
|
this.geneticDiseaseData = {
|
hypertension: this.selectedgeneticDiseaseType === 'hypertension' ? 1 : 0,
|
diabetes: this.selectedgeneticDiseaseType === 'diabetes' ? 1 : 0,
|
tumor: this.selectedgeneticDiseaseType === 'tumor' ? 1 : 0,
|
other: this.selectedgeneticDiseaseType === 'other' ? 1 : 0
|
};
|
// 将结果以对象形式返回给后端进行处理
|
console.log(this.geneticDiseaseData);
|
},
|
//睡眠
|
handlesleepChange() {
|
this.sleepData = {
|
good: this.selectedsleepType === 'good' ? 1 : 0,
|
general: this.selectedsleepType === 'general' ? 1 : 0,
|
easyWake: this.selectedsleepType === 'easyWake' ? 1 : 0 ,
|
dreaminess: this.selectedsleepType === 'dreaminess' ? 1 : 0,
|
sleepless: this.selectedsleepType === 'sleepless' ? 1 : 0,
|
snore: this.selectedsleepType === 'snore' ? 1 : 0,
|
wakefulness: this.selectedsleepType === 'wakefulness' ? 1 : 0,
|
};
|
|
// 将结果以对象形式返回给后端进行处理
|
console.log(this.sleepData);
|
},
|
//大便
|
handlestoolStatusChange() {
|
this.stoolStatusData = {
|
normal: this.selectedstoolStatusType === 'normal' ? 1 : 0,
|
constipation: this.selectedstoolStatusType === 'constipation' ? 1 : 0,
|
diarrhea: this.selectedstoolStatusType === 'diarrhea' ? 1 : 0 ,
|
incontinence: this.selectedstoolStatusType === 'incontinence' ? 1 : 0,
|
|
};
|
|
// 将结果以对象形式返回给后端进行处理
|
console.log(this.stoolStatusData);
|
},
|
//小便
|
handleurineStatusChange() {
|
this.urineStatusData = {
|
normal: this.selectedurineStatusType === 'normal' ? 1 : 0,
|
nightUrinaryRetention: this.selectedurineStatusType === 'nightUrinaryRetention' ? 1 : 0,
|
enuresis: this.selectedurineStatusType === 'enuresis' ? 1 : 0 ,
|
incontinence: this.selectedurineStatusType === 'incontinence' ? 1 : 0,
|
|
};
|
|
},
|
//饮食习惯
|
handleeatingHabitsChange() {
|
this.eatingHabitsData = {
|
uniformityOfMeatAndVegetables: this.selectedeatingHabitsType === 'uniformityOfMeatAndVegetables' ? 1 : 0,
|
meat: this.selectedeatingHabitsType === 'meat' ? 1 : 0,
|
vegetable: this.selectedeatingHabitsType === 'vegetable' ? 1 : 0 ,
|
salt: this.selectedeatingHabitsType === 'salt' ? 1 : 0,
|
oil: this.selectedeatingHabitsType === 'oil' ? 1 : 0,
|
sugar: this.selectedeatingHabitsType === 'sugar' ? 1 : 0 ,
|
other: this.selectedeatingHabitsType === 'other' ? 1 : 0,
|
|
};
|
|
},
|
//生活事件
|
handlelifeEventChange() {
|
this.lifeEventData = {
|
bereave: this.selectedlifeEventType === 'bereave' ? 1 : 0,
|
liveAlone: this.selectedlifeEventType === 'liveAlone' ? 1 : 0,
|
inHospital: this.selectedlifeEventType === 'inHospital' ? 1 : 0 ,
|
divide: this.selectedlifeEventType === 'divide' ? 1 : 0,
|
other: this.selectedlifeEventType === 'other' ? 1 : 0,
|
};
|
|
},
|
//皮肤粘膜
|
handleskinTypeChange() {
|
const modified = this.skinTypeData !== this.HealthHuliList.skinTypeClass;
|
console.log(modified)
|
if(modified){
|
this.skinTypeData = {
|
acne: this.selectedskinType === 'acne' ? 1 : 0,
|
psoriasis: this.selectedskinType === 'psoriasis' ? 1 : 0,
|
color: this.selectedskinType === 'color' ? 1 : 0 ,
|
edema: this.selectedskinType === 'edema' ? 1 : 0,
|
rash: this.selectedskinType === 'rash' ? 1 : 0,
|
bloodStasis: this.selectedskinType === 'bloodStasis' ? 1 : 0,
|
snom: this.selectedskinType === 'snom' ? 1 : 0,
|
nevus: this.selectedskinType === 'nevus' ? 1 : 0 ,
|
ulcer: this.selectedskinType === 'ulcer' ? 1 : 0,
|
other: this.selectedskinType === 'other' ? 1 : 0,
|
};
|
}else {
|
this.skinTypeData = this.HealthHuliList.skinTypeClass;
|
console.log(this.skinTypeData)
|
}
|
|
console.log(this.skinTypeData)
|
|
},
|
//心里状态
|
handlepsychologyTypeChange() {
|
|
this.sychologyTypeData = {
|
optimistic: this.selectedpsychologyType === 'optimistic' ? 1 : 0,
|
worry: this.selectedpsychologyType === 'worry' ? 1 : 0,
|
fear: this.selectedpsychologyType === 'fear' ? 1 : 0 ,
|
suspicion: this.selectedpsychologyType === 'suspicion' ? 1 : 0,
|
miss: this.selectedpsychologyType === 'miss' ? 1 : 0,
|
constrain: this.selectedpsychologyType === 'constrain' ? 1 : 0,
|
other: this.selectedpsychologyType === 'other' ? 1 : 0,
|
};
|
|
},
|
//疾病态度
|
handlepattitudeTypeChange() {
|
this.attitudeTypeData = {
|
lucidity: this.selectedpattitudeType === 'lucidity' ? 1 : 0,
|
unknown: this.selectedpattitudeType === 'unknown' ? 1 : 0,
|
normal: this.selectedpattitudeType === 'normal' ? 1 : 0 ,
|
abnormal: this.selectedpattitudeType === 'abnormal' ? 1 : 0,
|
other: this.selectedpattitudeType === 'other' ? 1 : 0,
|
};
|
},
|
//全身营养
|
handlenutritionTypeChange() {
|
this.nutritionTypeData = {
|
good: this.selectednutritionType === 'good' ? 1 : 0,
|
medium: this.selectednutritionType === 'medium' ? 1 : 0,
|
poor: this.selectednutritionType === 'poor' ? 1 : 0 ,
|
obesity: this.selectednutritionType === 'obesity' ? 1 : 0,
|
thin: this.selectednutritionType === 'thin' ? 1 : 0 ,
|
fluid: this.selectednutritionType === 'fluid' ? 1 : 0,
|
other: this.selectednutritionType === 'other' ? 1 : 0,
|
};
|
},
|
|
//脑血管
|
handlebrainDiseaseTypeChange() {
|
this.brainDiseaseTypeData = {
|
ischemicStroke: this.selectedbrainDiseaseType === 'ischemicStroke' ? 1 : 0,
|
cerebralHemorrhage: this.selectedbrainDiseaseType === 'cerebralHemorrhage' ? 1 : 0,
|
subarachnoidHemorrhage: this.selectedbrainDiseaseType === 'subarachnoidHemorrhage' ? 1 : 0 ,
|
TIA: this.selectedbrainDiseaseType === 'TIA' ? 1 : 0,
|
other: this.selectedbrainDiseaseType === 'other' ? 1 : 0,
|
};
|
},
|
//心脏疾病
|
handleheartDiseaseTypeChange() {
|
this.heartDiseaseTypeData = {
|
myocardialInfarct: this.selectedheartDiseaseType === 'myocardialInfarct' ? 1 : 0,
|
anginaPectoris: this.selectedheartDiseaseType === 'anginaPectoris' ? 1 : 0,
|
coronaryRevascularization: this.selectedheartDiseaseType === 'coronaryRevascularization' ? 1 : 0 ,
|
congestiveHeartFailure: this.selectedheartDiseaseType === 'congestiveHeartFailure' ? 1 : 0,
|
precordialPain: this.selectedheartDiseaseType === 'precordialPain' ? 1 : 0,
|
other: this.selectedheartDiseaseType === 'other' ? 1 : 0,
|
};
|
},
|
//血管疾病
|
handlevascularDiseaseTypeChange() {
|
this.vascularDiseaseTypeData = {
|
dissectingAneurysm: this.selectedvascularDiseaseType === 'dissectingAneurysm' ? 1 : 0,
|
arterialOcclusiveDiseases: this.selectedvascularDiseaseType === 'arterialOcclusiveDiseases' ? 1 : 0,
|
other: this.selectedvascularDiseaseType === 'other' ? 1 : 0,
|
};
|
},
|
//消化系统疾病
|
handledigestiveSystemDiseaseTypeChange() {
|
this.digestiveSystemTypeData = {
|
gastroduodenalUlcer: this.selecteddigestiveSystemDiseaseType === 'gastroduodenalUlcer' ? 1 : 0,
|
esophagitis: this.selecteddigestiveSystemDiseaseType === 'esophagitis' ? 1 : 0,
|
gastritis: this.selecteddigestiveSystemDiseaseType === 'gastritis' ? 1 : 0 ,
|
colitis: this.selecteddigestiveSystemDiseaseType === 'colitis' ? 1 : 0,
|
hepatitis: this.selecteddigestiveSystemDiseaseType === 'hepatitis' ? 1 : 0 ,
|
cholecystitis: this.selecteddigestiveSystemDiseaseType === 'cholecystitis' ? 1 : 0,
|
cholelithiasis: this.selecteddigestiveSystemDiseaseType === 'cholelithiasis' ? 1 : 0,
|
fattyLiver: this.selecteddigestiveSystemDiseaseType === 'fattyLiver' ? 1 : 0 ,
|
hyperlipidemia: this.selecteddigestiveSystemDiseaseType === 'hyperlipidemia' ? 1 : 0,
|
haemorrhoids: this.selecteddigestiveSystemDiseaseType === 'haemorrhoids' ? 1 : 0 ,
|
other: this.selecteddigestiveSystemDiseaseType === 'other' ? 1 : 0,
|
};
|
},
|
//呼吸道
|
handlerespiratorySystemDiseaseTypeChange() {
|
this.respiratorySystemTypeData = {
|
COPD: this.selectedrespiratorySystemDiseaseType === 'COPD' ? 1 : 0,
|
pneumonia: this.selectedrespiratorySystemDiseaseType === 'pneumonia' ? 1 : 0,
|
bronchitis: this.selectedrespiratorySystemDiseaseType === 'bronchitis' ? 1 : 0 ,
|
bronchialAsthma: this.selectedrespiratorySystemDiseaseType === 'bronchialAsthma' ? 1 : 0,
|
pulmonaryTuberculosis: this.selectedrespiratorySystemDiseaseType === 'pulmonaryTuberculosis' ? 1 : 0 ,
|
upperRespiratoryTractInfection: this.selectedrespiratorySystemDiseaseType === 'upperRespiratoryTractInfection' ? 1 : 0,
|
other: this.selectedrespiratorySystemDiseaseType === 'other' ? 1 : 0,
|
};
|
},
|
//肾脏疾病
|
handlekidneyDiseaseTypeChange() {
|
this.kidneyDiseaseSystemTypeData = {
|
diabetes: this.selectedkidneyDiseaseDiseaseType === 'diabetes' ? 1 : 0,
|
renalFailure: this.selectedkidneyDiseaseDiseaseType === 'renalFailure' ? 1 : 0,
|
acuteNephritis: this.selectedkidneyDiseaseDiseaseType === 'acuteNephritis' ? 1 : 0 ,
|
chronicNephritis: this.selectedkidneyDiseaseDiseaseType === 'chronicNephritis' ? 1 : 0,
|
urinaryCalculus: this.selectedkidneyDiseaseDiseaseType === 'urinaryCalculus' ? 1 : 0 ,
|
urinaryTractInfection: this.selectedkidneyDiseaseDiseaseType === 'urinaryTractInfection' ? 1 : 0,
|
other: this.selectedkidneyDiseaseDiseaseType === 'other' ? 1 : 0,
|
};
|
},
|
//其他疾病
|
handleotherDiseaseTypeChange() {
|
this.otherDiseaseTypeData = {
|
pregnant: this.selectedotherDiseaseType === 'pregnant' ? 1 : 0,
|
cold: this.selectedotherDiseaseType === 'cold' ? 1 : 0,
|
infectious: this.selectedotherDiseaseType === 'infectious' ? 1 : 0 ,
|
pulmonaryBulla: this.selectedotherDiseaseType === 'pulmonaryBulla' ? 1 : 0,
|
hemoptysis: this.selectedotherDiseaseType === 'hemoptysis' ? 1 : 0 ,
|
activeBleeding: this.selectedotherDiseaseType === 'activeBleeding' ? 1 : 0,
|
other: this.selectedotherDiseaseType === 'other' ? 1 : 0,
|
};
|
},
|
closeOtherDialog() {
|
// 关闭输入框对话框时清空输入的其他过敏史
|
this.otherAllergy = '';
|
},
|
|
// 取消按钮
|
cancelData() {
|
this.open = false;
|
this.reset();
|
},
|
//下拉
|
handleChange(val) {
|
console.log(val);
|
},
|
|
|
/** 查询角色列表 */
|
|
|
getList() {
|
this.loading = false;
|
|
//个人信息
|
listHealthBase(this.queryParams).then(response => {
|
if (response.data.length === 0) {
|
this.loading = false;
|
this.HealthyBaseList = {};
|
|
|
} else {
|
this.HealthyBaseList = response.data;
|
console.log("----------00000000-----------")
|
console.log(this.HealthyBaseList)
|
//血型的
|
if (this.HealthyBaseList.bloodClass.a === 1) {
|
this.selectedBloodType = 'a';
|
} else if (this.HealthyBaseList.bloodClass.b === 1) {
|
this.selectedBloodType = 'b';
|
} else if (this.HealthyBaseList.bloodClass.o === 1) {
|
this.selectedBloodType = 'o';
|
} else if (this.HealthyBaseList.bloodClass.ab === 1) {
|
this.selectedBloodType = 'ab';
|
} else if (this.HealthyBaseList.bloodClass.rh === 1) {
|
this.selectedBloodType = 'rh';
|
} else if (this.HealthyBaseList.bloodClass.otherText === 1) {
|
this.selectedBloodType = 'otherText';
|
} else if (this.HealthyBaseList.bloodClass.unknown === 1) {
|
this.selectedBloodType = 'unknown';
|
}
|
//过敏史
|
if (this.HealthyBaseList.allergyClass.medicine === 1) {
|
this.selectedallergyType = 'medicine';
|
} else if (this.HealthyBaseList.allergyClass.food === 1) {
|
this.selectedallergyType = 'food';
|
} else if (this.HealthyBaseList.allergyClass.other === 1) {
|
this.selectedallergyType = 'other';
|
}
|
//遗传病史
|
//过敏史
|
if (this.HealthyBaseList.geneticDiseaseClass.hypertension === 1) {
|
this.selectedgeneticDiseaseType = 'hypertension';
|
} else if (this.HealthyBaseList.geneticDiseaseClass.diabetes === 1) {
|
this.selectedgeneticDiseaseType = 'diabetes';
|
} else if (this.HealthyBaseList.geneticDiseaseClass.tumor === 1) {
|
this.selectedgeneticDiseaseType = 'tumor';
|
} else if (this.HealthyBaseList.geneticDiseaseClass.other === 1) {
|
this.selectedgeneticDiseaseType = 'other';
|
}
|
//生活习惯
|
listHealthHabit(this.queryParams).then(response => {
|
if (response.data.length === 0) {
|
this.loading = false;
|
this.LiveHabbitList = {};
|
|
} else {
|
this.LiveHabbitList = response.data;
|
console.log(this.LiveHabbitList.sleepClass)
|
|
//睡眠的
|
if (this.LiveHabbitList.sleepClass.good === 1) {
|
this.selectedsleepType = 'good';
|
} else if (this.LiveHabbitList.sleepClass.general === 1) {
|
this.selectedsleepType = 'general';
|
} else if (this.LiveHabbitList.sleepClass.easyWake === 1) {
|
this.selectedsleepType = 'easyWake';
|
} else if (this.LiveHabbitList.sleepClass.dreaminess === 1) {
|
this.selectedsleepType = 'dreaminess';
|
} else if (this.LiveHabbitList.sleepClass.sleepless === 1) {
|
this.selectedsleepType = 'sleepless';
|
} else if (this.LiveHabbitList.sleepClass.snore === 1) {
|
this.selectedsleepType = 'snore';
|
} else if (this.LiveHabbitList.sleepClass.wakefulness === 1) {
|
this.selectedsleepType = 'wakefulness';
|
}
|
//大便
|
if (this.LiveHabbitList.stoolStatusClass.normal === 1) {
|
this.selectedstoolStatusType = 'normal';
|
} else if (this.LiveHabbitList.stoolStatusClass.constipation === 1) {
|
this.selectedstoolStatusType = 'constipation';
|
} else if (this.LiveHabbitList.stoolStatusClass.diarrhea === 1) {
|
this.selectedstoolStatusType = 'diarrhea';
|
} else if (this.LiveHabbitList.stoolStatusClass.incontinence === 1) {
|
this.selectedstoolStatusType = 'incontinence';
|
}
|
//小便
|
if (this.LiveHabbitList.urineStatusClass.normal === 1) {
|
this.selectedurineStatusType = 'normal';
|
} else if (this.LiveHabbitList.urineStatusClass.nightUrinaryRetention === 1) {
|
this.selectedurineStatusType = 'nightUrinaryRetention';
|
} else if (this.LiveHabbitList.urineStatusClass.incontinence === 1) {
|
this.selectedurineStatusType = 'incontinence';
|
} else if (this.LiveHabbitList.urineStatusClass.enuresis === 1) {
|
this.selectedurineStatusType = 'enuresis';
|
}
|
//饮食习惯
|
if (this.LiveHabbitList.eatingHabitsClass.uniformityOfMeatAndVegetables === 1) {
|
this.selectedeatingHabitsType = 'uniformityOfMeatAndVegetables';
|
} else if (this.LiveHabbitList.eatingHabitsClass.meat === 1) {
|
this.selectedeatingHabitsType = 'meat';
|
} else if (this.LiveHabbitList.eatingHabitsClass.vegetable === 1) {
|
this.selectedeatingHabitsType = 'vegetable';
|
} else if (this.LiveHabbitList.eatingHabitsClass.salt === 1) {
|
this.selectedeatingHabitsType = 'salt';
|
} else if (this.LiveHabbitList.eatingHabitsClass.oil === 1) {
|
this.selectedeatingHabitsType = 'oil';
|
} else if (this.LiveHabbitList.eatingHabitsClass.sugar === 1) {
|
this.selectedeatingHabitsType = 'sugar';
|
} else if (this.LiveHabbitList.eatingHabitsClass.other === 1) {
|
this.selectedeatingHabitsType = 'other';
|
}
|
|
//生活事件
|
|
if (this.LiveHabbitList.lifeEventClass.bereave === 1) {
|
this.selectedlifeEventType = 'bereave';
|
} else if (this.LiveHabbitList.lifeEventClass.liveAlone === 1) {
|
this.selectedlifeEventType = 'liveAlone';
|
} else if (this.LiveHabbitList.lifeEventClass.inHospital === 1) {
|
this.selectedlifeEventType = 'inHospital';
|
} else if (this.LiveHabbitList.lifeEventClass.divide === 1) {
|
this.selectedlifeEventType = 'divide';
|
} else if (this.LiveHabbitList.lifeEventClass.other === 1) {
|
this.selectedlifeEventType = 'other';
|
}
|
//护理查体
|
listHealthHuli(this.queryParams).then(response => {
|
if (response.data.length === 0) {
|
this.loading = false;
|
this.HealthHuliList = {};
|
|
} else {
|
this.HealthHuliList = response.data;
|
|
//皮肤粘膜
|
|
if (this.HealthHuliList.skinTypeClass.acne === 1) {
|
this.selectedskinType = 'acne';
|
} else if (this.HealthHuliList.skinTypeClass.psoriasis === 1) {
|
this.selectedskinType = 'psoriasis';
|
} else if (this.HealthHuliList.skinTypeClass.color === 1) {
|
this.selectedskinType = 'color';
|
} else if (this.HealthHuliList.skinTypeClass.edema === 1) {
|
this.selectedskinType = 'edema';
|
} else if (this.HealthHuliList.skinTypeClass.rash === 1) {
|
this.selectedskinType = 'rash';
|
} else if (this.HealthHuliList.skinTypeClass.bloodStasis === 1) {
|
this.selectedskinType = 'bloodStasis';
|
} else if (this.HealthHuliList.skinTypeClass.snom === 1) {
|
this.selectedskinType = 'snom';
|
} else if (this.HealthHuliList.skinTypeClass.nevus === 1) {
|
this.selectedskinType = 'nevus';
|
} else if (this.HealthHuliList.skinTypeClass.ulcer === 1) {
|
this.selectedskinType = 'ulcer';
|
} else if (this.HealthHuliList.skinTypeClass.other === 1) {
|
this.selectedskinType = 'other';
|
}
|
//心里状态
|
if (this.HealthHuliList.psychologyTypeClass.optimistic === 1) {
|
this.selectedpsychologyType = 'optimistic';
|
} else if (this.HealthHuliList.psychologyTypeClass.worry === 1) {
|
this.selectedpsychologyType = 'worry';
|
} else if (this.HealthHuliList.psychologyTypeClass.fear === 1) {
|
this.selectedpsychologyType = 'fear';
|
} else if (this.HealthHuliList.psychologyTypeClass.suspicion === 1) {
|
this.selectedpsychologyType = 'suspicion';
|
} else if (this.HealthHuliList.psychologyTypeClass.miss === 1) {
|
this.selectedpsychologyType = 'miss';
|
} else if (this.HealthHuliList.psychologyTypeClass.constrain === 1) {
|
this.selectedpsychologyType = 'constrain';
|
} else if (this.HealthHuliList.psychologyTypeClass.other === 1) {
|
this.selectedpsychologyType = 'other';
|
}
|
|
//病例态度
|
if (this.HealthHuliList.attitudeClass.lucidity === 1) {
|
this.selectedpattitudeType = 'lucidity';
|
} else if (this.HealthHuliList.attitudeClass.unknown === 1) {
|
this.selectedpattitudeType = 'unknown';
|
} else if (this.HealthHuliList.attitudeClass.normal === 1) {
|
this.selectedpattitudeType = 'normal';
|
} else if (this.HealthHuliList.attitudeClass.abnormal === 1) {
|
this.selectedpattitudeType = 'abnormal';
|
} else if (this.HealthHuliList.attitudeClass.other === 1) {
|
this.selectedpattitudeType = 'other';
|
}
|
|
//全身营养
|
if (this.HealthHuliList.nutritionClass.good === 1) {
|
this.selectednutritionType = 'good';
|
} else if (this.HealthHuliList.nutritionClass.medium === 1) {
|
this.selectednutritionType = 'medium';
|
} else if (this.HealthHuliList.nutritionClass.poor === 1) {
|
this.selectednutritionType = 'poor';
|
} else if (this.HealthHuliList.nutritionClass.obesity === 1) {
|
this.selectednutritionType = 'obesity';
|
} else if (this.HealthHuliList.nutritionClass.thin === 1) {
|
this.selectednutritionType = 'thin';
|
} else if (this.HealthHuliList.nutritionClass.fluid === 1) {
|
this.selectednutritionType = 'fluid';
|
} else if (this.HealthHuliList.nutritionClass.other === 1) {
|
this.selectednutritionType = 'other';
|
}
|
listHealthNow(this.queryParams).then(response => {
|
|
if (response.data.length === 0) {
|
this.loading = false;
|
this.HealthNowList = {};
|
|
} else {
|
this.HealthNowList = response.data;
|
//脑血管
|
if (this.HealthNowList.brainDiseaseClass.ischemicStroke === 1) {
|
this.selectedbrainDiseaseType = 'ischemicStroke';
|
} else if (this.HealthNowList.brainDiseaseClass.cerebralHemorrhage === 1) {
|
this.selectedbrainDiseaseType = 'cerebralHemorrhage';
|
} else if (this.HealthNowList.brainDiseaseClass.subarachnoidHemorrhage === 1) {
|
this.selectedbrainDiseaseType = 'subarachnoidHemorrhage';
|
} else if (this.HealthNowList.brainDiseaseClass.TIA === 1) {
|
this.selectedbrainDiseaseType = 'TIA';
|
} else if (this.HealthNowList.brainDiseaseClass.other === 1) {
|
this.selectedbrainDiseaseType = 'other';
|
}
|
//心脏疾病
|
if (this.HealthNowList.heartDiseaseClass.myocardialInfarct === 1) {
|
this.selectedheartDiseaseType = 'myocardialInfarct';
|
} else if (this.HealthNowList.heartDiseaseClass.anginaPectoris === 1) {
|
this.selectedheartDiseaseType = 'anginaPectoris';
|
} else if (this.HealthNowList.heartDiseaseClass.coronaryRevascularization === 1) {
|
this.selectedheartDiseaseType = 'coronaryRevascularization';
|
} else if (this.HealthNowList.heartDiseaseClass.congestiveHeartFailure === 1) {
|
this.selectedheartDiseaseType = 'congestiveHeartFailure';
|
} else if (this.HealthNowList.heartDiseaseClass.precordialPain === 1) {
|
this.selectedheartDiseaseType = 'precordialPain';
|
} else if (this.HealthNowList.heartDiseaseClass.other === 1) {
|
this.selectedheartDiseaseType = 'other';
|
}
|
//血管疾病
|
if (this.HealthNowList.vascularDiseaseClass.dissectingAneurysm === 1) {
|
this.selectedvascularDiseaseType = 'dissectingAneurysm';
|
} else if (this.HealthNowList.vascularDiseaseClass.arterialOcclusiveDiseases === 1) {
|
this.selectedvascularDiseaseType = 'arterialOcclusiveDiseases';
|
} else if (this.HealthNowList.vascularDiseaseClass.other === 1) {
|
this.selectedvascularDiseaseType = 'other';
|
}
|
//消化系统疾病
|
if (this.HealthNowList.digestiveSystemDiseaseClass.gastroduodenalUlcer === 1) {
|
this.selecteddigestiveSystemDiseaseType = 'gastroduodenalUlcer';
|
} else if (this.HealthNowList.digestiveSystemDiseaseClass.esophagitis === 1) {
|
this.selecteddigestiveSystemDiseaseType = 'esophagitis';
|
} else if (this.HealthNowList.digestiveSystemDiseaseClass.gastritis === 1) {
|
this.selecteddigestiveSystemDiseaseType = 'gastritis';
|
} else if (this.HealthNowList.digestiveSystemDiseaseClass.colitis === 1) {
|
this.selecteddigestiveSystemDiseaseType = 'colitis';
|
} else if (this.HealthNowList.digestiveSystemDiseaseClass.hepatitis === 1) {
|
this.selecteddigestiveSystemDiseaseType = 'hepatitis';
|
} else if (this.HealthNowList.digestiveSystemDiseaseClass.cholecystitis === 1) {
|
this.selecteddigestiveSystemDiseaseType = 'cholecystitis';
|
} else if (this.HealthNowList.digestiveSystemDiseaseClass.cholelithiasis === 1) {
|
this.selecteddigestiveSystemDiseaseType = 'cholelithiasis';
|
} else if (this.HealthNowList.digestiveSystemDiseaseClass.fattyLiver === 1) {
|
this.selecteddigestiveSystemDiseaseType = 'fattyLiver';
|
} else if (this.HealthNowList.digestiveSystemDiseaseClass.hyperlipidemia === 1) {
|
this.selecteddigestiveSystemDiseaseType = 'hyperlipidemia';
|
} else if (this.HealthNowList.digestiveSystemDiseaseClass.haemorrhoids === 1) {
|
this.selecteddigestiveSystemDiseaseType = 'haemorrhoids';
|
} else if (this.HealthNowList.digestiveSystemDiseaseClass.other === 1) {
|
this.selecteddigestiveSystemDiseaseType = 'other';
|
}
|
//呼吸系统疾病
|
if (this.HealthNowList.respiratorySystemDiseaseClass.COPD === 1) {
|
this.selectedrespiratorySystemDiseaseType = 'COPD';
|
} else if (this.HealthNowList.respiratorySystemDiseaseClass.pneumonia === 1) {
|
this.selectedrespiratorySystemDiseaseType = 'pneumonia';
|
} else if (this.HealthNowList.respiratorySystemDiseaseClass.bronchitis === 1) {
|
this.selectedrespiratorySystemDiseaseType = 'bronchitis';
|
} else if (this.HealthNowList.respiratorySystemDiseaseClass.bronchialAsthma === 1) {
|
this.selectedrespiratorySystemDiseaseType = 'bronchialAsthma';
|
} else if (this.HealthNowList.respiratorySystemDiseaseClass.pulmonaryTuberculosis === 1) {
|
this.selectedrespiratorySystemDiseaseType = 'pulmonaryTuberculosis';
|
} else if (this.HealthNowList.respiratorySystemDiseaseClass.other === 1) {
|
this.selectedrespiratorySystemDiseaseType = 'other';
|
} else if (this.HealthNowList.respiratorySystemDiseaseClass.upperRespiratoryTractInfection === 1) {
|
this.selectedrespiratorySystemDiseaseType = 'upperRespiratoryTractInfection';
|
}
|
//肾脏疾病
|
if (this.HealthNowList.kidneyDiseaseClass.diabetes === 1) {
|
this.selectedkidneyDiseaseDiseaseType = 'diabetes';
|
} else if (this.HealthNowList.kidneyDiseaseClass.renalFailure === 1) {
|
this.selectedkidneyDiseaseDiseaseType = 'renalFailure';
|
} else if (this.HealthNowList.kidneyDiseaseClass.acuteNephritis === 1) {
|
this.selectedkidneyDiseaseDiseaseType = 'acuteNephritis';
|
} else if (this.HealthNowList.kidneyDiseaseClass.chronicNephritis === 1) {
|
this.selectedkidneyDiseaseDiseaseType = 'chronicNephritis';
|
} else if (this.HealthNowList.kidneyDiseaseClass.urinaryCalculus === 1) {
|
this.selectedkidneyDiseaseDiseaseType = 'urinaryCalculus';
|
} else if (this.HealthNowList.kidneyDiseaseClass.urinaryTractInfection === 1) {
|
this.selectedkidneyDiseaseDiseaseType = 'urinaryTractInfection';
|
} else if (this.HealthNowList.kidneyDiseaseClass.other === 1) {
|
this.selectedkidneyDiseaseDiseaseType = 'other';
|
}
|
//其他疾病
|
if (this.HealthNowList.otherDiseaseClass.pregnant === 1) {
|
this.selectedotherDiseaseType = 'pregnant';
|
} else if (this.HealthNowList.otherDiseaseClass.cold === 1) {
|
this.selectedotherDiseaseType = 'cold';
|
} else if (this.HealthNowList.otherDiseaseClass.infectious === 1) {
|
this.selectedotherDiseaseType = 'infectious';
|
} else if (this.HealthNowList.otherDiseaseClass.pulmonaryBulla === 1) {
|
this.selectedotherDiseaseType = 'pulmonaryBulla';
|
} else if (this.HealthNowList.otherDiseaseClass.hemoptysis === 1) {
|
this.selectedotherDiseaseType = 'hemoptysis';
|
} else if (this.HealthNowList.otherDiseaseClass.activeBleeding === 1) {
|
this.selectedotherDiseaseType = 'activeBleeding';
|
} else if (this.HealthNowList.otherDiseaseClass.other === 1) {
|
this.selectedotherDiseaseType = 'other';
|
}
|
|
|
this.loading = false;
|
}
|
}
|
);
|
|
|
this.loading = false;
|
|
|
}
|
|
}
|
);
|
this.loading = false;
|
}
|
|
}
|
);
|
this.loading = false;
|
|
|
}
|
})
|
.catch(error => {
|
console.error(error);
|
});
|
//生活习惯
|
// listHealthHabit(this.queryParams).then(response => {
|
// if(response.data.length === 0){
|
// this.loading = false;
|
// this.LiveHabbitList={ };
|
//
|
// }
|
// else{
|
// this.LiveHabbitList = response.data;
|
// console.log(this.LiveHabbitList.sleepClass)
|
//
|
// //睡眠的
|
// if (this.LiveHabbitList.sleepClass.good === 1) {
|
// this.selectedsleepType = 'good';
|
// } else if (this.LiveHabbitList.sleepClass.general === 1) {
|
// this.selectedsleepType = 'general';
|
// } else if (this.LiveHabbitList.sleepClass.easyWake === 1) {
|
// this.selectedsleepType = 'easyWake';
|
// } else if (this.LiveHabbitList.sleepClass.dreaminess === 1) {
|
// this.selectedsleepType = 'dreaminess';
|
// } else if (this.LiveHabbitList.sleepClass.sleepless === 1) {
|
// this.selectedsleepType = 'sleepless';
|
// } else if (this.LiveHabbitList.sleepClass.snore === 1) {
|
// this.selectedsleepType = 'snore';
|
// } else if (this.LiveHabbitList.sleepClass.wakefulness === 1) {
|
// this.selectedsleepType = 'wakefulness';
|
// }
|
// //大便
|
// if (this.LiveHabbitList.stoolStatusClass.normal === 1) {
|
// this.selectedstoolStatusType = 'normal';
|
// } else if (this.LiveHabbitList.stoolStatusClass.constipation === 1) {
|
// this.selectedstoolStatusType = 'constipation';
|
// } else if (this.LiveHabbitList.stoolStatusClass.diarrhea === 1) {
|
// this.selectedstoolStatusType = 'diarrhea';
|
// } else if (this.LiveHabbitList.stoolStatusClass.incontinence === 1) {
|
// this.selectedstoolStatusType = 'incontinence';
|
// }
|
// //小便
|
// if (this.LiveHabbitList.urineStatusClass.normal === 1) {
|
// this.selectedurineStatusType = 'normal';
|
// } else if (this.LiveHabbitList.urineStatusClass.nightUrinaryRetention === 1) {
|
// this.selectedurineStatusType = 'nightUrinaryRetention';
|
// } else if (this.LiveHabbitList.urineStatusClass.incontinence === 1) {
|
// this.selectedurineStatusType = 'incontinence';
|
// } else if (this.LiveHabbitList.urineStatusClass.enuresis === 1) {
|
// this.selectedurineStatusType = 'enuresis';
|
// }
|
// //饮食习惯
|
// if (this.LiveHabbitList.eatingHabitsClass.uniformityOfMeatAndVegetables === 1) {
|
// this.selectedeatingHabitsType = 'uniformityOfMeatAndVegetables';
|
// } else if (this.LiveHabbitList.eatingHabitsClass.meat === 1) {
|
// this.selectedeatingHabitsType = 'meat';
|
// } else if (this.LiveHabbitList.eatingHabitsClass.vegetable === 1) {
|
// this.selectedeatingHabitsType = 'vegetable';
|
// } else if (this.LiveHabbitList.eatingHabitsClass.salt === 1) {
|
// this.selectedeatingHabitsType = 'salt';
|
// }else if (this.LiveHabbitList.eatingHabitsClass.oil === 1) {
|
// this.selectedeatingHabitsType = 'oil';
|
// } else if (this.LiveHabbitList.eatingHabitsClass.sugar === 1) {
|
// this.selectedeatingHabitsType = 'sugar';
|
// } else if (this.LiveHabbitList.eatingHabitsClass.other === 1) {
|
// this.selectedeatingHabitsType = 'other';
|
// }
|
//
|
// //生活事件
|
//
|
// if (this.LiveHabbitList.lifeEventClass.bereave === 1) {
|
// this.selectedlifeEventType = 'bereave';
|
// } else if (this.LiveHabbitList.lifeEventClass.liveAlone === 1) {
|
// this.selectedlifeEventType = 'liveAlone';
|
// } else if (this.LiveHabbitList.lifeEventClass.inHospital === 1) {
|
// this.selectedlifeEventType = 'inHospital';
|
// } else if (this.LiveHabbitList.lifeEventClass.divide === 1) {
|
// this.selectedlifeEventType = 'divide';
|
// }else if (this.LiveHabbitList.lifeEventClass.other === 1) {
|
// this.selectedlifeEventType = 'other';
|
// }
|
// this.loading = false;
|
// }
|
//
|
// }
|
// );
|
|
//护理查体
|
// listHealthHuli(this.queryParams).then(response => {
|
// if(response.data.length ===0){
|
// this.loading = false;
|
// this.HealthHuliList={};
|
//
|
// }
|
// else{
|
// this.HealthHuliList = response.data;
|
//
|
// //皮肤粘膜
|
//
|
// if (this.HealthHuliList.skinTypeClass.acne === 1) {
|
// this.selectedskinType = 'acne';
|
// } else if (this.HealthHuliList.skinTypeClass.psoriasis === 1) {
|
// this.selectedskinType = 'psoriasis';
|
// } else if (this.HealthHuliList.skinTypeClass.color === 1) {
|
// this.selectedskinType = 'color';
|
// } else if (this.HealthHuliList.skinTypeClass.edema === 1) {
|
// this.selectedskinType = 'edema';
|
// }else if (this.HealthHuliList.skinTypeClass.rash === 1) {
|
// this.selectedskinType = 'rash';
|
// }else if (this.HealthHuliList.skinTypeClass.bloodStasis === 1) {
|
// this.selectedskinType = 'bloodStasis';
|
// } else if (this.HealthHuliList.skinTypeClass.snom === 1) {
|
// this.selectedskinType = 'snom';
|
// }else if (this.HealthHuliList.skinTypeClass.nevus === 1) {
|
// this.selectedskinType = 'nevus';
|
// }else if (this.HealthHuliList.skinTypeClass.ulcer === 1) {
|
// this.selectedskinType = 'ulcer';
|
// }else if (this.HealthHuliList.skinTypeClass.other === 1) {
|
// this.selectedskinType = 'other';
|
// }
|
// //心里状态
|
// if (this.HealthHuliList.psychologyTypeClass.optimistic === 1) {
|
// this.selectedpsychologyType = 'optimistic';
|
// } else if (this.HealthHuliList.psychologyTypeClass.worry === 1) {
|
// this.selectedpsychologyType = 'worry';
|
// } else if (this.HealthHuliList.psychologyTypeClass.fear === 1) {
|
// this.selectedpsychologyType = 'fear';
|
// } else if (this.HealthHuliList.psychologyTypeClass.suspicion === 1) {
|
// this.selectedpsychologyType = 'suspicion';
|
// }else if (this.HealthHuliList.psychologyTypeClass.miss === 1) {
|
// this.selectedpsychologyType = 'miss';
|
// }else if (this.HealthHuliList.psychologyTypeClass.constrain === 1) {
|
// this.selectedpsychologyType = 'constrain';
|
// } else if (this.HealthHuliList.psychologyTypeClass.other === 1) {
|
// this.selectedpsychologyType = 'other';
|
// }
|
//
|
// //病例态度
|
// if (this.HealthHuliList.attitudeClass.lucidity === 1) {
|
// this.selectedpattitudeType = 'lucidity';
|
// } else if (this.HealthHuliList.attitudeClass.unknown === 1) {
|
// this.selectedpattitudeType = 'unknown';
|
// } else if (this.HealthHuliList.attitudeClass.normal === 1) {
|
// this.selectedpattitudeType = 'normal';
|
// } else if (this.HealthHuliList.attitudeClass.abnormal === 1) {
|
// this.selectedpattitudeType = 'abnormal';
|
// }else if (this.HealthHuliList.attitudeClass.other === 1) {
|
// this.selectedpattitudeType = 'other';
|
// }
|
//
|
// //全身营养
|
// if (this.HealthHuliList.nutritionClass.good === 1) {
|
// this.selectednutritionType = 'good';
|
// } else if (this.HealthHuliList.nutritionClass.medium === 1) {
|
// this.selectednutritionType = 'medium';
|
// } else if (this.HealthHuliList.nutritionClass.poor === 1) {
|
// this.selectednutritionType = 'poor';
|
// } else if (this.HealthHuliList.nutritionClass.obesity === 1) {
|
// this.selectednutritionType = 'obesity';
|
// }else if (this.HealthHuliList.nutritionClass.thin === 1) {
|
// this.selectednutritionType = 'thin';
|
// } else if (this.HealthHuliList.nutritionClass.fluid === 1) {
|
// this.selectednutritionType = 'fluid';
|
// }else if (this.HealthHuliList.nutritionClass.other === 1) {
|
// this.selectednutritionType = 'other';
|
// }
|
// this.loading = false;
|
//
|
//
|
// }
|
//
|
// }
|
// );
|
|
//现存健康问题
|
//
|
// listHealthNow(this.queryParams).then(response => {
|
//
|
// if(response.data.length ===0){
|
// this.loading = false;
|
// this.HealthNowList={};
|
//
|
// }
|
// else{
|
// this.HealthNowList = response.data;
|
// //脑血管
|
// if (this.HealthNowList.brainDiseaseClass.ischemicStroke === 1) {
|
// this.selectedbrainDiseaseType = 'ischemicStroke';
|
// } else if (this.HealthNowList.brainDiseaseClass.cerebralHemorrhage === 1) {
|
// this.selectedbrainDiseaseType = 'cerebralHemorrhage';
|
// } else if (this.HealthNowList.brainDiseaseClass.subarachnoidHemorrhage === 1) {
|
// this.selectedbrainDiseaseType = 'subarachnoidHemorrhage';
|
// } else if (this.HealthNowList.brainDiseaseClass.TIA === 1) {
|
// this.selectedbrainDiseaseType = 'TIA';
|
// }else if (this.HealthNowList.brainDiseaseClass.other === 1) {
|
// this.selectedbrainDiseaseType = 'other';
|
// }
|
// //心脏疾病
|
// if (this.HealthNowList.heartDiseaseClass.myocardialInfarct === 1) {
|
// this.selectedheartDiseaseType = 'myocardialInfarct';
|
// } else if (this.HealthNowList.heartDiseaseClass.anginaPectoris === 1) {
|
// this.selectedheartDiseaseType = 'anginaPectoris';
|
// } else if (this.HealthNowList.heartDiseaseClass.coronaryRevascularization === 1) {
|
// this.selectedheartDiseaseType = 'coronaryRevascularization';
|
// } else if (this.HealthNowList.heartDiseaseClass.congestiveHeartFailure === 1) {
|
// this.selectedheartDiseaseType = 'congestiveHeartFailure';
|
// }else if (this.HealthNowList.heartDiseaseClass.precordialPain === 1) {
|
// this.selectedheartDiseaseType = 'precordialPain';
|
// }else if (this.HealthNowList.heartDiseaseClass.other === 1) {
|
// this.selectedheartDiseaseType = 'other';
|
// }
|
// //血管疾病
|
// if (this.HealthNowList.vascularDiseaseClass.dissectingAneurysm === 1) {
|
// this.selectedvascularDiseaseType = 'dissectingAneurysm';
|
// } else if (this.HealthNowList.vascularDiseaseClass.arterialOcclusiveDiseases === 1) {
|
// this.selectedvascularDiseaseType = 'arterialOcclusiveDiseases';
|
// } else if (this.HealthNowList.vascularDiseaseClass.other === 1) {
|
// this.selectedvascularDiseaseType = 'other';
|
// }
|
// //消化系统疾病
|
// if (this.HealthNowList.digestiveSystemDiseaseClass.gastroduodenalUlcer === 1) {
|
// this.selecteddigestiveSystemDiseaseType = 'gastroduodenalUlcer';
|
// } else if (this.HealthNowList.digestiveSystemDiseaseClass.esophagitis === 1) {
|
// this.selecteddigestiveSystemDiseaseType = 'esophagitis';
|
// } else if (this.HealthNowList.digestiveSystemDiseaseClass.gastritis === 1) {
|
// this.selecteddigestiveSystemDiseaseType = 'gastritis';
|
// } else if (this.HealthNowList.digestiveSystemDiseaseClass.colitis === 1) {
|
// this.selecteddigestiveSystemDiseaseType = 'colitis';
|
// }else if (this.HealthNowList.digestiveSystemDiseaseClass.hepatitis === 1) {
|
// this.selecteddigestiveSystemDiseaseType = 'hepatitis';
|
// }else if (this.HealthNowList.digestiveSystemDiseaseClass.cholecystitis === 1) {
|
// this.selecteddigestiveSystemDiseaseType = 'cholecystitis';
|
// }else if (this.HealthNowList.digestiveSystemDiseaseClass.cholelithiasis === 1) {
|
// this.selecteddigestiveSystemDiseaseType = 'cholelithiasis';
|
// } else if (this.HealthNowList.digestiveSystemDiseaseClass.fattyLiver === 1) {
|
// this.selecteddigestiveSystemDiseaseType = 'fattyLiver';
|
// } else if (this.HealthNowList.digestiveSystemDiseaseClass.hyperlipidemia === 1) {
|
// this.selecteddigestiveSystemDiseaseType = 'hyperlipidemia';
|
// }else if (this.HealthNowList.digestiveSystemDiseaseClass.haemorrhoids === 1) {
|
// this.selecteddigestiveSystemDiseaseType = 'haemorrhoids';
|
// }else if (this.HealthNowList.digestiveSystemDiseaseClass.other === 1) {
|
// this.selecteddigestiveSystemDiseaseType = 'other';
|
// }
|
// //呼吸系统疾病
|
// if (this.HealthNowList.respiratorySystemDiseaseClass.COPD === 1) {
|
// this.selectedrespiratorySystemDiseaseType = 'COPD';
|
// } else if (this.HealthNowList.respiratorySystemDiseaseClass.pneumonia === 1) {
|
// this.selectedrespiratorySystemDiseaseType = 'pneumonia';
|
// } else if (this.HealthNowList.respiratorySystemDiseaseClass.bronchitis === 1) {
|
// this.selectedrespiratorySystemDiseaseType = 'bronchitis';
|
// } else if (this.HealthNowList.respiratorySystemDiseaseClass.bronchialAsthma === 1) {
|
// this.selectedrespiratorySystemDiseaseType = 'bronchialAsthma';
|
// }else if (this.HealthNowList.respiratorySystemDiseaseClass.pulmonaryTuberculosis === 1) {
|
// this.selectedrespiratorySystemDiseaseType = 'pulmonaryTuberculosis';
|
// }else if (this.HealthNowList.respiratorySystemDiseaseClass.other === 1) {
|
// this.selectedrespiratorySystemDiseaseType = 'other';
|
// }else if (this.HealthNowList.respiratorySystemDiseaseClass.upperRespiratoryTractInfection === 1) {
|
// this.selectedrespiratorySystemDiseaseType = 'upperRespiratoryTractInfection';
|
// }
|
// //肾脏疾病
|
// if (this.HealthNowList.kidneyDiseaseClass.diabetes === 1) {
|
// this.selectedkidneyDiseaseDiseaseType = 'diabetes';
|
// } else if (this.HealthNowList.kidneyDiseaseClass.renalFailure === 1) {
|
// this.selectedkidneyDiseaseDiseaseType = 'renalFailure';
|
// } else if (this.HealthNowList.kidneyDiseaseClass.acuteNephritis === 1) {
|
// this.selectedkidneyDiseaseDiseaseType = 'acuteNephritis';
|
// } else if (this.HealthNowList.kidneyDiseaseClass.chronicNephritis === 1) {
|
// this.selectedkidneyDiseaseDiseaseType = 'chronicNephritis';
|
// }else if (this.HealthNowList.kidneyDiseaseClass.urinaryCalculus === 1) {
|
// this.selectedkidneyDiseaseDiseaseType = 'urinaryCalculus';
|
// }else if (this.HealthNowList.kidneyDiseaseClass.urinaryTractInfection === 1) {
|
// this.selectedkidneyDiseaseDiseaseType = 'urinaryTractInfection';
|
// }else if (this.HealthNowList.kidneyDiseaseClass.other === 1) {
|
// this.selectedkidneyDiseaseDiseaseType = 'other';
|
// }
|
// //其他疾病
|
// if (this.HealthNowList.otherDiseaseClass.pregnant === 1) {
|
// this.selectedotherDiseaseType = 'pregnant';
|
// } else if (this.HealthNowList.otherDiseaseClass.cold === 1) {
|
// this.selectedotherDiseaseType = 'cold';
|
// } else if (this.HealthNowList.otherDiseaseClass.infectious === 1) {
|
// this.selectedotherDiseaseType = 'infectious';
|
// } else if (this.HealthNowList.otherDiseaseClass.pulmonaryBulla === 1) {
|
// this.selectedotherDiseaseType = 'pulmonaryBulla';
|
// }else if (this.HealthNowList.otherDiseaseClass.hemoptysis === 1) {
|
// this.selectedotherDiseaseType = 'hemoptysis';
|
// }else if (this.HealthNowList.otherDiseaseClass.activeBleeding === 1) {
|
// this.selectedotherDiseaseType = 'activeBleeding';
|
// }else if (this.HealthNowList.otherDiseaseClass.other === 1) {
|
// this.selectedotherDiseaseType = 'other';
|
// }
|
//
|
// this.loading = false;
|
//
|
// }
|
//
|
// }
|
// );
|
|
listHealthNote(this.queryParams).then(response => {
|
|
if (response.data.length === 0) {
|
this.loading = false;
|
this.HealthNoteList = {};
|
|
} else {
|
this.HealthNoteList = response.data;
|
console.log(this.HealthNoteList)
|
this.loading = false;
|
|
}
|
|
}
|
);
|
},
|
|
|
|
// 取消按钮
|
cancel() {
|
this.open = false;
|
this.reset();
|
},
|
// 取消按钮(数据权限)
|
cancelDataScope() {
|
this.openDataScope = false;
|
this.reset();
|
},
|
// 表单重置
|
reset() {
|
if (this.$refs.menu != undefined) {
|
this.$refs.menu.setCheckedKeys([]);
|
}
|
this.menuExpand = false,
|
this.menuNodeAll = false,
|
this.deptExpand = true,
|
this.deptNodeAll = false,
|
this.form = {
|
roleId: undefined,
|
roleName: undefined,
|
roleKey: undefined,
|
roleSort: 0,
|
status: "0",
|
menuIds: [],
|
deptIds: [],
|
menuCheckStrictly: true,
|
deptCheckStrictly: true,
|
remark: undefined
|
};
|
this.resetForm("form");
|
},
|
|
|
/** 新增按钮操作 */
|
handleAdd() {
|
this.reset();
|
this.open = true;
|
this.title = "新增婚姻信息";
|
},
|
/** 修改按钮操作 */
|
handleUpdate() {
|
|
let jd = true
|
|
// this.$router.push({
|
// path:"/self/marry/edit/" + id,
|
// query:{
|
// detail:jd
|
// }
|
// });
|
},
|
// 编辑按钮
|
handleEdit()
|
{
|
this.dsb = false
|
this.btn = true
|
this.isShow=false
|
this.isShow_2=true
|
this.isEditing=true
|
|
},
|
|
|
|
|
|
|
editRow(row) {
|
this.$set(row, 'isEdit', true);
|
this.$set(this.editStatus, row.id, true);
|
},
|
//修改后的保存
|
|
submitForm() {
|
function isObjectEmpty(obj) {
|
for (let key in obj) {
|
if (obj.hasOwnProperty(key)) {
|
return false; // 如果存在任意一个属性,则对象非空
|
}
|
}
|
return true; // 没有任何属性,对象为空
|
};
|
console.log(111)
|
console.log(this.bloodData)
|
|
if(isObjectEmpty(this.bloodData)){
|
this.HealthyBaseList.bloodClass = this.HealthyBaseList.bloodClass;
|
}else {
|
this.HealthyBaseList.bloodClass = this.bloodData;
|
}
|
|
if(isObjectEmpty(this.allergyData)){
|
this.HealthyBaseList.bloodClass = this.HealthyBaseList.bloodClass
|
}else {
|
this.HealthyBaseList.allergyClass = this.allergyData;
|
}
|
|
// this.HealthyBaseList.geneticDiseaseClass = this.geneticDiseaseData;
|
if(isObjectEmpty(this.geneticDiseaseData)){
|
this.HealthyBaseList.geneticDiseaseClass = this.HealthyBaseList.geneticDiseaseClass
|
}else {
|
this.HealthyBaseList.geneticDiseaseClass = this.geneticDiseaseData;
|
}
|
|
if(isObjectEmpty(this.sleepData)){
|
this.LiveHabbitList.sleepClass = this.LiveHabbitList.sleepClass
|
}else {
|
this.LiveHabbitList.sleepClass = this.sleepData;
|
}
|
|
|
if(isObjectEmpty(this.stoolStatusData)){
|
this.LiveHabbitList.stoolStatusClass = this.LiveHabbitList.stoolStatusClass
|
}else {
|
this.LiveHabbitList.stoolStatusClass = this.stoolStatusData;
|
}
|
|
// this.LiveHabbitList.urineStatusClass = this.urineStatusData;
|
if(isObjectEmpty(this.urineStatusData)){
|
this.LiveHabbitList.urineStatusClass = this.LiveHabbitList.urineStatusClass
|
}else {
|
this.LiveHabbitList.urineStatusClass = this.urineStatusData;
|
}
|
|
// this.LiveHabbitList.eatingHabitsClass = this.eatingHabitsData;
|
if(isObjectEmpty(this.eatingHabitsData)){
|
this.LiveHabbitList.eatingHabitsClass = this.LiveHabbitList.eatingHabitsClass
|
}else {
|
this.LiveHabbitList.eatingHabitsClass = this.eatingHabitsData;
|
}
|
|
// this.LiveHabbitList.lifeEventClass = this.lifeEventData;
|
if(isObjectEmpty(this.lifeEventData)){
|
this.LiveHabbitList.lifeEventClass = this.LiveHabbitList.lifeEventClass
|
}else {
|
this.LiveHabbitList.lifeEventClass = this.lifeEventData;
|
}
|
|
// this.HealthHuliList.skinTypeClass = this.skinTypeData;
|
if(isObjectEmpty(this.skinTypeData)){
|
this.HealthHuliList.skinTypeClass = this.HealthHuliList.skinTypeClass
|
}else {
|
this.HealthHuliList.skinTypeClass = this.skinTypeData;
|
}
|
// this.HealthHuliList.psychologyTypeClass = this.sychologyTypeData;
|
if(isObjectEmpty(this.sychologyTypeData)){
|
this.HealthHuliList.psychologyTypeClass = this.HealthHuliList.psychologyTypeClass
|
}else {
|
this.HealthHuliList.psychologyTypeClass = this.sychologyTypeData;
|
}
|
// this.HealthHuliList.attitudeClass = this.attitudeTypeData;
|
if(isObjectEmpty(this.attitudeTypeData)){
|
this.HealthHuliList.attitudeClass = this.HealthHuliList.attitudeClass
|
}else {
|
this.HealthHuliList.attitudeClass = this.attitudeTypeData;
|
}
|
|
// this.HealthHuliList.nutritionClass = this.nutritionTypeData;
|
if(isObjectEmpty(this.nutritionTypeData)){
|
this.HealthHuliList.nutritionClass = this.HealthHuliList.nutritionClass
|
}else {
|
this.HealthHuliList.nutritionClass = this.nutritionTypeData;
|
}
|
|
if(isObjectEmpty(this.brainDiseaseTypeData)){
|
this.HealthNowList.brainDiseaseClass = this.HealthNowList.brainDiseaseClass
|
}else {
|
this.HealthNowList.brainDiseaseClass = this.brainDiseaseTypeData;
|
}
|
if(isObjectEmpty(this.heartDiseaseTypeData)){
|
this.HealthNowList.heartDiseaseClass = this.HealthNowList.heartDiseaseClass
|
}else {
|
this.HealthNowList.heartDiseaseClass = this.heartDiseaseTypeData;
|
}
|
if(isObjectEmpty(this.vascularDiseaseTypeData)){
|
this.HealthNowList.vascularDiseaseClass = this.HealthNowList.vascularDiseaseClass
|
}else {
|
this.HealthNowList.vascularDiseaseClass = this.vascularDiseaseTypeData;
|
}
|
if(isObjectEmpty(this.digestiveSystemTypeData)){
|
this.HealthNowList.digestiveSystemDiseaseClass = this.HealthNowList.digestiveSystemDiseaseClass
|
}else {
|
this.HealthNowList.digestiveSystemDiseaseClass = this.digestiveSystemTypeData;
|
}
|
if(isObjectEmpty(this.respiratorySystemTypeData)){
|
this.HealthNowList.respiratorySystemDiseaseClass = this.HealthNowList.respiratorySystemDiseaseClass
|
}else {
|
this.HealthNowList.respiratorySystemDiseaseClass = this.respiratorySystemTypeData;
|
}
|
if(isObjectEmpty(this.kidneyDiseaseSystemTypeData)){
|
this.HealthNowList.kidneyDiseaseClass = this.HealthNowList.kidneyDiseaseClass
|
}else {
|
this.HealthNowList.kidneyDiseaseClass = this.kidneyDiseaseSystemTypeData;
|
}
|
if(isObjectEmpty(this.otherDiseaseTypeData)){
|
this.HealthNowList.otherDiseaseClass = this.HealthNowList.otherDiseaseClass
|
}else {
|
this.HealthNowList.otherDiseaseClass = this.otherDiseaseTypeData;
|
}
|
|
this.$refs['elForm'].validate(valid => {
|
if (valid) {
|
if (this.HealthyBaseList!== undefined) {
|
updateHealthBase(this.HealthyBaseList).then(response => {
|
this.$modal.msgSuccess("修改成功");
|
|
// this.open = false;
|
this.btn=false
|
this.isEditing = false
|
this.dsb = true
|
this.isShow_2=false
|
this.isShow = true
|
this.getList();
|
});
|
} else {
|
this.$modal.msgSuccess("修改失败");
|
|
}
|
}
|
})
|
this.$refs['elForm'].validate(valid => {
|
if (valid) {
|
if (this.LiveHabbitList!== undefined) {
|
updateHealthHabit(this.LiveHabbitList).then(response => {
|
|
// this.open = false;
|
this.btn=false
|
this.isEditing = false
|
this.dsb = true
|
this.isShow_2=false
|
this.isShow = true
|
this.getList();
|
});
|
} else {
|
this.$modal.msgSuccess("修改失败");
|
|
}
|
}
|
})
|
this.$refs['elForm'].validate(valid => {
|
if (valid) {
|
if (this.HealthHuliList!== undefined) {
|
updateHealthHuli(this.HealthHuliList).then(response => {
|
|
// this.open = false;
|
this.btn=false
|
this.isEditing = false
|
this.dsb = true
|
this.isShow_2=false
|
this.isShow = true
|
this.getList();
|
});
|
} else {
|
this.$modal.msgSuccess("修改失败");
|
|
}
|
}
|
})
|
this.$refs['elForm'].validate(valid => {
|
if (valid) {
|
if (this.HealthNowList!== undefined) {
|
updateHealthNow(this.HealthNowList).then(response => {
|
this.$modal.msgSuccess("修改成功");
|
// this.open = false;
|
this.btn=false
|
this.isEditing = false
|
this.dsb = true
|
this.isShow_2=false
|
this.isShow = true
|
this.getList();
|
});
|
} else {
|
this.$modal.msgSuccess("修改失败");
|
|
}
|
}
|
})
|
// 刷新页面
|
|
},
|
//年度健康报告
|
toYearhealthy(){
|
// console.log(this.HealthyBaseList.uid)
|
this.$router.push("/self/healthy/index");
|
},
|
//隔行变色
|
tableRowClassName({ row, rowIndex }) {
|
if (rowIndex % 2 == 0) {
|
return "statistics-warning-row1";
|
} else {
|
return "statistics-warning-row";
|
}
|
},
|
|
|
/** 导出按钮操作 */
|
handleExport() {
|
this.download('/self/user/export', {
|
...this.queryParams
|
}, `self_${new Date().getTime()}.xlsx`)
|
}
|
},
|
|
|
|
};
|
|
</script>
|
<style>
|
.button {
|
background:center no-repeat url('../../assets/icons/add1.png') ;
|
margin-left: 69.5vw;
|
|
}
|
.form{
|
background:center/11% no-repeat url('../../assets/icons/form.png') ;
|
}
|
.app-container {
|
background-color: #FEF7FC;
|
}
|
|
.btn_edit{
|
background:center no-repeat url('../../assets/icons/edit.png') ;
|
position: absolute;
|
top: 0;
|
padding-right: 90px;
|
}
|
|
.bottom {
|
margin-top: 13px;
|
line-height: 12px;
|
}
|
|
.button {
|
padding: 0;
|
float: right;
|
}
|
|
.image {
|
width: 100%;
|
display: block;
|
}
|
|
.clearfix:before,
|
.clearfix:after {
|
display: table;
|
content: "";
|
}
|
|
.clearfix:after {
|
clear: both
|
}
|
</style>
|