|
@@ -1,40 +1,34 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <crumbs :title="title + hospitaiName" linkTo="MedicalTermCDSS" style="min-width: 1196px">
|
|
|
+ <crumbs :title="title + hospitaiName" linkTo="MedicalTermCDSS">
|
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
|
<el-form-item>
|
|
|
<el-button type="text" class="downTemplate" @click="exportModule">导入模板下载</el-button>
|
|
|
- <input
|
|
|
- type="file"
|
|
|
- name="uploadfile "
|
|
|
- id="upFile"
|
|
|
- @change="uploadFile($event)"
|
|
|
-
|
|
|
- />
|
|
|
+ <input type="file" name="uploadfile " id="upFile" @change="uploadFile($event)" />
|
|
|
<el-button size="mini" @click="importPage">{{uploadInfo}}</el-button>
|
|
|
- <input
|
|
|
- type="file"
|
|
|
- name="uploadfile "
|
|
|
- id="upFileMatch"
|
|
|
- @change="uploadFileMatch($event)"
|
|
|
-
|
|
|
- />
|
|
|
- <el-button size="mini" @click="handleMatchData">预匹配</el-button>
|
|
|
+ <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
|
|
|
+ <el-button size="mini" @click="handleMatchData" style="marginLeft: 10px">预匹配</el-button>
|
|
|
<el-button size="mini" @click="exportData">导出</el-button>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="医院科室名称:">
|
|
|
- <el-input size="mini" v-model="filter.hisName" placeholder="请输入" clearable></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="标准科室名称:">
|
|
|
- <el-input size="mini" v-model="filter.uniqueName" placeholder="请输入" clearable></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item class="dododo">
|
|
|
- <el-button size="mini" @click="filterDatas">检索</el-button>
|
|
|
- <el-button size="mini" type="warning" @click="addRelation">添加关联</el-button>
|
|
|
- </el-form-item>
|
|
|
</el-form>
|
|
|
</crumbs>
|
|
|
- <div class="contents">
|
|
|
+ <div class="searchBar">
|
|
|
+ <div class="searchContent">
|
|
|
+ <el-form :inline="true" class="demo-form-inline">
|
|
|
+ <el-form-item label="医院科室名称:">
|
|
|
+ <el-input size="mini" v-model="filter.hisName" placeholder="请输入" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="标准科室名称:">
|
|
|
+ <el-input size="mini" v-model="filter.uniqueName" placeholder="请输入" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item class="dododo">
|
|
|
+ <el-button size="mini" @click="filterDatas">检索</el-button>
|
|
|
+ <el-button size="mini" type="warning" @click="addRelation">添加关联</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="contentsOther">
|
|
|
<el-table :data="list" border style="width: 100%">
|
|
|
<el-table-column :resizable="false" type="index" :index="indexMethod" label="编号" width="80"></el-table-column>
|
|
|
<el-table-column :resizable="false" prop="gmtModified" label="操作时间" width="180"></el-table-column>
|
|
@@ -145,13 +139,36 @@ export default {
|
|
|
'Content-Type': 'multipart/form-data'
|
|
|
}
|
|
|
};
|
|
|
- api.precDeptDataMatch(formData, header).then(res => {
|
|
|
- if (res.status === 200) {
|
|
|
- setTimeout(() => {
|
|
|
- utils.downloadExportedData(res.data, '科室关联数据(预匹配).xls');
|
|
|
- }, 1500);
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '预匹配中...',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
+ api.dataDeptVerify(formData, header).then(res => {
|
|
|
+ if (res.data.code === '00020007') {
|
|
|
+ loading.close();
|
|
|
+ this.$alert(`${res.data.msg}`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {})
|
|
|
+ .catch(() => {});
|
|
|
+ } else {
|
|
|
+ api.precDeptDataMatch(formData, header).then(res => {
|
|
|
+ setTimeout(() => {
|
|
|
+ loading.close();
|
|
|
+ }, 800);
|
|
|
+ if (res.status === 200) {
|
|
|
+ utils.downloadExportedData(
|
|
|
+ res.data,
|
|
|
+ '科室关联数据(预匹配).xls'
|
|
|
+ );
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
let inp = document.getElementById('upFileMatch');
|
|
|
inp.value = '';
|
|
|
},
|
|
@@ -390,14 +407,9 @@ export default {
|
|
|
};
|
|
|
this.uploadInfo = '导入中...';
|
|
|
api.importDeptRecord(formData, header).then(res => {
|
|
|
- // console.log('导入文件结果', '===================', res);
|
|
|
if (res.data.code === '00000001') {
|
|
|
this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
- // cancelButtonText: '取消',
|
|
|
- // cancelButtonClass: 'cancelSure',
|
|
|
- // confirmButtonClass: 'sure',
|
|
|
- // customClass: 'exportConfirm',
|
|
|
type: 'warning'
|
|
|
})
|
|
|
.then(() => {})
|
|
@@ -409,11 +421,7 @@ export default {
|
|
|
} else if (res.data === '' && res.status === 200) {
|
|
|
this.$alert(`导入成功`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
- // cancelButtonText: '取消',
|
|
|
- // cancelButtonClass: 'cancelSure',
|
|
|
- // confirmButtonClass: 'sure',
|
|
|
- // customClass: 'exportConfirm',
|
|
|
- type: 'warning'
|
|
|
+ type: 'success'
|
|
|
})
|
|
|
.then(() => {})
|
|
|
.catch(() => {});
|
|
@@ -424,10 +432,6 @@ export default {
|
|
|
} else {
|
|
|
this.$alert(`${res.data.msg}`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
- // cancelButtonText: '取消',
|
|
|
- // cancelButtonClass: 'cancelSure',
|
|
|
- // confirmButtonClass: 'sure',
|
|
|
- // customClass: 'exportConfirm',
|
|
|
type: 'warning'
|
|
|
})
|
|
|
.then(() => {})
|
|
@@ -503,4 +507,25 @@ export default {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
+.searchBar {
|
|
|
+ min-width: 980px;
|
|
|
+ height: 60px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ background-color: #dee2ea;
|
|
|
+ z-index: 9999;
|
|
|
+ padding: 40px 20px 0;
|
|
|
+ .searchContent {
|
|
|
+ height: 40px;
|
|
|
+ flex: 1;
|
|
|
+ background-color: #fff;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ float: right;
|
|
|
+ }
|
|
|
+}
|
|
|
+.contentsOther {
|
|
|
+ padding: 0 20px;
|
|
|
+}
|
|
|
</style>
|