yangan
2024-08-09 040acd447439dc98536281414a6d43a54b00719d
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<template>
    <view class="coal-pick-up-bill">
        <view class="driver"
            style="background:url(https://wrzs.czjlchem.com:9090/appimg/image/coalBackgroud/coal-background.png) no-repeat;background-size:100% 100%;">
            <view class="driver-coalOne">电子收发单</view>
            <view class="driver-coalTwo">
                <view>{{ coalData.code || '暂无订单编号' }}</view>
                <view class="bigFont">{{ coalData.deptName || '暂无所属矿' }}</view>
                <view class="bigFont">{{ coalData.coalName || '暂无煤种' }}</view>
                <view class="bigFont">{{ coalData.carNo || '暂无车牌' }}</view>
            </view>
            <view class="driver-coalThree">
                <view>{{ coalData.customerName || '暂无单位' }}</view>
                <view>
                    {{ coalData.yuYueTime ? coalData.yuYueTime.slice(0, 10) + ' ' + coalData.yuYueTime.slice(11, 22) : '暂无时间' }}
                </view>
            </view>
            <!-- <view class="driver-coalFour">
                <image src="https://wrzs.czjlchem.com:9090/appimg/logo.gif"
                    mode=""></image>
            </view> -->
        </view>
    </view>
</template>
 
<script>
    export default {
        onLoad(value) {
            console.log('页面加载', value);
            if (value.orderPlanId) {
                this.orderPlanId = value.orderPlanId;
            }
        },
        data() {
            return {
                orderPlanId: null,
                coalData: {}
            };
        },
        onShow() {
            this.init();
        },
        methods: {
            init() {
                this.getTakeCoal();
            },
            // 获取收发单详情
            getTakeCoal() {
                this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => {
                    console.log('获取收发单详情', res);
                    if (res.code == 0) {
                        this.coalData = res.data;
                    } else {
                        this.$u.toast('加载失败');
                    }
                });
            }
            /**
             * @desc 等待取煤单接口
             * */
        }
    };
</script>
 
<style lang="scss"
    scoped>
    ::v-deep.coal-pick-up-bill {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
 
        // 司机页面
        .driver {
            width: 100%;
            height: 100vh;
 
            &-coalOne {
                margin-top: 19%;
                text-align: center;
                font-size: vww(40);
                font-weight: 700;
                color: #896227;
            }
 
            &-coalTwo {
                width: 80%;
                margin-top: 20%;
                margin: 20% auto 0;
                font-size: vww(20);
                font-weight: 700;
                text-align: center;
                color: #2e363f;
 
                view:nth-child(2) {
                    margin-top: vww(15);
                    font-size: 30px;
                }
 
                view:nth-child(3) {
                    margin-top: vww(15);
                    font-size: 30px;
                }
 
                view:nth-child(4) {
                    margin-top: vww(15);
                    font-size: 30px;
                }
            }
 
            &-coalThree {
                margin-top: vww(15);
                font-size: vww(18);
                font-weight: 700;
                text-align: center;
                color: #2e363f;
 
                view:nth-child(2) {
                    margin-top: vww(15);
                }
            }
 
            &-coalFour {
                display: flex;
                justify-content: center;
                align-items: center;
                position: absolute;
                width: 100%;
                bottom: 161rpx;
 
                image {
                    width: vww(52);
                    height: vww(52);
                }
            }
        }
    }
</style>