|
@@ -47,10 +47,10 @@
|
|
|
<li
|
|
|
v-for="item in uniqueNameList"
|
|
|
class="mealNameItem ellipsis"
|
|
|
- :title="hisName === '' ? item.name : item"
|
|
|
+ :title="searchType === 2 ? `${item.uniqueName}(${item.uniqueName})` : item"
|
|
|
@click="selectUniqueName(item)"
|
|
|
- :key="hisName === '' ? item.uniqueName + item.name : item"
|
|
|
- >{{hisName === '' ? item.name : item}}</li>
|
|
|
+ :key="searchType === 2? `${item.uniqueName}(${item.uniqueName})` + item.name : item"
|
|
|
+ >{{searchType === 2 ? `${item.uniqueName}(${item.uniqueName})` : item}}</li>
|
|
|
</ul>
|
|
|
<ul
|
|
|
v-else-if="showUniqueNameList&&uniqueNameList.length === 0"
|
|
@@ -104,7 +104,8 @@ export default {
|
|
|
},
|
|
|
saveDisable: false, //保存按钮禁止点击
|
|
|
isVila: false,
|
|
|
- isSendDataOver: 0 // 请求列表数据过程 0 发送请求前 1 请求过程 2请求结束
|
|
|
+ isSendDataOver: 0, // 请求列表数据过程 0 发送请求前 1 请求过程 2请求结束
|
|
|
+ searchType: 2
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -131,15 +132,17 @@ export default {
|
|
|
const { hisName, hisDetailName } = this;
|
|
|
this.isSendDataOver = 1; // 发送请求中
|
|
|
let type = 2; // 1-化验大项、2-化验小项
|
|
|
- if (hisName !== '') {
|
|
|
+ if (hisName !== '' && hisDetailName === '') {
|
|
|
+ console.log('type');
|
|
|
type = 1;
|
|
|
+ this.searchType = 1
|
|
|
// this.getAllLisConcept(type);
|
|
|
}
|
|
|
this.getAllLisConcept(type);
|
|
|
},
|
|
|
// 标准术语搜索列表
|
|
|
getAllLisConcept(type) {
|
|
|
- // console.log(type ,type,'================');
|
|
|
+ console.log(type, type, '================');
|
|
|
let params = {
|
|
|
type: type, //手术/操作
|
|
|
inputStr: this.uniqueText,
|
|
@@ -150,6 +153,7 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
api.retrievalSearch(params).then(res => {
|
|
|
+ console.log(res,'================res');
|
|
|
if (res.data.code === '0') {
|
|
|
this.isSendDataOver = 2; //请求发送结束
|
|
|
this.uniqueNameList =
|
|
@@ -215,8 +219,10 @@ export default {
|
|
|
submitForm() {
|
|
|
const { hisName, hisDetailName } = this;
|
|
|
const { uniqueName } = this.form;
|
|
|
- if (!hisName || !uniqueName) {
|
|
|
+ if (!hisName) {
|
|
|
this.isVila = true;
|
|
|
+ }
|
|
|
+ if (!hisName || !uniqueName) {
|
|
|
this.warning('请填写相关数据');
|
|
|
return;
|
|
|
}
|