|
@@ -149,7 +149,10 @@
|
|
|
</div>
|
|
|
<div class="mapList">
|
|
|
已关联标准术语:
|
|
|
- <span v-for="item in mapList" :key="item.id">{{item.uniqueName}} {{item.form}};</span>
|
|
|
+ <span
|
|
|
+ v-for="item in mapList"
|
|
|
+ :key="item.id"
|
|
|
+ >{{item.uniqueName}} {{item.form}};</span>
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
<button class="confirm btns" :disabled="saveDisable" @click="submitForm">确定</button>
|
|
@@ -225,7 +228,11 @@ export default {
|
|
|
this.form.form = this.data.form;
|
|
|
this.form.source = this.data.source;
|
|
|
this.form.hisCode = this.data.hisCode;
|
|
|
- this.searchType = this.type
|
|
|
+ if (this.data.hisDetailName != '') {
|
|
|
+ this.searchType = 2;
|
|
|
+ }else{
|
|
|
+ this.searchType = 1;
|
|
|
+ }
|
|
|
this.getTermMatching();
|
|
|
this.getRelatedMapping();
|
|
|
}
|
|
@@ -235,7 +242,7 @@ export default {
|
|
|
if (this.getIndex === rowIndex) {
|
|
|
return {
|
|
|
'background-color': '#ECF9FB',
|
|
|
- 'color':'#48C5D7'
|
|
|
+ color: '#48C5D7'
|
|
|
};
|
|
|
}
|
|
|
},
|
|
@@ -345,22 +352,22 @@ export default {
|
|
|
// 获取焦点
|
|
|
handleFocus() {},
|
|
|
onblur() {
|
|
|
- let type,name
|
|
|
+ let type, name;
|
|
|
if (this.type == 1) {
|
|
|
const { hisName, hisDetailName } = this.form;
|
|
|
type = 1; // 1-化验大项、2-化验小项
|
|
|
- name = hisName
|
|
|
+ name = hisName;
|
|
|
if (hisName !== '' && hisDetailName !== '') {
|
|
|
type = 2;
|
|
|
- name = hisDetailName
|
|
|
+ name = hisDetailName;
|
|
|
}
|
|
|
}
|
|
|
- this.getTermMatching(type,name);
|
|
|
+ this.getTermMatching(type, name);
|
|
|
},
|
|
|
- getTermMatching(type,name) {
|
|
|
+ getTermMatching(type, name) {
|
|
|
let params = {
|
|
|
type: type ? type : this.type,
|
|
|
- inputStr: name ? name :this.form.hisName
|
|
|
+ inputStr: name ? name : this.form.hisName
|
|
|
};
|
|
|
api.getTermMatching(params).then(res => {
|
|
|
this.showDrop = false;
|
|
@@ -385,6 +392,7 @@ export default {
|
|
|
source
|
|
|
} = this.form;
|
|
|
// 当标准术语是套餐时,细项必须为空
|
|
|
+ console.log(this.searchType);
|
|
|
if (this.searchType === 1 && hisDetailName !== '') {
|
|
|
this.warning('医院术语与标准术语类型不匹配,请修改');
|
|
|
return;
|
|
@@ -487,7 +495,8 @@ export default {
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
message: msg,
|
|
|
- type: type || 'warning'
|
|
|
+ type: type || 'warning',
|
|
|
+ duration: '1000'
|
|
|
});
|
|
|
},
|
|
|
closeModal() {
|
|
@@ -618,11 +627,12 @@ export default {
|
|
|
.titleBox {
|
|
|
padding: 0 0 10px 0px;
|
|
|
}
|
|
|
-/deep/.el-table th{
|
|
|
- background: #F7F7F7;
|
|
|
+/deep/.el-table th {
|
|
|
+ background: #f7f7f7;
|
|
|
}
|
|
|
-/deep/ .el-table td, .el-table th.is-leaf{
|
|
|
- border-bottom:none
|
|
|
+/deep/ .el-table td,
|
|
|
+.el-table th.is-leaf {
|
|
|
+ border-bottom: none;
|
|
|
}
|
|
|
.title-l {
|
|
|
font-size: 14px;
|