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