子公司不能添加司机
This commit is contained in:
@ -164,7 +164,6 @@ export default {
|
||||
.navBar{
|
||||
//height: 46px;
|
||||
margin-bottom: 46px;
|
||||
|
||||
}
|
||||
.itemContent{
|
||||
@include flexColBet;
|
||||
|
@ -11,7 +11,7 @@
|
||||
@click-left="goBack"
|
||||
>
|
||||
<template slot="right">
|
||||
<div class="rightWrap" @click="goPage('driverAdd')">
|
||||
<div class="rightWrap" @click="addDriver" >
|
||||
<img src="@/assets/addImg.png" />
|
||||
<span class="addTxt">添加</span>
|
||||
</div>
|
||||
@ -62,13 +62,25 @@ export default {
|
||||
pageSize:10,
|
||||
total:'',
|
||||
driverList:[],
|
||||
states:''
|
||||
states:'',
|
||||
supplierType:'',
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getDriverList()
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
this.supplierType = urlParams.get('supplierType');
|
||||
this.getDriverList()
|
||||
},
|
||||
methods:{
|
||||
addDriver(){
|
||||
if(this.supplierType === 1){
|
||||
this.$toast("无权添加")
|
||||
}else{
|
||||
this.$router.push({
|
||||
name:'driverAdd'
|
||||
})
|
||||
}
|
||||
},
|
||||
async getDriverList(){
|
||||
let res = await driverList({
|
||||
pageNum:this.pageNum,
|
||||
|
@ -64,7 +64,7 @@ export default {
|
||||
this.queryType = urlParams.get('queryType');
|
||||
this.userOrderId = urlParams.get('userOrderId');
|
||||
this.orderCode = urlParams.get('orderCode')
|
||||
this.$toast('queryType' + this.queryType)
|
||||
// this.$toast('queryType' + this.queryType)
|
||||
},
|
||||
computed:{
|
||||
isRadio(){
|
||||
@ -82,7 +82,6 @@ export default {
|
||||
this.radio=e
|
||||
},
|
||||
async goReporting(){
|
||||
console.log("1111")
|
||||
if(this.isRadio && this.isTxt){
|
||||
let result = await orderReporting({
|
||||
queryType:Number(this.queryType),
|
||||
|
@ -21,9 +21,9 @@
|
||||
<div class="line"></div>
|
||||
<div class="metersWrap">
|
||||
<div class="leftKiloMeters">
|
||||
<div>过路桥费ab</div>
|
||||
<div>过路桥费bc</div>
|
||||
<div>过路桥费ca</div>
|
||||
<div>AB段路桥费</div>
|
||||
<div>BC段路桥费</div>
|
||||
<div>CA段路桥费</div>
|
||||
</div>
|
||||
<div class="rightInputMeters">
|
||||
<div><input type="number" v-model="form.bridgeAmountAb"/>元</div>
|
||||
|
@ -26,7 +26,7 @@
|
||||
<div class="itemContent">
|
||||
<div class="titleType">
|
||||
<img class="startImg" src="@/assets/start.png" />
|
||||
<span>是否参与中道聚合</span>
|
||||
<span>是否参与聚合</span>
|
||||
</div>
|
||||
<div class="isJoin">
|
||||
<van-radio-group v-model="isJoin" @change="isChange" class="joinWrap">
|
||||
|
@ -85,6 +85,7 @@ export default {
|
||||
})
|
||||
// if(result.code === 200){
|
||||
this.$toast('删除成功');
|
||||
this.vehicleList=[]
|
||||
await this.getVehicleList();
|
||||
// }
|
||||
},
|
||||
|
Reference in New Issue
Block a user