| | |
| | | :data="list" |
| | | row-key="prop1" |
| | | stripe |
| | | :header-cell-style="{'height':'5.3vh','background-color':'#e6e6e6'}" |
| | | border |
| | | :cell-style="{padding:'7px 0','text-align':'center'}" |
| | | :header-cell-style="{'height':'5.3vh','background-color':'#e6e6e6','text-align':'center'}" |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column show-overflow-tooltip="true" type="selection" :reserve-selection="false" width="55" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="empNumb" label="员工编号" width="100" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="deptName" label="护卫点" width="100" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="empName" label="员工姓名" width="100" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="jobName" label="岗位" width="80" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="hospital" label="体检医院" width="100" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="physicalExamDate" label="体检日期" width="100" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="physicalExamType" label="体检类型"> |
| | | <template slot-scope="{row}"> |
| | | {{ transPhysicalExamType(row.physicalExamType) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip="true" prop="bloodPressure" label="血压" width="80" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="transaminase" label="转氨酶" width="80" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="ecg" label="心电图" width="80" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="conclusion" label="体检结论" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="reviewRecord" label="复查记录" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="remark" label="备注" /> |
| | | <el-table-column show-overflow-tooltip type="index" width="55" label="序号" /> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="hospital" label="体检医院" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="physicalExamDate" label="体检日期" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="physicalExamType" :formatter="typeFormat" label="体检类型" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="bloodPressure" label="血压" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="transaminase" label="转氨酶" width="70" /> |
| | | <el-table-column show-overflow-tooltip prop="ecg" label="心电图" width="70" /> |
| | | <el-table-column show-overflow-tooltip prop="conclusion" label="体检结论" min-width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="reviewRecord" label="复查记录" min-width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="remark" label="备注" /> |
| | | </el-table> |
| | | <pagination |
| | | v-show="total>0" |
| | |
| | | defaultProps: { |
| | | children: 'children', |
| | | label: 'label' |
| | | } |
| | | }, |
| | | ecgOptions: [], |
| | | physicalExamTypeOptions: [] |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | setTimeout(() => { |
| | | this.getDicts('PHYSICALEXAMTYPE').then(response => { |
| | | this.physicalExamTypeOptions = response.data |
| | | }) |
| | | this.getDicts('ECG').then(response => { |
| | | this.ecgOptions = response.data |
| | | }) |
| | | }, 1000) |
| | | }, |
| | | methods: { |
| | | typeFormat(row, column) { |
| | | return this.selectDictLabel(this.physicalExamTypeOptions, row.physicalExamType) |
| | | }, |
| | | ecgNameFormat(row, column) { |
| | | return this.selectDictLabel(this.ecgOptions, row.ecg) |
| | | }, |
| | | transPhysicalExamType(physicalExamType) { |
| | | switch (physicalExamType) { |
| | | case '1': |