| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | 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 |
| | |
| | | } |
| | | }) |
| | | }, |
| | | goToLocDetl(item) { |
| | | goToLocDetl(item,type) { |
| | | let _this = this |
| | | if (item.data.length <= 0) { |
| | | uni.showToast({ title: '没有库存', icon: "error", position: 'top' }) |
| | |
| | | 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: { |