cyy
2024-06-17 d370e786bc369c3b161b20a4027ef989fa133208
pages/modal/5602.vue
@@ -410,6 +410,7 @@
      ClsID2: "Sorting_Result",
      param: {},
     focusFieldId:"",
     focusOldFieldId:"",
     head_styledef:{
      form:{
         items:[]
@@ -642,6 +643,7 @@
   
   ontap(index,item){ //扫码功能
      // var $ele = e;
      this.focusOldFieldId = item.fieldId
      getApp().onScan((result)=>{
         console.log(result.decodedata);
         item.value = result.decodedata;
@@ -829,7 +831,7 @@
                        else if(item.action_type == "set_subtable_page_content"){  //已分拣
                           $this.$data.param.Show_Welcom_Page=false;
                           var value = item.value;
                           if(value.clear == true && $this.$data.detail1StyleDefList.length>0 && value.page_name == $this.$data.param.Sub_Page[0].Name){ //判断是否清空页签内容,正在分拣是否有数据
                           if( value.clear_confirm != false && value.clear == true && $this.$data.detail1StyleDefList.length>0 && value.page_name == $this.$data.param.Sub_Page[0].Name){ //判断是否清空页签内容,正在分拣是否有数据
                              uni.showModal({
                                 title: '提示',
                                 content: '系统检测到有待分拣中的数据,继续操作会清空,是否继续?',
@@ -910,9 +912,14 @@
                           }
                        }
                        else if (item.action_type == "set_dlg_current_edit_attr") {
                           if($this.focusFieldId == item.value)
                           if($this.focusOldFieldId == item.value)
                              $this.setData({focusFieldId: ""})
                           $this.setData({focusFieldId:item.value})
                           else{
                              $this.setData({focusFieldId:$this.focusOldFieldId})
                           }
                           $this.$nextTick(()=> {
                              $this.setData({focusFieldId:item.value})
                           });
                        }
                        else if(item.action_type == "set_dlg_attr"){
                          // value = {"attr":"xxx", "value":"xxx"}
@@ -1623,7 +1630,7 @@
                    } else if(item.action_type == "set_subtable_page_content"){  //加载多条数据
                     $this.param.Show_Welcom_Page=false;
                     var value = item.value;
                     if(value.clear == true && $this.detail1StyleDefList.length>0){ //判断是否清空页签内容,待分拣是否有数据
                     if(value.clear_confirm != false && value.clear == true && $this.detail1StyleDefList.length>0){ //判断是否清空页签内容,待分拣是否有数据
                        uni.showModal({
                           title: '提示',
                           content: '系统检测到有待分拣中的数据,继续操作会清空,是否继续?',
@@ -1672,9 +1679,14 @@
                       }
                    }
                    else if (item.action_type == "set_dlg_current_edit_attr") {
                       if($this.focusFieldId == item.value)
                     if($this.focusOldFieldId == item.value)
                        $this.setData({focusFieldId: ""})
                       $this.setData({focusFieldId:item.value})
                     else{
                        $this.setData({focusFieldId:$this.focusOldFieldId})
                     }
                     $this.$nextTick(()=> {
                        $this.setData({focusFieldId:item.value})
                     });
                    }
                    else if(item.action_type == "refresh"){  //刷新
                      var value = item.value;