headRight.vue
2.43 KB
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
<template>
<div class="dv-content-body-head-list-right">
<dv-border-box-12>
<div>
<div class="dv-content-body-head-list-right-title">{{ $gl('that month') }}</div>
<div class="dv-content-body-head-list-right-details">
<div class="dv-content-body-head-list-right-text">
<div class="dv-content-body-head-list-right-text-digit">{{ result.receiptNum }}</div>
<!-- <div class="dv-content-body-head-list-right-text-digit">2534</div> -->
<div class="dv-content-body-head-list-right-text-library">{{ $gl('warehousing') }}</div>
</div>
<div class="dv-content-body-head-list-right-text">
<div class="dv-content-body-head-list-right-text-digit">{{ result.shipmentNum }}</div>
<!-- <div class="dv-content-body-head-list-right-text-digit">3609</div> -->
<div class="dv-content-body-head-list-right-text-library">{{ $gl('outbound') }}</div>
</div>
<div class="dv-content-body-head-list-right-dataV"><dv-percent-pond :config="conf" style="width:100%;height:100%;" /></div>
</div>
</div>
</dv-border-box-12>
</div>
</template>
<script>
export default {
data() {
return {
conf: {
value: 0,
borderWidth: 2,
},
result: {
shipmentNum: 0, //出库量
receiptNum: 0, //入库量
},
}
},
methods: {
getData(data) {
this.result.shipmentNum = data.shipmentNum
this.result.receiptNum = data.receiptNum
this.conf = {
value: data.proportion,
borderWidth: 2,
}
},
},
}
</script>
<style lang="less" scoped>
.dv-content-body-head-list-right {
width: 33vw;
height: 95%;
div {
.dv-content-body-head-list-right-title {
width: 100%;
height: 20%;
padding: 8px 0 0 22px;
font-size: 1.5vw;
color: aliceblue;
font-weight: 800;
}
.dv-content-body-head-list-right-details {
width: 96%;
height: 19vh;
display: flex;
.dv-content-body-head-list-right-text {
width: 34%;
height: 50%;
display: block;
text-align: center;
margin: 5px 0 0 13px;
border: 2px solid rgb(4, 126, 213);
border-radius: 10px;
.dv-content-body-head-list-right-text-digit {
width: 100%;
height: 50%;
font-size: 20px;
color: #fff;
line-height: 40px;
}
.dv-content-body-head-list-right-text-library {
width: 100%;
height: 50%;
font-size: 15px;
color: #fff;
}
}
.dv-content-body-head-list-right-dataV {
width: 12vw;
height: 50%;
margin: 5px 0 0 12px;
}
}
}
}
</style>