子公司不能添加司机
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();
|
||||
// }
|
||||
},
|
||||
|
@ -203,15 +203,14 @@
|
||||
<div style="display: flex;margin-bottom: 5px">
|
||||
<img v-for="(item,index) in supplierPhotoList" :key="index" class="supplierImg" :src="item.url" @click="delSupplierPhoto(item)">
|
||||
</div>
|
||||
<div style="display: flex">
|
||||
<div style="display: flex" >
|
||||
<van-uploader
|
||||
v-model="files"
|
||||
:after-read="handleFileRead"
|
||||
multiple
|
||||
:preview-size="54"
|
||||
accept="image"
|
||||
capture="camera"
|
||||
|
||||
accept="image "
|
||||
/>
|
||||
</div>
|
||||
</td>
|
||||
@ -361,8 +360,8 @@ export default {
|
||||
},
|
||||
},
|
||||
methods:{
|
||||
handleFileRead() {
|
||||
// console.log("file",file)
|
||||
handleFileRead(file) {
|
||||
console.log("file",file)
|
||||
},
|
||||
goback(){
|
||||
this.$router.push({
|
||||
@ -536,6 +535,7 @@ export default {
|
||||
let res = await updateAccountRecordInfo( {
|
||||
...this.form,
|
||||
accountStatus: accountStatus,
|
||||
postfix:this.postfix,
|
||||
supplierBridgeAmount:parseInt(this.form.supplierBridgeAmountAb || 0) + parseInt(this.form.supplierBridgeAmountBc || 0) + parseInt(this.form.supplierBridgeAmountCa || 0)
|
||||
});
|
||||
const formData = new FormData();
|
||||
|
@ -64,7 +64,11 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div v-show="show" style="display: flex;justify-content: center;align-items: center; width: 100%; height: 80%;">-->
|
||||
<!-- <img src="@/assets/empty.png">-->
|
||||
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
Reference in New Issue
Block a user