Commit 61ffaa92 authored by zhanglw's avatar zhanglw

订单流程

parent c0774db6
...@@ -6,9 +6,12 @@ ...@@ -6,9 +6,12 @@
class="el-icon-message-solid orderText1_img" class="el-icon-message-solid orderText1_img"
style="color: #00ffff; font-size: 28px" style="color: #00ffff; font-size: 28px"
></span> ></span>
<span style="color: #00ffff">请您前往 <span v-show="orderObj.status!==3" style="color: #00ffff">请您前往:
<span style="color: #e47e1b; font-weight: 600">{{ orderObj.status<3?orderObj.zcArea||'':orderObj.xcArea||'' }}</span> <span style="color: #e47e1b; font-weight: 600">{{ orderObj.status<3?orderObj.zcArea||'':orderObj.xcArea||'' }}</span>
</span> </span>
<span v-show="orderObj.status===3" style="color: #00ffff">挖机牌号:
<span style="color: #e47e1b; font-weight: 600">{{ orderObj.ccCarNumber }}</span>
</span>
<span style="color: #00ffff">状态:{{ orderStuText }}</span> <span style="color: #00ffff">状态:{{ orderStuText }}</span>
</div> </div>
<div class="orderText2" @click="navigation()" v-show="orderObj.status===1 && navStu===0"> <div class="orderText2" @click="navigation()" v-show="orderObj.status===1 && navStu===0">
...@@ -90,10 +93,22 @@ export default { ...@@ -90,10 +93,22 @@ export default {
this.navStu=0; this.navStu=0;
this.orderStuText='正在前往'; this.orderStuText='正在前往';
this.orderObj = res.data; this.orderObj = res.data;
if(this.orderObj.zcArea.length>5){
this.orderObj.zcArea = this.orderObj.zcArea.substr(0,5)+'...'
}
if(this.orderObj.xcArea.length>5){
this.orderObj.xcArea = this.orderObj.xcArea.substr(0,5)+'...'
}
this.audioPlayByUrl(xdd); this.audioPlayByUrl(xdd);
} else { } else {
if (res.data.id !== this.orderObj) { if (res.data.id !== this.orderObj) {
this.orderObj = res.data; this.orderObj = res.data;
if(this.orderObj.zcArea.length>6){
this.orderObj.zcArea = this.orderObj.zcArea.substr(0,5)+'...'
}
if(this.orderObj.xcArea.length>6){
this.orderObj.xcArea = this.orderObj.xcArea.substr(0,5)+'...'
}
} }
this.orderObj.status = res.data.status; this.orderObj.status = res.data.status;
if (this.orderObj.status === 6) { if (this.orderObj.status === 6) {
......
...@@ -464,6 +464,7 @@ export default { ...@@ -464,6 +464,7 @@ export default {
const polygon = new maptalks.MultiPolygon([item.zuobiao], { const polygon = new maptalks.MultiPolygon([item.zuobiao], {
properties: { properties: {
name: item.name, name: item.name,
areaClass: item.areaClass,
areaLimitClass: item.areaLimitClass areaLimitClass: item.areaLimitClass
}, },
symbol: { symbol: {
...@@ -500,9 +501,10 @@ export default { ...@@ -500,9 +501,10 @@ export default {
const point = new maptalks.Coordinate(item.lon, item.lat); const point = new maptalks.Coordinate(item.lon, item.lat);
this.mapDom.getLayer('regionLayer').getGeometries().forEach((polygon) => { this.mapDom.getLayer('regionLayer').getGeometries().forEach((polygon) => {
if (polygon.containsPoint(point)) { if (polygon.containsPoint(point)) {
this.localName = polygon.properties.name;
if(polygon.properties.areaLimitClass){ if(polygon.properties.areaLimitClass){
area = polygon.properties.name; area = polygon.properties.name;
}else{
this.localName = polygon.properties.name;
} }
} }
}) })
...@@ -757,8 +759,8 @@ export default { ...@@ -757,8 +759,8 @@ export default {
//获取待装卡车列表 //获取待装卡车列表
loadData1() { loadData1() {
httpGet(getAllLoadableKC, {carNumber: this.carnumber}).then((res) => { httpGet(getAllLoadableKC, {carNumber: this.carnumber}).then((res) => {
if (res.code == 200 && res.data && res.data.length) { if (res.code == 200) {
this.daizhangCar = res.data; this.daizhangCar = 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