| | |
| | | //console.log(e.target) |
| | | getApp().onScan((result) => { |
| | | console.log(result.decodedata); |
| | | item.value = result.decodedata |
| | | let newVal = item.value |
| | | if (typeof item.value == "string") { |
| | | newVal = item.value.trim() |
| | | } |
| | | var isflag = true; |
| | | for (var i in this.$data.subPanelList) { |
| | | if (this.$data.subPanelList[i].scanCodeVal == result.decodedata) |
| | | if (this.$data.subPanelList[i].scanCodeVal == newVal) |
| | | isflag = false; |
| | | } |
| | | //子数据类扫码查询数据 |
| | | if (isflag) { |
| | | uni.hideKeyboard(); |
| | | this.$data.scanCodeVal = result.decodedata; |
| | | this.$data.scanCodeVal =newVal; |
| | | var eventid = this.$data.param.Scan_Code.Input_Change_Event.ID; |
| | | if (eventid) { |
| | | //主数据类属性 |