LocationNumMonitor.js
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
//请求玻布仓库位数据
function LoadBB() {
$.ajax({
async: false,
url: "/monitor/LocationNumMonitor/GetLocations",
type: "post",
data: { type: "YCL_WareCell" },
dataType: "json",
success: function (data) {
Num = data.data
$("#BB1").html(Num.EmptyNum)
$("#BB2").html(Num.EmptyConNum)
$("#BB3").html(Num.SomeNum)
$("#BB4").html(Num.LockNum)
}
});
}
//请求外卖仓库位数据
function LoadPJ() {
$.ajax({
async: false,
url: "/monitor/LocationNumMonitor/GetLocations",
type: "post",
data: { type: "PPJ_WareCell" },
dataType: "json",
success: function (data) {
Num = data.data
$("#PJ1").html(Num.EmptyNum)
$("#PJ2").html(Num.EmptyConNum)
$("#PJ3").html(Num.SomeNum)
$("#PJ4").html(Num.LockNum)
}
});
}
//请求自用仓库位数据
function LoadPP() {
$.ajax({
async: false,
url: "/monitor/LocationNumMonitor/GetLocations",
type: "post",
data: { type: "PPP_WareCell" },
dataType: "json",
success: function (data) {
Num = data.data
$("#PP1").html(Num.EmptyNum)
$("#PP2").html(Num.EmptyConNum)
$("#PP3").html(Num.SomeNum)
$("#PP4").html(Num.LockNum)
}
});
}
//请求铜箔仓库位数据
function LoadTB() {
$.ajax({
async: false,
url: "/monitor/LocationNumMonitor/GetLocations",
type: "post",
data: { type: "TB_WareCell" },
dataType: "json",
success: function (data) {
Num = data.data
$("#TB1").html(Num.EmptyNum)
$("#TB2").html(Num.EmptyConNum)
$("#TB3").html(Num.SomeNum)
$("#TB4").html(Num.LockNum)
}
});
}
//请求成品仓库位数据
function LoadCP() {
$.ajax({
async: false,
url: "/monitor/LocationNumMonitor/GetLocations",
type: "post",
data: { type: "CP_WareCell" },
dataType: "json",
success: function (data) {
Num = data.data
$("#CP1").html(Num.EmptyNum)
$("#CP2").html(Num.EmptyConNum)
$("#CP3").html(Num.SomeNum)
$("#CP4").html(Num.LockNum)
}
});
}
function Loaddata() {
LoadBB();
LoadPJ();
LoadPP();
LoadTB();
LoadCP();
}
//初始加载
$(document).ready(function () {
Loaddata();
window.setInterval("Loaddata()", 30000);
});