|
@@ -0,0 +1,157 @@
|
|
|
+<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'
|
|
|
+import { encoderErrorExport } from '@/api/excel'
|
|
|
+
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ SearchBoxVue,
|
|
|
+ TableBoxVue,
|
|
|
+ Pagination
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ formInline: {
|
|
|
+ time: [],
|
|
|
+ level: '',
|
|
|
+ doctor_name: [],
|
|
|
+ AAC11N: ''
|
|
|
+ },
|
|
|
+ tableData: [
|
|
|
+ {
|
|
|
+ "field_name": "健康卡号",
|
|
|
+ "desc": "健康卡号未填写",
|
|
|
+ "AAA28": "00260972",
|
|
|
+ "AAA01": "",
|
|
|
+ "ZYH": "809257",
|
|
|
+ "AAC01": "2023-08-07 09:15:00",
|
|
|
+ "AAC11N": "神经外科",
|
|
|
+ "AEE08": "张三",
|
|
|
+ "AEE03": "李一",
|
|
|
+ "AEE04": "周一",
|
|
|
+ "ICD10_ID1": "S06.500x002",
|
|
|
+ "ICD10_NAME": "创伤性硬脑膜下血肿",
|
|
|
+ "ICD9_ID1": "01.2408",
|
|
|
+ "ICD9_NAME": "颅内血肿清除术",
|
|
|
+ "level": "强制",
|
|
|
+ "type": "患者基本信息"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ paginationData: {
|
|
|
+ page: 1,
|
|
|
+ page_size: 10,
|
|
|
+ total: 0
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ const { start_time, end_time } = this.$route.query
|
|
|
+ this.$set(this.formInline, 'AAC01', [start_time, end_time])
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getList() {
|
|
|
+ const {
|
|
|
+ AAC01
|
|
|
+ } = this.formInline
|
|
|
+ const {
|
|
|
+ page,
|
|
|
+ page_size
|
|
|
+ } = this.paginationData
|
|
|
+ const params = {
|
|
|
+ hospital_name: '',
|
|
|
+ bl_type: 2,
|
|
|
+ is_export: 0,
|
|
|
+ rule_id: this.$route.query.rule_id,
|
|
|
+ page,
|
|
|
+ page_size,
|
|
|
+ ...this.formInline
|
|
|
+ }
|
|
|
+ if (AAC01 && AAC01.length) {
|
|
|
+ params.start_time = AAC01[0]
|
|
|
+ params.end_time = AAC01[1]
|
|
|
+ }
|
|
|
+ this.$axios.post('/bmy/bmyQualityList', params).then(res => {
|
|
|
+ this.tableData = res.data.data
|
|
|
+ this.paginationData.total = res.data.count
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleSearch() {
|
|
|
+ this.paginationData.page = 1
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ handleReset() {
|
|
|
+ this.formInline = {
|
|
|
+ AAA28: '',
|
|
|
+ AAC11C: '',
|
|
|
+ AAC01: [],
|
|
|
+ AEE04_CODE: '',
|
|
|
+ AEE08_CODE: '',
|
|
|
+ ICD9_ID1: '',
|
|
|
+ ICD9_NAME: '',
|
|
|
+ ICD10_ID1: '',
|
|
|
+ ICD10_NAME: ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handlePagination(val) {
|
|
|
+ const { page, limit } = val
|
|
|
+ this.paginationData.page = page
|
|
|
+ this.paginationData.page_size = limit
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ handleExport() {
|
|
|
+ const {
|
|
|
+ AAC01
|
|
|
+ } = this.formInline
|
|
|
+ const params = {
|
|
|
+ hospital_name: '',
|
|
|
+ bl_type: 2,
|
|
|
+ is_export: 0,
|
|
|
+ rule_id: this.$route.query.rule_id,
|
|
|
+ ...this.formInline
|
|
|
+ }
|
|
|
+ if (AAC01 && AAC01.length) {
|
|
|
+ params.start_time = AAC01[0]
|
|
|
+ params.end_time = AAC01[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>
|