| | |
| | | }); |
| | | }); |
| | | // 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; |
| | |
| | | }); |
| | | }); |
| | | // 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){ |
| | |
| | | } |
| | | }); |
| | | //清除正在码盘中成功的数据 |
| | | $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"){ //刷新 |