Commit c0ff2bbf authored by xxx's avatar xxx

修改装卸车订单展示

parent 8c64d289
......@@ -5,6 +5,7 @@
<span class="el-icon-message-solid orderText1_img" style="color:#00FFFF;font-size:28px;"></span>
<span style="color:#00FFFF;">请车牌号 {{carnumber}} 前往</span>
<span style="color:#E47E1B;font-weight:600;">{{carDestination}}</span>
<span style="color:#00FFFF;">{{orderClass}}</span>
</div>
<div class="orderText2" @click="startPaidanFn()" v-show="btnShow1">接受派单</div>
<div class="orderText2" @click="refusePaidanFn()" v-show="btnShow1">拒绝派单</div>
......@@ -36,6 +37,7 @@ export default {
showDe:false,
carnumber:'',
carDestination:'',
orderClass:'',
btnShow1:false, //开始派单和拒绝派单展示
btnShow2:false, //完成派单展示
btnShow3:false, //完成派单展示
......@@ -83,6 +85,7 @@ export default {
this.carDestination = res_1.data.content[0].destination;
this.dingDanId = res_1.data.content[0].id;
this.equipmentName = resSon1.data.content[0].equipmentName;
this.orderClass = '装车';
//启动语音
this.startOrderSrcUrl = newOrder;
let au = document.getElementById('audio1');
......@@ -96,6 +99,7 @@ export default {
this.carDestination = res_1.data.content[0].destination;
this.dingDanId = res_1.data.content[0].id;
this.equipmentName = resSon1.data.content[0].equipmentName;
this.orderClass = '卸车';
}
}
//获取车辆坐标计算距离并返回给后台
......@@ -120,6 +124,7 @@ export default {
})
}else{
//如果有人工调度
this.orderClass = '';
//有人工调度就删除智能调度单子
httpGet(dingDanBiaoCaoZuo,{sort:'createTime,desc',carNo:this.carnumber,flag:0}).then((resDel) => {
if(resDel.code == 200){
......@@ -168,6 +173,7 @@ export default {
});
}else{
//如果zhinengpaidanBoolan为false,获取人工的调度
this.orderClass = '';
httpGet(dingDanBiaoCaoZuo,{sort:'createTime,desc',size:1,carNo:this.carnumber,flag:1}).then((res) => {
if(res.data.content.length == 0){
this.showDe = false;
......@@ -227,6 +233,7 @@ export default {
methods:{
loadData(carnumber){
this.carnumber = carnumber;
this.orderClass = '';
this.$nextTick(()=>{
//如果zhinengpaidanBoolan为true,获取人工和智能一起的调度
if(this.zhinengpaidanBoolan){
......@@ -253,6 +260,7 @@ export default {
this.carDestination = res_1.data.content[0].destination;
this.dingDanId = res_1.data.content[0].id;
this.equipmentName = resSon1.data.content[0].equipmentName;
this.orderClass = '装车';
}else{
this.showDe = true;
this.btnShow1 = false;
......@@ -261,6 +269,7 @@ export default {
this.carDestination = res_1.data.content[0].destination;
this.dingDanId = res_1.data.content[0].id;
this.equipmentName = resSon1.data.content[0].equipmentName;
this.orderClass = '卸车';
}
}
//获取车辆坐标计算距离并返回给后台
......
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