feat: tkx 修改质量报表
This commit is contained in:
parent
e7b4df54ce
commit
5594b2c982
|
@ -201,7 +201,7 @@ export default {
|
|||
production_cost_unit:item.production_cost_unit,
|
||||
CaO:item.出窑熟料_fCaO_rate_pass,
|
||||
coal_consume_unit:item.coal_consume_unit,
|
||||
Fe2o3:item.入窑生料_Fe2O3_rate_pass,
|
||||
lisz:item.出窑熟料_立升重_rate_pass,
|
||||
elec:item.elec_consume_unit,
|
||||
}
|
||||
);
|
||||
|
@ -411,20 +411,20 @@ export default {
|
|||
}
|
||||
arr[29] += production_hour_score;
|
||||
|
||||
// const production_cost_unit_itemValue = item.production_cost_unit; // 单位产品成本的值
|
||||
// const production_cost_unit_sortedData = monthData.sort((a, b) => parseFloat(b.production_cost_unit) - parseFloat(a.production_cost_unit));
|
||||
// const production_cost_unit_index = production_cost_unit_sortedData.findIndex(obj => parseFloat(obj.production_cost_unit) === parseFloat(production_cost_unit_itemValue));
|
||||
// let production_cost_unit_score = 0;
|
||||
// if (production_cost_unit_index === 0){
|
||||
// production_cost_unit_score= 10;
|
||||
// } else if (production_cost_unit_index === 1) {
|
||||
// production_cost_unit_score= 7;
|
||||
// } else if (production_cost_unit_index === 2) {
|
||||
// production_cost_unit_score= 3;
|
||||
// } else if (production_cost_unit_index === 3) {
|
||||
// production_cost_unit_score= 0;
|
||||
// }
|
||||
// arr[29] += production_cost_unit_score;
|
||||
const lisz_itemValue = item.出窑熟料_立升重_rate_pass; // 立升重的值
|
||||
const lisz_sortedData = monthData.sort((a, b) => parseFloat(b.lisz) - parseFloat(a.lisz));
|
||||
const lisz_index = lisz_sortedData.findIndex(obj => parseFloat(obj.lisz) === parseFloat(lisz_itemValue));
|
||||
let production_cost_unit_score = 0;
|
||||
if (lisz_index === 0){
|
||||
production_cost_unit_score= 7;
|
||||
} else if (lisz_index === 1) {
|
||||
production_cost_unit_score= 4;
|
||||
} else if (lisz_index === 2) {
|
||||
production_cost_unit_score= 3;
|
||||
} else if (lisz_index === 3) {
|
||||
production_cost_unit_score= 2;
|
||||
}
|
||||
arr[29] += production_cost_unit_score;
|
||||
|
||||
const CaO_itemValue = item.出窑熟料_fCaO_rate_pass; // CaO的值
|
||||
const CaO_sortedData = monthData.sort((a, b) => parseFloat(b.CaO) - parseFloat(a.CaO));
|
||||
|
|
|
@ -192,8 +192,7 @@
|
|||
material_id: mapEntry.material_id,
|
||||
testitem_id: mapEntry.testitem_id,
|
||||
rate_pass_t: num,
|
||||
update_start_time: mapEntry.start_time,
|
||||
update_end_time: mapEntry.end_time,
|
||||
month_s: mapEntry.month_s,
|
||||
};
|
||||
that.$API.qm.updateQuastatGoal.post(payload)
|
||||
.then((res) => {
|
||||
|
|
Loading…
Reference in New Issue