制造成本分析部分字段

This commit is contained in:
2026-04-24 09:18:07 +08:00
parent 8839116a9a
commit 62340233e2
3 changed files with 6 additions and 23 deletions

View File

@@ -180,7 +180,7 @@ export default {
startTime: this.dateData.startTime, startTime: this.dateData.startTime,
endTime: this.dateData.endTime, endTime: this.dateData.endTime,
trendName: this.trendName, trendName: this.trendName,
analysisObject: [this.overheadName], analysisObject: ['原片'+this.overheadName],
levelId: this.factory, levelId: this.factory,
isOriginal:0,//0:原片 1:加工 isOriginal:0,//0:原片 1:加工
}; };

View File

@@ -166,7 +166,7 @@ export default {
const requestParams = { const requestParams = {
startTime: this.dateData.startTime, startTime: this.dateData.startTime,
endTime: this.dateData.endTime, endTime: this.dateData.endTime,
trendName: this.overheadName+'成本', trendName: '加工'+this.overheadName+'成本',
analysisObject: ['加工制造费用成本'], analysisObject: ['加工制造费用成本'],
levelId: this.factory, levelId: this.factory,
isOriginal:1,//0:原片 1:加工 isOriginal:1,//0:原片 1:加工

View File

@@ -196,36 +196,19 @@ export default {
// 调用接口 // 调用接口
getSingleMaterialAnalysis(requestParams).then((res) => { getSingleMaterialAnalysis(requestParams).then((res) => {
this.monData = res.data.currentMonthData.find(item => { this.monData = res.data.currentMonthData.find(item => {
if (this.fuelName === '电') {
return item.name === '加工' + this.fuelName + '成本'; return item.name === '加工' + this.fuelName + '成本';
}else{
return item.name === this.fuelName + '成本';
}
}); });
this.totalData = res.data.totalMonthData.find(item => { this.totalData = res.data.totalMonthData.find(item => {
if (this.fuelName === '电') {
return item.name === '加工' + this.fuelName + '成本'; return item.name === '加工' + this.fuelName + '成本';
}else{
return item.name === this.fuelName + '成本';
}
}); });
// this.relatedMon = res.data.relatedMon // this.relatedMon = res.data.relatedMon
this.relatedData = { this.relatedData = {
relatedMon: res.data.currentMonthData.filter(item => { relatedMon: res.data.currentMonthData.filter(item => {
if (this.fuelName === '电') {
return item.name !== '加工' + this.fuelName + '成本'; return item.name !== '加工' + this.fuelName + '成本';
}else{
return item.name !== this.fuelName + '成本';
}
}), // 兜底月度数据 }), // 兜底月度数据
relatedTotal: res.data.totalMonthData.filter(item => { relatedTotal: res.data.totalMonthData.filter(item => {
if (this.fuelName === '电') {
return item.name !== '加工' + this.fuelName + '成本'; return item.name !== '加工' + this.fuelName + '成本';
}else{
return item.name !== this.fuelName + '成本';
}
}) // 兜底累计数据 }) // 兜底累计数据
}; };
this.trend = res.data.dataTrend this.trend = res.data.dataTrend