|
@@ -1,6 +1,11 @@
|
|
|
<template>
|
|
|
<div class="AddChemicalAndCommonMappingWrapper clearfix" @click="close">
|
|
|
- <crumbs :title="isEdit ? '检验关联维护--修改关联' : '检验关联维护--添加关联'" class="topBack" :param="$route.params" linkTo="Lis"></crumbs>
|
|
|
+ <crumbs
|
|
|
+ :title="isEdit ? '检验关联维护--修改关联' : '检验关联维护--添加关联'"
|
|
|
+ class="topBack"
|
|
|
+ :param="$route.params"
|
|
|
+ linkTo="Lis"
|
|
|
+ ></crumbs>
|
|
|
<div class="AddChemicalAndCommonMappingBox clearfix">
|
|
|
<div class="titleBox clearfix">
|
|
|
<p class="title">医院术语</p>
|
|
@@ -9,7 +14,7 @@
|
|
|
<div class="leftBox clearfix">
|
|
|
<div class="itemLabel clearfix">
|
|
|
<label class="itemLabelName">检验套餐:</label>
|
|
|
- <input class="searchInput" type="text" v-model="hisName" v-on:input="handleInput"/>
|
|
|
+ <input class="searchInput" type="text" v-model="hisName" v-on:input="handleInput" />
|
|
|
<span class="searchInputInfo" v-if="isVila">请输入检验套餐名称</span>
|
|
|
</div>
|
|
|
<div class="itemLabel clearfix">
|
|
@@ -47,6 +52,15 @@
|
|
|
:key="hisName === '' ? item.uniqueName + item.name : item"
|
|
|
>{{hisName === '' ? item.name : item}}</li>
|
|
|
</ul>
|
|
|
+ <ul
|
|
|
+ v-else-if="showUniqueNameList&&uniqueNameList.length === 0"
|
|
|
+ class="itemList uniqueNameList"
|
|
|
+ >
|
|
|
+ <li class="mealNameItem ellipsis">无数据</li>
|
|
|
+ </ul>
|
|
|
+ <ul v-else-if=" isSendDataOver === 1" class="itemList uniqueNameList">
|
|
|
+ <li class="mealNameItem ellipsis">加载中.....</li>
|
|
|
+ </ul>
|
|
|
</div>
|
|
|
<div class="itemLabel">
|
|
|
<!-- <label class="itemLabelName isRequired">诊断名称预览:</label> -->
|
|
@@ -89,7 +103,8 @@ export default {
|
|
|
uniqueId: '' //公表项Id
|
|
|
},
|
|
|
saveDisable: false, //保存按钮禁止点击
|
|
|
- isVila: false
|
|
|
+ isVila: false,
|
|
|
+ isSendDataOver: 0 // 请求列表数据过程 0 发送请求前 1 请求过程 2请求结束
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -114,11 +129,11 @@ export default {
|
|
|
// 搜索
|
|
|
searchMealItem() {
|
|
|
const { hisName, hisDetailName } = this;
|
|
|
- // 1-化验大项、2-化验小项
|
|
|
- let type = 2;
|
|
|
+ this.isSendDataOver = 1; // 发送请求中
|
|
|
+ let type = 2; // 1-化验大项、2-化验小项
|
|
|
if (hisName !== '') {
|
|
|
type = 1;
|
|
|
- this.getAllLisConcept(type);
|
|
|
+ // this.getAllLisConcept(type);
|
|
|
}
|
|
|
this.getAllLisConcept(type);
|
|
|
},
|
|
@@ -136,6 +151,7 @@ export default {
|
|
|
}
|
|
|
api.retrievalSearch(params).then(res => {
|
|
|
if (res.data.code === '0') {
|
|
|
+ this.isSendDataOver = 2; //请求发送结束
|
|
|
this.uniqueNameList =
|
|
|
type === 1 ? res.data.data.lisNames : res.data.data.lisDetailNames;
|
|
|
this.showSearchList('showUniqueNameList');
|
|
@@ -188,10 +204,10 @@ export default {
|
|
|
this.hisDetailName = '';
|
|
|
},
|
|
|
|
|
|
- handleInput(){
|
|
|
+ handleInput() {
|
|
|
// console.log(event.target.value,'=============');
|
|
|
- if(event.target.value.length!== 0){
|
|
|
- this.isVila = false
|
|
|
+ if (event.target.value.length !== 0) {
|
|
|
+ this.isVila = false;
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -223,7 +239,7 @@ export default {
|
|
|
if (this.isEdit) {
|
|
|
params = { ...params, id: this.editId };
|
|
|
}
|
|
|
- this.saveLisMapping(params, '保存成功', 'success');
|
|
|
+ this.saveLisMapping(params, '保存成功', 'success');
|
|
|
} else {
|
|
|
// 已存在,提示修改
|
|
|
// this.showConfirmDialog('该关联已存在是否替换旧的关系信息', () => {
|
|
@@ -245,7 +261,7 @@ export default {
|
|
|
this.warning(res.data.msg || msg, type);
|
|
|
// this.$router.push({name: 'ChemicalAndCommonMapping'});
|
|
|
this.initForm();
|
|
|
- this.$router.push({
|
|
|
+ this.$router.push({
|
|
|
name: 'Lis',
|
|
|
params: Object.assign({}, this.$route.params, {
|
|
|
currentPage: 1
|