1
2
3
4
5
6
<!DOCTYPE html>
<html lang= "zh" xmlns:th= "http://www.thymeleaf.org" >
<head>
<meta charset= "utf-8" >
<meta name= "viewport" content= "width=device-width, initial-scale=1.0" >
<!--360浏览器优先以webkit内核解析-->
7
<title> 概况</title>
8
<link rel= "shortcut icon" href= "favicon.ico" >
9
10
11
12
<link th:href= "@{/css/bootstrap.min.css}" rel= "stylesheet" />
<link th:href= "@{/css/font-awesome.css}" rel= "stylesheet" />
<link th:href= "@{/css/main/animate.min.css}" rel= "stylesheet" />
<link th:href= "@{/css/main/style.min862f.css}" rel= "stylesheet" />
13
14
15
</head>
<body class= "gray-bg" >
16
17
18
<div class= "row" style= "padding:20px 30px 10px 30px;" >
<div class= "col-sm-2" style= "padding:5px;" >
<div class= "total_box ys01" >
liufu
authored
6 years ago
19
20
<h1 id= "s1" > -</h1>
<p> 今日总单量</p>
21
</div>
22
</div>
23
24
<div class= "col-sm-2" style= "padding:5px;" >
<div class= "total_box ys02" >
liufu
authored
6 years ago
25
<h1 id= "s2" > -</h1>
liufu
authored
6 years ago
26
<p> 今日入库量</p>
27
</div>
28
</div>
29
30
<div class= "col-sm-2" style= "padding:5px;" >
<div class= "total_box ys03" >
liufu
authored
6 years ago
31
<h1 id= "s3" > -</h1>
liufu
authored
6 years ago
32
<p> 今日出库量</p>
33
</div>
34
</div>
35
36
<div class= "col-sm-2" style= "padding:5px;" >
<div class= "total_box ys04" >
liufu
authored
6 years ago
37
<h1 id= "s4" > -</h1>
liufu
authored
6 years ago
38
<p> 库存总量</p>
39
</div>
40
</div>
41
42
<div class= "col-sm-2" style= "padding:5px;" >
<div class= "total_box ys05" >
liufu
authored
6 years ago
43
<h1 id= "s5" > -</h1>
liufu
authored
6 years ago
44
<p> 库内物料品数</p>
45
46
47
48
</div>
</div>
<div class= "col-sm-2" style= "padding:5px;" >
<div class= "total_box ys06" >
liufu
authored
6 years ago
49
<h1 id= "s6" > -</h1>
liufu
authored
6 years ago
50
<p> 待执行任务数</p>
51
52
53
54
55
56
57
</div>
</div>
</div>
<div class= "row" style= "padding:0 30px;" >
<div class= "col-sm-6" style= "padding:5px 5px 10px 5px;" >
<div class= "float-e-margins" >
liufu
authored
6 years ago
58
<div class= "ibox-title" ><h5> 历史每日收发货量</h5></div>
59
<div class= "ibox-content" >
liufu
authored
6 years ago
60
<div id= "chart1" class= "flot-chart1" >
61
62
63
64
65
66
67
这里放图表
</div>
</div>
</div>
</div>
<div class= "col-sm-6" style= "padding:5px 5px 10px 5px;" >
<div class= "float-e-margins" >
liufu
authored
6 years ago
68
<div class= "ibox-title" ><h5> 库位利用率</h5></div>
69
<div class= "ibox-content" >
liufu
authored
6 years ago
70
<div id= "chart2" class= "flot-chart1" >
71
72
73
74
75
76
77
78
79
这里放图表
</div>
</div>
</div>
</div>
<div class= "col-sm-6" style= "padding:5px 5px 10px 5px;" >
<div class= "float-e-margins" >
<div class= "ibox-title" ><h5> 在线库存状态</h5></div>
<div class= "ibox-content" >
liufu
authored
6 years ago
80
<div id= "chart3" class= "flot-chart1" >
81
82
83
84
85
86
87
这里放图表
</div>
</div>
</div>
</div>
<div class= "col-sm-6" style= "padding:5px 5px 10px 5px;" >
<div class= "ibox float-e-margins" >
liufu
authored
6 years ago
88
<div class= "ibox-title" ><h5> 库存概况</h5></div>
89
<div class= "ibox-content" >
liufu
authored
6 years ago
90
<div id= "chart4" class= "flot-chart1" >
91
92
93
94
95
这里放图表
</div>
</div>
</div>
</div>
96
97
98
99
</div>
<script th:src= "@{/js/jquery.min.js}" ></script>
<script th:src= "@{/js/bootstrap.min.js}" ></script>
liufu
authored
6 years ago
100
<script th:src= "@{/js/echarts/echarts.js}" ></script>
huhai
authored
6 years ago
101
<script>
liufu
authored
6 years ago
102
$(function () {
liufu
authored
6 years ago
103
refresh()
liufu
authored
6 years ago
104
105
});
//测试时弄个5s
106
// self.setInterval("refresh()",5000);
liufu
authored
6 years ago
107
108
109
110
111
112
113
var chart1 = echarts.init(document.getElementById('chart1'));
var chart2 = echarts.init(document.getElementById('chart2'));
var chart3 = echarts.init(document.getElementById('chart3'));
var chart4 = echarts.init(document.getElementById('chart4'));
function refresh() {
114
$.get("../index/getShipmentsLast7Days").done(function (data) {
liufu
authored
6 years ago
115
116
chart1.setOption(JSON.parse(data));
})
117
$.get("../index/getLocationProp").done(function (data) {
liufu
authored
6 years ago
118
119
chart2.setOption(JSON.parse(data));
})
120
$.get("../index/getInventoryStatus").done(function (data) {
liufu
authored
6 years ago
121
122
chart3.setOption(JSON.parse(data));
})
123
$.get("../index/getInventoryProp").done(function(data){
liufu
authored
6 years ago
124
125
126
chart4.setOption(JSON.parse(data));
});
127
$.get("../index/getCommonData").done(function (data) {
liufu
authored
6 years ago
128
129
130
131
132
133
134
135
136
if(data.code==200){
$("#s1").text(data.data.bllCount)
$("#s2").text(data.data.receiptTotal)
$("#s3").text(data.data.shipmentTotal)
$("#s4").text(data.data.inventoryTotal)
$("#s5").text(data.data.materialCount)
$("#s6").text(data.data.taskUncompletedTotal)
}
})
liufu
authored
6 years ago
137
}
huhai
authored
6 years ago
138
139
</script>
140
141
</body>
</html>