|
@@ -4,12 +4,7 @@
|
|
|
<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="handleMatchData">预匹配</el-button>
|
|
|
<el-button size="mini" @click="importPage" style="margin:0 10px">{{uploadInfo}}</el-button>
|
|
|
<input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
|
|
@@ -39,6 +34,7 @@
|
|
|
<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>
|
|
|
<el-table-column :resizable="false" prop="hisName" label="医院手术/操作名称" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column :resizable="false" prop="code" label="手术/操作代码" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column
|
|
|
:resizable="false"
|
|
|
prop="uniqueName"
|
|
@@ -109,7 +105,7 @@ export default {
|
|
|
filter: {
|
|
|
hisName: '', // 医院诊断名称
|
|
|
uniqueName: '', //标准诊断名称
|
|
|
- match:''
|
|
|
+ match: ''
|
|
|
},
|
|
|
currentPage: 1,
|
|
|
pageSize: config.pageSize,
|
|
@@ -126,15 +122,15 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
const param = this.$route.params;
|
|
|
- if(param.currentPage){
|
|
|
- this.inCurrentPage = param.currentPage
|
|
|
+ if (param.currentPage) {
|
|
|
+ this.inCurrentPage = param.currentPage;
|
|
|
}
|
|
|
- if(param.filter){
|
|
|
- this.filter = param.filter
|
|
|
+ if (param.filter) {
|
|
|
+ this.filter = param.filter;
|
|
|
}
|
|
|
- console.log(param)
|
|
|
+ console.log(param);
|
|
|
//返回时避免参数未赋值就获取列表
|
|
|
- setTimeout(()=> {
|
|
|
+ setTimeout(() => {
|
|
|
this.getDataList();
|
|
|
});
|
|
|
},
|
|
@@ -261,8 +257,8 @@ export default {
|
|
|
}
|
|
|
: { currentPage: this.currentPage, pageSize: this.pageSize };
|
|
|
// this.$router.push({ name: 'AddOperation', params: pam });
|
|
|
- this.data = {}
|
|
|
- this.showModal()
|
|
|
+ this.data = {};
|
|
|
+ this.showModal();
|
|
|
},
|
|
|
// 修改诊断关联-跳转至编辑页面
|
|
|
modifyRelation(row) {
|
|
@@ -278,8 +274,8 @@ export default {
|
|
|
// name: 'AddOperation',
|
|
|
// params: Object.assign(pam, { isEdit: true, data: item })
|
|
|
// });
|
|
|
- this.data = item
|
|
|
- this.showModal()
|
|
|
+ this.data = item;
|
|
|
+ this.showModal();
|
|
|
},
|
|
|
currentChange(next) {
|
|
|
this.currentPage = next;
|
|
@@ -382,12 +378,14 @@ export default {
|
|
|
// }
|
|
|
})
|
|
|
.then(() => {
|
|
|
- api.exportOperationRecord({type:6,isMatch:this.filter.match}).then(res => {
|
|
|
- if (res.status === 200) {
|
|
|
- this.$message({ message: '导出成功', type: 'success' });
|
|
|
- utils.downloadExportedData(res.data, '手术/操作关联数据.xls');
|
|
|
- }
|
|
|
- });
|
|
|
+ api
|
|
|
+ .exportOperationRecord({ type: 6, isMatch: this.filter.match })
|
|
|
+ .then(res => {
|
|
|
+ if (res.status === 200) {
|
|
|
+ this.$message({ message: '导出成功', type: 'success' });
|
|
|
+ utils.downloadExportedData(res.data, '手术/操作关联数据.xls');
|
|
|
+ }
|
|
|
+ });
|
|
|
})
|
|
|
.catch(() => {
|
|
|
// this.$message({ message: '导出失败', type: 'waring' });
|
|
@@ -396,7 +394,7 @@ export default {
|
|
|
|
|
|
// 导入模板
|
|
|
exportModule() {
|
|
|
- api.exportOperationModule({type:6}).then(res => {
|
|
|
+ api.exportOperationModule({ type: 6 }).then(res => {
|
|
|
if (res.status === 200) {
|
|
|
setTimeout(() => {
|
|
|
utils.downloadExportedData(res.data, '手术/操作导入模板.xls');
|
|
@@ -554,7 +552,7 @@ export default {
|
|
|
border-bottom: 1px solid #dcdfe6;
|
|
|
}
|
|
|
}
|
|
|
-#upFileMatch{
|
|
|
+#upFileMatch {
|
|
|
display: none;
|
|
|
}
|
|
|
</style>
|