|
@@ -73,6 +73,31 @@
|
|
|
<el-form-item class="btn-group">
|
|
|
<el-button type="primary" plain icon="el-icon-download" @click="onExport">导出数据</el-button>
|
|
|
<el-button icon="el-icon-refresh" @click="onReset">重置条件</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="showCodes" @change="handleChange">
|
|
|
+ <el-checkbox label="field">缺陷字段</el-checkbox>
|
|
|
+ <el-checkbox label="desc">缺陷描述</el-checkbox>
|
|
|
+ <el-checkbox label="AAA28">住院号码</el-checkbox>
|
|
|
+ <el-checkbox label="AAA01">姓名</el-checkbox>
|
|
|
+ <el-checkbox label="time">出院时间</el-checkbox>
|
|
|
+ <el-checkbox label="AAC11N">出院科室</el-checkbox>
|
|
|
+ <el-checkbox label="AEE08">编码员</el-checkbox>
|
|
|
+ <el-checkbox label="AEE04">住院医师</el-checkbox>
|
|
|
+ <el-checkbox label="ICD10_NAME">主要诊断名称</el-checkbox>
|
|
|
+ <el-checkbox label="ICD10_ID1">主要诊断编码</el-checkbox>
|
|
|
+ <el-checkbox label="ICD9_NAME">主要手术名称</el-checkbox>
|
|
|
+ <el-checkbox label="ICD9_ID1">主要手术编码</el-checkbox>
|
|
|
+ <el-checkbox label="level">缺陷分级</el-checkbox>
|
|
|
+ <el-checkbox label="type">缺陷归类</el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ <el-button slot="reference" icon="el-icon-setting" style="margin-left: 10px;"></el-button>
|
|
|
+ </el-popover>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -86,6 +111,8 @@ export default {
|
|
|
default() {
|
|
|
return {
|
|
|
AAA28: '',
|
|
|
+ AAA01: '',
|
|
|
+ AAC11N: '',
|
|
|
dep_id: '',
|
|
|
start_time: '',
|
|
|
end_time: '',
|
|
@@ -100,11 +127,37 @@ export default {
|
|
|
ICD9_ID1: ''
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ codes: {
|
|
|
+ type: Array,
|
|
|
+ default() {
|
|
|
+ return []
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
+ const defaultCodes = [
|
|
|
+ 'field',
|
|
|
+ 'desc',
|
|
|
+ 'AAA28',
|
|
|
+ 'AAA01',
|
|
|
+ 'time',
|
|
|
+ 'AAC11N',
|
|
|
+ 'AEE08',
|
|
|
+ 'AEE04',
|
|
|
+ 'type',
|
|
|
+ 'level',
|
|
|
+ 'ICD10_NAME',
|
|
|
+ 'ICD10_ID1',
|
|
|
+ 'ICD9_NAME',
|
|
|
+ 'ICD9_ID1'
|
|
|
+ ]
|
|
|
return {
|
|
|
showMore: false,
|
|
|
+ showCodes: [],
|
|
|
+ checkAll: true,
|
|
|
+ isIndeterminate: false,
|
|
|
+ defaultCodes,
|
|
|
pickerOptions1: {
|
|
|
disabledDate: (time) => {
|
|
|
if (this.data.end_time) {
|
|
@@ -123,13 +176,25 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- selectData: {},
|
|
|
+ selectData: {}
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.getSelectData()
|
|
|
+ this.showCodes = JSON.parse(JSON.stringify(this.codes))
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleCheckAllChange(val) {
|
|
|
+ this.showCodes = val ? this.defaultCodes : []
|
|
|
+ this.isIndeterminate = false
|
|
|
+ this.$emit('codesChange', this.showCodes)
|
|
|
+ },
|
|
|
+ // 展示字段发生变化
|
|
|
+ handleChange(val) {
|
|
|
+ const checkedCount = val.length
|
|
|
+ this.checkAll = checkedCount === this.defaultCodes.length
|
|
|
+ this.$emit('codesChange', val)
|
|
|
+ },
|
|
|
getSelectData() {
|
|
|
this.$axios.post('/home_quality/getErrorSerachWhere').then(res => {
|
|
|
this.selectData = res.data
|
|
@@ -163,3 +228,11 @@ export default {
|
|
|
bottom: -22px;
|
|
|
}
|
|
|
</style>
|
|
|
+<style lang="scss">
|
|
|
+.table_code_popper {
|
|
|
+ .el-checkbox {
|
|
|
+ display: block;
|
|
|
+ line-height: 26px;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|