<template>
|
<view>
|
<view class="list list-font-color shop-car" :class="orderDetl.color" v-for="orderDetl in orderCarList" >
|
<view class="list-left">
|
<view class="detl-threeCode">{{orderDetl.threeCode}}</view>
|
<view>主单号:{{orderDetl.orderNo}}</view>
|
<view>编号:{{orderDetl.matnr}}</view>
|
<view>名称:{{orderDetl.maktx}}</view>
|
<view>总数量:{{orderDetl.anfme}}</view>
|
<view>入库数量:{{orderDetl.anfme}}</view>
|
</view>
|
<view class="list-right" @click="addItem(orderDetl)">
|
<uni-icons type="settings" size="25" color="#fff"></uni-icons>
|
</view>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
orderCarList: []
|
}
|
},
|
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) {
|
_this.orderCarList = data.item
|
console.log(data.item);
|
})
|
},
|
methods: {
|
|
}
|
}
|
</script>
|
|
<style>
|
@import url('../../../static/css/common/order.css');
|
.shop-car {
|
background-color: #2299ff;
|
color: #fff;
|
}
|
.detl-threeCode {
|
font-size: 28px;
|
font-weight: bold;
|
}
|
</style>
|