cuiqian2004
2025-03-20 d8872903e30f0a53abefcd279ae03258341e931f
pages/modal/3037_2.vue
@@ -1073,15 +1073,20 @@
            //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) {
                     //主数据类属性