|
@@ -410,6 +410,29 @@ export default {
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
this.$set(item, "disabled", true);
|
|
this.$set(item, "disabled", true);
|
|
|
|
+ if (this.form.parLenCode == "108" && this.form.parRuleType == "8") {
|
|
|
|
+ const subobj = this.baseTypeList.find((it) => it.type == "2");
|
|
|
|
+ subobj.subMenuList.push({
|
|
|
|
+ code: "108",
|
|
|
|
+ creator: "0",
|
|
|
|
+ firstPlace: null,
|
|
|
|
+ gmtCreate: "1970-01-01 12:00:00",
|
|
|
|
+ gmtModified: "1970-01-01 12:00:00",
|
|
|
|
+ id: 27106,
|
|
|
|
+ isDeleted: "N",
|
|
|
|
+ modifier: "0",
|
|
|
|
+ name: "实验室检查子项目",
|
|
|
|
+ number: null,
|
|
|
|
+ orderNo: 1,
|
|
|
|
+ parentId: 27103,
|
|
|
|
+ planCode: "rule",
|
|
|
|
+ remark: "",
|
|
|
|
+ ruleType: 8,
|
|
|
|
+ subMenuList: [],
|
|
|
|
+ type: null,
|
|
|
|
+ });
|
|
|
|
+ this.$set(item, "baseTermTypeList", subobj.subMenuList);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const dragDel =
|
|
const dragDel =
|
|
@@ -626,6 +649,30 @@ export default {
|
|
const subobj = this.baseTypeList.find(
|
|
const subobj = this.baseTypeList.find(
|
|
(it) => it.type == types[2]
|
|
(it) => it.type == types[2]
|
|
);
|
|
);
|
|
|
|
+ if (
|
|
|
|
+ this.form.parLenCode == "108" &&
|
|
|
|
+ this.form.parRuleType == "8"
|
|
|
|
+ ) {
|
|
|
|
+ subobj.subMenuList.push({
|
|
|
|
+ code: "108",
|
|
|
|
+ creator: "0",
|
|
|
|
+ firstPlace: null,
|
|
|
|
+ gmtCreate: "1970-01-01 12:00:00",
|
|
|
|
+ gmtModified: "1970-01-01 12:00:00",
|
|
|
|
+ id: 27106,
|
|
|
|
+ isDeleted: "N",
|
|
|
|
+ modifier: "0",
|
|
|
|
+ name: "实验室检查子项目",
|
|
|
|
+ number: null,
|
|
|
|
+ orderNo: 1,
|
|
|
|
+ parentId: 27103,
|
|
|
|
+ planCode: "rule",
|
|
|
|
+ remark: "",
|
|
|
|
+ ruleType: 8,
|
|
|
|
+ subMenuList: [],
|
|
|
|
+ type: null,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
this.$set(item, "baseTermTypeList", subobj.subMenuList);
|
|
this.$set(item, "baseTermTypeList", subobj.subMenuList);
|
|
this.$set(item, "subLenCode", types[1]);
|
|
this.$set(item, "subLenCode", types[1]);
|
|
this.$set(item, "subDescription", this.firstPlace.conceptName);
|
|
this.$set(item, "subDescription", this.firstPlace.conceptName);
|
|
@@ -770,6 +817,11 @@ export default {
|
|
return !types[3].includes(item.code);
|
|
return !types[3].includes(item.code);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ if (this.form.parLenCode == "108" && this.form.parRuleType == "8") {
|
|
|
|
+ const subobj = this.baseTypeList.find((it) => it.type == "2");
|
|
|
|
+ subobj.subMenuList.splice(1, 1);
|
|
|
|
+ this.$set(obj, "baseTermTypeList", subobj.subMenuList);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.$set(
|
|
this.$set(
|
|
this.form.klRuleByIdSub[index],
|
|
this.form.klRuleByIdSub[index],
|
|
@@ -801,7 +853,7 @@ export default {
|
|
// this.form.klRuleByIdSub = data;
|
|
// this.form.klRuleByIdSub = data;
|
|
},
|
|
},
|
|
// 添加分组 || 规则
|
|
// 添加分组 || 规则
|
|
- addGroup(date, key, arg = { index: null, groupId: null }) {
|
|
|
|
|
|
+ addGroup(date, key, arg = { index: null, groupId: null },index) {
|
|
/**
|
|
/**
|
|
* @params
|
|
* @params
|
|
* date:存在则添加规则 不存在则添加分组
|
|
* date:存在则添加规则 不存在则添加分组
|
|
@@ -828,7 +880,33 @@ export default {
|
|
subLenCode: "",
|
|
subLenCode: "",
|
|
dataType: "",
|
|
dataType: "",
|
|
};
|
|
};
|
|
-
|
|
|
|
|
|
+ if (
|
|
|
|
+ this.form.parLenCode == "108" &&
|
|
|
|
+ this.form.parRuleType == "8" &&
|
|
|
|
+ index == "1"
|
|
|
|
+ ) {
|
|
|
|
+ const subobj = this.baseTypeList.find((it) => it.type == "2");
|
|
|
|
+ subobj.subMenuList.push({
|
|
|
|
+ code: "108",
|
|
|
|
+ creator: "0",
|
|
|
|
+ firstPlace: null,
|
|
|
|
+ gmtCreate: "1970-01-01 12:00:00",
|
|
|
|
+ gmtModified: "1970-01-01 12:00:00",
|
|
|
|
+ id: 27106,
|
|
|
|
+ isDeleted: "N",
|
|
|
|
+ modifier: "0",
|
|
|
|
+ name: "实验室检查子项目",
|
|
|
|
+ number: null,
|
|
|
|
+ orderNo: 1,
|
|
|
|
+ parentId: 27103,
|
|
|
|
+ planCode: "rule",
|
|
|
|
+ remark: "",
|
|
|
|
+ ruleType: 8,
|
|
|
|
+ subMenuList: [],
|
|
|
|
+ type: null,
|
|
|
|
+ });
|
|
|
|
+ this.$set(obj, "baseTermTypeList", subobj.subMenuList);
|
|
|
|
+ }
|
|
if (typeof arg.index == "number") {
|
|
if (typeof arg.index == "number") {
|
|
// 添加规则 直接在当前位置之后添加
|
|
// 添加规则 直接在当前位置之后添加
|
|
this.form.klRuleByIdSub.splice(arg.index + 1, 0, obj);
|
|
this.form.klRuleByIdSub.splice(arg.index + 1, 0, obj);
|