|
@@ -44,7 +44,12 @@
|
|
<el-table-column :resizable="false" prop="gmtModified" label="操作时间" width="180"></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="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="code" label="中医证候代码" show-overflow-tooltip></el-table-column>
|
|
- <el-table-column :resizable="false" prop="uniqueName" label="标准中医证候名称" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="uniqueName"
|
|
|
|
+ label="标准中医证候名称"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
<el-table-column :resizable="false" prop="operate" label="状态">
|
|
<el-table-column :resizable="false" prop="operate" label="状态">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
|
|
<span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
|
|
@@ -104,7 +109,7 @@ export default {
|
|
filter: {
|
|
filter: {
|
|
hisName: '', // 医院诊断名称
|
|
hisName: '', // 医院诊断名称
|
|
uniqueName: '', //标准诊断名称
|
|
uniqueName: '', //标准诊断名称
|
|
- match:''
|
|
|
|
|
|
+ match: ''
|
|
},
|
|
},
|
|
matchList: [
|
|
matchList: [
|
|
{ id: '', name: '全部' },
|
|
{ id: '', name: '全部' },
|
|
@@ -183,7 +188,7 @@ export default {
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
});
|
|
});
|
|
api.dataTcmdromeVerify(formData, header).then(res => {
|
|
api.dataTcmdromeVerify(formData, header).then(res => {
|
|
- if ((res.data.code === '00020007' || res.data.code === '00020004')) {
|
|
|
|
|
|
+ if (res.data.code === '00020007' || res.data.code === '00020004') {
|
|
loading.close();
|
|
loading.close();
|
|
this.$alert(`${res.data.msg}`, '提示', {
|
|
this.$alert(`${res.data.msg}`, '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -257,7 +262,7 @@ export default {
|
|
uniqueCode: '',
|
|
uniqueCode: '',
|
|
hospitalId: data && data.hospitalId,
|
|
hospitalId: data && data.hospitalId,
|
|
type: 13,
|
|
type: 13,
|
|
- isMatch:this.filter.match
|
|
|
|
|
|
+ isMatch: this.filter.match
|
|
};
|
|
};
|
|
return param;
|
|
return param;
|
|
},
|
|
},
|
|
@@ -267,7 +272,7 @@ export default {
|
|
this.getDataList();
|
|
this.getDataList();
|
|
},
|
|
},
|
|
addRelation() {
|
|
addRelation() {
|
|
- console.log(11)
|
|
|
|
|
|
+ console.log(11);
|
|
const pam = this.searched
|
|
const pam = this.searched
|
|
? {
|
|
? {
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
@@ -275,8 +280,8 @@ export default {
|
|
filter: this.filter
|
|
filter: this.filter
|
|
}
|
|
}
|
|
: { currentPage: this.currentPage, pageSize: this.pageSize };
|
|
: { currentPage: this.currentPage, pageSize: this.pageSize };
|
|
- this.data={}
|
|
|
|
- this.showModal()
|
|
|
|
|
|
+ this.data = {};
|
|
|
|
+ this.showModal();
|
|
// this.$router.push({
|
|
// this.$router.push({
|
|
// name: 'AddTcmdrome',
|
|
// name: 'AddTcmdrome',
|
|
// params: Object.assign(pam, {
|
|
// params: Object.assign(pam, {
|
|
@@ -304,8 +309,8 @@ export default {
|
|
// hospitaiName: this.hospitaiName
|
|
// hospitaiName: this.hospitaiName
|
|
// })
|
|
// })
|
|
// });
|
|
// });
|
|
- this.data = item
|
|
|
|
- this.showModal()
|
|
|
|
|
|
+ this.data = item;
|
|
|
|
+ this.showModal();
|
|
},
|
|
},
|
|
currentChange(next) {
|
|
currentChange(next) {
|
|
this.currentPage = next;
|
|
this.currentPage = next;
|
|
@@ -408,12 +413,18 @@ export default {
|
|
// }
|
|
// }
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- api.exportTcmdromeRecord({ hospitalId: this.hospitalId,type:13 ,isMatch:this.filter.match}).then(res => {
|
|
|
|
- if (res.status === 200) {
|
|
|
|
- this.$message({ message: '导出成功', type: 'success' });
|
|
|
|
- utils.downloadExportedData(res.data, '中医证候关联数据.xls');
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ api
|
|
|
|
+ .exportTcmdromeRecord({
|
|
|
|
+ hospitalId: this.hospitalId,
|
|
|
|
+ type: 13,
|
|
|
|
+ isMatch: this.filter.match
|
|
|
|
+ })
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.status === 200) {
|
|
|
|
+ this.$message({ message: '导出成功', type: 'success' });
|
|
|
|
+ utils.downloadExportedData(res.data, '中医证候关联数据.xls');
|
|
|
|
+ }
|
|
|
|
+ });
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
// this.$message({ message: '导出失败', type: 'waring' });
|
|
// this.$message({ message: '导出失败', type: 'waring' });
|
|
@@ -421,7 +432,7 @@ export default {
|
|
},
|
|
},
|
|
// 导入模板
|
|
// 导入模板
|
|
exportModule() {
|
|
exportModule() {
|
|
- api.exportTcmdromeModule({type:13}).then(res => {
|
|
|
|
|
|
+ api.exportTcmdromeModule({ type: 13 }).then(res => {
|
|
if (res.status === 200) {
|
|
if (res.status === 200) {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
utils.downloadExportedData(res.data, '中医证候导入模板.xls');
|
|
utils.downloadExportedData(res.data, '中医证候导入模板.xls');
|
|
@@ -450,6 +461,31 @@ export default {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
this.uploadInfo = '导入中...';
|
|
this.uploadInfo = '导入中...';
|
|
|
|
+ api.importExcelDataVerify(formData, header).then(res => {
|
|
|
|
+ if (res.data.code === '00020007') {
|
|
|
|
+ this.$confirm(`${res.data.msg}`, '提示1', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ this.importTcmdromeRecord(formData, header);
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.uploadInfo = '导入';
|
|
|
|
+ }, 300);
|
|
|
|
+ });
|
|
|
|
+ } else if (res.data.data === true) {
|
|
|
|
+ this.importTcmdromeRecord(formData, header);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ //解决上传相同文件不触发change
|
|
|
|
+ let inp = document.getElementById('upFile');
|
|
|
|
+ inp.value = '';
|
|
|
|
+ },
|
|
|
|
+ importTcmdromeRecord(formData, header) {
|
|
api.importTcmdromeRecord(formData, header).then(res => {
|
|
api.importTcmdromeRecord(formData, header).then(res => {
|
|
if (res.data.code === '00000001') {
|
|
if (res.data.code === '00000001') {
|
|
this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
|
|
this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
|
|
@@ -466,7 +502,7 @@ export default {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.uploadInfo = '导入';
|
|
this.uploadInfo = '导入';
|
|
}, 300);
|
|
}, 300);
|
|
- } else if ((res.data.data === true && res.status === 200)) {
|
|
|
|
|
|
+ } else if (res.data.data === true && res.status === 200) {
|
|
this.$alert(`导入成功`, '提示', {
|
|
this.$alert(`导入成功`, '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
// cancelButtonText: '取消',
|
|
// cancelButtonText: '取消',
|
|
@@ -498,9 +534,6 @@ export default {
|
|
}, 300);
|
|
}, 300);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- //解决上传相同文件不触发change
|
|
|
|
- let inp = document.getElementById('upFile');
|
|
|
|
- inp.value = '';
|
|
|
|
},
|
|
},
|
|
/********新增编辑弹窗**********/
|
|
/********新增编辑弹窗**********/
|
|
showModal() {
|
|
showModal() {
|