|
@@ -143,7 +143,7 @@
|
|
|
</div>
|
|
|
<div class="mapList">
|
|
|
已关联标准术语:
|
|
|
- <span v-for="item in mapList" :key="item.id">{{item.hisName}};</span>
|
|
|
+ <span v-for="item in mapList" :key="item.id">{{item.uniqueName}};</span>
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
<button class="confirm btns" :disabled="saveDisable" @click="submitForm">确定</button>
|
|
@@ -168,7 +168,8 @@ export default {
|
|
|
hisDetailName: '',
|
|
|
formConceptId: '',
|
|
|
conceptId: '',
|
|
|
- form: ''
|
|
|
+ form: '',
|
|
|
+ source:''
|
|
|
},
|
|
|
showDrop: false, //下拉框显示文字
|
|
|
saveDisable: false, //保存按钮禁止点击
|
|
@@ -182,8 +183,6 @@ export default {
|
|
|
{ required: true, message: '请选择' + this.meal, trigger: 'change' }
|
|
|
]
|
|
|
},
|
|
|
- ty: this.type,
|
|
|
- searchType: '',
|
|
|
isEdit: false,
|
|
|
editId: '',
|
|
|
drugList: [],
|
|
@@ -199,10 +198,11 @@ export default {
|
|
|
this.editId = this.data.id;
|
|
|
this.form.hisName = this.data.hisName;
|
|
|
this.form.searchText = this.data.uniqueName;
|
|
|
- this.form.icdCode = this.data.icdCode;
|
|
|
+ this.form.icdCode = this.data.code;
|
|
|
this.form.conceptId = this.data.conceptId;
|
|
|
this.form.formConceptId = this.data.formConceptId;
|
|
|
this.form.form = this.data.form;
|
|
|
+ this.form.source = this.data.source;
|
|
|
this.getTermMatching();
|
|
|
this.getRelatedMapping();
|
|
|
}
|
|
@@ -224,11 +224,14 @@ export default {
|
|
|
this.form.searchText = '';
|
|
|
this.form.conceptId = '';
|
|
|
this.form.icdCode = '';
|
|
|
+ this.form.source = '';
|
|
|
} else {
|
|
|
this.getIndex = row.index;
|
|
|
this.form.searchText = row.name;
|
|
|
this.form.conceptId = row.id;
|
|
|
this.form.icdCode = row.code;
|
|
|
+ this.form.source = row.source;
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
// 搜索列表
|
|
@@ -237,17 +240,9 @@ export default {
|
|
|
this.uniqueNameList = [];
|
|
|
return;
|
|
|
}
|
|
|
- if (this.type == 1) {
|
|
|
- const { hisName, hisDetailName } = this.form;
|
|
|
- this.ty = 2; // 1-化验大项、2-化验小项
|
|
|
- if (hisName !== '' && hisDetailName === '') {
|
|
|
- this.ty = 1;
|
|
|
- }
|
|
|
- this.searchType = this.ty;
|
|
|
- }
|
|
|
this.showDrop = true;
|
|
|
let params = {
|
|
|
- type: this.ty ? this.ty : this.type,
|
|
|
+ type: this.type,
|
|
|
inputStr: query,
|
|
|
sex: 3,
|
|
|
age: 0
|
|
@@ -255,11 +250,7 @@ export default {
|
|
|
api.retrievalSearch(params).then(res => {
|
|
|
this.showDrop = false;
|
|
|
if (res.data.code === '0') {
|
|
|
- if (this.ty == 2 && this.ty) {
|
|
|
- this.uniqueNameList = res.data.data.lisDetailNames;
|
|
|
- } else {
|
|
|
- this.uniqueNameList = res.data.data.nameList;
|
|
|
- }
|
|
|
+ this.uniqueNameList = res.data.data.nameList;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -287,14 +278,8 @@ export default {
|
|
|
},
|
|
|
getRelatedMapping() {
|
|
|
const { hisName, hisDetailName } = this.form;
|
|
|
- if (this.type == 1) {
|
|
|
- this.ty = 2; // 1-化验大项、2-化验小项
|
|
|
- if (hisName !== '' && hisDetailName === '') {
|
|
|
- this.ty = 1;
|
|
|
- }
|
|
|
- }
|
|
|
let params = {
|
|
|
- type: this.ty ? this.ty : this.type,
|
|
|
+ type: this.type,
|
|
|
hisDetailName: hisDetailName,
|
|
|
hisName: hisName
|
|
|
};
|
|
@@ -327,7 +312,7 @@ export default {
|
|
|
},
|
|
|
getTermMatching() {
|
|
|
let params = {
|
|
|
- type: this.ty ? this.ty : this.type,
|
|
|
+ type: this.type,
|
|
|
inputStr: this.form.hisName
|
|
|
};
|
|
|
api.getTermMatching(params).then(res => {
|
|
@@ -347,24 +332,10 @@ export default {
|
|
|
hisDetailName,
|
|
|
icdCode,
|
|
|
conceptId,
|
|
|
- formConceptId
|
|
|
+ formConceptId,
|
|
|
+ source
|
|
|
} = this.form;
|
|
|
// 当标准术语是套餐时,细项必须为空
|
|
|
- if (this.searchType === 1 && hisDetailName !== '') {
|
|
|
- this.warning('医院术语与标准术语类型不匹配,请修改');
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- // 当标准术语是细项时,医院术语套餐和细项均不能为空
|
|
|
- if (this.searchType === 2) {
|
|
|
- if (hisName === '') {
|
|
|
- this.warning('医院术语与标准术语类型不匹配,请修改');
|
|
|
- return;
|
|
|
- } else if (hisDetailName === '') {
|
|
|
- this.warning('医院术语与标准术语类型不匹配,请修改');
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
let params = {
|
|
|
hisName: hisName,
|
|
|
uniqueName: searchText,
|
|
@@ -372,6 +343,7 @@ export default {
|
|
|
type: this.type,
|
|
|
conceptId: conceptId,
|
|
|
formConceptId: formConceptId,
|
|
|
+ source: source?source:1
|
|
|
};
|
|
|
this.showSaveDialog(params);
|
|
|
} else {
|
|
@@ -414,6 +386,7 @@ export default {
|
|
|
this.form.hisDetailName = '';
|
|
|
this.form.form = '';
|
|
|
this.form.conceptId = '';
|
|
|
+ this.form.source = ''
|
|
|
},
|
|
|
// 映射关系不存在-建立关联
|
|
|
saveLisMapping(params, msg, type) {
|