付延余
2023-03-14 78ef511b22e6a16fd85e102333a0c03dda463bd4
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
<template>
    <view class="coal-pick-up-bill">
        <view class="driver" style="background:url(../../../../../static/image/coalBackgroud/coal-background.png) no-repeat;background-size:100% 100%;">
            <view class="driver-coalOne">电子提煤单</view>
            <view class="driver-coalTwo">
                <view class="">东庞矿北井</view>
                <view class="">1/3焦</view>
                <view class="">冀A37U98</view>
            </view>
            <view class="driver-coalThree">
                <view class="">旭阳焦化有限责任公司</view>
                <view class="">2022年8月28日 15:00:56</view>
            </view>
            <view class="driver-coalFour"><image src="@/static/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
            };
        },
        onShow() {
            this.init();
        },
        methods: {
            init() {
                this.getTakeCoal();
            },
            // 获取提煤单详情
            getTakeCoal() {
                this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => {
                    console.log('获取提煤单详情', res);
                });
            }
            /**
             * @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-family: Source Han Sans CN, Source Han Sans CN-Bold;
            font-weight: 700;
            color: #896227;
        }
        &-coalTwo {
            margin-top: 20%;
            font-size: vww(20);
            font-family: Source Han Sans CN, Source Han Sans CN-Bold;
            font-weight: 700;
            text-align: center;
            color: #2e363f;
            view:nth-child(2) {
                margin-top: vww(15);
            }
            view:nth-child(3) {
                margin-top: vww(15);
            }
        }
        &-coalThree {
            margin-top: vww(76);
            font-size: vww(18);
            font-family: Source Han Sans CN, Source Han Sans CN-Bold;
            font-weight: 700;
            text-align: center;
            color: #2e363f;
            view:nth-child(2) {
                margin-top: vww(8);
            }
        }
        &-coalFour {
            margin: vww(68) 0 0 45.5%;
            image {
                width: vww(35);
                height: vww(35);
            }
        }
    }
}
</style>