cuiqian2004
2024-06-11 b7aeb1865574584d70e61a4b72bb00b87f12f479
pages/modal/5600.vue
@@ -1161,9 +1161,10 @@
          });
      });
      // console.log(jsonlist);
      jsonlist.forEach(async (json,key)=>{
         await $this.runCustomEvent(event,input_param,json,'1');
      });
      $this.runCustomEvent(event,input_param,jsonlist,'1');
      // jsonlist.forEach(async (json,key)=>{
      //    await $this.runCustomEvent(event,input_param,json,'1');
      // });
   },
    ok2(){
        this.Before_OK_Event = this.param.Sub_Page[1].Before_ok;
@@ -1246,9 +1247,10 @@
           });
       });
       // console.log(jsonlist);
       jsonlist.forEach(async (json,key)=>{
          await $this.runCustomEvent(event,input_param,json,'2');
       });
      $this.runCustomEvent(event,input_param,jsonlist,'2');
       // jsonlist.forEach(async (json,key)=>{
       //    await $this.runCustomEvent(event,input_param,json,'2');
       // });
    },
    //执行确定脚本
    async runCustomEvent(event,input_param,json,type){
@@ -1305,12 +1307,12 @@
                        }
                     });
                     //清除正在码盘中成功的数据
                     $this.$data.detail1StyleDefList.forEach((style,index)=>{
                       if(style.form.items[0].fieldId == json.attrs[0].attr && style.form.items[0].value == json.attrs[0].value){
                        $this.$data.detail1StyleDefList.splice(index,1);
                        return;
                       }
                     });
                     // $this.$data.detail1StyleDefList.forEach((style,index)=>{
                     //   if(style.form.items[0].fieldId == json.attrs[0].attr && style.form.items[0].value == json.attrs[0].value){
                     //    $this.$data.detail1StyleDefList.splice(index,1);
                     //    return;
                     //   }
                     // });
                     // this.detail2StyleDefList=[];
                     uni.showModal({title:"提示",content:"码盘成功",showCancel:false,confirmText:"取消"});
                   //  } else if(item.action_type == "refresh"){  //刷新