|
@@ -662,6 +662,7 @@ export default {
|
|
|
let dragType = false;
|
|
|
let isDel = false;
|
|
|
let screenArr;
|
|
|
+ let type
|
|
|
//药品开单合理判断
|
|
|
if (dragDel.length > 0) {
|
|
|
dragType = true;
|
|
@@ -669,7 +670,12 @@ export default {
|
|
|
const arr = this.form.klRuleByIdSub.filter((item, i) => {
|
|
|
return item.groupId == groupId;
|
|
|
});
|
|
|
- if (this.dragArr && arr.length == 3 && key != 0) {
|
|
|
+ if (key == 1 && arr[2]) {
|
|
|
+ type = arr[2].subLenCode == "" ? false : true;
|
|
|
+ } else if (key == 2) {
|
|
|
+ type = arr[1].subLenCode == "" ? false : true;
|
|
|
+ }
|
|
|
+ if (this.dragArr && arr.length == 3 && key != 0 && type) {
|
|
|
//获取互斥项code
|
|
|
const list = obj.subMenuList.filter((it) => {
|
|
|
return it.code == this.dragVal && it.remark.split("|")[0] == 3;
|
|
@@ -816,7 +822,9 @@ export default {
|
|
|
this.dragVal = len[1].subLenCode;
|
|
|
const subobj = this.baseTypeList.find((it) => it.type == 1);
|
|
|
const list = subobj.subMenuList.filter((it) => {
|
|
|
- return it.code == len[1].subLenCode && it.remark.split("|")[0] == 3;
|
|
|
+ return (
|
|
|
+ it.code == len[1].subLenCode && it.remark.split("|")[0] == 3
|
|
|
+ );
|
|
|
});
|
|
|
// //获取互斥项code
|
|
|
const dragArr = list[0].remark.split("|")[1].split(",");
|