运营驾驶舱对接
This commit is contained in:
@@ -189,23 +189,23 @@ export default {
|
||||
startTime: this.dateData.startTime,
|
||||
endTime: this.dateData.endTime,
|
||||
trendName: '原料' + this.meterialName + this.trendName,
|
||||
analysisObject: ['原料' + this.meterialName],
|
||||
analysisObject: [this.meterialName],
|
||||
levelId: this.factory,
|
||||
};
|
||||
// 调用接口
|
||||
getSingleMaterialAnalysis(requestParams).then((res) => {
|
||||
this.monData = res.data.currentMonthData.find(item => {
|
||||
return item.name === '原料' + this.meterialName;
|
||||
return item.name === this.meterialName + '成本';
|
||||
});
|
||||
this.totalData = res.data.totalMonthData.find(item => {
|
||||
return item.name === '原料' + this.meterialName;
|
||||
return item.name === this.meterialName + '成本';
|
||||
});
|
||||
this.relatedData = {
|
||||
relatedMon: res.data.currentMonthData.filter(item => {
|
||||
return item.name !== '原料' + this.meterialName;
|
||||
return item.name !== this.meterialName + '成本';
|
||||
}), // 兜底月度数据
|
||||
relatedTotal: res.data.totalMonthData.filter(item => {
|
||||
return item.name !== '原料' + this.meterialName;
|
||||
return item.name !== this.meterialName + '成本';
|
||||
}) // 兜底累计数据
|
||||
}
|
||||
this.trend = res.data.dataTrend
|
||||
|
||||
@@ -108,9 +108,7 @@ export default {
|
||||
totalData: {},
|
||||
trend: [],
|
||||
relatedData: {},
|
||||
trendName: '原片原料成本',
|
||||
// monthRelatedData: [],
|
||||
// totalRelatedData: [],
|
||||
trendName: '原片原料',
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ export default {
|
||||
overheadName:'',
|
||||
overheadOptions:[
|
||||
{value:'包材',label:'包材'},
|
||||
{value:'备品丶机物料',label:'备品丶机物料'},
|
||||
{value:'备件、机物料',label:'备件、机物料'},
|
||||
{value:'折旧',label:'折旧'},
|
||||
{value:'其他',label:'其他'}
|
||||
]
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
grid-template-columns: 1624px;
|
||||
">
|
||||
<!-- <monthlyRelatedMetrics :itemData="renderList" :title="'月度·相关指标分析'" /> -->
|
||||
<relateSingleFuelCostAnalysis :relatedData="relatedData" :title="'相关指标分析'" />
|
||||
<relateSingleFuelCostAnalysis :fuelName='fuelName' :relatedData="relatedData" :title="'相关指标分析'" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -213,7 +213,7 @@ export default {
|
||||
// index: this.index,
|
||||
// sort: 1,
|
||||
trendName: this.trendName,
|
||||
analysisObject: [this.fuelName + '成本'],
|
||||
analysisObject: [this.fuelName],
|
||||
// paramList: ['制造成本', '财务费用', '销售费用', '管理费用', '运费'],
|
||||
levelId: this.factory,
|
||||
// baseId: Number(this.factory),
|
||||
|
||||
@@ -211,7 +211,7 @@ export default {
|
||||
// index: this.index,
|
||||
// sort: 1,
|
||||
trendName: this.trendName,
|
||||
analysisObject: [this.fuelName + '成本'],
|
||||
analysisObject: [this.fuelName],
|
||||
// paramList: ['制造成本', '财务费用', '销售费用', '管理费用', '运费'],
|
||||
levelId: this.factory,
|
||||
// baseId: Number(this.factory),
|
||||
|
||||
Reference in New Issue
Block a user