制造成本分析部分字段

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,
endTime: this.dateData.endTime,
trendName: this.trendName,
analysisObject: [this.overheadName],
analysisObject: ['原片'+this.overheadName],
levelId: this.factory,
isOriginal:0,//0:原片 1:加工
};

View File

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

View File

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