| | |
| | | ClsID2: "Sorting_Result", |
| | | param: {}, |
| | | focusFieldId:"", |
| | | focusOldFieldId:"", |
| | | head_styledef:{ |
| | | form:{ |
| | | items:[] |
| | |
| | | |
| | | ontap(index,item){ //扫码功能 |
| | | // var $ele = e; |
| | | this.focusOldFieldId = item.fieldId |
| | | getApp().onScan((result)=>{ |
| | | console.log(result.decodedata); |
| | | item.value = result.decodedata; |
| | |
| | | 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: '系统检测到有待分拣中的数据,继续操作会清空,是否继续?', |
| | |
| | | } |
| | | } |
| | | 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"} |
| | |
| | | } 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: '系统检测到有待分拣中的数据,继续操作会清空,是否继续?', |
| | |
| | | } |
| | | } |
| | | 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; |