| | |
| | | |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> |
| | | |
| | | <el-form-item label="体检/看病时间" prop="checkTime"> |
| | | <el-form-item label="看病时间" prop="checkTime"> |
| | | <el-date-picker |
| | | v-model="dateRange" |
| | | style="width: 200px; |
| | |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="类别" prop="type"> |
| | | <el-input |
| | | v-model="queryParams.type" |
| | | placeholder="请输入类别" |
| | | clearable |
| | | style="width: 200px; |
| | | height: 35px; |
| | | border-radius: 16px 16px 16px 16px; |
| | | opacity: 0.5;" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | |
| | | <el-form-item label="题名" prop="title"> |
| | | <el-input |
| | |
| | | </el-form-item> |
| | | |
| | | <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:50px; |
| | | font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">年度健康情况</span></div> |
| | | <div class="form1" ><el-icon style="padding-right:100px;"></el-icon> |
| | | <span class="text" style="width: 69px;height: 26px;font-size: 16px; |
| | | font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">健康情况</span></div> |
| | | </el-button> |
| | | |
| | | <el-button size="mini" type="text" @click="toExamination" v-hasPermi="['person:healthy:healthYear']"> |
| | | <div class="form2" ><el-icon style="padding-right:50px;"></el-icon> |
| | | <span class="text" style="width: 69px;height: 26px;font-size: 16px; |
| | | font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">历年体检情况</span></div> |
| | | </el-button> |
| | | |
| | | <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-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="200" align="center"> |
| | | <el-table-column label="看病时间" prop="checkTime" sortable width="200" 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="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"> |
| | | <el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <div class="button-container"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | |
| | | <el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck(scope.row)">查看详情</el-button> |
| | | |
| | | </el-dropdown> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="类别" prop="type"> |
| | | <el-select v-model="formDat.type" placeholder="请选择"> |
| | | <el-option label="体检" value="体检"></el-option> |
| | | <el-option label="看病" value="看病"></el-option> |
| | | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="就病医院" prop="hospital"> |
| | | <el-input v-model="formDat.hospital" placeholder="请输入就病医院" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | |
| | | |
| | | //在system/note/index.js中导入接口函数 --接好了 |
| | | import {listHealth,enload,delHealth,uploadPic, addHealth} from "@/api/healthy/index"; |
| | | import {Message} from "element-ui"; |
| | | |
| | | export default { |
| | | name: "Role", |
| | |
| | | }, |
| | | //年度健康报告 |
| | | toYearhealthy(){ |
| | | // console.log(this.HealthyBaseList.uid) |
| | | // this.$router.push("/self/healthy/healthYear/" + this.HealthyBaseList.uid); |
| | | // this.$router.push("/self/healthy/healthYear" ); |
| | | this.$router.push("/self/healthy/healthYear" ); |
| | | }, |
| | | |
| | | //体检表 |
| | | toExamination(){ |
| | | this.$router.push("/self/healthy/Examination" ); |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | |
| | | handleExport() { |
| | | const Ids = this.ids; |
| | | |
| | |
| | | }, `zYearInfo${new Date().getTime()}.xlsx`) |
| | | }, |
| | | /** 导入操作*/ |
| | | handleEnport(params) { |
| | | 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'}) |
| | | Message({ message: "导入成功", type: 'warning' }) |
| | | |
| | | }).catch(err) |
| | | { |
| | | Message({message: "导入失败", type: 'error'}) |
| | | Message({ message: "导入失败", type: 'error' }) |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | background: #FFEFF2; |
| | | |
| | | } |
| | | .form1 { |
| | | position: absolute; |
| | | right: 60px; |
| | | top:20px; |
| | | background:center/11% no-repeat url('../../assets/icons/form.png') ; |
| | | } |
| | | .form2 { |
| | | position: absolute; |
| | | right: 200px; |
| | | top:20px; |
| | | |
| | | } |
| | | .el-table__cell { |
| | | font-size: 14px; /* 设置字体大小 */ |
| | | } |
| | | .button-container { |
| | | display: inline-flex; /* 设置按钮容器为行内元素 */ |
| | | } |
| | | </style> |