| | |
| | | <template> |
| | | <div class="app-container" style="opacity: 1;"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> |
| | | <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-form-item label="体检时间" prop="checkTime"> |
| | | <el-date-picker |
| | | v-model="dateRange" |
| | | style="width: 240px;" |
| | | value-format="yyyy-MM-dd" |
| | | type="daterange" |
| | | range-separator="-" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="救病医院" prop="hospital" > |
| | | <el-input |
| | | v-model="queryParams.hospital" |
| | | placeholder="请输入就病医院" |
| | | clearable |
| | | style="width: 240px" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="类别" prop="type"> |
| | | <el-input |
| | | v-model="queryParams.type" |
| | | placeholder="请输入类别" |
| | | clearable |
| | | style="width: 240px" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-divider /> |
| | | |
| | | <el-form-item label="题名" prop="title"> |
| | | <el-input |
| | | v-model="queryParams.title" |
| | | placeholder="请输入题名" |
| | | clearable |
| | | style="width: 240px" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button size="mini" @click="handleQuery" style=" width: 65px; height: 32px;background: #FFDDE3;border-radius:6px 6px 6px 6px;opacity:1;">搜索</el-button> |
| | | <el-button size="mini" @click="resetQuery" style=" width: 65px;height: 32px; background: #FFDDE3; border-radius:6px 6px 6px 6px;opacity: 1;">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleAdd" |
| | | v-hasPermi="['system:role:add']" |
| | | >新增</el-button> |
| | | </el-col> |
| | | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | | plain |
| | | icon="el-icon-delete" |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | v-hasPermi="['system:role:remove']" |
| | | >删除</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['family:note:export']" |
| | | >导出</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['family:note:export']" |
| | | >导入模板下载</el-button> |
| | | </el-col> |
| | | <el-col :span="1.2"> |
| | | <el-upload |
| | | action="" |
| | | class="upload-demo" |
| | | :show-file-list="false" |
| | | :http-request="handleEnport" |
| | | > |
| | | <el-button size="mini" type="primary" |
| | | plain |
| | | icon="el-icon-plus" >导入</el-button> |
| | | |
| | | </el-upload> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table v-loading="loading" :data="healthList" @selection-change="handleSelectionChange" @row-click="handleCheck" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/> |
| | | |
| | | <el-table-column label="体检时间" prop="checkTime" sortable width="150" align="center"> |
| | | <template slot-scope="scope">{{scope.row.checkTime? scope.row.checkTime: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="类别" prop="type" sortable width="120" /> |
| | | <el-table-column label="就病医院" prop="hospital" sortable width="120" > |
| | | |
| | | </el-table-column> |
| | | <el-table-column label="题名" prop="title" sortable width="150" /> |
| | | <el-table-column label="注意事项" prop="notice" sortable width="150" /> |
| | | <el-table-column label="体检报告(电子文件)" prop="url" align="center" sortable width="200" > |
| | | <template slot-scope="scope" > |
| | | <div @click="handleCheck(scope.row)"> |
| | | <img |
| | | class="el-upload-list__item-thumbnail" |
| | | src="../../assets/images/deviceLis.png" |
| | | alt="" |
| | | style="width: 35px; height: 35px;" |
| | | fit="cover" |
| | | v-if="!(scope.row.url === '' || scope.row.url === ',' || scope.row.url === null)" |
| | | > |
| | | <img |
| | | v-else |
| | | class="el-upload-list__item-thumbnail" |
| | | src="../../assets/images/deviceA.png" |
| | | alt="" |
| | | style="width: 35px; height: 35px;" |
| | | fit="cover" |
| | | |
| | | ></div> |
| | | </template> |
| | | </el-table-column> |
| | | <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-table-column label="备注" prop="remark" sortable width="120" > |
| | | <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['familymodel:economy:info']" |
| | | >修改</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:role:remove']" |
| | | >删除</el-button> |
| | | <!-- <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['familymodel:economy:info']"> |
| | | <el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck(scope.row)">查看详情</el-button> |
| | | |
| | | </el-dropdown> --> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | style="background: #FEF7FC;" |
| | | /> |
| | | |
| | | <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body> |
| | | <el-form ref="elForm" :model="formDat" :rules="rules" size="medium" label-width="100px"> |
| | | <el-dialog :visible.sync="open" width="800px" append-to-body @close=""> |
| | | |
| | | |
| | | <el-form-item label="体检时间" prop="checkTime"> |
| | | <el-input |
| | | v-model='formDat.checkTime' |
| | | type='date' |
| | | placeholder='选择日期' |
| | | ></el-input> |
| | | </el-form-item> |
| | | <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-item label="类别" prop="type"> |
| | | <el-input v-model="formDat.type" placeholder="请输入类别" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="就病医院" prop="hospital"> |
| | | <el-input v-model="formDat.hospital" placeholder="请输入就病医院" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="题名" prop="title"> |
| | | <el-input v-model="formDat.title" placeholder="请输入题名" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="注意事项" prop="notice"> |
| | | <el-input v-model="formDat.notice" placeholder="请输入注意事项" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | </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-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-form-item label="备注" prop="remark"> |
| | | <el-input v-model="formDat.remark" placeholder="请输入备注" clearable :style="{width: '100%'}" ></el-input> |
| | | </el-form-item> |
| | | <!-- </el-dialog> self:user:export--> |
| | | </el-container> |
| | | <div> |
| | | <el-form ref="elForm" :model="HealthyBaseList" :rules="rules" size="medium" label-position="left" |
| | | v-loading="loading" :data="HealthyBaseList" > |
| | | |
| | | <h4 class="form-header">相关图片 </h4> |
| | | <el-upload |
| | | action="#" |
| | | list-type="picture-card" |
| | | multiple |
| | | :http-request="requestUpload" |
| | | :file-list="fileList" |
| | | > |
| | | <i slot="default" class="el-icon-plus"></i> |
| | | <div slot="file" slot-scope="{file}"> |
| | | <img |
| | | class="el-upload-list__item-thumbnail" |
| | | :src="file.url" |
| | | |
| | | alt="" |
| | | style="width: 126px; height: 126px" |
| | | fit="cover" |
| | | :preview-src-list="[file.url]" |
| | | > |
| | | <span class="el-upload-list__item-actions"> |
| | | <span |
| | | class="el-upload-list__item-preview" |
| | | @click="handlePictureCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | |
| | | <span |
| | | v-if="!disabled" |
| | | class="el-upload-list__item-delete" |
| | | @click="handleRemove(file)" |
| | | > |
| | | <i class="el-icon-delete"></i> |
| | | </span> |
| | | </span> |
| | | |
| | | |
| | | </div> |
| | | </el-upload> |
| | | <h4 class="form-header">其他附件 </h4> |
| | | <el-upload |
| | | action="" |
| | | :file-list="fileListOther" |
| | | class="upload-demo" |
| | | multiple |
| | | |
| | | :on-remove="handleRemoveFile" |
| | | :http-request="requestUpload" |
| | | :show-file-list="true" |
| | | > |
| | | <el-button type="primary">点击上传</el-button> |
| | | <template #tip> |
| | | <div class="el-upload__tip"> |
| | | </div> |
| | | </template> |
| | | </el-upload> |
| | | <el-row :span="16"> |
| | | <el-form-item label="血型:" prop="bloodClass" label-width="70px"> |
| | | <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-form> |
| | | <h4 class="form-header"> </h4> |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitDataScope">确 定</el-button> |
| | | <el-button @click="cancelData">取 消</el-button> |
| | | </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="70px"> |
| | | <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-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | </el-form> |
| | | </el-col> |
| | | </el-container> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!-- 分配角色数据权限对话框 --> |
| | | <el-dialog :title="title" :visible.sync="openDataScope" width="500px" append-to-body> |
| | | <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-dialog> |
| | | </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-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-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 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-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-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 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-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-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 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 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 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-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="800px" 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-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 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 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 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> |
| | | <el-tabs type="border-card" v-model="activeName" |
| | | v-loading="loading" :data="HealthNoteList" > |
| | | <el-button size='mini' type="text" class="btn_edit" @click="saveData" style='top: 0px;right: 20px;'> |
| | | <sapn v-html="'\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'"></sapn> |
| | | <span >{{ editMode ? this.bstn='保存' : this.bstn='修改' }}</span> |
| | | </el-button> |
| | | <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> |
| | | <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"; |
| | | |
| | | |
| | | |
| | | //在system/note/index.js中导入接口函数 --接好了 |
| | | import {listHealth,enload,delHealth,getHealthInfo, addHealth, uploadPic} from "@/api/healthy/index"; |
| | | import { blobValidate } from '../../utils/ruoyi' |
| | | |
| | | export default { |
| | | name: "Role", |
| | | name: "show", |
| | | dicts: ['sys_normal_disable'], |
| | | data() { |
| | | return { |
| | | open:false, |
| | | open1:false, |
| | | open2:false, |
| | | open3:false, |
| | | allBasicInfo:["基本情况","生活习惯","护理查体","现在健康问题"], |
| | | dictionary: {}, |
| | | // 遮罩层 |
| | | editMode: false, // 是否处于编辑模式 |
| | | activeName: 'lifeHabits', |
| | | disabled: false, |
| | | loading: true, |
| | | 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, |
| | | // 家大事记表格数据 |
| | | economyList: [], |
| | | //头像上传 |
| | | 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, |
| | |
| | | // 日期范围 |
| | | dateRange: [], |
| | | // 数据范围选项 |
| | | fot:[".jpg",".jif"], |
| | | // 数据范围选项 |
| | | 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:[ ], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | editStatus: {}, |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | | isShow_2:false, |
| | | |
| | | formDat: { |
| | | type: undefined, |
| | | createTime: undefined, |
| | | useFor: undefined, |
| | | usePeople: undefined, |
| | | kind:undefined, |
| | | remark: undefined, |
| | | url: undefined, |
| | | |
| | | |
| | | }, |
| | | |
| | | // 菜单列表 |
| | | menuOptions: [], |
| | | // 部门列表 |
| | | deptOptions: [], |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | type:undefined, |
| | | useFor:undefined, |
| | | usePeople:undefined, |
| | | checkTime:undefined, |
| | | |
| | | }, |
| | | // 表单参数 |
| | |
| | | }, |
| | | // 表单校验 |
| | | rules: { |
| | | usePeople: [{ |
| | | required: true, |
| | | message: '请输入使用人', |
| | | trigger: 'blur' |
| | | }], |
| | | |
| | | useFor: [{ |
| | | required: true, |
| | | message: '请输入用途', |
| | | trigger: 'blur' |
| | | }], |
| | | type: [{ |
| | | required: true, |
| | | message: '请输入台账内容', |
| | | trigger: 'blur' |
| | | }], |
| | | balance: [{ |
| | | required: true, |
| | | message: '请输入金额', |
| | | trigger: 'blur' |
| | | }], |
| | | kind: [{ |
| | | // required: true, |
| | | message: '请输入支付方式', |
| | | trigger: 'blur' |
| | | }], |
| | | createTime: [{ |
| | | required: true, |
| | | message: '请选择日期选择', |
| | | trigger: 'change' |
| | | }], |
| | | price: [{ |
| | | required: true, |
| | | message: '请选择事项内容', |
| | | trigger: 'blur' |
| | | }], |
| | | |
| | | }, |
| | | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | |
| | | |
| | | this.getList() |
| | | this.$route.meta.title = "现状健康情况"; |
| | | this.$route.meta.title = "现状健康情况"; |
| | | }, |
| | | methods: { |
| | | |
| | | 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(); |
| | | }, |
| | | |
| | | //隔行变色 |
| | | tableRowClassName({ row, rowIndex }) { |
| | | if (rowIndex % 2 == 0) { |
| | | return "statistics-warning-row1"; |
| | | } else { |
| | | return "statistics-warning-row"; |
| | | } |
| | | //下拉 |
| | | handleChange(val) { |
| | | console.log(val); |
| | | }, |
| | | |
| | | |
| | | /** 查询角色列表 */ |
| | | //列表显示家大事记 |
| | | |
| | | |
| | | getList() { |
| | | this.loading = true; |
| | | this.queryParams.happenStartTime = this.dateRange.length > 0 && this.dateRange[0] |
| | | this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1] |
| | | // console.log(this.queryParams) |
| | | // listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => { |
| | | this.loading = false; |
| | | |
| | | listHealth(this.queryParams).then(response => { |
| | | // alert(123) |
| | | // console.log(response.data) |
| | | this.healthList = response.data.data; |
| | | |
| | | this.total = response.data.total; |
| | | //个人信息 |
| | | 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; |
| | | |
| | | } |
| | | |
| | | } |
| | | ); |
| | | }, |
| | | handleRemove(file) { |
| | | for(let i = 0; i < this.fileList.length; i++) |
| | | { |
| | | if(this.fileList[i].url==file.url) |
| | | this.$delete(this.fileList,i); |
| | | } |
| | | }, |
| | | handleRemoveFile(file) { |
| | | for(let i = 0; i < this.fileListOther.length; i++) |
| | | { |
| | | if(this.fileListOther[i].url==file.url) |
| | | this.$delete(this.fileListOther,i); |
| | | } |
| | | }, |
| | | |
| | | |
| | | |
| | | // 取消按钮 |
| | | cancel() { |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.dateRange = []; |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.id) |
| | | console.log(this.ids) |
| | | this.single = selection.length!=1 |
| | | this.multiple = !selection.length |
| | | }, |
| | | |
| | | |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.open = true; |
| | | this.title = "新增健康情况"; |
| | | }, |
| | | |
| | | |
| | | /** 查看详细信息 */ |
| | | handleCheck(row){ |
| | | const id = row.id; |
| | | this.$router.push("/self/healthy/healthyInfo/" + id); |
| | | this.title = "新增婚姻信息"; |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | const id = row.id; |
| | | handleUpdate() { |
| | | |
| | | let jd = true |
| | | |
| | | this.$router.push({ |
| | | path:"/self/healthy/healthyInfo/" + id, |
| | | query:{ |
| | | detail:jd |
| | | } |
| | | }); |
| | | // this.$router.push({ |
| | | // path:"/self/marry/edit/" + id, |
| | | // query:{ |
| | | // detail:jd |
| | | // } |
| | | // }); |
| | | }, |
| | | |
| | | |
| | | handlePictureCardPreview(file) { |
| | | this.dialogImageUrl = file.url; |
| | | this.dialogVisible = true; |
| | | }, |
| | | /** 提交按钮(数据权限) */ |
| | | 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) { |
| | | |
| | | addHealth(this.formDat).then(response => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | }); |
| | | // 清空formDat对象的数据 |
| | | Object.keys(this.formDat).forEach(key => { |
| | | this.formDat[key] = ''; |
| | | }); |
| | | for(let i = 0; i <= this.fileList.length; i++) |
| | | { |
| | | this.handleRemove(this.fileList[0]); |
| | | } |
| | | for(let i = 0; i < this.fileListOther.length; i++){ |
| | | this.handleRemoveFile(this.fileListOther[0]); |
| | | } |
| | | |
| | | }, |
| | | requestUpload(params) |
| | | // 编辑按钮 |
| | | handleEdit() |
| | | { |
| | | var file = params.file; |
| | | var formData = new FormData(); |
| | | formData.append('uploadFile', file); |
| | | let _this = this |
| | | this.dsb = false |
| | | this.btn = true |
| | | this.isShow=false |
| | | this.isShow_2=true |
| | | this.isEditing=true |
| | | |
| | | uploadPic(formData).then(response => { |
| | | let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) |
| | | }, |
| | | |
| | | if(_this.fot.includes(pth) === true) |
| | | { |
| | | _this.fileList.push({name:response.data.fileName, "url":response.data.url}) |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | 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) |
| | | |
| | | else{ |
| | | _this.fileListOther.push({name:response.data.fileName, url:response.data.url}) |
| | | 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("修改失败"); |
| | | |
| | | } |
| | | } |
| | | }) |
| | | // 刷新页面 |
| | | |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const Ids = row.id || this.ids; |
| | | this.$modal.confirm('是否确认删除所选数据项?').then(function() { |
| | | return delHealth(Ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }).catch(() => {}); |
| | | //年度健康报告 |
| | | 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('/zfEconomy/export', { |
| | | this.download('/self/user/export', { |
| | | ...this.queryParams |
| | | }, `zfEconomy_${new Date().getTime()}.xlsx`) |
| | | }, `self_${new Date().getTime()}.xlsx`) |
| | | } |
| | | }, |
| | | /** 导入操作*/ |
| | | handleEnport(params){ |
| | | var file = params.file; |
| | | var formData = new FormData(); |
| | | formData.append('excelImport', file); |
| | | let _this = this |
| | | alert(file) |
| | | enload(formData).then(response => { |
| | | _this.getList(); |
| | | Message({ message: "导入成功", type: 'warning' }) |
| | | |
| | | }).catch(err) |
| | | { |
| | | Message({ message: "导入失败", type: 'error' }) |
| | | } |
| | | |
| | | } |
| | | |
| | | }; |
| | | |
| | | </script> |
| | | |
| | | <style> |
| | | .el-table__row.statistics-warning-row { |
| | | background: #E0EEFE; |
| | | .button { |
| | | background:center no-repeat url('../../assets/icons/add1.png') ; |
| | | margin-left: 69.5vw; |
| | | |
| | | } |
| | | .el-table__row.statistics-warning-row1 { |
| | | background: #FFEFF2; |
| | | |
| | | .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> |