| | |
| | | <el-container > |
| | | <el-col > |
| | | <el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left" |
| | | v-loading="loading" :data="HealthyBaseList" @selection-change="handleSelectionChange" > |
| | | 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"> |
| | |
| | | </div> |
| | | <div style="padding-left:150px"> |
| | | <el-container> |
| | | <el-col v-loading="loading" :data="HealthyBaseList" @selection-change="handleSelectionChange"> |
| | | <el-col v-loading="loading" :data="HealthyBaseList" > |
| | | <el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left"> |
| | | <el-row :span="16"> |
| | | |
| | |
| | | |
| | | <div style="padding-left:150px"> |
| | | <el-container> |
| | | <el-col v-loading="loading" :data="HealthyBaseList" @selection-change="handleSelectionChange"> |
| | | <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-row :span="16"> |
| | | <el-form-item label="血型:" prop="bloodClass" label-width="70px"> |
| | | <el-radio-group v-model="HealthyBaseList.bloodClass"> |
| | | <el-radio v-for="(option, index) in typeOptions" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <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-form-item> |
| | | </el-row> |
| | | |
| | |
| | | <el-container > |
| | | <el-col > |
| | | <el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left" |
| | | v-loading="loading" :data="HealthyBaseList" @selection-change="handleSelectionChange" > |
| | | v-loading="loading" :data="HealthyBaseList" > |
| | | <el-row :span="16"> |
| | | <el-form-item label="过敏史:" prop="allergyClass" label-width="70px"> |
| | | <el-radio-group v-model="HealthyBaseList.allergyClass"> |
| | | <el-radio v-for="(option, index) in typeOptions1" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <el-radio label="medicine" v-model="selectedallergyType" :disabled="dsb" @change="handleAllergyChange">药物</el-radio> |
| | | <el-radio label="food" v-model="selectedallergyType" :disabled="dsb" @change="handleAllergyChange">食物</el-radio> |
| | | <el-radio label="other" v-model="selectedallergyType" :disabled="dsb" @change="handleAllergyChange">其他</el-radio> |
| | | </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-container > |
| | | <el-col > |
| | | <el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left" |
| | | v-loading="loading" :data="HealthyBaseList" @selection-change="handleSelectionChange" > |
| | | v-loading="loading" :data="HealthyBaseList" > |
| | | <el-row :span="20"> |
| | | <el-form-item label="遗传病史:" prop="geneticDiseaseClass" label-width="80px"> |
| | | <el-radio-group v-model="HealthyBaseList.geneticDiseaseClass"> |
| | | <el-radio v-for="(option, index) in typeOptions2" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <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-row> |
| | | <el-row :span="20"> |
| | |
| | | <el-container > |
| | | <el-col > |
| | | <el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left" |
| | | v-loading="loading" :data="LiveHabbitList" @selection-change="handleSelectionChange" > |
| | | 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"> |
| | |
| | | </div> |
| | | <div style="padding-left:150px"> |
| | | <el-container> |
| | | <el-col v-loading="loading" :data="LiveHabbitList" @selection-change="handleSelectionChange"> |
| | | <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-container > |
| | | <el-col > |
| | | <el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left" |
| | | v-loading="loading" :data="LiveHabbitList" @selection-change="handleSelectionChange" > |
| | | v-loading="loading" :data="LiveHabbitList" > |
| | | <el-row :span="16"> |
| | | <el-form-item label="睡眠:" prop="sleepClass" label-width="80px"> |
| | | <el-radio-group v-model="LiveHabbitList.sleepClass"> |
| | | <el-radio v-for="(option, index) in typeOptions3" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <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-row> |
| | | </el-form> |
| | |
| | | <el-container > |
| | | <el-col > |
| | | <el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left" |
| | | v-loading="loading" :data="LiveHabbitList" @selection-change="handleSelectionChange" > |
| | | 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"> |
| | |
| | | </div> |
| | | <div style="padding-left:170px"> |
| | | <el-container> |
| | | <el-col v-loading="loading" :data="LiveHabbitList" @selection-change="handleSelectionChange"> |
| | | <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-radio-group v-model="LiveHabbitList.stoolStatusClass"> |
| | | <el-radio v-for="(option, index) in typeOptions4" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <el-radio label="normal" v-model="selectedstoolStatusType" :disabled="dsb" @change="handlestoolStatusChange">正常</el-radio> |
| | | <el-radio label="constipation" v-model="selectedstoolStatusType" :disabled="dsb" @change="handlestoolStatusChange">秘结</el-radio> |
| | | <el-radio label="diarrhea" v-model="selectedstoolStatusType" :disabled="dsb" @change="handlestoolStatusChange"> 腹泻</el-radio> |
| | | <el-radio label="incontinence" v-model="selectedstoolStatusType" :disabled="dsb" @change="handlestoolStatusChange" >失禁</el-radio> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="16"> |
| | | <el-form-item label="小便规律" prop="urineStatusClass" label-width="70px"> |
| | | <el-radio-group v-model="LiveHabbitList.urineStatusClass"> |
| | | <el-radio v-for="(option, index) in typeOptions5" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <el-radio label="normal" v-model="selectedurineStatusType" :disabled="dsb" @change="handleurineStatusChange">正常</el-radio> |
| | | <el-radio label="nightUrinaryRetention" v-model="selectedurineStatusType" :disabled="dsb" @change="handleurineStatusChange">夜尿潴留</el-radio> |
| | | <el-radio label="incontinence" v-model="selectedurineStatusType" :disabled="dsb" @change="handleurineStatusChange"> 失禁</el-radio> |
| | | <el-radio label="enuresis" v-model="selectedurineStatusType" :disabled="dsb" @change="handleurineStatusChange" >遗尿</el-radio> |
| | | </el-form-item> |
| | | </el-row> |
| | | </el-form> |
| | |
| | | <el-container > |
| | | <el-col > |
| | | <el-form ref="elForm" :model="LiveHabbitList" :rules="rules" size="medium" label-position="left" |
| | | v-loading="loading" :data="LiveHabbitList" @selection-change="handleSelectionChange" > |
| | | v-loading="loading" :data="LiveHabbitList" > |
| | | |
| | | <el-row :span="16"> |
| | | <el-form-item label="饮食习惯" prop="eatingHabitsClass" label-width="70px"> |
| | | <el-radio-group v-model="LiveHabbitList.eatingHabitsClass"> |
| | | <el-radio v-for="(option, index) in typeOptions6" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <el-radio label="uniformityOfMeatAndVegetables" v-model="selectedeatingHabitsType" :disabled="dsb" @change="handleeatingHabitsChange">荤素均衡</el-radio> |
| | | <el-radio label="meat" v-model="selectedeatingHabitsType" :disabled="dsb" @change="handleeatingHabitsChange">荤食为主</el-radio> |
| | | <el-radio label="vegetable" v-model="selectedeatingHabitsType" :disabled="dsb" @change="handleeatingHabitsChange"> 素食为主</el-radio> |
| | | <el-radio label="salt" v-model="selectedeatingHabitsType" :disabled="dsb" @change="handleeatingHabitsChange" >嗜盐</el-radio> |
| | | <el-radio label="oil" v-model="selectedeatingHabitsType" :disabled="dsb" @change="handleeatingHabitsChange">嗜油</el-radio> |
| | | <el-radio label="sugar" v-model="selectedeatingHabitsType" :disabled="dsb" @change="handleeatingHabitsChange"> 嗜糖</el-radio> |
| | | <el-radio label="other" v-model="selectedeatingHabitsType" :disabled="dsb" @change="handleeatingHabitsChange" >其他</el-radio> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="16"> |
| | | <el-form-item label="生活事件" prop="lifeEventClass" label-width="70px"> |
| | | <el-radio-group v-model="LiveHabbitList.lifeEventClass"> |
| | | <el-radio v-for="(option, index) in typeOptions7" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <el-radio label="bereave" v-model="selectedlifeEventType" :disabled="dsb" @change="handlelifeEventChange">丧偶(两年之内)</el-radio> |
| | | <el-radio label="liveAlone" v-model="selectedlifeEventType" :disabled="dsb" @change="handlelifeEventChange">目前独居</el-radio> |
| | | <el-radio label="inHospital" v-model="selectedlifeEventType" :disabled="dsb" @change="handlelifeEventChange"> 一年内住院治疗</el-radio> |
| | | <el-radio label="divide" v-model="selectedlifeEventType" :disabled="dsb" @change="handlelifeEventChange" >子女分家生活</el-radio> |
| | | <el-radio label="other" v-model="selectedlifeEventType" :disabled="dsb" @change="handlelifeEventChange">其他</el-radio> |
| | | </el-form-item> |
| | | </el-row> |
| | | </el-form> |
| | |
| | | <el-container > |
| | | <el-col > |
| | | <el-form ref="elForm" :model="HealthHuliList" :rules="rules" size="medium" label-position="left" |
| | | v-loading="loading" :data="HealthHuliList" @selection-change="handleSelectionChange" > |
| | | 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"> |
| | |
| | | </div> |
| | | <div style="padding-left:150px"> |
| | | <el-container> |
| | | <el-col v-loading="loading" :data="HealthHuliList" @selection-change="handleSelectionChange"> |
| | | <el-col v-loading="loading" :data="HealthHuliList" > |
| | | <el-form ref="elForm" :model="HealthHuliList" :rules="rules" size="medium" label-position="left"> |
| | | <el-row :span="16"> |
| | | |
| | |
| | | </div> |
| | | <div style="padding-left:150px"> |
| | | <el-container> |
| | | <el-col v-loading="loading" :data="HealthHuliList" @selection-change="handleSelectionChange"> |
| | | <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-container > |
| | | <el-col > |
| | | <el-form ref="elForm" :model="HealthHuliList" :rules="rules" size="medium" label-position="left" |
| | | v-loading="loading" :data="HealthHuliList" @selection-change="handleSelectionChange" > |
| | | v-loading="loading" :data="HealthHuliList" > |
| | | |
| | | <el-row :span="16"> |
| | | <el-form-item label="皮肤粘膜" prop="skinTypeClass" label-width="70px"> |
| | | <el-radio-group v-model="HealthHuliList.skinTypeClass"> |
| | | <el-radio v-for="(option, index) in typeOptions8" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <el-radio label="acne" v-model="selectedskinType" :disabled="dsb" @change="handleskinTypeChange">青春痘</el-radio> |
| | | <el-radio label="psoriasis" v-model="selectedskinType" :disabled="dsb" @change="handleskinTypeChange">牛皮藓</el-radio> |
| | | <el-radio label="color" v-model="selectedskinType" :disabled="dsb" @change="handleskinTypeChange"> 色素沉着</el-radio> |
| | | <el-radio label="edema" v-model="selectedskinType" :disabled="dsb" @change="handleskinTypeChange" >水肿</el-radio> |
| | | <el-radio label="rash" v-model="selectedskinType" :disabled="dsb" @change="handleskinTypeChange">皮疹</el-radio> |
| | | <el-radio label="bloodStasis" v-model="selectedskinType" :disabled="dsb" @change="handleskinTypeChange">淤点淤斑 </el-radio> |
| | | <el-radio label="snom" v-model="selectedskinType" :disabled="dsb" @change="handleskinTypeChange" >皮下结节或肿块</el-radio> |
| | | <el-radio label="nevus" v-model="selectedskinType" :disabled="dsb" @change="handleskinTypeChange" >蜘蛛痣</el-radio> |
| | | <el-radio label="ulcer" v-model="selectedskinType" :disabled="dsb" @change="handleskinTypeChange">溃疡及瘢痕</el-radio> |
| | | <el-radio label="other" v-model="selectedskinType" :disabled="dsb" @change="handleskinTypeChange"> 其他</el-radio> |
| | | |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="16"> |
| | | <el-form-item label="心理状态" prop="psychologyTypeClass" label-width="70px"> |
| | | <el-radio-group v-model="HealthHuliList.psychologyTypeClass"> |
| | | <el-radio v-for="(option, index) in typeOptions9" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <el-radio label="optimistic" v-model="selectedpsychologyType" :disabled="dsb" @change="handlepsychologyTypeChange">开朗</el-radio> |
| | | <el-radio label="worry" v-model="selectedpsychologyType" :disabled="dsb" @change="handlepsychologyTypeChange">焦虑</el-radio> |
| | | <el-radio label="fear" v-model="selectedpsychologyType" :disabled="dsb" @change="handlepsychologyTypeChange"> 忧愁恐惧</el-radio> |
| | | <el-radio label="suspicion" v-model="selectedpsychologyType" :disabled="dsb" @change="handlepsychologyTypeChange" >猜疑</el-radio> |
| | | <el-radio label="miss" v-model="selectedpsychologyType" :disabled="dsb" @change="handlepsychologyTypeChange"> 思念</el-radio> |
| | | <el-radio label="constrain" v-model="selectedpsychologyType" :disabled="dsb" @change="handlepsychologyTypeChange">压抑</el-radio> |
| | | <el-radio label="other" v-model="selectedpsychologyType" :disabled="dsb" @change="handlepsychologyTypeChange"> 其他</el-radio> |
| | | |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="16"> |
| | | <el-form-item label="病理态度" prop="attitudeClass" label-width="70px"> |
| | | <el-radio-group v-model="HealthHuliList.eatingHabitsClass"> |
| | | <el-radio v-for="(option, index) in typeOptions10" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | |
| | | <el-radio label="lucidity" v-model="selectedpattitudeType" :disabled="dsb" @change="handlepattitudeTypeChange">明朗</el-radio> |
| | | <el-radio label="unknown" v-model="selectedpattitudeType" :disabled="dsb" @change="handlepattitudeTypeChange">不了解</el-radio> |
| | | <el-radio label="normal" v-model="selectedpattitudeType" :disabled="dsb" @change="handlepattitudeTypeChange"> 正常</el-radio> |
| | | <el-radio label="abnormal" v-model="selectedpattitudeType" :disabled="dsb" @change="handlepattitudeTypeChange" >不正常</el-radio> |
| | | <el-radio label="other" v-model="selectedpattitudeType" :disabled="dsb" @change="handlepattitudeTypeChange" >其他</el-radio> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="16"> |
| | | <el-form-item label="全身营养情况" prop="nutritionClass" label-width="100px"> |
| | | <el-radio-group v-model="HealthHuliList.eatingHabitsClass"> |
| | | <el-radio v-for="(option, index) in typeOptions11" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <el-radio label="good" v-model="selectednutritionType" :disabled="dsb" @change="handlenutritionTypeChange">良好</el-radio> |
| | | <el-radio label="medium" v-model="selectednutritionType" :disabled="dsb" @change="handlenutritionTypeChange">中等</el-radio> |
| | | <el-radio label="poor" v-model="selectednutritionType" :disabled="dsb" @change="handlenutritionTypeChange"> 欠佳</el-radio> |
| | | <el-radio label="obesity" v-model="selectednutritionType" :disabled="dsb" @change="handlenutritionTypeChange" >肥胖</el-radio> |
| | | <el-radio label="thin" v-model="selectednutritionType" :disabled="dsb" @change="handlenutritionTypeChange"> 消瘦</el-radio> |
| | | <el-radio label="fluid" v-model="selectednutritionType" :disabled="dsb" @change="handlenutritionTypeChange">恶液质</el-radio> |
| | | <el-radio label="other" v-model="selectednutritionType" :disabled="dsb" @change="handlenutritionTypeChange"> 其他</el-radio> |
| | | </el-form-item> |
| | | </el-row> |
| | | </el-form> |
| | |
| | | <el-container > |
| | | <el-col > |
| | | <el-form ref="elForm" :model="HealthNowList" :rules="rules" size="medium" label-position="left" |
| | | v-loading="loading" :data="HealthNowList" @selection-change="handleSelectionChange" > |
| | | v-loading="loading" :data="HealthNowList" > |
| | | |
| | | <el-row :span="16"> |
| | | <el-form-item label="脑血管疾病" prop="brainDiseaseClass" label-width="100px"> |
| | | <el-radio-group v-model="HealthNowList.brainDiseaseClass"> |
| | | <el-radio v-for="(option, index) in typeOptions12" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <el-radio label="ischemicStroke" v-model="selectedbrainDiseaseType" :disabled="dsb" @change="handlebrainDiseaseTypeChange">缺血性卒中</el-radio> |
| | | <el-radio label="cerebralHemorrhage" v-model="selectedbrainDiseaseType" :disabled="dsb" @change="handlebrainDiseaseTypeChange">脑出血</el-radio> |
| | | <el-radio label="subarachnoidHemorrhage" v-model="selectedbrainDiseaseType" :disabled="dsb" @change="handlebrainDiseaseTypeChange"> 蛛网膜下腔出血</el-radio> |
| | | <el-radio label="TIA" v-model="selectedbrainDiseaseType" :disabled="dsb" @change="handlebrainDiseaseTypeChange" >短暂性脑缺血发作</el-radio> |
| | | <el-radio label="other" v-model="selectedbrainDiseaseType" :disabled="dsb" @change="handlebrainDiseaseTypeChange"> 其它</el-radio> |
| | | |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="16"> |
| | | <el-form-item label="心脏疾病" prop="heartDiseaseClass" label-width="70px"> |
| | | <el-radio-group v-model="HealthNowList.heartDiseaseClass"> |
| | | <el-radio v-for="(option, index) in typeOptions13" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <el-radio label="myocardialInfarct" v-model="selectedheartDiseaseType" :disabled="dsb" @change="handleheartDiseaseTypeChange">心肌梗塞</el-radio> |
| | | <el-radio label="anginaPectoris" v-model="selectedheartDiseaseType" :disabled="dsb" @change="handleheartDiseaseTypeChange">心绞痛</el-radio> |
| | | <el-radio label="coronaryRevascularization" v-model="selectedheartDiseaseType" :disabled="dsb" @change="handleheartDiseaseTypeChange"> 冠状动脉血运重建</el-radio> |
| | | <el-radio label="congestiveHeartFailure" v-model="selectedheartDiseaseType" :disabled="dsb" @change="handleheartDiseaseTypeChange" >充血性心力衰竭</el-radio> |
| | | <el-radio label="precordialPain" v-model="selectedheartDiseaseType" :disabled="dsb" @change="handleheartDiseaseTypeChange"> 心前区疼痛</el-radio> |
| | | <el-radio label="other" v-model="selectedheartDiseaseType" :disabled="dsb" @change="handleheartDiseaseTypeChange"> 其它</el-radio> |
| | | |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="16"> |
| | | <el-form-item label="血管疾病" prop="vascularDiseaseClass" label-width="70px"> |
| | | <el-radio-group v-model="HealthNowList.vascularDiseaseClass"> |
| | | <el-radio v-for="(option, index) in typeOptions14" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <el-radio label="dissectingAneurysm" v-model="selectedvascularDiseaseType" :disabled="dsb" @change="handlevascularDiseaseTypeChange">夹层动脉瘤</el-radio> |
| | | <el-radio label="arterialOcclusiveDiseases" v-model="selectedvascularDiseaseType" :disabled="dsb" @change="handlevascularDiseaseTypeChange">动脉闭塞性疾病</el-radio> |
| | | <el-radio label="other" v-model="selectedvascularDiseaseType" :disabled="dsb" @change="handlevascularDiseaseTypeChange"> 其他</el-radio> |
| | | |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="16"> |
| | | <el-form-item label="消化系统疾病" prop="digestiveSystemDiseaseClass" label-width="100px"> |
| | | <el-radio-group v-model="HealthNowList.digestiveSystemDiseaseClass"> |
| | | <el-radio v-for="(option, index) in typeOptions15" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <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-group v-model="HealthNowList.respiratorySystemDiseaseClass"> |
| | | <el-radio v-for="(option, index) in typeOptions16" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <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-group v-model="HealthNowList.kidneyDiseaseClass"> |
| | | <el-radio v-for="(option, index) in typeOptions17" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <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-group v-model="HealthNowList.otherDiseaseClass"> |
| | | <el-radio v-for="(option, index) in typeOptions18" :key="index" :label="option.value" :disabled="dsb">{{ option.label }}</el-radio> |
| | | </el-radio-group> |
| | | <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> |
| | |
| | | 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: [], |
| | | // 非单个禁用 |
| | |
| | | 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:{}, |
| | | LiveHabbitList:{}, |
| | | HealthHuliList:{}, |
| | | HealthNowList:{}, |
| | | 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, |
| | | |
| | | }, |
| | | }, |
| | | fit:['fill'], |
| | | //下拉实现 |
| | | activeNames:['1'], |
| | |
| | | |
| | | |
| | | }, |
| | | typeOptions: [],//血型 |
| | | typeOptions100:[],//血型2 |
| | | typeOptions1: [],//过敏史 |
| | | typeOptions2: [],//遗传病史 |
| | | typeOptions3: [],//睡眠 |
| | | typeOptions4: [],//大便规律 |
| | | typeOptions5: [],//小便规律 |
| | | typeOptions6: [],//饮食习惯 |
| | | typeOptions7: [],//生活事件 |
| | | typeOptions8: [],//皮肤粘膜 |
| | | typeOptions9: [],//心理状态 |
| | | typeOptions10: [],//病理态度 |
| | | typeOptions11: [],//全身营养情况 |
| | | typeOptions12: [],//脑血管疾病 |
| | | typeOptions13: [],//心脏疾病 |
| | | typeOptions14: [],//血管疾病 |
| | | typeOptions15: [],//消化系统疾病 |
| | | typeOptions16: [],//呼吸系统疾病 |
| | | typeOptions17: [],//肾脏疾病 |
| | | typeOptions18: [],//肾脏疾病 |
| | | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList() |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | }, |
| | | mounted() { |
| | | this.originalBloodType = this.HealthyBaseList.bloodClass;// 在组件挂载时保存原始血型状态 |
| | | }, |
| | | methods: { |
| | | |
| | | //血型修改 |
| | | 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.loading = false; |
| | | |
| | | //个人信息 |
| | | listHealthBase(this.queryParams) |
| | | .then(response => { |
| | | if (response.data.length === 0) { |
| | | this.loading = false; |
| | | this.HealthyBaseList = {}; |
| | | } else { |
| | | this.HealthyBaseList = response.data; |
| | | this.loading = false; |
| | | listHealthBase(this.queryParams).then(response => { |
| | | if (response.data.length === 0) { |
| | | |
| | | const query ={} ; |
| | | if (query.id = 2) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | this.HealthyBaseList = {}; |
| | | this.loading = false; |
| | | |
| | | const bloodClass = this.HealthyBaseList.bloodClass; |
| | | console.log(typeOptions) |
| | | // 将bloodClass的值转换为typeOptions数组 |
| | | this.typeOptions = Object.keys(bloodClass).map(key => { |
| | | return { |
| | | label: key, |
| | | value: bloodClass[key] |
| | | }; |
| | | }); |
| | | console.log(typeOptions) |
| | | } else { |
| | | this.HealthyBaseList = response.data; |
| | | |
| | | |
| | | |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 3) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions1 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const allergyClass = this.HealthyBaseList.allergyClass; |
| | | const selectedOption = this.typeOptions1.find(option => option.value.toString() === allergyClass); |
| | | |
| | | if (selectedOption) { |
| | | this.HealthyBaseList.allergyClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 4) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions2 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const geneticDiseaseClass = this.HealthyBaseList.geneticDiseaseClass; |
| | | const selectedOption = this.typeOptions2.find(option => option.value.toString() === geneticDiseaseClass); |
| | | |
| | | if (selectedOption) { |
| | | this.HealthyBaseList.geneticDiseaseClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | |
| | | //血型的 |
| | | 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'; |
| | | } |
| | | this.loading = false; |
| | | |
| | | |
| | | |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | }); |
| | | //生活习惯 |
| | | listHealthHabit(this.queryParams).then(response => { |
| | | if(response.data.length == 0){ |
| | | |
| | | this.LiveHabbitList={ }; |
| | | 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; |
| | | const query ={} ; |
| | | if (query.id = 5) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions3 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const sleepClass = this.LiveHabbitList.sleepClass; |
| | | const selectedOption = this.typeOptions3.find(option => option.value.toString() === sleepClass); |
| | | |
| | | if (selectedOption) { |
| | | this.LiveHabbitList.sleepClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 6) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions4 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const stoolStatusClass = this.LiveHabbitList.stoolStatusClass; |
| | | const selectedOption = this.typeOptions4.find(option => option.value.toString() === stoolStatusClass); |
| | | |
| | | if (selectedOption) { |
| | | this.LiveHabbitList.stoolStatusClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 7) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions5 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const urineStatusClass = this.LiveHabbitList.urineStatusClass; |
| | | const selectedOption = this.typeOptions3.find(option => option.value.toString() === urineStatusClass); |
| | | |
| | | if (selectedOption) { |
| | | this.LiveHabbitList.urineStatusClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 8) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions6 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const eatingHabitsClass = this.LiveHabbitList.eatingHabitsClass; |
| | | const selectedOption = this.typeOptions6.find(option => option.value.toString() === eatingHabitsClass); |
| | | |
| | | if (selectedOption) { |
| | | this.LiveHabbitList.eatingHabitsClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 9) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions7 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const lifeEventClass = this.LiveHabbitList.lifeEventClass; |
| | | console.log(this.typeOptions7) |
| | | console.log(this.LiveHabbitList.lifeEventClass) |
| | | console.log(lifeEventClass) |
| | | |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | } |
| | | |
| | | } |
| | |
| | | //护理查体 |
| | | listHealthHuli(this.queryParams).then(response => { |
| | | if(response.data.length == 0){ |
| | | this.loading = false; |
| | | |
| | | this.HealthHuliList={}; |
| | | this.loading = false; |
| | | } |
| | | 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; |
| | | const query ={} ; |
| | | if (query.id = 10) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions8 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const skinTypeClass = this.HealthHuliList.skinTypeClass; |
| | | const selectedOption = this.typeOptions8.find(option => option.value.toString() === skinTypeClass); |
| | | |
| | | if (selectedOption) { |
| | | this.HealthHuliList.skinTypeClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 11) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions9 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const psychologyTypeClass = this.HealthHuliList.psychologyTypeClass; |
| | | const selectedOption = this.typeOptions9.find(option => option.value.toString() === psychologyTypeClass); |
| | | |
| | | if (selectedOption) { |
| | | this.HealthHuliList.psychologyTypeClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 12) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions10 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const attitudeClass = this.HealthHuliList.attitudeClass; |
| | | const selectedOption = this.typeOptions10.find(option => option.value.toString() === attitudeClass); |
| | | |
| | | if (selectedOption) { |
| | | this.HealthHuliList.attitudeClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 13) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions11 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const nutritionClass = this.HealthHuliList.nutritionClass; |
| | | const selectedOption = this.typeOptions11.find(option => option.value.toString() === nutritionClass); |
| | | |
| | | if (selectedOption) { |
| | | this.HealthHuliList.nutritionClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | |
| | | } |
| | | |
| | |
| | | //现存健康问题 |
| | | listHealthNow(this.queryParams).then(response => { |
| | | if(response.data.length == 0){ |
| | | this.loading = false; |
| | | |
| | | this.HealthNowList={}; |
| | | this.loading = false; |
| | | } |
| | | 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; |
| | | const query ={} ; |
| | | if (query.id = 14) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions12 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const brainDiseaseClass = this.HealthNowList.brainDiseaseClass; |
| | | const selectedOption = this.typeOptions12.find(option => option.value.toString() === brainDiseaseClass); |
| | | |
| | | if (selectedOption) { |
| | | this.HealthNowList.brainDiseaseClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 15) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions13 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const heartDiseaseClass = this.HealthNowList.heartDiseaseClass; |
| | | const selectedOption = this.typeOptions13.find(option => option.value.toString() === heartDiseaseClass); |
| | | |
| | | if (selectedOption) { |
| | | this.HealthNowList.heartDiseaseClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 16) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions14 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const vascularDiseaseClass = this.HealthNowList.vascularDiseaseClass; |
| | | const selectedOption = this.typeOptions14.find(option => option.value.toString() === vascularDiseaseClass); |
| | | |
| | | if (selectedOption) { |
| | | this.HealthNowList.vascularDiseaseClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 17) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions15 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const digestiveSystemDiseaseClass = this.HealthNowList.digestiveSystemDiseaseClass; |
| | | const selectedOption = this.typeOptions15.find(option => option.value.toString() === digestiveSystemDiseaseClass); |
| | | |
| | | if (selectedOption) { |
| | | this.HealthNowList.digestiveSystemDiseaseClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 18) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions16 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const respiratorySystemDiseaseClass = this.HealthNowList.respiratorySystemDiseaseClass; |
| | | const selectedOption = this.typeOptions16.find(option => option.value.toString() === respiratorySystemDiseaseClass); |
| | | |
| | | if (selectedOption) { |
| | | this.HealthNowList.respiratorySystemDiseaseClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 19) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions17 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const kidneyDiseaseClass = this.HealthNowList.kidneyDiseaseClass; |
| | | const selectedOption = this.typeOptions17.find(option => option.value.toString() === kidneyDiseaseClass); |
| | | |
| | | if (selectedOption) { |
| | | this.HealthNowList.kidneyDiseaseClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | if (query.id = 20) { |
| | | getCategory(query) |
| | | .then(response => { |
| | | const itemValues = response.data.itemValues; |
| | | const keyValuePairs = itemValues.replace("{", "").replace("}", "").split(","); |
| | | this.typeOptions18 = keyValuePairs.map(elem => { |
| | | const [label, value] = elem.split(":").map(str => str.trim()); |
| | | return { label, value: parseInt(value) }; |
| | | }); |
| | | |
| | | const otherDiseaseClass = this.HealthNowList.otherDiseaseClass; |
| | | const selectedOption = this.typeOptions18.find(option => option.value.toString() === otherDiseaseClass); |
| | | |
| | | if (selectedOption) { |
| | | this.HealthNowList.otherDiseaseClass = selectedOption.value.toString(); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | });} |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | /** 提交按钮(数据权限) */ |
| | | submitDataScope: function() { |
| | | |
| | | let ul = this.fileList.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | | let uls = this.fileListOther.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | | this.formDat.url = ul+","+uls |
| | | this.$refs["elForm"].validate(valid => { |
| | | if (valid) { |
| | | |
| | | addMarryOld(this.formDat).then(response => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | |
| | | editRow(row) { |
| | |
| | | //修改后的保存 |
| | | |
| | | submitForm() { |
| | | if(parseInt(this.mrs)) |
| | | this.marryList.marryStatus = parseInt(this.mrs) |
| | | if(parseInt(this.smrs)) |
| | | this.marryList.spouseMarryStatus = parseInt(this.smrs) |
| | | if(parseInt(this.bear)) |
| | | this.marryList.bearStatus = parseInt(this.bear) |
| | | this.marryList.sex = this.sinds |
| | | this.marryList.spouseSex = this.inds |
| | | 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.marryList.id !== undefined) { |
| | | updateMarry(this.marryList).then(response => { |
| | | if (this.HealthyBaseList!== undefined) { |
| | | updateHealthBase(this.HealthyBaseList).then(response => { |
| | | |
| | | // this.open = false; |
| | | this.btn=false |
| | | this.isEditing = false |
| | | this.dsb = true |
| | | this.isShow_2=false |
| | | this.isShow = true |
| | | |
| | | }); |
| | | } 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 |
| | | |
| | | }); |
| | | } 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 |
| | | |
| | | }); |
| | | } 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 |
| | |
| | | } |
| | | }) |
| | | // 刷新页面 |
| | | // window.location.reload(); |
| | | this.getList(); |
| | | }, |
| | | //年度健康报告 |
| | | toYearhealthy(){ |