添加轮询
parent
a2b8eeb4ab
commit
d7bbea4dcb
@ -1,25 +1,28 @@
|
||||
$(() => {
|
||||
// onDutyPlan(1234,1202,33);
|
||||
$.getJSON('/adsorptionTank/getTeamStatisticsJson', function (result) {
|
||||
// alert(result.actualAmount+"\t"+ result.differenceAmount)
|
||||
storageStatistics(result.className, result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
let fun = () => {
|
||||
$.getJSON('/adsorptionTank/getTeamStatisticsJson', function (result) {
|
||||
// alert(result.actualAmount+"\t"+ result.differenceAmount)
|
||||
storageStatistics(result.className, result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
|
||||
//按型号统计产量
|
||||
$.getJSON('/adsorptionTank/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result, document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
//按型号统计产量
|
||||
$.getJSON('/adsorptionTank/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result, document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
|
||||
//小时产量
|
||||
$.getJSON('/adsorptionTank/getHourProdutionJson', function (result) {
|
||||
brokenLineAreaDiagram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
//小时产量
|
||||
$.getJSON('/adsorptionTank/getHourProdutionJson', function (result) {
|
||||
brokenLineAreaDiagram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
|
||||
|
||||
//库存统计
|
||||
$.getJSON('/adsorptionTank/getMaterialStoreJson', function (result) {
|
||||
threeDimensionalCylindrical(result, document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
//库存统计
|
||||
$.getJSON('/adsorptionTank/getMaterialStoreJson', function (result) {
|
||||
threeDimensionalCylindrical(result, document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
setTimeout(fun, 10000)
|
||||
}
|
||||
fun()
|
||||
|
||||
})
|
||||
|
||||
|
@ -1,75 +1,80 @@
|
||||
$(() => {
|
||||
let fun = () => {
|
||||
|
||||
//数据信息
|
||||
$.getJSON('/aluminumLiner/getDataInformation', function (result) {
|
||||
const statusArray = [1, 0, 0, 0, 0];
|
||||
if (result.length > 0) {
|
||||
statusArray[0] = result[0].deviceStatus;
|
||||
statusArray[1] = result[0].devicePower;
|
||||
statusArray[2] = result[0].deviceEnergy;
|
||||
}
|
||||
dataInformationFunction(statusArray);
|
||||
});
|
||||
$.getJSON('/aluminumLiner/getRunParameters', function (result) {
|
||||
synthetic(result,{a:1,b:1})
|
||||
});
|
||||
//数据信息
|
||||
$.getJSON('/aluminumLiner/getDataInformation', function (result) {
|
||||
const statusArray = [1, 0, 0, 0, 0];
|
||||
if (result.length > 0) {
|
||||
statusArray[0] = result[0].deviceStatus;
|
||||
statusArray[1] = result[0].devicePower;
|
||||
statusArray[2] = result[0].deviceEnergy;
|
||||
}
|
||||
dataInformationFunction(statusArray);
|
||||
});
|
||||
$.getJSON('/aluminumLiner/getRunParameters', function (result) {
|
||||
synthetic(result, {a: 1, b: 1})
|
||||
});
|
||||
|
||||
|
||||
//loss/aluminumLiner/getLossStatistics
|
||||
$.getJSON('/aluminumLiner/getLossStatistics', function (result) {
|
||||
loss(result, document.getElementById("loss"));
|
||||
});
|
||||
//loss/aluminumLiner/getLossStatistics
|
||||
$.getJSON('/aluminumLiner/getLossStatistics', function (result) {
|
||||
loss(result, document.getElementById("loss"));
|
||||
});
|
||||
|
||||
|
||||
//设备OEE统计
|
||||
$.getJSON('/aluminumLiner/getOeeStatistics', function (result) {
|
||||
OEEStatistics(result, document.getElementById("OEEStatistics"));
|
||||
});
|
||||
//设备OEE统计
|
||||
$.getJSON('/aluminumLiner/getOeeStatistics', function (result) {
|
||||
OEEStatistics(result, document.getElementById("OEEStatistics"));
|
||||
});
|
||||
|
||||
//库存情况
|
||||
$.getJSON('/aluminumLiner/getInventoryStatistics', function (result) {
|
||||
inventory(result, document.getElementById("inventory"));
|
||||
});
|
||||
//库存情况
|
||||
$.getJSON('/aluminumLiner/getInventoryStatistics', function (result) {
|
||||
inventory(result, document.getElementById("inventory"));
|
||||
});
|
||||
|
||||
|
||||
//生产计划
|
||||
$.ajax({
|
||||
url: '/aluminumLiner/getProductionPlan',
|
||||
type: 'get',
|
||||
dataType: 'JSON',
|
||||
success: function (res) {
|
||||
let Res = {}
|
||||
|
||||
Res.data=res.map(val => {
|
||||
return [val["spe"],val["oq"],val["aq"],val["cha"],val.round,]
|
||||
})
|
||||
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: ['20%', '20%', '20%', '20%', '20%']
|
||||
});
|
||||
},
|
||||
error: function (e) {
|
||||
}
|
||||
});
|
||||
tableAnimation('#productionPlan')
|
||||
|
||||
//设备故障排名
|
||||
$.getJSON('/aluminumLiner/getStatisticalOutputByModel', function (result) {
|
||||
|
||||
equipmentFailure(result, document.getElementById("equipmentFailure"));
|
||||
});
|
||||
setTimeout(fun, 10000)
|
||||
}
|
||||
fun()
|
||||
let fun2 = () => {
|
||||
//生产计划
|
||||
$.ajax({
|
||||
url: '/aluminumLiner/getProductionPlan',
|
||||
type: 'get',
|
||||
dataType: 'JSON',
|
||||
success: function (res) {
|
||||
$('#productionPlan').empty()
|
||||
let Res = {}
|
||||
|
||||
//设备故障排名
|
||||
$.getJSON('/aluminumLiner/getStatisticalOutputByModel', function (result) {
|
||||
|
||||
equipmentFailure(result, document.getElementById("equipmentFailure"));
|
||||
});
|
||||
|
||||
Res.data = res.map(val => {
|
||||
return [val["spe"], val["oq"], val["aq"], val["cha"], val.round,]
|
||||
})
|
||||
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: ['20%', '20%', '20%', '20%', '20%']
|
||||
});
|
||||
},
|
||||
error: function (e) {
|
||||
}
|
||||
});
|
||||
return setTimeout(fun2, 100000)
|
||||
}
|
||||
fun2()
|
||||
tableAnimation('#productionPlan')
|
||||
})
|
@ -1,24 +1,28 @@
|
||||
$(()=>{
|
||||
//班组统计
|
||||
$.getJSON('/aluminumTank/getTeamStatisticsJson', function (result) {
|
||||
console.log(result.planAmount+' 数据'+ result.actualAmount, result.differenceAmount)
|
||||
storageStatistics('白班', result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
$(() => {
|
||||
let fun = () => {
|
||||
//班组统计
|
||||
$.getJSON('/aluminumTank/getTeamStatisticsJson', function (result) {
|
||||
console.log(result.planAmount + ' 数据' + result.actualAmount, result.differenceAmount)
|
||||
storageStatistics('白班', result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
|
||||
//按型号统计产量
|
||||
$.getJSON('/aluminumTank/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result,document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
//按型号统计产量
|
||||
$.getJSON('/aluminumTank/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result, document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
|
||||
//小时产量
|
||||
$.getJSON('/aluminumTank/getHourProdutionJson', function (result) {
|
||||
bluePolygonHistogram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
//小时产量
|
||||
$.getJSON('/aluminumTank/getHourProdutionJson', function (result) {
|
||||
bluePolygonHistogram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
|
||||
//库存统计
|
||||
$.getJSON('/aluminumTank/getMaterialStoreJson', function (result) {
|
||||
console.log(result)
|
||||
multipleThreeDimensionalCylindrical(result,document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
//库存统计
|
||||
$.getJSON('/aluminumTank/getMaterialStoreJson', function (result) {
|
||||
console.log(result)
|
||||
multipleThreeDimensionalCylindrical(result, document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
setTimeout(fun, 10000)
|
||||
}
|
||||
fun()
|
||||
})
|
||||
|
||||
|
@ -1,22 +1,26 @@
|
||||
$(()=>{
|
||||
// onDutyPlan(1234,1202,33);
|
||||
$.getJSON('/preassemble/getTeamStatisticsJson', function (result) {
|
||||
storageStatistics(result.className, result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
//按型号统计产量
|
||||
$.getJSON('/preassemble/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result,document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
$(() => {
|
||||
let fun = () => {
|
||||
// onDutyPlan(1234,1202,33);
|
||||
$.getJSON('/preassemble/getTeamStatisticsJson', function (result) {
|
||||
storageStatistics(result.className, result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
//按型号统计产量
|
||||
$.getJSON('/preassemble/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result, document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
|
||||
//小时产量
|
||||
$.getJSON('/preassemble/getHourProdutionJson', function (result) {
|
||||
greenPolygonalHistogram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
//小时产量
|
||||
$.getJSON('/preassemble/getHourProdutionJson', function (result) {
|
||||
greenPolygonalHistogram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
|
||||
//库存统计
|
||||
$.getJSON('/preassemble/getMaterialStoreJson', function (result) {
|
||||
threeDimensionalCylindrical(result,document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
//库存统计
|
||||
$.getJSON('/preassemble/getMaterialStoreJson', function (result) {
|
||||
threeDimensionalCylindrical(result, document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
setTimeout(fun, 10000)
|
||||
}
|
||||
fun()
|
||||
|
||||
})
|
||||
|
||||
|
@ -1,50 +1,59 @@
|
||||
$(()=>{
|
||||
//生产计划
|
||||
$.ajax({
|
||||
url: '/storage/getProductionPlan',
|
||||
type: 'GET',
|
||||
dataType: 'JSON',
|
||||
success: function(res) {
|
||||
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: ['20%', '20%', '20%', '20%','20%']
|
||||
});
|
||||
},
|
||||
error: function(e) {
|
||||
console.log(e)
|
||||
}
|
||||
});
|
||||
$(() => {
|
||||
let fun2 = () => {
|
||||
//生产计划
|
||||
$.ajax({
|
||||
url: '/storage/getProductionPlan',
|
||||
type: 'GET',
|
||||
dataType: 'JSON',
|
||||
success: function (res) {
|
||||
$('#productionPlan').empty()
|
||||
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: ['20%', '20%', '20%', '20%', '20%']
|
||||
});
|
||||
},
|
||||
error: function (e) {
|
||||
console.log(e)
|
||||
}
|
||||
});
|
||||
return setTimeout(fun2, 100000)
|
||||
}
|
||||
fun2()
|
||||
tableAnimation('#productionPlan')
|
||||
|
||||
//当前库存统计
|
||||
$.getJSON(`/storage/getStoreStatistics?ids=${ids}`, function (result) {
|
||||
multipleThreeDimensionalCylindrical(result, document.getElementById("theCurrentInventory"));
|
||||
});
|
||||
//库位参数
|
||||
$.getJSON(`/storage/getParamJson?ids=${ids}`, function (result) {
|
||||
//单日出入库统计
|
||||
storageStatistics(result[0] == null ? 0 : result[0],result[1] == null ? 0 : result[1],result[2] == null ? 0 : result[2],result[3] == null ? 0 : result[3]);
|
||||
let fun = () => {
|
||||
//当前库存统计
|
||||
$.getJSON(`/storage/getStoreStatistics?ids=${ids}`, function (result) {
|
||||
multipleThreeDimensionalCylindrical(result, document.getElementById("theCurrentInventory"), 2);
|
||||
});
|
||||
//库位参数
|
||||
$.getJSON(`/storage/getParamJson?ids=${ids}`, function (result) {
|
||||
//单日出入库统计
|
||||
storageStatistics(result[0] == null ? 0 : result[0], result[1] == null ? 0 : result[1], result[2] == null ? 0 : result[2], result[3] == null ? 0 : result[3]);
|
||||
|
||||
//库存统计
|
||||
$("#emptyLocation-left").text(result[4] == null ? 0 : result[4]);
|
||||
$("#haveUsedLocation-left").text(result[6] == null ? 0 : result[5]);
|
||||
$("#emptyLocation-right").text(result[5] == null ? 0 : result[6]);
|
||||
$("#haveUsedLocation-right").text(result[7] == null ? 0 : result[7]);
|
||||
//库存统计
|
||||
$("#emptyLocation-left").text(result[4] == null ? 0 : result[4]);
|
||||
$("#haveUsedLocation-left").text(result[6] == null ? 0 : result[5]);
|
||||
$("#emptyLocation-right").text(result[5] == null ? 0 : result[6]);
|
||||
$("#haveUsedLocation-right").text(result[7] == null ? 0 : result[7]);
|
||||
|
||||
//库位占比
|
||||
$("#emptyLocationNumber").text(result[8] == null ? 0 : result[8]);
|
||||
$("#emptyLocationRatio").text(result[9] == null ? 0 : result[9]);
|
||||
$("#haveUsedLocationNumber").text(result[10] == null ? 0 : result[10]);
|
||||
$("#haveUsedLocationRatio").text(result[11] == null ? 0 : result[11]);
|
||||
});
|
||||
//库位占比
|
||||
$("#emptyLocationNumber").text(result[8] == null ? 0 : result[8]);
|
||||
$("#emptyLocationRatio").text(result[9] == null ? 0 : result[9]);
|
||||
$("#haveUsedLocationNumber").text(result[10] == null ? 0 : result[10]);
|
||||
$("#haveUsedLocationRatio").text(result[11] == null ? 0 : result[11]);
|
||||
});
|
||||
setTimeout(fun, 10000)
|
||||
}
|
||||
fun()
|
||||
})
|
@ -1,23 +1,27 @@
|
||||
$(()=>{
|
||||
//班组统计
|
||||
// onDutyPlan(1234,1202,33);
|
||||
$.getJSON('/tankShell/getTeamStatisticsJson', function (result) {
|
||||
storageStatistics('白班', result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
$(() => {
|
||||
let fun = () => {
|
||||
//班组统计
|
||||
// onDutyPlan(1234,1202,33);
|
||||
$.getJSON('/tankShell/getTeamStatisticsJson', function (result) {
|
||||
storageStatistics('白班', result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
|
||||
//按型号统计产量
|
||||
$.getJSON('/tankShell/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result,document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
//按型号统计产量
|
||||
$.getJSON('/tankShell/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result, document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
|
||||
//小时产量
|
||||
$.getJSON('/tankShell/getHourProdutionJson', function (result) {
|
||||
brokenLineAreaDiagram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
//小时产量
|
||||
$.getJSON('/tankShell/getHourProdutionJson', function (result) {
|
||||
brokenLineAreaDiagram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
|
||||
//库存统计
|
||||
$.getJSON('/tankShell/getMaterialStoreJson', function (result) {
|
||||
multipleThreeDimensionalCylindrical(result,document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
//库存统计
|
||||
$.getJSON('/tankShell/getMaterialStoreJson', function (result) {
|
||||
multipleThreeDimensionalCylindrical(result, document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
setTimeout(fun, 10000)
|
||||
}
|
||||
fun()
|
||||
})
|
||||
|
||||
|
@ -1,75 +1,80 @@
|
||||
$(() => {
|
||||
let fun = () => {
|
||||
|
||||
//数据信息
|
||||
$.getJSON('/aluminumLiner/getDataInformation', function (result) {
|
||||
const statusArray = [1, 0, 0, 0, 0];
|
||||
if (result.length > 0) {
|
||||
statusArray[0] = result[0].deviceStatus;
|
||||
statusArray[1] = result[0].devicePower;
|
||||
statusArray[2] = result[0].deviceEnergy;
|
||||
}
|
||||
dataInformationFunction(statusArray);
|
||||
});
|
||||
$.getJSON('/aluminumLiner/getRunParameters', function (result) {
|
||||
synthetic(result,{a:1,b:1})
|
||||
});
|
||||
//数据信息
|
||||
$.getJSON('/aluminumLiner/getDataInformation', function (result) {
|
||||
const statusArray = [1, 0, 0, 0, 0];
|
||||
if (result.length > 0) {
|
||||
statusArray[0] = result[0].deviceStatus;
|
||||
statusArray[1] = result[0].devicePower;
|
||||
statusArray[2] = result[0].deviceEnergy;
|
||||
}
|
||||
dataInformationFunction(statusArray);
|
||||
});
|
||||
$.getJSON('/aluminumLiner/getRunParameters', function (result) {
|
||||
synthetic(result, {a: 1, b: 1})
|
||||
});
|
||||
|
||||
|
||||
//loss/aluminumLiner/getLossStatistics
|
||||
$.getJSON('/aluminumLiner/getLossStatistics', function (result) {
|
||||
loss(result, document.getElementById("loss"));
|
||||
});
|
||||
//loss/aluminumLiner/getLossStatistics
|
||||
$.getJSON('/aluminumLiner/getLossStatistics', function (result) {
|
||||
loss(result, document.getElementById("loss"));
|
||||
});
|
||||
|
||||
|
||||
//设备OEE统计
|
||||
$.getJSON('/aluminumLiner/getOeeStatistics', function (result) {
|
||||
OEEStatistics(result, document.getElementById("OEEStatistics"));
|
||||
});
|
||||
//设备OEE统计
|
||||
$.getJSON('/aluminumLiner/getOeeStatistics', function (result) {
|
||||
OEEStatistics(result, document.getElementById("OEEStatistics"));
|
||||
});
|
||||
|
||||
//库存情况
|
||||
$.getJSON('/aluminumLiner/getInventoryStatistics', function (result) {
|
||||
inventory(result, document.getElementById("inventory"));
|
||||
});
|
||||
//库存情况
|
||||
$.getJSON('/aluminumLiner/getInventoryStatistics', function (result) {
|
||||
inventory(result, document.getElementById("inventory"));
|
||||
});
|
||||
|
||||
|
||||
//生产计划
|
||||
$.ajax({
|
||||
url: '/aluminumLiner/getProductionPlan',
|
||||
type: 'get',
|
||||
dataType: 'JSON',
|
||||
success: function (res) {
|
||||
let Res = {}
|
||||
|
||||
Res.data=res.map(val => {
|
||||
return [val.spe,val.oq,val.aq,val.cha,val.round,]
|
||||
})
|
||||
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: ['20%', '20%', '20%', '20%', '20%']
|
||||
});
|
||||
},
|
||||
error: function (e) {
|
||||
}
|
||||
});
|
||||
tableAnimation('#productionPlan')
|
||||
|
||||
//设备故障排名
|
||||
$.getJSON('/aluminumLiner/getStatisticalOutputByModel', function (result) {
|
||||
|
||||
equipmentFailure(result, document.getElementById("equipmentFailure"));
|
||||
});
|
||||
setTimeout(fun, 10000)
|
||||
}
|
||||
fun()
|
||||
let fun2 = () => {
|
||||
//生产计划
|
||||
$.ajax({
|
||||
url: '/aluminumLiner/getProductionPlan',
|
||||
type: 'get',
|
||||
dataType: 'JSON',
|
||||
success: function (res) {
|
||||
$('#productionPlan').empty()
|
||||
let Res = {}
|
||||
|
||||
//设备故障排名
|
||||
$.getJSON('/aluminumLiner/getStatisticalOutputByModel', function (result) {
|
||||
|
||||
equipmentFailure(result, document.getElementById("equipmentFailure"));
|
||||
});
|
||||
|
||||
Res.data = res.map(val => {
|
||||
return [val["spe"], val["oq"], val["aq"], val["cha"], val.round,]
|
||||
})
|
||||
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: ['20%', '20%', '20%', '20%', '20%']
|
||||
});
|
||||
},
|
||||
error: function (e) {
|
||||
}
|
||||
});
|
||||
return setTimeout(fun2, 100000)
|
||||
}
|
||||
fun2()
|
||||
tableAnimation('#productionPlan')
|
||||
})
|
@ -1,24 +1,28 @@
|
||||
$(()=>{
|
||||
//班组统计
|
||||
$.getJSON('/aluminumTank/getTeamStatisticsJson', function (result) {
|
||||
console.log(result.planAmount+' 数据'+ result.actualAmount, result.differenceAmount)
|
||||
storageStatistics('白班', result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
$(() => {
|
||||
let fun = () => {
|
||||
//班组统计
|
||||
$.getJSON('/aluminumTank/getTeamStatisticsJson', function (result) {
|
||||
console.log(result.planAmount + ' 数据' + result.actualAmount, result.differenceAmount)
|
||||
storageStatistics('白班', result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
|
||||
//按型号统计产量
|
||||
$.getJSON('/aluminumTank/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result,document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
//按型号统计产量
|
||||
$.getJSON('/aluminumTank/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result, document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
|
||||
//小时产量
|
||||
$.getJSON('/aluminumTank/getHourProdutionJson', function (result) {
|
||||
bluePolygonHistogram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
//小时产量
|
||||
$.getJSON('/aluminumTank/getHourProdutionJson', function (result) {
|
||||
bluePolygonHistogram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
|
||||
//库存统计
|
||||
$.getJSON('/aluminumTank/getMaterialStoreJson', function (result) {
|
||||
console.log(result)
|
||||
multipleThreeDimensionalCylindrical(result,document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
//库存统计
|
||||
$.getJSON('/aluminumTank/getMaterialStoreJson', function (result) {
|
||||
console.log(result)
|
||||
multipleThreeDimensionalCylindrical(result, document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
setTimeout(fun, 10000)
|
||||
}
|
||||
fun()
|
||||
})
|
||||
|
||||
|
@ -1,22 +1,26 @@
|
||||
$(()=>{
|
||||
// onDutyPlan(1234,1202,33);
|
||||
$.getJSON('/preassemble/getTeamStatisticsJson', function (result) {
|
||||
storageStatistics(result.className, result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
//按型号统计产量
|
||||
$.getJSON('/preassemble/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result,document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
$(() => {
|
||||
let fun = () => {
|
||||
// onDutyPlan(1234,1202,33);
|
||||
$.getJSON('/preassemble/getTeamStatisticsJson', function (result) {
|
||||
storageStatistics(result.className, result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
//按型号统计产量
|
||||
$.getJSON('/preassemble/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result, document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
|
||||
//小时产量
|
||||
$.getJSON('/preassemble/getHourProdutionJson', function (result) {
|
||||
greenPolygonalHistogram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
//小时产量
|
||||
$.getJSON('/preassemble/getHourProdutionJson', function (result) {
|
||||
greenPolygonalHistogram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
|
||||
//库存统计
|
||||
$.getJSON('/preassemble/getMaterialStoreJson', function (result) {
|
||||
threeDimensionalCylindrical(result,document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
//库存统计
|
||||
$.getJSON('/preassemble/getMaterialStoreJson', function (result) {
|
||||
threeDimensionalCylindrical(result, document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
setTimeout(fun, 10000)
|
||||
}
|
||||
fun()
|
||||
|
||||
})
|
||||
|
||||
|
@ -1,50 +1,59 @@
|
||||
$(()=>{
|
||||
//生产计划
|
||||
$.ajax({
|
||||
url: '/storage/getProductionPlan',
|
||||
type: 'GET',
|
||||
dataType: 'JSON',
|
||||
success: function(res) {
|
||||
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: ['20%', '20%', '20%', '20%','20%']
|
||||
});
|
||||
},
|
||||
error: function(e) {
|
||||
console.log(e)
|
||||
}
|
||||
});
|
||||
$(() => {
|
||||
let fun2 = () => {
|
||||
//生产计划
|
||||
$.ajax({
|
||||
url: '/storage/getProductionPlan',
|
||||
type: 'GET',
|
||||
dataType: 'JSON',
|
||||
success: function (res) {
|
||||
$('#productionPlan').empty()
|
||||
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: ['20%', '20%', '20%', '20%', '20%']
|
||||
});
|
||||
},
|
||||
error: function (e) {
|
||||
console.log(e)
|
||||
}
|
||||
});
|
||||
return setTimeout(fun2, 100000)
|
||||
}
|
||||
fun2()
|
||||
tableAnimation('#productionPlan')
|
||||
|
||||
//当前库存统计
|
||||
$.getJSON(`/storage/getStoreStatistics?ids=${ids}`, function (result) {
|
||||
multipleThreeDimensionalCylindrical(result, document.getElementById("theCurrentInventory"));
|
||||
});
|
||||
//库位参数
|
||||
$.getJSON(`/storage/getParamJson?ids=${ids}`, function (result) {
|
||||
//单日出入库统计
|
||||
storageStatistics(result[0] == null ? 0 : result[0],result[1] == null ? 0 : result[1],result[2] == null ? 0 : result[2],result[3] == null ? 0 : result[3]);
|
||||
let fun = () => {
|
||||
//当前库存统计
|
||||
$.getJSON(`/storage/getStoreStatistics?ids=${ids}`, function (result) {
|
||||
multipleThreeDimensionalCylindrical(result, document.getElementById("theCurrentInventory"), 2);
|
||||
});
|
||||
//库位参数
|
||||
$.getJSON(`/storage/getParamJson?ids=${ids}`, function (result) {
|
||||
//单日出入库统计
|
||||
storageStatistics(result[0] == null ? 0 : result[0], result[1] == null ? 0 : result[1], result[2] == null ? 0 : result[2], result[3] == null ? 0 : result[3]);
|
||||
|
||||
//库存统计
|
||||
$("#emptyLocation-left").text(result[4] == null ? 0 : result[4]);
|
||||
$("#haveUsedLocation-left").text(result[6] == null ? 0 : result[5]);
|
||||
$("#emptyLocation-right").text(result[5] == null ? 0 : result[6]);
|
||||
$("#haveUsedLocation-right").text(result[7] == null ? 0 : result[7]);
|
||||
//库存统计
|
||||
$("#emptyLocation-left").text(result[4] == null ? 0 : result[4]);
|
||||
$("#haveUsedLocation-left").text(result[6] == null ? 0 : result[5]);
|
||||
$("#emptyLocation-right").text(result[5] == null ? 0 : result[6]);
|
||||
$("#haveUsedLocation-right").text(result[7] == null ? 0 : result[7]);
|
||||
|
||||
//库位占比
|
||||
$("#emptyLocationNumber").text(result[8] == null ? 0 : result[8]);
|
||||
$("#emptyLocationRatio").text(result[9] == null ? 0 : result[9]);
|
||||
$("#haveUsedLocationNumber").text(result[10] == null ? 0 : result[10]);
|
||||
$("#haveUsedLocationRatio").text(result[11] == null ? 0 : result[11]);
|
||||
});
|
||||
//库位占比
|
||||
$("#emptyLocationNumber").text(result[8] == null ? 0 : result[8]);
|
||||
$("#emptyLocationRatio").text(result[9] == null ? 0 : result[9]);
|
||||
$("#haveUsedLocationNumber").text(result[10] == null ? 0 : result[10]);
|
||||
$("#haveUsedLocationRatio").text(result[11] == null ? 0 : result[11]);
|
||||
});
|
||||
setTimeout(fun, 10000)
|
||||
}
|
||||
fun()
|
||||
})
|
@ -1,23 +1,27 @@
|
||||
$(()=>{
|
||||
//班组统计
|
||||
// onDutyPlan(1234,1202,33);
|
||||
$.getJSON('/tankShell/getTeamStatisticsJson', function (result) {
|
||||
storageStatistics('白班', result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
$(() => {
|
||||
let fun = () => {
|
||||
//班组统计
|
||||
// onDutyPlan(1234,1202,33);
|
||||
$.getJSON('/tankShell/getTeamStatisticsJson', function (result) {
|
||||
storageStatistics('白班', result.planAmount, result.actualAmount, result.differenceAmount,)
|
||||
});
|
||||
|
||||
//按型号统计产量
|
||||
$.getJSON('/tankShell/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result,document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
//按型号统计产量
|
||||
$.getJSON('/tankShell/getMaterialProdutionJson', function (result) {
|
||||
horizontalBarChart(result, document.getElementById("statisticalOutputByModel"));
|
||||
});
|
||||
|
||||
//小时产量
|
||||
$.getJSON('/tankShell/getHourProdutionJson', function (result) {
|
||||
brokenLineAreaDiagram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
//小时产量
|
||||
$.getJSON('/tankShell/getHourProdutionJson', function (result) {
|
||||
brokenLineAreaDiagram(result, document.getElementById("hourlyOutputStatistics"));
|
||||
});
|
||||
|
||||
//库存统计
|
||||
$.getJSON('/tankShell/getMaterialStoreJson', function (result) {
|
||||
multipleThreeDimensionalCylindrical(result,document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
//库存统计
|
||||
$.getJSON('/tankShell/getMaterialStoreJson', function (result) {
|
||||
multipleThreeDimensionalCylindrical(result, document.getElementById("inventoryStatistics"));
|
||||
});
|
||||
setTimeout(fun, 10000)
|
||||
}
|
||||
fun()
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue