数据大屏数据同步
This commit is contained in:
parent
d7d215fbd7
commit
b11e2aaeb4
|
@ -515,7 +515,7 @@ export default {
|
||||||
obj4.elType = 'primary';
|
obj4.elType = 'primary';
|
||||||
obj4.value = item.end_date;
|
obj4.value = item.end_date;
|
||||||
obj5.elType = 'progress';
|
obj5.elType = 'progress';
|
||||||
let process = Math.floor((item.count_ok/item.count)*100)
|
let process = Math.round((item.count_ok/item.count)*100)
|
||||||
obj5.value = process;
|
obj5.value = process;
|
||||||
obj6.elType = 'primary';
|
obj6.elType = 'primary';
|
||||||
obj6.value = item.count_ok;
|
obj6.value = item.count_ok;
|
||||||
|
|
|
@ -417,12 +417,12 @@ export default {
|
||||||
obj5.elType = 'primary';
|
obj5.elType = 'primary';
|
||||||
obj5.value = item.count_ok;
|
obj5.value = item.count_ok;
|
||||||
obj6.elType = 'progress';
|
obj6.elType = 'progress';
|
||||||
let jindu = Math.floor((item.count_ok/item.count)*100);
|
let jindu = Math.round((item.count_ok/item.count)*100);
|
||||||
obj6.value = jindu;
|
obj6.value = jindu;
|
||||||
obj7.elType = 'primary';
|
obj7.elType = 'primary';
|
||||||
let rate = 0;
|
let rate = 0;
|
||||||
if(item.count_real!=0){
|
if(item.count_real!=0){
|
||||||
rate = Math.floor((item.count_ok/item.count_real)*100);
|
rate = Math.round((item.count_ok/item.count_real)*100);
|
||||||
}else{
|
}else{
|
||||||
rate = 0;
|
rate = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -334,7 +334,7 @@ export default {
|
||||||
obj1.elType = 'primary';
|
obj1.elType = 'primary';
|
||||||
obj1.value = item.material_.specification;
|
obj1.value = item.material_.specification;
|
||||||
obj2.elType = 'progress';
|
obj2.elType = 'progress';
|
||||||
let process = Math.floor((item.count_ok/item.count)*100)
|
let process = Math.round((item.count_ok/item.count)*100)
|
||||||
obj2.value = process;
|
obj2.value = process;
|
||||||
obj3.elType = 'primary';
|
obj3.elType = 'primary';
|
||||||
obj3.value = item.count_ok;
|
obj3.value = item.count_ok;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -413,7 +413,7 @@ export default {
|
||||||
that.$API.bi.dataset.exec.req('lineDay', obj07).then((res07) => {
|
that.$API.bi.dataset.exec.req('lineDay', obj07).then((res07) => {
|
||||||
let list07 = res07.data2.ds0;
|
let list07 = res07.data2.ds0;
|
||||||
if(list07.length>0){
|
if(list07.length>0){
|
||||||
this.tongbi7 =Math.floor((this.dayPassNum7- list07[0].合格数)/list07[0].合格数*100);
|
this.tongbi7 =Math.round((this.dayPassNum7- list07[0].合格数)/list07[0].合格数*100);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -429,7 +429,7 @@ export default {
|
||||||
console.log('res10',res010);
|
console.log('res10',res010);
|
||||||
let list010 = res010.data2.ds0;
|
let list010 = res010.data2.ds0;
|
||||||
if(list010.length>0){
|
if(list010.length>0){
|
||||||
this.tongbi10 =Math.floor((this.dayPassNum10- list010[0].合格数)/list010[0].合格数*100);
|
this.tongbi10 =Math.round((this.dayPassNum10- list010[0].合格数)/list010[0].合格数*100);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -443,7 +443,7 @@ export default {
|
||||||
that.$API.bi.dataset.exec.req('saleOutDay', obj06).then((res06) => {
|
that.$API.bi.dataset.exec.req('saleOutDay', obj06).then((res06) => {
|
||||||
let list06 = res06.data2.ds0;
|
let list06 = res06.data2.ds0;
|
||||||
if(list06.length>0){
|
if(list06.length>0){
|
||||||
this.tongbi06 = Math.floor((this.dayPayNum6- list06[0].交付数)/list06[0].交付数*100);
|
this.tongbi06 = Math.round((this.dayPayNum6- list06[0].交付数)/list06[0].交付数*100);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -473,7 +473,7 @@ export default {
|
||||||
});
|
});
|
||||||
rate = sum/list7.length;
|
rate = sum/list7.length;
|
||||||
}
|
}
|
||||||
this.monthPassRate7 = Math.floor(rate) ;
|
this.monthPassRate7 = Math.round(rate) ;
|
||||||
// console.log('7车间本月合格率:',this.monthPassRate7);
|
// console.log('7车间本月合格率:',this.monthPassRate7);
|
||||||
// debugger;
|
// debugger;
|
||||||
});
|
});
|
||||||
|
@ -488,7 +488,7 @@ export default {
|
||||||
});
|
});
|
||||||
rate = sum/list10.length;
|
rate = sum/list10.length;
|
||||||
}
|
}
|
||||||
this.monthPassRate10 =Math.floor(rate) ;
|
this.monthPassRate10 =Math.round(rate) ;
|
||||||
// console.log('10车间本月合格率:',this.monthPassRate10);
|
// console.log('10车间本月合格率:',this.monthPassRate10);
|
||||||
// debugger;
|
// debugger;
|
||||||
});
|
});
|
||||||
|
@ -529,8 +529,8 @@ export default {
|
||||||
count_ok0=count_ok0+item0.count_ok;
|
count_ok0=count_ok0+item0.count_ok;
|
||||||
count_delivered0 = count_delivered0+item0.count_delivered;
|
count_delivered0 = count_delivered0+item0.count_delivered;
|
||||||
})
|
})
|
||||||
that.AVGOktongbi = Math.floor((count_ok-count_ok0)/count_ok0*100);
|
that.AVGOktongbi = Math.round((count_ok-count_ok0)/count_ok0*100);
|
||||||
that.AVGDelivertongbi = Math.floor((count_delivered-count_delivered0)/count_delivered0*100);
|
that.AVGDelivertongbi = Math.round((count_delivered-count_delivered0)/count_delivered0*100);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -553,7 +553,7 @@ export default {
|
||||||
});
|
});
|
||||||
this.monthPayNumAVG = sum;
|
this.monthPayNumAVG = sum;
|
||||||
if(count_real!=0){
|
if(count_real!=0){
|
||||||
this.monthRateAVG = Math.floor((count_ok/count_real)*100)
|
this.monthRateAVG = Math.round((count_ok/count_real)*100)
|
||||||
}else{
|
}else{
|
||||||
this.monthRateAVG = 0;
|
this.monthRateAVG = 0;
|
||||||
}
|
}
|
||||||
|
@ -576,7 +576,7 @@ export default {
|
||||||
xAxisData.push(dindex+'日')
|
xAxisData.push(dindex+'日')
|
||||||
for(let j=0;j<list.length;j++){
|
for(let j=0;j<list.length;j++){
|
||||||
if(list[j].日==i){
|
if(list[j].日==i){
|
||||||
chartData[i]=Math.floor((list[j].合格数/list[j].任务数)*100) ;
|
chartData[i]=Math.round((list[j].合格数/list[j].任务数)*100) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
<el-table-column label="合格数" prop="count_ok"> </el-table-column>
|
<el-table-column label="合格数" prop="count_ok"> </el-table-column>
|
||||||
<el-table-column label="完成率">
|
<el-table-column label="完成率">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="scope.row.count != 0&&scope.row.count_ok != 0">{{ Math.floor(scope.row.count_ok / scope.row.count*100) }}%</span>
|
<span v-if="scope.row.count != 0&&scope.row.count_ok != 0">{{ Math.round(scope.row.count_ok / scope.row.count*100) }}%</span>
|
||||||
<span v-else>0</span>
|
<span v-else>0</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
Loading…
Reference in New Issue