|
|
|
$(() => {
|
|
|
|
|
|
|
|
const statusArray = [0, 0, 0, 0, 0];
|
|
|
|
const syntheticDate = [0, 0, 0, 0, 0];
|
|
|
|
dataInformationFunction(statusArray);
|
|
|
|
synthetic(syntheticDate)
|
|
|
|
|
|
|
|
//设备OEE统计
|
|
|
|
OEEStatistics(null, document.getElementById("OEEStatistics"));
|
|
|
|
|
|
|
|
//库存情况
|
|
|
|
$.getJSON('/tankShell/getInventoryStatistics', function (result) {
|
|
|
|
inventory(result, document.getElementById("inventory"));
|
|
|
|
});
|
|
|
|
|
|
|
|
//生产计划
|
|
|
|
$.ajax({
|
|
|
|
url: '/storage/getProductionPlan',
|
|
|
|
type: 'GET',
|
|
|
|
dataType: 'JSON',
|
|
|
|
success: function (res) {
|
|
|
|
let Res = res
|
|
|
|
Res.data.forEach(val => {
|
|
|
|
val[0] = 'sc-228NE'
|
|
|
|
val[1] = '431'
|
|
|
|
val[2] = '0'
|
|
|
|
val[3] = '431'
|
|
|
|
val[4] = '0%'
|
|
|
|
});
|
|
|
|
Res.header = ['型号', '计划数', '完成数', '差异数', '执行进度']
|
|
|
|
dynamicTable({
|
|
|
|
el: '#productionPlan',
|
|
|
|
rowNum: 5,
|
|
|
|
timeout: 0,
|
|
|
|
header: Res.header,
|
|
|
|
data: Res.data,
|
|
|
|
index: false,
|
|
|
|
fontColor: '#B4B7BF ',
|
|
|
|
indexBGC: '#86F3FF',
|
|
|
|
headerBGC: 'rgba(8,36,75,0.2)',
|
|
|
|
oddRowBGC: 'rgba(8,36,75,0.2)',
|
|
|
|
evenRowBGC: 'rgba(6,25,57,0.2)',
|
|
|
|
colWidth: ['100%', '100%', '100%', '100%', '100%']
|
|
|
|
});
|
|
|
|
},
|
|
|
|
error: function (e) {
|
|
|
|
console.log(e)
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
//loss
|
|
|
|
$.getJSON('/tankShell/getInventoryStatistics', function (result) {
|
|
|
|
loss(result, document.getElementById("loss"));
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//设备故障排名
|
|
|
|
$.getJSON('/tankShell/getStatisticalOutputByModel', function (result) {
|
|
|
|
equipmentFailure(result, document.getElementById("equipmentFailure"));
|
|
|
|
});
|
|
|
|
|
|
|
|
})
|