yangan
2024-07-29 6d3a837920639bdd366c4efc0bc7d2ee834b1ca2
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
<template>
<div class="warp">
       <u-empty mode="data"
                            icon="http://cdn.uviewui.com/uview/empty/data.png"
                            text="暂无数据"
                            textSize="30"
                            iconSize="1000"
                            v-if="detailData.length===0"></u-empty>
            <!-- 渲染区域 -->
 
                    <view class="history-information"     v-for="item,i in detailData"         
            :key="i">
                            <view class="first">
                                <view class=""><text>批号:{{ item.batchNumber || '' }}</text></view>
                                
                            </view>
                            <view class="second">
                                <view><text>编号: {{ item.number || '' }}</text></view>
                            </view>
                            <view class="third">
                                <view class="third-line">
                                    <view class="third-line_text">供应商:</view>
                                    <view >{{ item.customerName }}</view>
                                </view>
                                <view class="third-line">
                                    <view class="third-line_text">采样地点:</view>
                                    <view>{{ item.bunkerName }}</view>
                                </view>
                            </view>
                            <view class="fourth">
                                <view class="fourth-icon">
                                    <view
                                        style="width: 24rpx;height: 24rpx;line-height: 24rpx;background: url('https://mx.jzeg.cn:9096/appimg/image/banner/clock.png') no-repeat;background-size: cover">
                                    </view>
                                </view>
                                <view class="senddate">{{ item.samplingTime }}</view>
                            </view>
                            <view class="fourth" style="height:250rpx">
                                <!-- <view class="fourth-icon">
                                    <view
                                        style="width: 26rpx;height: 26rpx;line-height: 26rpx;background: url('https://mx.jzeg.cn:9096/appimg/image/banner/carnNUm.png') no-repeat;background-size: cover;">
                                    </view>
                                </view>
                                <view class="senddate">{{ item.orderCode }}</view> -->
                                <view style="height:130rpx">
                                    <text style="fontSize:25rpx">检测项目:</text>
                                    <view class="first" v-for="subItem,index in item.zjQualityCheckSubs" :key="index">
                                    <view class=""><text>项目:{{ subItem.checkName || '' }}</text></view>
                                    <view class=""><text>单项判定:{{ subItem.isQualified === 1 ? '合格' : '不合格' || '' }}</text></view>
                                    </view>
                                </view>
                               
                            </view>
                             <view class="fourth" style="height:100rpx">
                                     <view class=""><text>结论:{{ item.conclusion || '' }}</text></view>
 
                                </view>
                    </view>
    </div>  
</template>
 
<script>
export default {
data() {
    return {
        detailData:[],
    }
},
methods: {
    getDetailData(){
        this.$reqGet('getQualityResultEachCustomer').then((res) => {
            if(res.code === 0){
                this.detailData  = res.data;
            }else{
                    this.$u.toast('暂无数据');
            }
        })
    }
},
onShow(){
this.getDetailData();
},
onload(){
 
}
}
</script>
 
<style lang="scss" scoped>
.warp{
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
    justify-content: start;
    align-items: center;
 
}
    @mixin flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .history-information {
            width: 550rpx;
            height: 450rpx;
            margin: vww(10) vww(10);
            padding: 5rpx;
            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;
            justify-content: space-evenly;
            overflow: hidden;
 
            .first {
                width: 96%;
                height: 34rpx;
                font-size: 32rpx;
                font-weight: 300;
                color: #303030;
                @include flex;
                margin: vww(10) vww(10) 0;
            }
 
            .second {
                width: 100%;
                height: 31rpx;
                font-size: 30rpx;
                font-weight: 300;
                color: #515151;
                margin: vww(10) vww(10) 0;
                @include flex;
                justify-content: flex-start;
 
                .coal-name {
                    min-width: vww(30);
                    height: vww(20);
                    margin-right: vww(21);
                }
 
                .order-type {
                    color: #035cfb;
                    border: 2px solid #035cfb;
                    border-radius: 4rpx;
                    padding: vww(2) vww(4);
                    text-align: center;
                }
            }
 
            .third {
                width: 96%;
                height: 31rpx;
                font-size: 30rpx;
                font-weight: 300;
                color: #515151;
                margin: vww(10) vww(10) 0;
                @include flex;
 
                .third-line {
                    @include flex;
 
                    &_text {
                        color: #919090;
                    }
 
                    &_num {
                        color: #035cfb;
                    }
                }
            }
 
            .fourth {
                width: 90%;
                height: 31rpx;
                font-size: 30rpx;
                font-weight: 300;
                color: #515151;
                margin: vww(10) vww(10) 0;
                @include flex;
 
                .fourth-icon {
                    width: vww(13);
                    height: vww(13);
                    margin-right: vww(14);
                }
 
                .senddate {
                    flex: 1;
                }
            }
        }
 
</style>