|
@@ -726,6 +726,7 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ console.log(screenArr);
|
|
this.$set(
|
|
this.$set(
|
|
this.form.klRuleByIdSub[index],
|
|
this.form.klRuleByIdSub[index],
|
|
"baseTermTypeList",
|
|
"baseTermTypeList",
|
|
@@ -913,6 +914,8 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
newGroupList = klRuleByIdSub;
|
|
newGroupList = klRuleByIdSub;
|
|
|
|
+ this.dragVal = null;
|
|
|
|
+ this.dragArr = null;
|
|
} else {
|
|
} else {
|
|
newGroupList = this.form.klRuleByIdSub.filter(
|
|
newGroupList = this.form.klRuleByIdSub.filter(
|
|
(item) => item.groupChildId != groupChildId
|
|
(item) => item.groupChildId != groupChildId
|
|
@@ -1018,17 +1021,23 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- childSubCodeChange(val, index, numTypes, groupId, key) {
|
|
|
|
|
|
+ childSubCodeChange(val, index, numTypes, groupId, key, code) {
|
|
const dragDel =
|
|
const dragDel =
|
|
localStorage
|
|
localStorage
|
|
.getItem("zskDragDict")
|
|
.getItem("zskDragDict")
|
|
.match(new RegExp(this.ruleTermCodeStrs, "g")) || [];
|
|
.match(new RegExp(this.ruleTermCodeStrs, "g")) || [];
|
|
const subobj = this.baseTypeList.find((it) => it.type == 1);
|
|
const subobj = this.baseTypeList.find((it) => it.type == 1);
|
|
let obj = this.form.klRuleByIdSub;
|
|
let obj = this.form.klRuleByIdSub;
|
|
|
|
+ let type;
|
|
const len = this.form.klRuleByIdSub.filter((item, i) => {
|
|
const len = this.form.klRuleByIdSub.filter((item, i) => {
|
|
return item.groupId == groupId;
|
|
return item.groupId == groupId;
|
|
});
|
|
});
|
|
const inx = key % 3 == 2 ? index - 1 : key % 3 == 1 ? index + 1 : index;
|
|
const inx = key % 3 == 2 ? index - 1 : key % 3 == 1 ? index + 1 : index;
|
|
|
|
+ if (key == 1 && len[2]) {
|
|
|
|
+ type = len[2].subLenCode == "" ? false : true;
|
|
|
|
+ } else if (key == 2) {
|
|
|
|
+ type = len[1].subLenCode == "" ? false : true;
|
|
|
|
+ }
|
|
//判断药品合理性总条数是否大于1条,是否存在第二条或第三条类型为1,存在触发互斥
|
|
//判断药品合理性总条数是否大于1条,是否存在第二条或第三条类型为1,存在触发互斥
|
|
if (
|
|
if (
|
|
//判断3条规则是否都已选中
|
|
//判断3条规则是否都已选中
|
|
@@ -1037,13 +1046,9 @@ export default {
|
|
index > 0 &&
|
|
index > 0 &&
|
|
key > 0
|
|
key > 0
|
|
) {
|
|
) {
|
|
- if (
|
|
|
|
- len.length == 3 &&
|
|
|
|
- len[1].subLenCode != "" &&
|
|
|
|
- len[2].subLenCode != ""
|
|
|
|
- ) {
|
|
|
|
|
|
+ if (len.length == 3 && type) {
|
|
//判断是否存在符合互斥条件的两条出具,若存在,置空另一条出具
|
|
//判断是否存在符合互斥条件的两条出具,若存在,置空另一条出具
|
|
- if (this.dragArr.indexOf(this.dragVal) > -1) {
|
|
|
|
|
|
+ if (code != "" && this.dragArr.indexOf(val) > -1) {
|
|
//剂型给药途径互斥判断
|
|
//剂型给药途径互斥判断
|
|
const arr = this.baseTypeList.filter((it) => {
|
|
const arr = this.baseTypeList.filter((it) => {
|
|
return it.type == 1;
|
|
return it.type == 1;
|