wangxinhui
2 天以前 225d11e2ddaa55d1d482201cb4d89c9486cdba69
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
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
<template>
    <view>
        <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem">
        </uni-segmented-control>
        <view v-if="current === 0" class="headerstyle">
            <view class="itemstyle">
                <uni-forms style="margin-left: 2%;margin-top: 20px;" label-width="180">
                    <uni-forms-item :label="label" style="margin-top: -20px;"></uni-forms-item>
                    <!-- <uni-forms-item label="单据类型:生产领料单" style="margin-top: -20px;"></uni-forms-item> -->
                    <uni-forms-item label="内箱码:" style="margin-top: -20px;">
                        <uni-easyinput type="text" placeholder="请扫描内箱码" ref='midInput' :focus="!focus"
                            v-model="innerCode" @confirm="innercodeInput" />
                    </uni-forms-item>
                    <uni-forms-item :label="PurchaseOrderNo" style="margin-top: -20px;"></uni-forms-item>
                    <uni-forms-item :label="matCode" style="margin-top: -20px;"></uni-forms-item>
                    <uni-forms-item :label="LotNo" style="margin-top: -20px;"></uni-forms-item>
                    <uni-forms-item :label="ProductionDate" style="margin-top: -20px;"></uni-forms-item>
                    <uni-forms-item :label="EffectiveDate" style="margin-top: -20px;"></uni-forms-item>
                    <uni-forms-item :label="orderQty" style="margin-top: -20px;"></uni-forms-item>
                    <uni-forms-item :label="remaindQty" style="margin-top: -20px;">
                        <uni-easyinput type="text" placeholder="请输入实际数量" v-model="Quantity" ref='midInput' />
                    </uni-forms-item>
                </uni-forms>
                <uni-forms-item>
                    <view class="uni-flex uni-row" style="justify-content: space-between;margin-top: 2%;height: 45px;width: 520rpx;margin: 0px auto;">
                        <view>
                            <button @click="resetReceive" type="default" size="default" style="width: 200rpx;border: 1rpx solid #007aff;color: #007aff;">重置</button>
                        </view>
                        <view>
                            <button @click="submit" type="primary" size="default" style="width: 220rpx;">确认收货</button>
                        </view>
                    </view>
                </uni-forms-item>
                <uni-forms-item>
                    <view style="margin-top: 2%;height: 45px;width: 520rpx;margin: 0px auto;">
                        <button @click="submit1" type="primary" size="default" style="margin-top: 2%;backgroundColor:#1AAD19;borderColor:#1AAD19">完成收货</button>
                    </view>
                </uni-forms-item>
            </view>
        </view>
        <view v-if="current === 1" class="headerstyle">
            <view class="itemstyle">
                <!-- <uni-forms label-width="180">
                    <uni-forms-item label="区域">
                        <uni-data-select v-if="show" v-model="value" :localdata="range"></uni-data-select>
                    </uni-forms-item>
                    <uni-forms-item label="楼层">
                        <uni-data-select v-if="show" v-model="floor" :localdata="floorrange"></uni-data-select>
                    </uni-forms-item>
                    <uni-forms-item label="出库区域">
                        <uni-data-select v-if="show" v-model="endType" :localdata="endTypeRange"></uni-data-select>
                    </uni-forms-item>
                </uni-forms> -->
                <uni-list :border="true">
                    <uni-list-item direction="column" v-for="item in orderinfoDetails" :key="item.id">
                        <template v-slot:body>
                                <view class="uni-content">
                                    <view>收货单号:{{orderNo}}</view>
                                    <view>采购单号:{{item.purchaseOrderNo}}</view>
                                    <view>物料编号:{{item.materielCode}}</view>
                                    <view>物料名称:{{item.materielName}}</view>
                                    <view>物料规格:{{item.materielSpec}}</view>
                                    <view>批次号:{{item.lotNo}}</view>
                                    <view>收货数量:{{item.receivedQuantity}}</view>
                                    <view>是否质检:{{item.ifInspection==1?"是":"否"}}</view>
                                </view>
                        </template>
                    </uni-list-item>
                </uni-list>
            </view>
            <view>
                <!-- 输入框示例 -->
                <uni-popup ref="inputDialog" type="dialog">
                    <uni-popup-dialog ref="inputClose" mode="input" title="输入内容" :value="outNum" placeholder="请输入内容"
                        @confirm="outbound"></uni-popup-dialog>
                </uni-popup>
            </view>
        </view>
        <view v-if="current === 2" class="headerstyle">
            <view class="itemstyle">
                <uni-forms label-width="120">
                    <uni-forms-item label="楼层">
                        <uni-data-select v-if="show" v-model="printfloor"
                            :localdata="printfloorrange"></uni-data-select>
                    </uni-forms-item>
                    <uni-forms-item label="内箱标签">
                        <uni-easyinput type="text" :focus="tagFocus" v-model="tag" placeholder="请扫描内箱标签" ref='midInput'
                            @input="tagInput" />
                    </uni-forms-item>
                    <uni-forms-item :label="tagmatCode"></uni-forms-item>
                    <uni-forms-item :label="tagmatName"></uni-forms-item>
                    <uni-forms-item :label="tagQty"></uni-forms-item>
                    <uni-forms-item label="拆分数量">
                        <uni-easyinput type="number" v-model="number" placeholder="请输入拆分数量" ref='midInput'
                            :focus="numberFocus" />
                    </uni-forms-item>
                    <uni-forms-item>
                        <button @click="printTag" type="primary" size="default" style="margin-top: 2%;">打印标签</button>
                    </uni-forms-item>
                </uni-forms>
            </view>
        </view>
        <view v-if="current === 3" class="headerstyle">
            <view class="itemstyle">
                <uni-forms label-width="120">
                    <uni-forms-item label="托盘条码">
                        <uni-easyinput type="text" :focus="!istrue" v-model="barcode" placeholder="请扫描托盘条码"
                            ref='midInput' @input="inputChangebarcode" />
                    </uni-forms-item>
                    <uni-forms-item label="地址条码">
                        <uni-easyinput type="text" v-model="address" placeholder="请扫描地址条码" ref='midInput'
                            :focus="istrue" />
                    </uni-forms-item>
                    <uni-forms-item>
                        <button @click="inbound" type="primary" size="default" style="margin-top: 2%;">入库</button>
                    </uni-forms-item>
                </uni-forms>
            </view>
        </view>
        <view v-if="current === 4" class="headerstyle">
            <view class="itemstyle">
                <uni-forms label-width="120">
                    <uni-forms-item>
                        <uni-easyinput type="text" @input="releaseboxInput" v-model="releasevalue" placeholder="请扫码"
                            ref='midInput' :focus="releasefocus" />
                    </uni-forms-item>
                    <uni-forms-item>
                        <button @click="releasebox" type="primary" size="default" style="margin-top: 2%;">解盘</button>
                    </uni-forms-item>
                </uni-forms>
                <uni-list>
                    <uni-list-item direction="column" v-if="value2">
                        <template v-slot:body>
                            <view class="uni-list-box">
                                <view class="uni-content">
                                    <view class="uni-title-sub uni-ellipsis-2">托盘号:{{value2}}</view>
                                </view>
                            </view>
                        </template>
                    </uni-list-item>
                    <uni-list-item direction="column" v-for="item in matTotals" :key="item.matCode">
                        <template v-slot:body>
                            <view class="uni-list-box">
                                <view class="uni-content">
                                    <view class="uni-title-sub uni-ellipsis-2">物料编码:{{item.matCode}}</view>
                                    <view class="uni-title-sub uni-ellipsis-2">数量:{{item.matQuantity}}</view>
                                </view>
                            </view>
                        </template>
                    </uni-list-item>
 
                    <uni-list-item direction="column" v-for="(item,index) in matInfo" :key="index">
                        <template v-slot:body>
                            <view class="uni-list-box">
                                <view class="uni-content">
                                    <view class="uni-title-sub uni-ellipsis-2" style="font-size: 1.1em;">
                                        物料编码:{{item.matCode}}
                                    </view>
                                    <view class="uni-title-sub uni-ellipsis-2" style="font-size: 1.1em;">
                                        物料名称:{{item.matName}}
                                    </view>
                                    <view class="uni-title-sub uni-ellipsis-2" style="font-size: 1.1em;">
                                        数量:{{item.matQty}}
                                    </view>
                                </view>
                            </view>
                        </template>
                    </uni-list-item>
                </uni-list>
            </view>
        </view>
        <u-toast ref="uToast" />
    </view>
</template>
 
<script>
    import {
        config
    } from '../../common/config';
    const innerAudioContext = uni.createInnerAudioContext();
    export default {
        data() {
            return {
                show: true,
                items: ['扫描', '明细'], //, '拆分', '入库', '解盘'
                current: 0,
                orderNo: "",
                orderInfo: [],
                orderinfoDetails:[],
                label: "",
                innerCode: "",
                PurchaseOrderNo: "采购单号:",
                matCode: "物料编码:",
                LotNo: "物料批次:",
                orderQty: "订单数量:",
                Quantity: "",
                ProductionDate: "生产日期:",
                EffectiveDate: "有效日期:",
 
                matName: "物料名称:",
                currentQty: "已扫数量:",
                scanQty: "累计数量:",
                remaindQty: "实际数量:",
                tagFocus: true,
                numberFocus: false,
                focus: false,
                tag: "",
                number: "",
                tagmatCode: "物料编码:",
                tagmatName: "物料名称:",
                tagQty: "包装数量:",
                value: "",
                range: [],
                floor: "",
                floorrange: [],
                printfloor: "",
                printfloorrange: [],
                barcode: "",
                address: "",
                istrue: false,
                outNum: 0,
                itemCode: "",
                releasefocus: true,
                releasevalue: "",
                matInfo: [],
                matTotals: [],
                value2: "",
                searchValue: "",
                endType: "",
                endTypeRange: [],
                sns: "",
                receiveOrderId: 0,
                warehouseId:""
            }
        },
 
        onLoad(res) {
            this.range = config.warehouseRange;
            this.endTypeRange = config.outboundAreaRange;
            if (config.outboundArea) {
                this.endType = config.outboundArea;
            }
            if (config.warehouseArea) {
                this.value = config.warehouseArea;
            }
            this.orderNo = res.orderNo;
            this.receiveOrderId = res.receiveOrderId;
            this.label = "收货单号:" + this.orderNo;
            this.warehouseId=res.warehouseId;
            this.getData();
        },
        mounted() {
            this.printfloorrange = config.printFloorRange;
            this.floorrange = config.outboundFloorRange;
            if (config.outboundFloor) {
                this.floor = config.outboundFloor;
            }
            if (config.printFloor) {
                this.printfloor = config.printFloor;
            }
        },
        methods: {
            inputDialogToggle(itemCode) {
                this.itemCode = itemCode;
                this.$refs.inputDialog.open()
            },
            // voiceSpeech(src) {
            //     innerAudioContext.src = src; // '../../static/success.mp3';
            //     innerAudioContext.play();
            // },
            search() {
                this.getData();
            },
            resetReceive(){
                this.PurchaseOrderNo="采购单号:";
                this.matCode="物料编码:";
                this.LotNo="物料批次:";
                this.orderQty="订单数量:";
                this.ProductionDate="生产日期:";
                this.EffectiveDate="有效日期:";
                this.Quantity="";
                setTimeout(() => {
                    this.innerCode="";
                    this.focus=false;
                }, 10);
            },
            releasebox() {
                if (this.releasevalue.length == 0) {
                    this.$refs.uToast.show({
                        title: "请扫码",
                        type: "error"
                    })
                    return;
                }
                var param;
                var matInfo = this.releasevalue.split('|');
                if (matInfo.length == 7) {
                    param = {
                        MainData: {
                            "innerCode": this.releasevalue
                        }
                    }
                } else {
                    param = {
                        MainData: {
                            "barcode": this.releasevalue
                        }
                    }
                }
                this.$u.post('/api/StockOperate/ReleaseAllBox', param).then(resdt => {
                    if (resdt.status) {
                        uni.$showMsg('解盘成功!')
                        this.releasevalue = "";
                        this.matInfo = [];
                        this.matTotals = [];
                        this.value2 = "";
                    } else {
                        this.$refs.uToast.show({
                            title: resdt.message,
                            type: "error"
                        })
                    }
                })
            },
            releaseboxInput() {
                this.$nextTick(() => {
                    if (this.releasevalue.length == 0) {
                        return;
                    }
                    var matInfo = this.releasevalue.split('|');
                    this.matInfo = [];
                    if (matInfo.length == 7) {
                        this.$u.post('/api/StockOperate/GetStockInfoByInnerCode', {
                            MainData: {
                                "innerCode": this.releasevalue
                            }
                        }).then(res => {
                            if (res.status) {
                                this.matInfo = res.data.stockInfo;
                                this.matTotals = res.data.stockTotal;
                                this.value2 = res.data.barcode;
                            } else {
                                this.$refs.uToast.show({
                                    title: res.message,
                                    type: "error"
                                })
                            }
                        })
                    } else {
                        this.$u.post('/api/StockOperate/GetStockInfoByBarcode', {
                            MainData: {
                                "barcode": this.releasevalue
                            }
                        }).then(res => {
                            if (res.status) {
                                this.matInfo = res.data.stockInfo;
                                this.matTotals = res.data.stockTotal;
                                this.value2 = res.data.barcode;
                            } else {
                                this.$refs.uToast.show({
                                    title: res.message,
                                    type: "error"
                                })
                            }
                        })
                    }
                })
            },
 
            updateFocus() {
                this.$nextTick(() => {
                    this.innerCode = '';
                    if (!this.focus) {
                        this.focus = true;
                    }
                });
            },
            submit() {
                if (this.sns == "") {
                    this.$refs.uToast.show({
                        title: "请扫描内箱标签",
                        type: 'error'
                    })
                    return;
                }
                if (this.Quantity == "") {
                    this.$refs.uToast.show({
                        title: "请输入实际数量",
                        type: 'error'
                    })
                    return;
                }
                if(this.warehouseId==2){
                    //替换指定两个字符间的字符
                    this.sns = this.sns.replace(/(Q:)([^,PO]+)(,PO)/, (match, p1, p2, p3) => {
                      return p1 + this.Quantity + p3;
                    });
                }
                this.$u.post('/api/ReceiveOrderDetail/AddReceiveOrderDetail?serNum=' + this.sns + '&orderNo=' + this
                    .orderNo, {}).then(res => {
                    if (res.status) {
                        this.PurchaseOrderNo="采购单号:";
                        this.matCode="物料编码:";
                        this.LotNo="物料批次:";
                        this.orderQty="订单数量:";
                        this.ProductionDate="生产日期:";
                        this.EffectiveDate="有效日期:";
                        this.Quantity="";
                        setTimeout(() => {
                            this.innerCode="";
                            this.focus=false;
                        }, 100);
                        this.orderInfo=[];
                        this.sns = "";
                        this.$refs.uToast.show({
                            title: "确认收货成功",
                            type: "success"
                        })
                    } else {
                        this.$refs.uToast.show({
                            title: res.message,
                            type: "error"
                        })
                    }
                })
            },
            submit1() {
                this.$u.post('/api/ReceiveOrder/FeedbackReceiveOrder?orderId=' + this
                    .receiveOrderId, {}).then(x => {
                    if (x.status) {
                        this.$refs.uToast.show({
                            title: "完成收货成功",
                            type: "success"
                        })
                        this.sns = "";
                    } else {
                        this.$refs.uToast.show({
                            title: x.message,
                            type: "error"
                        })
                    }
                })
            },
            inbound() {
                if (this.barcode.length == 0) {
                    this.$refs.uToast.show({
                        title: "请扫描托盘号",
                        type: "error"
                    })
                    return;
                }
                if (this.address.length == 0) {
                    this.$refs.uToast.show({
                        title: "请扫描地址条码",
                        type: "error"
                    })
                    return;
                }
                var postData = {
                    MainData: {
                        "barcode": this.barcode,
                        "startPoint": this.address
                    }
                }
                this.$u.post('/api/Inbound/RequestInbound', postData).then(res => {
                    if (res.status) {
                        uni.$showMsg(res.message);
                        this.barcode = "";
                        this.address = "";
                        this.istrue = false;
                    } else {
                        this.$refs.uToast.show({
                            title: res.message,
                            type: "error"
                        })
                    }
                }).catch(err => {
                    this.$refs.uToast.show({
                        title: err.message,
                        type: "error"
                    })
                })
            },
            inputChangebarcode() {
                this.istrue = false;
                this.$nextTick(function(x) {
                    if (this.barcode != '') {
                        this.istrue = true;
                    }
                })
            },
            onClickItem(e) {
                console.log(1)
                this.focus = false;
                this.addressFocus = false;
                if (this.current !== e.currentIndex) {
                    this.current = e.currentIndex;
                    if (this.current == 1) {
                        this.getData();
                    }
                }
            },
            getData() {
                var postData = {
                    MainData: {
                        orderNo: this.orderNo,
                        searchValue: this.searchValue
                    },
                }
                this.$u.post('/api/ReceiveOrderDetail/GetReceiveOrderInfos', postData).then((res) => {
                    if (res.status) {
                        this.orderinfoDetails = res.data;
                        if (this.orderinfoDetails.length > 3) {
                            this.loadVisible = true;
                        }
                    }
                })
            },
            innercodeInput() {
                this.$nextTick(() => {
                    if (this.innerCode == "") {
                        return;
                    }
                    var innerCode = this.innerCode;
                    //将innerCode,SC后面的进行替换空
                    if(this.warehouseId==11){
                        innerCode=innerCode.replace(/,SC.*/, '');
                    }
                    
                    if(innerCode.indexOf("POHA")>0){
                        this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + innerCode, {}).then((res) => {
                            if (res.status) {
                                this.sns = res.data.serialNumber;
                                // this.matInfos.splice(0, this.matInfos.length);
                                // this.matInfos.push(res.data);
                                this.matCode = "物料编码:" + res.data.materielCode;
                                this.LotNo = "物料批次:" + res.data.lotNo;
                                this.PurchaseOrderNo = "采购单号:" + res.data.purchaseOrderNo;
                                this.EffectiveDate = "有效日期:" + res.data.effectiveDate;
                                this.ProductionDate = "生产日期:" + res.data.productionDate;
                                this.orderQty = "订单数量:" + res.data.quantity;
                                this.Quantity = res.data.quantity;
                                // setTimeout(() => {
                                //     this.voiceSpeech('../../static/success.mp3');
                                // }, 100);
                            } else {
                                this.$refs.uToast.show({
                                    title: res.message,
                                    type: "error"
                                })
                                // setTimeout(() => {
                                //     this.voiceSpeech('../../static/fail.mp3');
                                // }, 100);
                            }
                        })
                    }
                    setTimeout(() => {
                        this.innerCode = "";
                        this.focus=true;
                    }, 100);
                })
            },
            tagInput() {
                this.$nextTick(() => {
                    var tagInfos = this.tag.split('|');
                    if (tagInfos.length == 7) {
                        this.tagmatCode = "物料编码:" + tagInfos[1];
                        this.tagQty = "物料数量:" + tagInfos[5];
                    } else {
                        this.$refs.uToast.show({
                            title: "内箱码扫描错误",
                            type: "error"
                        })
                    }
                    this.numberFocus = true;
                })
            },
            printTag() {
                if (this.tag == "") {
                    this.$refs.uToast.show({
                        title: "请扫描内箱标签",
                        type: "error"
                    })
                    return;
                }
                if (this.number <= 0) {
                    this.$refs.uToast.show({
                        title: "请输入数量",
                        type: "error"
                    })
                    return;
                }
                if (this.printfloor.length <= 0) {
                    this.$refs.uToast.show({
                        title: "请选择楼层",
                        type: "error"
                    })
                    return;
                }
                var postData = {
                    MainData: {
                        tag: this.tag,
                        number: this.number,
                        floor: this.printfloor
                    }
                }
                this.$u.post('/api/StockOperate/PrintTag', postData).then(res => {
                    if (res.status) {
                        this.$refs.uToast.show({
                            title: "打印成功",
                            type: "success"
                        })
                        this.tagmatCode = "物料编码:";
                        this.tagQty = "包装数量:";
                        this.tag = "";
                    } else {
                        this.$refs.uToast.show({
                            title: res.message,
                            type: "error"
                        })
                    }
                })
            },
            outbound(val) {
                if (this.floor == "") {
                    this.$refs.uToast.show({
                        title: "请选择楼层",
                        type: "error"
                    })
                    return;
                }
                if (this.value == "") {
                    this.$refs.uToast.show({
                        title: "请选择区域",
                        type: "error"
                    })
                    return;
                }
                if (this.endType == "") {
                    this.$refs.uToast.show({
                        title: "请选择出库区域",
                        type: "error"
                    })
                    return;
                }
                var postData = {
                    MainData: {
                        matCode: this.itemCode,
                        orderNo: this.orderNo,
                        system: this.value,
                        floor: this.floor,
                        outNum: val,
                        endType: this.endType
                    }
                }
                this.$u.post('/api/ErpOrder/ReceiveOrderOutbound', postData).then(res => {
                    if (res.status) {
                        this.$refs.uToast.show({
                            title: "成功",
                            type: "success"
                        })
                        this.getData();
                    } else {
                        this.$refs.uToast.show({
                            title: res.message,
                            type: "error"
                        })
                    }
                })
            }
        }
    }
</script>
 
<style lang="scss">
    @import '@/common/uni-ui.scss';
 
    .content {
        display: flex;
        height: 150px;
    }
 
    .content-text {
        font-size: 14px;
        color: #666;
    }
 
    .itemstyle {
        margin-top: 20px;
        margin-left: 5%;
    }
 
    .headerstyle {
        width: 90%;
    }
</style>