|
|
|
@ -3,19 +3,18 @@ $(() => {
|
|
|
|
|
let fun = () => {
|
|
|
|
|
//班组计划统计
|
|
|
|
|
$.getJSON(`/foamBox/getTeamStatisticsJson?ids=${ids}`, function (result) {
|
|
|
|
|
console.log(result)
|
|
|
|
|
onDutyPlan(result.planAmount, result.actualAmount, result.planAmount - result.actualAmount)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//设备运行状态
|
|
|
|
|
$.getJSON(`/foamBox/getRunStatusJson?ids=${ids}`, function (result) {
|
|
|
|
|
console.log(1)
|
|
|
|
|
if (htmlId === '0' || htmlId === '1') {
|
|
|
|
|
deviceStatus(result);
|
|
|
|
|
} else {
|
|
|
|
|
deviceStatus2(result)
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// deviceStatus([1,1,1,1,1,1]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//库存统计
|
|
|
|
@ -51,12 +50,10 @@ $(() => {
|
|
|
|
|
}
|
|
|
|
|
fun()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const temperature = (res, ids) => {
|
|
|
|
|
let mycharts = echarts.init(ids);
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;"/>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
$(".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;"/>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
$(".foamingLineRunStatus table tr").append(info);
|
|
|
|
|
$(".foamingLineRunStatus table tr").html(info);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|