Commit 1ed0bcf7 authored by xxx's avatar xxx

修改绩效统计字段

parent 05200917
......@@ -70,7 +70,8 @@
<dl>
<dt>
<div>单号</div>
<div>起点</div>
<div>起点经度</div>
<div>起点纬度</div>
<div>目的地</div>
<div>里程(km)</div>
<div>开始时间</div>
......@@ -78,7 +79,8 @@
</dt>
<dd v-for="(item,index) in intelligentDispatchData" :key="index">
<div>{{item.odd}}</div>
<div>{{item.startAdr}}</div>
<div>{{item.x ? parseFloat(item.x).toFixed(2) : ''}}</div>
<div>{{item.y ? parseFloat(item.y).toFixed(2) : ''}}</div>
<div>{{item.destination}}</div>
<div>{{parseFloat(item.mil).toFixed(2)}}</div>
<div>{{item.endTime}}</div>
......@@ -147,34 +149,34 @@ export default {
},
//获取智能派单
getintelligentDisData(){
let query1 = {};
query1.size = 50;
query1.page = 0;
query1.sort = 'createTime,desc';
query1.startTime = this.currentTime(this.startTime);
query1.endTime = this.currentTime(this.endTime);
query1.carNo = this.carNumber;
query1.flag = 0;
if(this.carclass == ''){
return
}else if(this.carclass == "铲车"){
httpGet(chanRealQuery,query1).then((res) => {
let query2 = {};
query2.size = 50;
query2.page = 0;
query2.sort = 'createTime,desc';
query2.startTime = this.currentTime(this.startTime);
query2.endTime = this.currentTime(this.endTime);
query2.car = this.carNumber;
query2.flag = 0;
httpGet(chanRealQuery,query2).then((res) => {
if(res.code === 200){
if(res.data.totalElements == 0){
return
}else{
this.chanRealQueryData = res.data;
}
this.chanRealQueryData = res.data;
};
});
}else{
let query1 = {};
query1.size = 50;
query1.page = 0;
query1.sort = 'createTime,desc';
query1.startTime = this.currentTime(this.startTime);
query1.endTime = this.currentTime(this.endTime);
query1.carNo = this.carNumber;
query1.flag = 0;
httpGet(intelligentDispatchQuery,query1).then((res) => {
if(res.code === 200){
if(res.data.totalElements == 0){
return
}else{
this.intelligentDispatchData = res.data.content;
}
this.intelligentDispatchData = res.data;
};
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment