| | |
| | | //console.log(e.target) |
| | | this.focusOldFieldId = item.fieldId |
| | | getApp().onScan(async (result) => { |
| | | console.log(result.decodedata); |
| | | item.value = result.decodedata; |
| | | console.log(result); |
| | | item.value = result; |
| | | var $this = this; |
| | | let newVal = item.value.trim() |
| | | if (newVal) { |
| | |
| | | return; |
| | | } |
| | | var styleStr = JSON.stringify(pageData.StyleDef); |
| | | var detailStyle = JSON.parse(styleStr); |
| | | if (detailStyle.form) { |
| | | data.content.forEach(cont => { |
| | | detailStyle = JSON.parse(styleStr); |
| | | |
| | | data.content.forEach(cont => { |
| | | var detailStyle = JSON.parse(styleStr); |
| | | if (detailStyle.form) { |
| | | detailStyle.SelBut_Checked = data.checkbox ?? true; |
| | | |
| | | detailStyle.form.objId = cont.id; |
| | |
| | | } |
| | | // $this.setData({pageDetail:pageD}) |
| | | $this.$set(this.pageDetail, pageIndex, pageData) |
| | | } |
| | | }); |
| | | |
| | | }); |
| | | } |
| | | $this.$set(this.pageDetail, pageIndex, pageData) |
| | | }, |
| | | setFormValues(attrs) { |