|
@@ -35,6 +35,16 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="剂型术语状态:" class="selectMedicine">
|
|
|
|
+ <el-select size="mini" v-model="filter.formStatus" placeholder="请选择" clearable>
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in formstatusList"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="医院药品名称:">
|
|
<el-form-item label="医院药品名称:">
|
|
<el-input size="mini" v-model="filter.hisName" placeholder="请输入" clearable></el-input>
|
|
<el-input size="mini" v-model="filter.hisName" placeholder="请输入" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -62,12 +72,12 @@
|
|
</el-table-column>
|
|
</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.status == 0?'禁用':'启用'}}</span>
|
|
|
|
|
|
+ <span v-if="scope.row.uniqueName && scope.row.uniqueName!=''">{{scope.row.status == 0?'禁用':'启用'}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</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.source == 0?'禁用':'启用'}}</span>
|
|
|
|
|
|
+ <span v-if="scope.row.form && scope.row.form!=''">{{scope.row.formStatus == 0?'禁用':'启用'}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column :resizable="false" prop="operate" label="操作">
|
|
<el-table-column :resizable="false" prop="operate" label="操作">
|
|
@@ -130,13 +140,20 @@ export default {
|
|
filter: {
|
|
filter: {
|
|
hisName: '', // 医院诊断名称
|
|
hisName: '', // 医院诊断名称
|
|
uniqueName: '', //标准诊断名称
|
|
uniqueName: '', //标准诊断名称
|
|
- match: ''
|
|
|
|
|
|
+ match: '',
|
|
|
|
+ status:'',
|
|
|
|
+ formStatus:''
|
|
},
|
|
},
|
|
statusList: [
|
|
statusList: [
|
|
{ id: '', name: '全部' },
|
|
{ id: '', name: '全部' },
|
|
{ id: 1, name: '启用' },
|
|
{ id: 1, name: '启用' },
|
|
{ id: 0, name: '禁用' },
|
|
{ id: 0, name: '禁用' },
|
|
],
|
|
],
|
|
|
|
+ formstatusList: [
|
|
|
|
+ { id: '', name: '全部' },
|
|
|
|
+ { id: 1, name: '启用' },
|
|
|
|
+ { id: 0, name: '禁用' },
|
|
|
|
+ ],
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: config.pageSize,
|
|
pageSize: config.pageSize,
|
|
pageSizeArr: config.pageSizeArr,
|
|
pageSizeArr: config.pageSizeArr,
|
|
@@ -289,6 +306,7 @@ export default {
|
|
type: 5,
|
|
type: 5,
|
|
isMatch: this.filter.match,
|
|
isMatch: this.filter.match,
|
|
status: this.filter.status,
|
|
status: this.filter.status,
|
|
|
|
+ formStatus: this.filter.formStatus,
|
|
};
|
|
};
|
|
return param;
|
|
return param;
|
|
},
|
|
},
|
|
@@ -527,23 +545,44 @@ export default {
|
|
// }
|
|
// }
|
|
// });
|
|
// });
|
|
this.importDrugRecord(formData, header)
|
|
this.importDrugRecord(formData, header)
|
|
|
|
+ this.getDataList();
|
|
//解决上传相同文件不触发change
|
|
//解决上传相同文件不触发change
|
|
let inp = document.getElementById('upFile');
|
|
let inp = document.getElementById('upFile');
|
|
inp.value = '';
|
|
inp.value = '';
|
|
},
|
|
},
|
|
importDrugRecord(formData, header) {
|
|
importDrugRecord(formData, header) {
|
|
|
|
+ let taht = this
|
|
api.importDrugRecord(formData, header).then(res => {
|
|
api.importDrugRecord(formData, header).then(res => {
|
|
if (res.headers['content-disposition']) {
|
|
if (res.headers['content-disposition']) {
|
|
this.downloadUrl(res);
|
|
this.downloadUrl(res);
|
|
} else {
|
|
} else {
|
|
- this.$alert(`导入成功`, '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- // cancelButtonText: '取消',
|
|
|
|
- // cancelButtonClass: 'cancelSure',
|
|
|
|
- // confirmButtonClass: 'sure',
|
|
|
|
- // customClass: 'exportConfirm',
|
|
|
|
- type: 'success'
|
|
|
|
- });
|
|
|
|
|
|
+ let r = new FileReader();
|
|
|
|
+ r.onload = function() {
|
|
|
|
+ const code = JSON.parse(this.result);
|
|
|
|
+ if (code.code === '00020007') {
|
|
|
|
+ that
|
|
|
|
+ .$alert(`${code.msg}`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ // cancelButtonText: '取消',
|
|
|
|
+ // cancelButtonClass: 'cancelSure',
|
|
|
|
+ // confirmButtonClass: 'sure',
|
|
|
|
+ // customClass: 'exportConfirm',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ .then(() => {})
|
|
|
|
+ .catch(() => {});
|
|
|
|
+ } else {
|
|
|
|
+ that.$alert(`导入成功`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ // cancelButtonText: '取消',
|
|
|
|
+ // cancelButtonClass: 'cancelSure',
|
|
|
|
+ // confirmButtonClass: 'sure',
|
|
|
|
+ // customClass: 'exportConfirm',
|
|
|
|
+ type: 'success'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ };
|
|
|
|
+ r.readAsText(res.data);
|
|
}
|
|
}
|
|
// if ((res.data.code === '00020007')) {
|
|
// if ((res.data.code === '00020007')) {
|
|
// this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
|
|
// this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
|