headLeft.vue
2.54 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
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
<template>
<div>
<div class="title-text">仓库库位使用情况</div>
<div style="width: 100%; height: 90%; position: relative; left: 0vw; top: 0vw;">
<div class="location">
<div class="item">
<div class="value">{{ form.d1 }}</div>
<div class="name">总库存库位</div>
</div>
<div class="item">
<div class="value">{{ form.d2 }}</div>
<div class="name">已用</div>
</div>
<div class="item">
<div class="value">{{ form.d3 }}</div>
<div class="name">当日入库</div>
</div>
<div class="item">
<div class="value">{{ form.d4 }}</div>
<div class="name">当月入库</div>
</div>
</div>
<div class="location">
<div class="item">
<div class="value">{{ form.d5 }}</div>
<div class="name">使用率</div>
</div>
<div class="item">
<div class="value">{{ form.d6 }}</div>
<div class="name">未用</div>
</div>
<div class="item">
<div class="value">{{ form.d7 }}</div>
<div class="name">当日出库</div>
</div>
<div class="item">
<div class="value">{{ form.d8 }}</div>
<div class="name">当月出库</div>
</div>
</div>
</div>
</div>
</template>
<script>
import { each } from 'jquery';
export default {
data() {
return {
sysinfo: [],
form: {
},
}
},
methods: {
sed(data) {
this.form = data;
},
},
mounted() {
debugger
},
}
</script>
<style lang="scss" scoped>
.title-text {
width: 100%;
height: 3vh;
font-size: 2vh;
font-weight: 600;
color: #fff;
text-align: left;
padding-left: 1vw;
}
.location {
height: 40%;
display: flex;
// border: 2px solid #3879c9;
justify-content: space-between;
// align-items: center;
margin: 1vh 7px 20px 7px;
}
.location2 {
height: 100%;
display: flex;
// border: 2px solid #3879c9;
justify-content: space-between;
// align-items: center;
margin: 0px 0 10px 7px;
}
.box {
flex: 1;
/* 左右各占50%宽度 */
height: 100%;
display: flex;
// flex-direction: column;
/* 内部item上下排列 */
justify-content: space-around;
/* item均匀分布 */
// align-items: center;
/* item水平居中 */
}
.item {
width: 20%;
height: 90%;
border-radius: 5px;
border: 1px solid #67c8fb;
display: flex;
flex-direction: column;
justify-content: center;
/* 名称左、数值右 */
align-items: center;
/* 内容垂直居中 */
padding: 0 5px;
/* 内容不贴边框 */
background-color: #062448;
}
/* 名称/数值样式区分 */
.name {
color: #fff;
font-size: 2vh;
}
.value {
color: #67c8fb;
font-size: 3vh;
font-weight: bold;
}
</style>