|
@@ -161,6 +161,36 @@ export default {
|
|
|
}
|
|
|
this.axios.post('/api/v1/tms/yawnReport',this.map).then((res)=>{
|
|
|
if(res.data.code == "200"){
|
|
|
+ let countRow={
|
|
|
+ EnNum:0,
|
|
|
+ carrierName:'',
|
|
|
+ no:-1,
|
|
|
+ notEnNum:0,
|
|
|
+ notSendNum:0,
|
|
|
+ numCang:0,
|
|
|
+ numGong:0,
|
|
|
+ orderNum:0,
|
|
|
+ percent:'',
|
|
|
+ planNum:0,
|
|
|
+ quxiaoNum:0,
|
|
|
+ target:"合计"
|
|
|
+ }
|
|
|
+ res.data.data.forEach((item)=>{
|
|
|
+ countRow.EnNum+=item.EnNum;
|
|
|
+ countRow.notEnNum+=item.notEnNum;
|
|
|
+ countRow.notSendNum+=item.notSendNum;
|
|
|
+ countRow.numCang+=item.numCang;
|
|
|
+ countRow.numGong+=item.numGong;
|
|
|
+ countRow.orderNum+=item.orderNum;
|
|
|
+ countRow.planNum+=item.planNum;
|
|
|
+ countRow.quxiaoNum+=item.quxiaoNum;
|
|
|
+ });
|
|
|
+ if(countRow.planNum){
|
|
|
+ countRow.percent=(countRow.orderNum/countRow.planNum*100).toFixed(4)+"%";
|
|
|
+ }else{
|
|
|
+ countRow.percent='NAL'
|
|
|
+ }
|
|
|
+ res.data.data.push(countRow);
|
|
|
this.getSpanArr(res.data.data);
|
|
|
this.yawnReportData=res.data.data;
|
|
|
}else {
|