Commit 8c64d289 authored by xxx's avatar xxx

添加导航按钮

parent 61a3eeec
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
</div> </div>
<div class="orderText2" @click="startPaidanFn()" v-show="btnShow1">接受派单</div> <div class="orderText2" @click="startPaidanFn()" v-show="btnShow1">接受派单</div>
<div class="orderText2" @click="refusePaidanFn()" v-show="btnShow1">拒绝派单</div> <div class="orderText2" @click="refusePaidanFn()" v-show="btnShow1">拒绝派单</div>
<div class="orderText2" @click="navigation()" v-show="btnShow4">导航前往</div>
<div class="orderText2" @click="finishPaidanFn()" v-show="btnShow2">卸车</div> <div class="orderText2" @click="finishPaidanFn()" v-show="btnShow2">卸车</div>
<div class="orderText2" @click="finishPaidanFn1()" v-show="btnShow3">完成派单</div> <div class="orderText2" @click="finishPaidanFn1()" v-show="btnShow3">完成派单</div>
<audio controls currentTime autoplay :src='startOrderSrcUrl' style="display:none;" id="audio1"></audio> <audio controls currentTime autoplay :src='startOrderSrcUrl' style="display:none;" id="audio1"></audio>
...@@ -38,6 +39,7 @@ export default { ...@@ -38,6 +39,7 @@ export default {
btnShow1:false, //开始派单和拒绝派单展示 btnShow1:false, //开始派单和拒绝派单展示
btnShow2:false, //完成派单展示 btnShow2:false, //完成派单展示
btnShow3:false, //完成派单展示 btnShow3:false, //完成派单展示
btnShow4:false, //导航显示开关
sonTimer1:null, sonTimer1:null,
startOrderSrcUrl:'',//来订单语音路径 startOrderSrcUrl:'',//来订单语音路径
dingDanId:'', dingDanId:'',
...@@ -55,9 +57,6 @@ export default { ...@@ -55,9 +57,6 @@ export default {
} }
}, },
mounted(){ mounted(){
//删除路径
//this.$parent.zhixinglujing(false);
//this.$parent.zhixinglujing2(true);
this.sonTimer1 = setInterval(() => { this.sonTimer1 = setInterval(() => {
//如果zhinengpaidanBoolan为true,获取人工和智能一起的调度 //如果zhinengpaidanBoolan为true,获取人工和智能一起的调度
if(this.zhinengpaidanBoolan){ if(this.zhinengpaidanBoolan){
...@@ -223,7 +222,6 @@ export default { ...@@ -223,7 +222,6 @@ export default {
} }
}); });
} }
}, 5000) }, 5000)
}, },
methods:{ methods:{
...@@ -391,6 +389,7 @@ export default { ...@@ -391,6 +389,7 @@ export default {
//开始派单 //开始派单
startPaidanFn(){ startPaidanFn(){
this.btnShow1 = false; this.btnShow1 = false;
this.btnShow4 = true;
this.$notify({ this.$notify({
title: '已开始派单!', title: '已开始派单!',
type: 'success', type: 'success',
...@@ -438,12 +437,11 @@ export default { ...@@ -438,12 +437,11 @@ export default {
} }
}); });
} }
//执行路径
//this.$parent.zhixinglujing(true);
}, },
//拒绝派单 //拒绝派单
refusePaidanFn(){ refusePaidanFn(){
this.btnShow1 = false; this.btnShow1 = false;
this.btnShow4 = false;
this.showDe = false; this.showDe = false;
this.paidanFlag = 0; this.paidanFlag = 0;
this.zuizhongpaidanFlag = 0; this.zuizhongpaidanFlag = 0;
...@@ -500,6 +498,7 @@ export default { ...@@ -500,6 +498,7 @@ export default {
}else{ }else{
this.btnShow2 = false; this.btnShow2 = false;
this.showDe = false; this.showDe = false;
this.btnShow4 = false;
this.paidanFlag = 0; this.paidanFlag = 0;
this.zuizhongpaidanFlag = 0; this.zuizhongpaidanFlag = 0;
httpGet(vehicleInformationQuery,{number:this.carnumber}).then((res) => { httpGet(vehicleInformationQuery,{number:this.carnumber}).then((res) => {
...@@ -563,6 +562,7 @@ export default { ...@@ -563,6 +562,7 @@ export default {
}); });
}else{ }else{
this.btnShow3 = false; this.btnShow3 = false;
this.btnShow4 = false;
this.showDe = false; this.showDe = false;
this.paidanFlag = 0; this.paidanFlag = 0;
this.zuizhongpaidanFlag = 0; this.zuizhongpaidanFlag = 0;
...@@ -600,6 +600,12 @@ export default { ...@@ -600,6 +600,12 @@ export default {
}); });
}, },
//导航开启
navigation(){
//删除路径
//this.$parent.zhixinglujing(false);
//this.$parent.zhixinglujing2(true);
},
//获取当前时间 //获取当前时间
currentTime(){ currentTime(){
var date = new Date(); var date = new Date();
......
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