yangan
2024-09-04 46b8ceca2f841c874b099ca33394f93b6252b792
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
<template>
  <view class="warp-box">
    <view class="history-information"     v-for="item,i in datetailData"         
            :key="i">
                            <view class="first">
                                <view class="">{{ item.carNo || '' }}</view>
                                <view class=""></view>
                            </view>
                            <view class="second">
                                <view class="coal-name">{{ item.productNames || item.productName }}</view>
                                <view class="order-type">{{ item.orderType || '' }}</view>
                            </view>
                            <view class="third">
                                <view class="third-line">
                                    <view class="third-line_text">客户名称:</view>
                                    <view>{{ item.customerName }}</view>
                                </view>
                                    <view class="third-line" v-if="/聚氯乙烯树脂/.test(item.productName)">
                                    <view class="third-line_text">包装类型:</view>
                                    <view>{{ proType[item.packingType] }}</view>
                                </view>
                                <view class="third-line"  v-if="item.productName === '二氯乙烷(EDC)'">
                                    <view class="third-line_text">质检状态:</view>
                                    <view> <u-tag :text="checkStatusList[item.checkStatus]" plain > </u-tag></view>
                                </view>
                            </view>
                            <view class="fourth">
                                <view class="fourth-icon">
                                    <view
                                        style="width: 24rpx;height: 24rpx;line-height: 24rpx;background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/clock.png') no-repeat;background-size: cover">
                                    </view>
                                </view>
                                <view class="senddate">{{ item.sendDate }}</view>
                            </view>
                            <view class="fourth">
                                <view class="fourth-icon">
                                    <view
                                        style="width: 26rpx;height: 26rpx;line-height: 26rpx;background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/carnNUm.png') no-repeat;background-size: cover;">
                                    </view>
                                </view>
                                <view class="senddate">{{ item.orderCode }}</view>
                            </view>
                                                 <view class="table">
            <uni-table border stripe 
            emptyText="暂无更多数据">
                    <uni-tr>
                        <uni-th align="center" width='200'>产品</uni-th>
                            <uni-th align="center" width='100'>产品等级</uni-th>
                         <uni-th align="center" width='100'>包装类型</uni-th>
                        <uni-th align="center" width='200'>仓库</uni-th>
                        <uni-th align="center" width='100'>皮重</uni-th>
                        <uni-th align="center" width='100'>毛重</uni-th>
                        <uni-th align="center" width='100'>净重</uni-th>
                        <uni-th align="center" width='100'>数量</uni-th>
                        <uni-th align="center">计划量</uni-th> 
                         <uni-th align="center">实际量</uni-th> 
                        
                    </uni-tr>
                    <uni-tr v-for="(subItem, index) in item.tmTaskCoalList" :key="index">
                
                        <uni-td align="center">
                            <view>{{ subItem.productName }}</view></uni-td>
                            <uni-td align="center">
                            <view>{{ subItem.productGrade }}</view></uni-td>
                            <uni-td>
                        <view>{{ proType[item.packingType] }}</view>
                    </uni-td>
                    <uni-td>
                        <view>{{ subItem.bunkerName }}</view>
                    </uni-td>
                    <uni-td>
                        <view class="name" v-if="subItem.skin">{{ Number(subItem.skin).toFixed(2) || ''  }}</view>
                    </uni-td>
                    <uni-td>
                        <view class="name" v-if="subItem.hair"> {{  Number(subItem.hair).toFixed(2) || ''  }}</view>
                    </uni-td>
                        <uni-td>
                        <view class="name" v-if="(subItem.clean || (subItem.clean && subItem.clean === 0))">{{ Number(subItem.clean).toFixed(2) || ''}}</view>
                    </uni-td>
                    <uni-td>
                        <view class="name">{{ subItem.productQuantity }}</view>
                    </uni-td>
                    <uni-td>
                        <view class="name">{{ subItem.planMeasure }}</view>
                    </uni-td>
                    <uni-td>
                        <view class="name">{{ subItem.realityMeasure }}</view>
                    </uni-td>
<!--                     
                    <uni-td align="center">
                    <view>{{ subItem.bunkerName }}</view></uni-td> -->
                      <!-- <uni-td align="center">
                    <view  class="name">{{ subItem.statusView }}</view></uni-td> -->
                     
                </uni-tr>
                </uni-table>
                <view class="footer">   
                    <view class="rightBtn">   <u-button type='primary' text='确认拼单'></u-button></view>
             
                </view>
         </view>
                    </view>
  </view>
</template>
 
<script>
export default {
    data() {
        return {
            proType:['散装','液氣瓶装','罐装','PVC25','PVC80','PVC1150','PVc1200'],
            datetailData:[],
            taskId:'',
        }
    },
    methods: {
        init(){
            uni.showLoading({
                    title: "加载中"
                })
            this.$reqGet('getUnclaimedList',{taskCoalId:this.taskId}).then((res) => {
                this.datetailData =  res.data;
                uni.hideLoading();
            })
        }
        
    },
    computed:{
 
    },
    onLoad(params)
    {
        this.taskId = params.taskCoalId;
    },
    onShow(){
        this.init();
    },
 
}
</script>
 
<style lang="scss"
    scoped>
        .table{
    width: 100%;
    margin-top: 10rpx;
  /deep/ .uni-table{
    min-width: 0!important;
    margin-left: 20rpx;
    width: auto;
  }
  .footer{
    height: 100rpx;
    .rightBtn{
        width: 200rpx;
        float: right;;
        
    }
  }
        }
    .warp-box{
        width: 96%;
        margin:  10rpx auto;
        height: calc(100vh - 10vh);
    }        .history-information {
            margin-bottom:30rpx;
            margin-top: 10rpx;
            background: #ffffff;
            border-radius: 20rpx;
            @include flex flex-direction: column;
            padding: 10px;
            align-items: flex-start;
            justify-content: space-evenly;
            box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12);
 
 
            .first {
                width: 94%;
                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(20);
                    height: vww(20);
                    margin-right: vww(21);
                }
 
                .order-type {
                    height: 45rpx;
                    color: #035cfb;
                    border: 2px solid #035cfb;
                    border-radius: 4rpx;
                    padding: vww(2) vww(4);
                    text-align: center;
                }
            }
 
            .third {
                width: 96%;
                height:  auto;
                font-size: 30rpx;
                font-weight: 300;
                color: #515151;
                margin: vww(10) vww(10) 0;
                @include flex;
                flex-direction: column;
 
                .third-line {
                    @include flex;
                    align-items: center;;
 
                    &_text {
                        color: #919090;
                    }
 
                    &_num {
                        color: #035cfb;
                    }
                }
            }
 
            .fourth {
                width: 100%;
                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>