story#7373 调度h5 添加车辆类型
This commit is contained in:
@ -151,4 +151,11 @@ export function dealWithAlarm(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//获取当前任务信息
|
||||||
|
export function getConfigByCode(data){
|
||||||
|
return request({
|
||||||
|
url: '/base/baseConfig/getConfigByCode',
|
||||||
|
method:'POST',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@ -46,6 +46,9 @@
|
|||||||
<div class="item">
|
<div class="item">
|
||||||
<span class="leftTitle fontColor">服务类型:</span><span class="rightContent">{{ orderDetailInfo.taskServiceName }}</span>
|
<span class="leftTitle fontColor">服务类型:</span><span class="rightContent">{{ orderDetailInfo.taskServiceName }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<span class="leftTitle fontColor">车辆类型:</span><span class="rightContent">{{ orderDetailInfo.userVehicleTypeString }}<van-icon class="icon" name="question" @click="showCarTypeShow = true" /></span>
|
||||||
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class="leftTitle fontColor">车辆位于:</span><span class="rightContent">{{ orderDetailInfo.positionEnvironment?.label }}</span>
|
<span class="leftTitle fontColor">车辆位于:</span><span class="rightContent">{{ orderDetailInfo.positionEnvironment?.label }}</span>
|
||||||
</div>
|
</div>
|
||||||
@ -95,7 +98,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<van-popup v-model="showCarTypeShow" round position="center" class="popupCenter">
|
||||||
|
<table v-for="(item, index) in carTypeList" :key="index">
|
||||||
|
<tr>
|
||||||
|
<td width="50">{{item.type}}:</td>
|
||||||
|
<td>{{item.abbr}}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<!-- <div v-for="(item, index) in carTypeList" :key="index"><span style="margin-right: 5px">{{item.type}}:</span><span>{{item.abbr}}</span></div>-->
|
||||||
|
</van-popup>
|
||||||
<div class="map" v-show="showPopup" id="container">
|
<div class="map" v-show="showPopup" id="container">
|
||||||
<img @click="showPopup = false" src="@/assets/delKey.png" class="mapImg">
|
<img @click="showPopup = false" src="@/assets/delKey.png" class="mapImg">
|
||||||
</div>
|
</div>
|
||||||
@ -103,7 +114,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {myMixins} from '@/utils/myMixins'
|
import {myMixins} from '@/utils/myMixins'
|
||||||
import {getOrderDetail,showVehiclePositionInfo} from "@/api/order"
|
import {getOrderDetail,showVehiclePositionInfo, getConfigByCode} from "@/api/order"
|
||||||
import minePosition from '@/assets/minePosition.png';
|
import minePosition from '@/assets/minePosition.png';
|
||||||
import vehiclePosition from '@/assets/vehiclePosition.png';
|
import vehiclePosition from '@/assets/vehiclePosition.png';
|
||||||
import desitationPosition from '@/assets/desitationPosition.png'
|
import desitationPosition from '@/assets/desitationPosition.png'
|
||||||
@ -121,6 +132,8 @@ export default {
|
|||||||
map: '',
|
map: '',
|
||||||
driverPoiInfo:{},
|
driverPoiInfo:{},
|
||||||
noClick:true,
|
noClick:true,
|
||||||
|
showCarTypeShow: false,
|
||||||
|
carTypeList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
@ -131,6 +144,7 @@ export default {
|
|||||||
this.userOrderId = urlParams.get('userOrderId');
|
this.userOrderId = urlParams.get('userOrderId');
|
||||||
this.orderCode=urlParams.get('orderCode');
|
this.orderCode=urlParams.get('orderCode');
|
||||||
this.taskOrderId=urlParams.get('taskOrderId') ? urlParams.get('taskOrderId') : '';
|
this.taskOrderId=urlParams.get('taskOrderId') ? urlParams.get('taskOrderId') : '';
|
||||||
|
await this.getConfigByCodeHandler();
|
||||||
await this.getDetail();
|
await this.getDetail();
|
||||||
if(this.queryType == 5){
|
if(this.queryType == 5){
|
||||||
await this.getDriverPoi();
|
await this.getDriverPoi();
|
||||||
@ -141,6 +155,12 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
async getConfigByCodeHandler() {
|
||||||
|
let res = await getConfigByCode({
|
||||||
|
code: 'userVehicleTypeConfig'
|
||||||
|
});
|
||||||
|
this.carTypeList = res?.data?.userVehicleType
|
||||||
|
},
|
||||||
async getDetail(){
|
async getDetail(){
|
||||||
let result=await getOrderDetail({
|
let result=await getOrderDetail({
|
||||||
queryType:this.queryType,
|
queryType:this.queryType,
|
||||||
@ -341,4 +361,8 @@ export default {
|
|||||||
margin: 7px 0;
|
margin: 7px 0;
|
||||||
border-image: linear-gradient(270deg, rgba(217, 217, 217, 0.6), rgba(178, 178, 178, 1), rgba(178, 178, 178, 1), rgba(217, 217, 217, 0.6)) 1 1;
|
border-image: linear-gradient(270deg, rgba(217, 217, 217, 0.6), rgba(178, 178, 178, 1), rgba(178, 178, 178, 1), rgba(217, 217, 217, 0.6)) 1 1;
|
||||||
}
|
}
|
||||||
|
.popupCenter {
|
||||||
|
padding: 20px 10px;
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user