yangan
2025-02-13 fc4c8b7e4f9d926a43903389afb21d5a09208f8e
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<template>
    <view class="statistics-card">
        <view class="card-top">
                            <view class="left"><combined-title :title="item.condition"></combined-title></view>
                            <view class="card-top_num">
                                {{ item.taskCoalList.length }}车
                                {{Number(item.taskCoalList
                                        .reduce((prev, cur) => {
                                            cur.clean=cur.clean||0
                                            return prev + cur.clean;
                                        }, 0)).toFixed(2)}}吨
                            </view>
                        </view>
                        <view class="card-main"
                            v-for="(value, i) in item.taskCoalList"
                            :key="i"
                            @click="faYunDetail(value.id)">
                            <view class="first-line">
                                <view class="main-information">
                                    <view class="sign">装</view>
                                    <view class="filedname">
                                        <text
                                            v-if="value.orderType == '外销' || value.orderType == '内销' || value.orderType == '转出'">{{ value.deptName || '' }}</text>
                                        <text
                                            v-else-if="value.orderType == '外购' || value.orderType == '内购' || value.orderType == '转入'">{{ value.customerName || '' }}</text>
                                    </view>
                                </view>
                                <view class="main-divider"></view>
                                <view class="point-number">{{ value.clean.toFixed(2) || 0 }}</view>
                            </view>
                            <view class="first-extra">
                                <view class="main-information">
                                    <view class="sign">卸</view>
                                    <view class="filedname">
                                        <text
                                            v-if="value.orderType == '外销' || value.orderType == '内销' || value.orderType == '转出'">{{ value.customerName || '' }}</text>
                                        <text
                                            v-else-if="value.orderType == '外购' || value.orderType == '内购' || value.orderType == '转入'">{{ value.deptName || '' }}</text>
                                    </view>
                                </view>
                            </view>
                            <view class="second-line">
                                <view class="coal-name">
                                    <view class="">{{ value.coalName }}</view>
                                    <view class="black-bar"></view>
                                    <view class="coal-type"
                                        v-if="value.orderType">{{ value.orderType }}</view>
                                </view>
                                <!-- <view class="black-block"><view class="black-bar"></view></view>
                                <view class="coal-type">{{ value.orderType }}</view> -->
                            </view>
                            <view class="third-line">
                                <view class="carnum-icon">
                                    <image src="https://mr1.res.jzeg.cn:9096/appimg/image/banner/carNO.png"
                                        mode="widthFix"></image>
                                </view>
                                <view class="carnum-text">{{ value.carNo || '' }}</view>
                            </view>
                            <view class="fourth-line">
                                <view class="time-icon"><u-icon name="clock"
                                        color="#515151"
                                        size="28"></u-icon></view>
                                <view class="send-date">{{ value.sendDate }}</view>
                            </view>
                        </view>
    </view>
 
</template>
<script>
export default {
    name: 'card',
    props: {
        // icon: {
        //     type: Boolean,
        //     default: false
        item: {
            type: Object,
            default: {},
        }
    },
    data() {
        return {};
    },
    methods: {
        bodyClick() {
            this.$emit('click', this.name);
        },
        // 跳转发运详情
            faYunDetail(takeCoalId) {
                uni.navigateTo({
                    url: `/pages/public-page/faYunstatisticsDetails/faYunstatisticsDetails?id=${takeCoalId}`
                });
            },
        // iconClick() {
        //     this.$emit('iconClick', this.name);
        // }
    }
};
</script>
 
<style scoped lang="scss">
    @mixin flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
 
    @mixin firstLine {
        width: 80%;
        height: vww(68);
        margin: vww(10) vww(16) 0 0;
        display: flex;
        justify-content: space-between;
    }
.statistics-card {
                    width: 100%;
                    min-height: vww(120);
                    @include flex;
                    flex-direction: column;
                    margin-top: vww(5);
                    margin-bottom: vww(5);
                    overflow: hidden;
                
                        &:last-child {
                        .card-main {
                            &:last-child {
                                border-bottom: 0;
                            }
                        }
                    }
 
                    .card-top {
                        width: 96%;
                        @include flex;
 
                        .left {
                            font-size: 30rpx;
                            font-weight: 400;
                            color: #494949;
                        }
 
                        .card-top_num {
                            font-size: 40rpx;
                            font-weight: 400;
                            color: #6074ee;
                        }
                    }
 
                    .card-main {
                        width: 100%;
                        height: vww(150);
                        border-bottom: vww(1) solid #d6d6d6;
                        margin-top: vww(12);
                        margin-left: vww(20);
                        padding-bottom: vww(12);
                        position: relative;
                        @include flex;
                        flex-direction: column;
                        align-items: flex-start;
 
                        .first-line {
                            width: 80%;
                            height: vww(32);
                            color: #303030;
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
 
                            .main-information {
                                width: 88%;
                                height: vww(28);
                                display: flex;
                                justify-content: flex-start;
                                align-items: center;
 
                                .sign {
                                    width: vww(28);
                                    height: vww(28);
                                    line-height: vww(28);
                                    text-align: center;
                                    background: url('https://mr1.res.jzeg.cn:9096/appimg/image/banner/blueblock.png') no-repeat;
                                    background-size: contain;
                                    font-size: 30rpx;
                                    font-weight: 400;
                                    color: #ffffff;
                                    margin-right: vww(20);
                                }
 
                                .filedname {
                                    white-space: nowrap;
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                    flex: 1;
                                }
                            }
 
                            .main-divider {
                                width: 530rpx;
                                height: 1rpx;
                                background: #e3e3e3;
                                position: absolute;
                                top: 80rpx;
                                left: vww(50);
                            }
 
                            .point-number {
                                width: 20%;
                                font-size: 40rpx;
                                font-weight: 400;
                                color: #f81414;
                                position: absolute;
                                right: 12rpx;
                                display: flex;
                                flex-wrap: wrap;
                            }
                        }
 
                        .first-extra {
                            @include firstLine;
                            height: vww(32);
                            align-items: center;
 
                            .main-information {
                                width: 100%;
                                height: vww(28);
                                display: flex;
                                justify-content: flex-start;
                                align-items: center;
 
                                .sign {
                                    width: vww(28);
                                    height: vww(28);
                                    line-height: vww(28);
                                    text-align: center;
                                    // display: flex;
                                    // justify-content: center;
                                    // align-items: center;
                                    background: url('https://mr1.res.jzeg.cn:9096/appimg/image/banner/redblock.png') no-repeat;
                                    background-size: contain;
                                    font-size: 30rpx;
                                    font-weight: 400;
                                    color: #ffffff;
                                    margin-right: vww(20);
                                }
 
                                .filedname {
                                    white-space: nowrap;
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                    flex: 1;
                                }
                            }
                        }
 
                        .second-line {
                            width: 100%;
                            height: vww(15);
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
 
                            .coal-name {
                                flex-grow: 1;
                                height: 30rpx;
                                font-size: 30rpx;
                                font-weight: 300;
                                color: #515151;
                                position: relative;
                                display: flex;
                                align-items: center;
 
                                .black-bar {
                                    width: 2rpx;
                                    height: 30rpx;
                                    background: #515151;
                                    margin-left: vww(12);
                                }
 
                                .coal-type {
                                    margin-left: vww(12);
                                    min-width: vww(50);
                                    height: 30rpx;
                                    line-height: 30rpx;
                                    font-size: 30rpx;
                                    font-weight: 300;
                                    color: #515151;
                                }
                            }
                        }
 
                        .third-line {
                            width: 40%;
                            min-height: vww(15);
                            display: flex;
                            justify-content: flex-start;
                            align-items: flex-start;
 
                            .carnum-icon {
                                width: 28rpx;
                                height: 28rpx;
                                margin-right: vww(10);
 
                                image {
                                    width: 28rpx;
                                    height: 28rpx;
                                }
                            }
 
                            .carnum-text {
                                font-size: 28rpx;
                                font-weight: 300;
                                color: #515151;
                            }
                        }
 
                        .fourth-line {
                            width: 40%;
                            height: vww(14);
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;
                            color: #515151;
 
                            .time-icon {
                                margin-right: vww(10);
                            }
                        }
                    }
                    
 
                    
                }
</style>