<template>
|
<view>
|
<view class="list list-font-color" :class="locMast.color" v-for="(locMast,index) in dataList" :key="index">
|
<view class="list-left">
|
<view class="detl-threeCode">{{locMast.locNo}}</view>
|
<view>库位状态:{{locMast.locSts$}}</view>
|
<view>库位类型:{{locMast.locType1$}}</view>
|
<view>货架码:{{locMast.barcode}}</view>
|
<view style="display: flex;">
|
<view style="flex:1">排:<text style="font-size: 22px;font-weight: bold;">{{locMast.row1}}</text></view>
|
<view style="flex:1">列:<text style="font-size: 22px;font-weight: bold;">{{locMast.bay1}}</text></view>
|
<view style="flex:1">层:<text style="font-size: 22px;font-weight: bold;">{{locMast.lev1}}</text></view>
|
</view>
|
</view>
|
<view class="list-right" @click="goToLocDetl(locMast)">
|
<uni-icons type="right" size="25" color="#fff"></uni-icons>
|
</view>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
baseUrl: '',
|
token: '',
|
dataList: []
|
|
}
|
},
|
onShow() {
|
let _this = this
|
this.baseUrl = uni.getStorageSync('baseUrl');
|
this.token = uni.getStorageSync('token');
|
// const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE
|
const eventChannel = this.getOpenerEventChannel();
|
// 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
|
eventChannel.on('item', function(data) {
|
console.log(data);
|
_this.dataList = data.item.data
|
})
|
},
|
methods: {
|
|
}
|
}
|
</script>
|
|
<style>
|
@import url('../../../static/css/common/order.css');
|
</style>
|