#
whycq
2024-04-15 9d871c05c4ff10711c9bec678ef575cc231d91a3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<template>
    <view>
        <view class="list list-font-color" :class="locDetl.color" v-for="(locDetl,index) in dataList" :key="index">
            <view class="list-left">
                <view>销售订单号:{{locDetl.threeCode}}</view>
                <view>主订单号:{{locDetl.orderNo}}</view>
                <view>商品编码:{{locDetl.matnr}}</view>
                <view>商品名称:{{locDetl.maktx}}</view>
                <view>库存:{{locDetl.anfme}}</view>
                <view>调整库存为:{{locDetl.barcode}}</view>
            </view>
            <view class="list-right" @click="goToLocDetl(locDetl)">
                <uni-icons type="right" size="25"  color="#fff"></uni-icons>
            </view>
            
        </view>
        
        <!-- 底部操作按钮 -->
        <view class="buttom">
            <button size="mini" type="primary" @click="agvStart('warn')">添加物料</button>
        </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>