#
whycq
2025-01-13 9b37d74d9e60a9117ff1611679682ecf2a3233ad
pages/phyz/checkLocDetl/locDetl.vue
@@ -11,7 +11,7 @@
            <view>货架码:{{containerDetl.barcode}}</view>
            <view>库存品类:{{containerDetl.count}}</view>
         </view>
         <view class="list-right" @click="goToLocDetl(containerDetl)">
         <view class="list-right" @click="goToLocDetl(containerDetl,'con')">
            <uni-icons type="right" size="25"  color="#fff"></uni-icons>
         </view>
      </view>
@@ -23,7 +23,7 @@
            <view>货架码:{{locDetl.barcode}}</view>
            <view>库存品类:{{locDetl.count}}</view>
         </view>
         <view class="list-right" @click="goToLocDetl(locDetl)">
         <view class="list-right" @click="goToLocDetl(locDetl,'loc')">
            <uni-icons type="right" size="25"  color="#fff"></uni-icons>
         </view>
      </view>
@@ -122,7 +122,6 @@
               method: 'POST',
               success(res) {
                  res = res.data
                  console.log(res);
                  if (res.code === 200) {
                     if (res.data.containerCode.length > 0) {
                        _this.dataList = res.data.containerCode
@@ -152,7 +151,7 @@
               }
            })
         },
         goToLocDetl(item) {
         goToLocDetl(item,type) {
            let _this = this
            if (item.data.length <= 0) {
               uni.showToast({ title: '没有库存', icon: "error", position: 'top' })
@@ -162,8 +161,11 @@
               url: "./locDetlList",
               success: function(res) {
                  // 通过eventChannel向被打开页面传送数据   向另外一个页面传递值的
                  res.eventChannel.emit('item', {
                     item: item
                  // res.eventChannel.emit('item', {
                  //    item: item
                  // })
                  res.eventChannel.emit('baseInfo', {
                     info: {locNo:_this.locNo,barcode:_this.barcode,type: type}
                  })
               },
               events: {