#
whycq
2024-04-15 d3e9d00e6b73a2f7d782e16975239f6e166ccdc9
pages/phyz/checkLocDetl/checkLocDetl.vue
@@ -65,7 +65,6 @@
            bay1: '',
            lev1: '',
            dataList: [],
         }
      },
      onLoad() {
@@ -140,6 +139,31 @@
         },
         goToLocDetl() {
            this.$refs.check.open()
         },
         checkClose() {
            this.$refs.check.close()
         },
         checkConfirm() {
            let _this = this
            let param = {
               barcode : _this.barcode,
               locNo : _this.locNo
            }
            uni.navigateTo({
               url: "./locDetl",
               success: function(res) {
                  // 通过eventChannel向被打开页面传送数据   向另外一个页面传递值的
                  res.eventChannel.emit('item', {
                     item: param
                  })
               },
               events: {
                  // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据  另外一个页面传过来的
                  acceptDataFromOpenedPage: function(data) {
                     _this.searchValueFocus = true
                  }
               },
            });
         }
         
      }