1.修改月度开炉次数统计报表名称显示
main
liuhr 2 years ago
parent f5858de707
commit a5f22a4ec1

@ -417,7 +417,6 @@ const EquipmentRecordStateMonthTotal = () => {
// //
equipmentRecordApi.getEquipmentRecordStateMonthTotal().then((res: any) => { equipmentRecordApi.getEquipmentRecordStateMonthTotal().then((res: any) => {
res.forEach((item: any) => { res.forEach((item: any) => {
result.push({ product: item.totalMonth + '月', ...item }) result.push({ product: item.totalMonth + '月', ...item })
}) })
@ -751,12 +750,11 @@ const EquipmentRecordOEEMonthTotal = () => {
// //
const EquipmentRecordFurnaceMonthTotal = () => { const EquipmentRecordFurnaceMonthTotal = () => {
let month: any = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; // let month: any = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
let result: Array<object> = []; let result: Array<object> = [];
// //
equipmentRecordApi.getEquipmentRecordFurnaceMonthTotal().then((res: any) => { equipmentRecordApi.getEquipmentRecordFurnaceMonthTotal().then((res: any) => {
debugger
var obj = {}, newArr = []; var obj = {}, newArr = [];
res.forEach(function (item, suffix) { res.forEach(function (item, suffix) {
@ -777,14 +775,12 @@ const EquipmentRecordFurnaceMonthTotal = () => {
}) })
newArr.forEach((item: any) => { newArr.forEach((item: any) => {
let CemeCon = item.filter(c => { let Homegrown = item.filter(c => { return c.equipmentType == 'Homegrown' })
return c.equipmentType == 'Homegrown' let Import = item.filter(b => { return b.equipmentType == 'Import' })
})
let Balzers = item.filter(b => { return b.equipmentType == 'Import' })
result.push({ result.push({
product: item[0].totalMonth + '月', product: item[0].totalMonth + '月',
Homegrown: CemeCon[0].furnaceNum, Homegrown: Homegrown[0].furnaceNum,
Import: Balzers[0].furnaceNum, Import: Import[0].furnaceNum,
}) })
}) })
@ -808,7 +804,7 @@ const EquipmentRecordFurnaceMonthTotal = () => {
// left: 0, // left: 0,
right: '2%', right: '2%',
top: 1, top: 1,
data: ['Homegrown', 'Import'] data: ['国产炉', '进口炉']
}, },
// grid: { // grid: {
// top: '5%', // top: '5%',
@ -871,7 +867,7 @@ const EquipmentRecordFurnaceMonthTotal = () => {
}, },
series: [ series: [
{ {
name: 'Homegrown', name: '国产炉',
type: 'bar', type: 'bar',
itemStyle: { itemStyle: {
normal: { normal: {
@ -889,7 +885,7 @@ const EquipmentRecordFurnaceMonthTotal = () => {
} }
}, },
{ {
name: 'Import', name: '进口炉',
type: 'bar', type: 'bar',
itemStyle: { itemStyle: {
normal: { normal: {

Loading…
Cancel
Save