|
|
@ -3,19 +3,18 @@ $(() => {
|
|
|
|
let fun = () => {
|
|
|
|
let fun = () => {
|
|
|
|
//班组计划统计
|
|
|
|
//班组计划统计
|
|
|
|
$.getJSON(`/foamBox/getTeamStatisticsJson?ids=${ids}`, function (result) {
|
|
|
|
$.getJSON(`/foamBox/getTeamStatisticsJson?ids=${ids}`, function (result) {
|
|
|
|
console.log(result)
|
|
|
|
|
|
|
|
onDutyPlan(result.planAmount, result.actualAmount, result.planAmount - result.actualAmount)
|
|
|
|
onDutyPlan(result.planAmount, result.actualAmount, result.planAmount - result.actualAmount)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//设备运行状态
|
|
|
|
//设备运行状态
|
|
|
|
$.getJSON(`/foamBox/getRunStatusJson?ids=${ids}`, function (result) {
|
|
|
|
$.getJSON(`/foamBox/getRunStatusJson?ids=${ids}`, function (result) {
|
|
|
|
|
|
|
|
console.log(1)
|
|
|
|
if (htmlId === '0' || htmlId === '1') {
|
|
|
|
if (htmlId === '0' || htmlId === '1') {
|
|
|
|
deviceStatus(result);
|
|
|
|
deviceStatus(result);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
deviceStatus2(result)
|
|
|
|
deviceStatus2(result)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// deviceStatus([1,1,1,1,1,1]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//库存统计
|
|
|
|
//库存统计
|
|
|
@ -51,12 +50,10 @@ $(() => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fun()
|
|
|
|
fun()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const temperature = (res, ids) => {
|
|
|
|
const temperature = (res, ids) => {
|
|
|
|
let mycharts = echarts.init(ids);
|
|
|
|
let mycharts = echarts.init(ids);
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let option = {
|
|
|
|
let option = {
|
|
|
@ -137,7 +134,7 @@ const deviceStatus = (statusArray) => {
|
|
|
|
<img src="../../img/foamBox/${statusArray[5] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:68%;width: 2vw;"/>
|
|
|
|
<img src="../../img/foamBox/${statusArray[5] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:68%;width: 2vw;"/>
|
|
|
|
`;
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
|
|
$(".foamingLineRunStatus table tr").append(info);
|
|
|
|
$(".foamingLineRunStatus table tr").html(info);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -149,6 +146,6 @@ const deviceStatus2 = (statusArray) => {
|
|
|
|
<img src="../../img/foamBox/${statusArray[5] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:68%;width: 2vw;"/>
|
|
|
|
<img src="../../img/foamBox/${statusArray[5] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:68%;width: 2vw;"/>
|
|
|
|
`;
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
|
|
$(".foamingLineRunStatus table tr").append(info);
|
|
|
|
$(".foamingLineRunStatus table tr").html(info);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|