|
@@ -2,7 +2,6 @@
|
|
|
<div>
|
|
|
<crumbs title="护理关联维护" style="min-width: 980px" class="knowledgeTitle">
|
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
|
-
|
|
|
<el-form-item class="selectMedicine" label="标准术语状态:">
|
|
|
<el-select size="mini" v-model="filter.status" placeholder="请选择" clearable>
|
|
|
<el-option
|
|
@@ -56,7 +55,9 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column :resizable="false" prop="operate" label="标准术语状态">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.uniqueName && scope.row.uniqueName!=''">{{scope.row.status == 0?'禁用':'启用'}}</span>
|
|
|
+ <span
|
|
|
+ v-if="scope.row.uniqueName && scope.row.uniqueName!=''"
|
|
|
+ >{{scope.row.status == 0?'禁用':'启用'}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column :resizable="false" prop="operate" label="操作">
|
|
@@ -118,13 +119,13 @@ export default {
|
|
|
statusList: [
|
|
|
{ id: '', name: '全部' },
|
|
|
{ id: 1, name: '启用' },
|
|
|
- { id: 0, name: '禁用' },
|
|
|
+ { id: 0, name: '禁用' }
|
|
|
],
|
|
|
filter: {
|
|
|
hisName: '', // 医院诊断名称
|
|
|
uniqueName: '', //标准诊断名称
|
|
|
match: '',
|
|
|
- status:''
|
|
|
+ status: ''
|
|
|
},
|
|
|
currentPage: 1,
|
|
|
pageSize: config.pageSize,
|
|
@@ -270,7 +271,7 @@ export default {
|
|
|
uniqueCode: '',
|
|
|
type: 11,
|
|
|
isMatch: this.filter.match,
|
|
|
- status:this.filter.status
|
|
|
+ status: this.filter.status
|
|
|
};
|
|
|
return param;
|
|
|
},
|
|
@@ -503,17 +504,17 @@ export default {
|
|
|
inp.value = '';
|
|
|
},
|
|
|
importNurseRecord(formData, header) {
|
|
|
- let that = this
|
|
|
+ let that = this;
|
|
|
api.importNurseRecord(formData, header).then(res => {
|
|
|
if (res.headers['content-disposition']) {
|
|
|
- this.downloadUrl(res);
|
|
|
- this.getDataList();
|
|
|
- } else {
|
|
|
- if (that.result != undefined) {
|
|
|
- let r = new FileReader();
|
|
|
- r.onload = function() {
|
|
|
- const code = JSON.parse(that.result);
|
|
|
- if (code.code === '00020007') {
|
|
|
+ this.downloadUrl(res);
|
|
|
+ this.getDataList();
|
|
|
+ } else {
|
|
|
+ let r = new FileReader();
|
|
|
+ r.onload = function() {
|
|
|
+ if (this.result) {
|
|
|
+ const code = JSON.parse(this.result);
|
|
|
+ if (code.code === '00020004') {
|
|
|
that
|
|
|
.$alert(`${code.msg}`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
@@ -526,20 +527,20 @@ export default {
|
|
|
.then(() => {})
|
|
|
.catch(() => {});
|
|
|
}
|
|
|
- };
|
|
|
- r.readAsText(res.data);
|
|
|
- } else {
|
|
|
- that.$alert(`导入成功`, '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- // cancelButtonText: '取消',
|
|
|
- // cancelButtonClass: 'cancelSure',
|
|
|
- // confirmButtonClass: 'sure',
|
|
|
- // customClass: 'exportConfirm',
|
|
|
- type: 'success'
|
|
|
- });
|
|
|
- that.getDataList();
|
|
|
- }
|
|
|
- }
|
|
|
+ } else {
|
|
|
+ that.$alert(`导入成功`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // cancelButtonClass: 'cancelSure',
|
|
|
+ // confirmButtonClass: 'sure',
|
|
|
+ // customClass: 'exportConfirm',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ that.getDataList();
|
|
|
+ }
|
|
|
+ };
|
|
|
+ r.readAsText(res.data);
|
|
|
+ }
|
|
|
// if (res.data.code === '00000001') {
|
|
|
// this.$confirm(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
|
|
|
// confirmButtonText: '确定',
|