|
@@ -0,0 +1,150 @@
|
|
|
+<template>
|
|
|
+ <div class="bg-box">
|
|
|
+ <div class="bg-card">
|
|
|
+ <SearchBoxVue :data="formInline" @search="handleSearch" @reset="handleReset" />
|
|
|
+ <div style="margin-top: -22px;">
|
|
|
+ <el-divider></el-divider>
|
|
|
+ <TableBoxVue :data="tableData" @export="handleExport" />
|
|
|
+ <Pagination :page="paginationData.page" :limit="paginationData.page_size" :total="paginationData.total" @pagination="handlePagination" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import SearchBoxVue from './components/errors/SearchBox.vue'
|
|
|
+import TableBoxVue from './components/errors/TableBox.vue'
|
|
|
+import Pagination from '@/components/Pagination'
|
|
|
+
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ SearchBoxVue,
|
|
|
+ TableBoxVue,
|
|
|
+ Pagination
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ formInline: {
|
|
|
+ AAA28: '',
|
|
|
+ AAC11N: '',
|
|
|
+ time: []
|
|
|
+ },
|
|
|
+ tableData: [
|
|
|
+ {
|
|
|
+ "error_rule": 16,
|
|
|
+ "auth": "AAA17C",
|
|
|
+ "field": "现住址邮政编码",
|
|
|
+ "ZYH": "722801",
|
|
|
+ "AAA28": "",
|
|
|
+ "AAA01": "",
|
|
|
+ "AAC01": "2022-04-16 09:00:00",
|
|
|
+ "AAC11N": "",
|
|
|
+ "level": "强制",
|
|
|
+ "type": "患者基本信息",
|
|
|
+ "desc": "现住址邮政编码未填写",
|
|
|
+ "coder_name": "编码员姓名",
|
|
|
+ "ZYYS": "住院医师姓名",
|
|
|
+ "ICD10_NAME": "主要诊断名称",
|
|
|
+ "ICD10_ID1": "主要诊断编码",
|
|
|
+ "ICD9_NAME": "主要手术名称",
|
|
|
+ "ICD9_ID1": "主要手术编码"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ paginationData: {
|
|
|
+ page: 1,
|
|
|
+ page_size: 10,
|
|
|
+ total: 0
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getList() {
|
|
|
+ const {
|
|
|
+ AAA28,
|
|
|
+ AAC11N,
|
|
|
+ time
|
|
|
+ } = this.formInline
|
|
|
+ const {
|
|
|
+ page,
|
|
|
+ page_size
|
|
|
+ } = this.paginationData
|
|
|
+ const params = {
|
|
|
+ error_rule: this.$route.query.error_rule,
|
|
|
+ page,
|
|
|
+ page_size,
|
|
|
+ AAA28,
|
|
|
+ AAC11N,
|
|
|
+ is_export: 0
|
|
|
+ }
|
|
|
+ if (time && time.length) {
|
|
|
+ params.start_time = time[0]
|
|
|
+ params.end_time = time[1]
|
|
|
+ }
|
|
|
+ this.$axios.post('/home_bmy_quality/bmyErrorDetailsList', params).then(res => {
|
|
|
+ this.tableData = res.data.list
|
|
|
+ this.paginationData.total = res.data.count
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleSearch() {
|
|
|
+ this.paginationData.page = 1
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ handleReset() {
|
|
|
+ this.formInline = {
|
|
|
+ AAA28: '',
|
|
|
+ AAC11N: '',
|
|
|
+ time: []
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handlePagination(val) {
|
|
|
+ const { page, limit } = val
|
|
|
+ this.paginationData.page = page
|
|
|
+ this.paginationData.page_size = limit
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ handleExport() {
|
|
|
+ const {
|
|
|
+ AAA28,
|
|
|
+ AAC11N,
|
|
|
+ time
|
|
|
+ } = this.formInline
|
|
|
+ const params = {
|
|
|
+ error_rule: this.$route.query.error_rule,
|
|
|
+ AAA28,
|
|
|
+ AAC11N,
|
|
|
+ is_export: 1
|
|
|
+ }
|
|
|
+ if (time && time.length) {
|
|
|
+ params.start_time = time[0]
|
|
|
+ params.end_time = time[1]
|
|
|
+ }
|
|
|
+ encoderErrorExport(params).then(res => {
|
|
|
+ const content = res.data; // 后台返回二进制数据
|
|
|
+ const blob = new Blob([content]);
|
|
|
+ const fileName = `编码员缺陷.csv`;
|
|
|
+ if ('download' in document.createElement('a')) {
|
|
|
+ // 非IE下载
|
|
|
+ const elink = document.createElement('a');
|
|
|
+ elink.download = fileName;
|
|
|
+ elink.style.display = 'none';
|
|
|
+ elink.href = URL.createObjectURL(blob);
|
|
|
+ document.body.appendChild(elink);
|
|
|
+ elink.click();
|
|
|
+ URL.revokeObjectURL(elink.href); // 释放URL 对象
|
|
|
+ document.body.removeChild(elink);
|
|
|
+ } else {
|
|
|
+ // IE10+下载
|
|
|
+ navigator.msSaveBlob(blob, fileName);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style>
|
|
|
+
|
|
|
+</style>
|