Pārlūkot izejas kodu

药品开单合理性

1178232204@qq.com 3 gadi atpakaļ
vecāks
revīzija
7983802a54
1 mainītis faili ar 10 papildinājumiem un 3 dzēšanām
  1. 10 3
      src/components/knowledgeExtra/AddNewRule.vue

+ 10 - 3
src/components/knowledgeExtra/AddNewRule.vue

@@ -348,7 +348,6 @@ export default {
         } else if (item.subEqValue) {
           item.dataType = '2';
         }
-
         // disable
         if (this.form.parHasSub && this.firstPlace) {
           if (arr[i - 1] && arr[i - 1].groupId == item.groupId) {
@@ -802,10 +801,18 @@ export default {
         localStorage
           .getItem('zskDragDict')
           .match(new RegExp(this.ruleTermCodeStrs, 'g')) || [];
-      if (dragDel.length > 0 && index == 1 && this.form.klRuleByIdSub.length == 3 && this.form.klRuleByIdSub[2].subType == 1) {
+          console.log(val);
+          
+      if (dragDel.length > 0 && index == 1 && this.form.klRuleByIdSub.length == 3 && this.form.klRuleByIdSub[index+1].subType == 1) {
         const klRuleByIdSub = this.form.klRuleByIdSub[index+1]
         klRuleByIdSub.baseTermTypeList.filter(it=>{
-          console.log(it.remark.split('|')[1]);
+          const drag = it.remark.split('|')[1].split(',')
+          const arr = drag.filter(item=>{
+            console.log(item);
+            
+            return item = val
+          })
+          console.log(arr);
         })
       }
       if (dragDel.length > 0 && index == 1) {