qingyiay
2023-07-02 07b5244ba8572922728f2663883915861554e7e0
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<template>
    <view>
        <view class="main">
            <view class="main-body">
                <view class="body-container">
                    <view class="container-block">
                        <view class="">车牌号</view>
                        <view class="">{{ faYunDetailobj.carNo || '' }}</view>
                    </view>
                </view>
                <view class="body-container">
                    <view class="container-block">
                        <view class="">提煤单状态</view>
                        <view class="">{{ coalStatus[faYunDetailobj.statusWeigh]||''}}</view>
                    </view>
                </view>
                <view class="body-container">
                    <view class="container-block">
                        <view class="">入场时间</view>
                        <view class="">{{ faYunDetailobj.inTime || '' }}</view>
                    </view>
                </view>
                <view class="body-container">
                    <view class="container-block">
                        <view class="">皮重</view>
                        <view class="">{{ faYunDetailobj.skin || 0 }}</view>
                    </view>
                </view>
                <view class="body-container">
                    <view class="container-block">
                        <view class="">毛重</view>
                        <view class="">{{ faYunDetailobj.hair || '' }}</view>
                    </view>
                </view>
                <view class="body-container">
                    <view class="container-block">
                        <view class="">净重</view>
                        <view class="">{{ faYunDetailobj.clean || '' }}</view>
                    </view>
                </view>
                <view class="body-container">
                    <view class="container-block">
                        <view class="">订单剩余量</view>
                        <view class="">{{ faYunDetailobj.allowance || '' }}</view>
                    </view>
                </view>
                <view class="body-container">
                    <view class="container-block">
                        <view class="">提煤单编号</view>
                        <view class="">{{ faYunDetailobj.code || '' }}</view>
                    </view>
                </view>
                <view class="body-container last">
                    <view class="container-block">
                        <view class="">订单编号</view>
                        <view class="">{{ faYunDetailobj.orderCode || '' }}</view>
                    </view>
                </view>
            </view>
            <view class="origin-info"
                v-if="faYunDetailobj.orderType == '外购' || faYunDetailobj.orderType == '内购' || faYunDetailobj.orderType == '转出'">
                <combined-title title="原发信息"></combined-title>
                <view class="body-container">
                    <view class="container-block">
                        <view class="">皮重</view>
                        <view class="">{{ faYunDetailobj.skinTwo || 0 }}</view>
                    </view>
                </view>
                <view class="body-container">
                    <view class="container-block">
                        <view class="">毛重</view>
                        <view class="">{{ faYunDetailobj.hairTwo || 0 }}</view>
                    </view>
                </view>
                <view class="body-container">
                    <view class="container-block">
                        <view class="">净重</view>
                        <view class="">{{ faYunDetailobj.cleanTwo || 0 }}</view>
                    </view>
                </view>
            </view>
        </view>
    </view>
</template>
 
<script>
    import combinedTitle from '@/components/combined-title/combined-title.vue';
    export default {
        components: {
            combinedTitle
        },
        data() {
            return {
                id: '',
                faYunDetailobj: {},
                coalStatus: ['未称重', '称重中', '验质中', '称重完成', '验质完成']
            };
        },
        methods: {},
        onLoad(params) {
            this.id = params.id;
        },
        onShow() {
            this.$reqGet('getTakeCoal', { takeCoalId: this.id }).then(res => {
                if (res.code == 0) {
                    this.faYunDetailobj = res.data;
                } else {
                    this.$u.toast('获取数据失败');
                }
            });
        }
    };
</script>
 
<style scoped
    lang="scss">
    @mixin flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
 
    .main {
        width: 100%;
        margin-top: vww(10);
        @include flex;
        flex-direction: column;
 
        .main-body {
            width: 690rpx;
            height: 1062rpx;
            background: #ffffff;
            box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12);
            border-radius: 20rpx;
            @include flex;
            flex-direction: column;
            align-items: flex-start;
 
            .body-container {
                width: 100%;
                height: vww(56);
                border-bottom: vww(1) solid #d6d6d6;
                @include flex;
                justify-content: center;
 
                .container-block {
                    width: 96%;
                    height: vww(56);
                    @include flex;
                }
            }
 
            .last {
                border-bottom: none;
            }
        }
 
        .origin-info {
            width: 690rpx;
            min-height: 300rpx;
            margin-top: 20rpx;
            margin-bottom: 20rpx;
            background: #ffffff;
            box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12);
            border-radius: 20rpx;
            @include flex;
            flex-direction: column;
            align-items: flex-start;
 
            .body-container {
                width: 100%;
                height: vww(56);
                border-bottom: vww(1) solid #d6d6d6;
                @include flex;
                justify-content: center;
 
                .container-block {
                    width: 94%;
                    @include flex;
                }
            }
        }
    }
</style>