|
@@ -1,8 +1,27 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div class="btn-box">
|
|
|
- <el-button type="primary" icon="el-icon-plus" @click="onCreate">新增</el-button>
|
|
|
- <el-button type="primary" icon="el-icon-download" @click="onExport">配置</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-plus" style="margin-right: 10px;" @click="onCreate">新增</el-button>
|
|
|
+ <el-popover
|
|
|
+ placement="bottom-end"
|
|
|
+ title=""
|
|
|
+ trigger="click"
|
|
|
+ popper-class="table_code_popper"
|
|
|
+ >
|
|
|
+ <el-checkbox v-model="checkAll" :indeterminate="isIndeterminate" @change="handleCheckAllChange">全选</el-checkbox>
|
|
|
+ <el-checkbox-group v-model="codes" @change="handleChange">
|
|
|
+ <el-checkbox label="description">错误描述</el-checkbox>
|
|
|
+ <el-checkbox label="department">质控科室</el-checkbox>
|
|
|
+ <el-checkbox label="is_not">单项否决</el-checkbox>
|
|
|
+ <el-checkbox label="status">质控状态</el-checkbox>
|
|
|
+ <el-checkbox label="type">质控类型</el-checkbox>
|
|
|
+ <el-checkbox label="changjing">质控场景</el-checkbox>
|
|
|
+ <el-checkbox label="error_level">风险等级</el-checkbox>
|
|
|
+ <el-checkbox label="score">扣分</el-checkbox>
|
|
|
+ <el-checkbox label="rule">质控规则</el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ <el-button slot="reference" type="primary" icon="el-icon-setting">设置</el-button>
|
|
|
+ </el-popover>
|
|
|
</div>
|
|
|
<el-table
|
|
|
v-loading="loading"
|
|
@@ -19,68 +38,76 @@
|
|
|
align="center"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="SSBM"
|
|
|
+ prop="case_type"
|
|
|
label="病历类型"
|
|
|
fixed="left"
|
|
|
align="center"
|
|
|
width="120"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="SSLB"
|
|
|
+ prop="object"
|
|
|
label="质控项目"
|
|
|
align="center"
|
|
|
width="240"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="SSLB"
|
|
|
+ v-if="codes.includes('description')"
|
|
|
+ prop="description"
|
|
|
label="错误描述"
|
|
|
align="center"
|
|
|
- width="240"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="LRXX"
|
|
|
+ v-if="codes.includes('department')"
|
|
|
+ prop="department"
|
|
|
label="质控科室"
|
|
|
align="center"
|
|
|
width="240"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="LRXX"
|
|
|
+ v-if="codes.includes('is_not')"
|
|
|
+ prop="is_not"
|
|
|
label="单项否决"
|
|
|
align="center"
|
|
|
width="120"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="LRXX"
|
|
|
+ v-if="codes.includes('status')"
|
|
|
+ prop="status"
|
|
|
label="质控状态"
|
|
|
align="center"
|
|
|
width="120"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="LRXX"
|
|
|
+ v-if="codes.includes('type')"
|
|
|
+ prop="type"
|
|
|
label="质控类型"
|
|
|
align="center"
|
|
|
width="120"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="LRXX"
|
|
|
+ v-if="codes.includes('changjing')"
|
|
|
+ prop="changjing"
|
|
|
label="质控场景"
|
|
|
align="center"
|
|
|
width="120"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="LRXX"
|
|
|
+ v-if="codes.includes('error_level')"
|
|
|
+ prop="error_level"
|
|
|
label="风险等级"
|
|
|
align="center"
|
|
|
width="120"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="LRXX"
|
|
|
+ v-if="codes.includes('score')"
|
|
|
+ prop="score"
|
|
|
label="扣分"
|
|
|
align="center"
|
|
|
width="120"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="LRXX"
|
|
|
+ v-if="codes.includes('rule')"
|
|
|
+ prop=""
|
|
|
label="质控规则"
|
|
|
align="center"
|
|
|
width="120"
|
|
@@ -132,12 +159,29 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ codes: [
|
|
|
+ 'changjing',
|
|
|
+ 'department',
|
|
|
+ 'type',
|
|
|
+ 'is_not',
|
|
|
+ 'score',
|
|
|
+ 'error_level',
|
|
|
+ 'status',
|
|
|
+ 'description',
|
|
|
+ 'rule'
|
|
|
+ ],
|
|
|
+ defaultCodes: [],
|
|
|
+ checkAll: true,
|
|
|
+ isIndeterminate: false,
|
|
|
createData: {
|
|
|
bSwitch: false,
|
|
|
row: {}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.defaultCodes = JSON.parse(JSON.stringify(this.codes))
|
|
|
+ },
|
|
|
methods: {
|
|
|
onCreate() {
|
|
|
this.createData.row = {}
|
|
@@ -167,8 +211,14 @@ export default {
|
|
|
onRuleDetail() {
|
|
|
alert('todo')
|
|
|
},
|
|
|
- onExport() {
|
|
|
- this.$emit('export')
|
|
|
+ handleCheckAllChange(val) {
|
|
|
+ this.codes = val ? this.defaultCodes : []
|
|
|
+ this.isIndeterminate = false
|
|
|
+ },
|
|
|
+ // 展示字段发生变化
|
|
|
+ handleChange(val) {
|
|
|
+ const checkedCount = val.length
|
|
|
+ this.checkAll = checkedCount === this.defaultCodes.length
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -180,3 +230,11 @@ export default {
|
|
|
margin-bottom: 15px;
|
|
|
}
|
|
|
</style>
|
|
|
+<style lang="scss">
|
|
|
+.table_code_popper {
|
|
|
+ .el-checkbox {
|
|
|
+ display: block;
|
|
|
+ line-height: 26px;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|