#
whycq
2024-04-16 57f0e1be38503e373f52bee5f046b517405d2014
pages/phyz/checkLocDetl/checkLocDetl.vue
@@ -68,7 +68,7 @@
            item: ''
         }
      },
      onLoad() {
      onShow() {
         this.baseUrl = uni.getStorageSync('baseUrl');
         this.token = uni.getStorageSync('token');
         this.getLocMastList()
@@ -141,6 +141,10 @@
         goToLocDetl(e) {
            this.locNo = e.locNo
            this.item = e
            if (e.locSts == 'S' || e.locSts == 'R') {
               uni.showToast({ title: '当前库位在作业', icon: "error", position: 'top' })
               return
            }
            this.$refs.check.open()
         },
         checkClose() {
@@ -156,6 +160,7 @@
            uni.navigateTo({
               url: "./locDetl",
               success: function(res) {
                  _this.$refs.check.close()
                  // 通过eventChannel向被打开页面传送数据   向另外一个页面传递值的
                  res.eventChannel.emit('item', {
                     item: param
@@ -164,7 +169,8 @@
               events: {
                  // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据  另外一个页面传过来的
                  acceptDataFromOpenedPage: function(data) {
                     _this.searchValueFocus = true
                     _this.$refs.check.close()
                     _this.getLocMastList()
                  }
               },
            });