cyy
2024-06-17 d370e786bc369c3b161b20a4027ef989fa133208
pages/modal/5600.vue
@@ -479,6 +479,7 @@
         ClsID: 'CG_Detail',
         param: {},
         focusFieldId: "",
         focusOldFieldId: "",
         head_styledef: {
            form: {
               items: []
@@ -757,6 +758,7 @@
      ontap(index,item) { //扫码功能
         // var $ele = e;
         //console.log(e.target)
         this.focusOldFieldId = item.fieldId
         getApp().onScan((result) => {
            console.log(result.decodedata);
            item.value = result.decodedata;
@@ -780,7 +782,7 @@
            //        })
            //        .exec();
            // }
            console.log(item);
            //console.log(item);
            if (item.oldvalue != item.value) {
               item.oldvalue = item.value;
               var attr = item.fieldId;
@@ -977,9 +979,9 @@
                                 "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: '提示',
@@ -1072,9 +1074,16 @@
                                 }
                              }
                              else if (item.action_type == "set_dlg_current_edit_attr") {
                                 if($this.focusFieldId == item.value)
                                 if($this.focusOldFieldId == item.value)
                                 {
                                    $this.setData({focusFieldId: ""})
                                 }
                                 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"}
@@ -1921,9 +1930,14 @@
                              }
                           }
                           else if (item.action_type == "set_dlg_current_edit_attr") {
                              if($this.focusFieldId == item.value)
                              if($this.focusOldFieldId == item.value)
                                 $this.setData({focusFieldId: ""})
                              else{
                                 $this.setData({focusFieldId:$this.focusOldFieldId})
                              }
                              $this.$nextTick(()=> {
                              $this.setData({focusFieldId:item.value})
                              });
                           }
                        });
                     } else {