|
@@ -80,9 +80,9 @@
|
|
<el-option
|
|
<el-option
|
|
v-for="item in uniqueNameList"
|
|
v-for="item in uniqueNameList"
|
|
:key="item.icd10Code"
|
|
:key="item.icd10Code"
|
|
- :label="item.name"
|
|
|
|
- :value="item"
|
|
|
|
- :title="item.name"
|
|
|
|
|
|
+ :label="searchType == 2 ? `${item.uniqueName}(${item.name})` : item.name"
|
|
|
|
+ :value="searchType == 2 ? `${item.uniqueName}` : item"
|
|
|
|
+ :title="searchType == 2 ? `${item.uniqueName}(${item.name})` : item.name"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -231,17 +231,25 @@ export default {
|
|
this.form.form = this.data.form;
|
|
this.form.form = this.data.form;
|
|
this.form.source = this.data.source;
|
|
this.form.source = this.data.source;
|
|
this.form.hisCode = this.data.hisCode;
|
|
this.form.hisCode = this.data.hisCode;
|
|
- let name
|
|
|
|
- if (this.data.hisName !== '' && this.data.hisDetailName === '' && this.type == 1) {
|
|
|
|
|
|
+ let name;
|
|
|
|
+ if (
|
|
|
|
+ this.data.hisName !== '' &&
|
|
|
|
+ this.data.hisDetailName === '' &&
|
|
|
|
+ this.type == 1
|
|
|
|
+ ) {
|
|
this.ty = 1; // 1-化验大项、2-化验小项
|
|
this.ty = 1; // 1-化验大项、2-化验小项
|
|
this.searchType = 1;
|
|
this.searchType = 1;
|
|
name = this.data.hisName;
|
|
name = this.data.hisName;
|
|
- } else if (this.data.hisName !== '' && this.data.hisDetailName !== '' && this.type == 1) {
|
|
|
|
|
|
+ } else if (
|
|
|
|
+ this.data.hisName !== '' &&
|
|
|
|
+ this.data.hisDetailName !== '' &&
|
|
|
|
+ this.type == 1
|
|
|
|
+ ) {
|
|
this.ty = 2;
|
|
this.ty = 2;
|
|
this.searchType = 2;
|
|
this.searchType = 2;
|
|
name = this.data.hisDetailName;
|
|
name = this.data.hisDetailName;
|
|
}
|
|
}
|
|
- this.getTermMatching(this.ty,name);
|
|
|
|
|
|
+ this.getTermMatching(this.ty, name);
|
|
this.getRelatedMapping();
|
|
this.getRelatedMapping();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -360,7 +368,7 @@ export default {
|
|
handleFocus() {},
|
|
handleFocus() {},
|
|
onblur() {
|
|
onblur() {
|
|
let type, name;
|
|
let type, name;
|
|
- const { hisName, hisDetailName } = this.form;
|
|
|
|
|
|
+ const { hisName, hisDetailName } = this.form;
|
|
if (this.type == 1) {
|
|
if (this.type == 1) {
|
|
type = 1; // 1-化验大项、2-化验小项
|
|
type = 1; // 1-化验大项、2-化验小项
|
|
name = hisName;
|
|
name = hisName;
|
|
@@ -369,13 +377,6 @@ export default {
|
|
name = hisDetailName;
|
|
name = hisDetailName;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (hisName !== '' && hisDetailName === '') {
|
|
|
|
- type = 1; // 1-化验大项、2-化验小项
|
|
|
|
- name = hisName;
|
|
|
|
- } else if (hisName !== '' && hisDetailName !== '') {
|
|
|
|
- type = 2;
|
|
|
|
- name = hisDetailName;
|
|
|
|
- }
|
|
|
|
this.getTermMatching(type, name);
|
|
this.getTermMatching(type, name);
|
|
},
|
|
},
|
|
getTermMatching(type, name) {
|
|
getTermMatching(type, name) {
|