子公司不能添加司机

This commit is contained in:
2023-08-24 10:53:22 +08:00
parent a4ab5eb55c
commit bb73bd7847
8 changed files with 31 additions and 16 deletions

View File

@ -164,7 +164,6 @@ export default {
.navBar{ .navBar{
//height: 46px; //height: 46px;
margin-bottom: 46px; margin-bottom: 46px;
} }
.itemContent{ .itemContent{
@include flexColBet; @include flexColBet;

View File

@ -11,7 +11,7 @@
@click-left="goBack" @click-left="goBack"
> >
<template slot="right"> <template slot="right">
<div class="rightWrap" @click="goPage('driverAdd')"> <div class="rightWrap" @click="addDriver" >
<img src="@/assets/addImg.png" /> <img src="@/assets/addImg.png" />
<span class="addTxt">添加</span> <span class="addTxt">添加</span>
</div> </div>
@ -62,13 +62,25 @@ export default {
pageSize:10, pageSize:10,
total:'', total:'',
driverList:[], driverList:[],
states:'' states:'',
supplierType:'',
} }
}, },
mounted() { mounted() {
this.getDriverList() const urlParams = new URLSearchParams(window.location.search);
this.supplierType = urlParams.get('supplierType');
this.getDriverList()
}, },
methods:{ methods:{
addDriver(){
if(this.supplierType === 1){
this.$toast("无权添加")
}else{
this.$router.push({
name:'driverAdd'
})
}
},
async getDriverList(){ async getDriverList(){
let res = await driverList({ let res = await driverList({
pageNum:this.pageNum, pageNum:this.pageNum,

View File

@ -64,7 +64,7 @@ export default {
this.queryType = urlParams.get('queryType'); this.queryType = urlParams.get('queryType');
this.userOrderId = urlParams.get('userOrderId'); this.userOrderId = urlParams.get('userOrderId');
this.orderCode = urlParams.get('orderCode') this.orderCode = urlParams.get('orderCode')
this.$toast('queryType' + this.queryType) // this.$toast('queryType' + this.queryType)
}, },
computed:{ computed:{
isRadio(){ isRadio(){
@ -82,7 +82,6 @@ export default {
this.radio=e this.radio=e
}, },
async goReporting(){ async goReporting(){
console.log("1111")
if(this.isRadio && this.isTxt){ if(this.isRadio && this.isTxt){
let result = await orderReporting({ let result = await orderReporting({
queryType:Number(this.queryType), queryType:Number(this.queryType),

View File

@ -21,9 +21,9 @@
<div class="line"></div> <div class="line"></div>
<div class="metersWrap"> <div class="metersWrap">
<div class="leftKiloMeters"> <div class="leftKiloMeters">
<div>路桥费ab</div> <div>AB段路桥费</div>
<div>路桥费bc</div> <div>BC段路桥费</div>
<div>路桥费ca</div> <div>CA段路桥费</div>
</div> </div>
<div class="rightInputMeters"> <div class="rightInputMeters">
<div><input type="number" v-model="form.bridgeAmountAb"/></div> <div><input type="number" v-model="form.bridgeAmountAb"/></div>

View File

@ -26,7 +26,7 @@
<div class="itemContent"> <div class="itemContent">
<div class="titleType"> <div class="titleType">
<img class="startImg" src="@/assets/start.png" /> <img class="startImg" src="@/assets/start.png" />
<span>是否参与中道聚合</span> <span>是否参与聚合</span>
</div> </div>
<div class="isJoin"> <div class="isJoin">
<van-radio-group v-model="isJoin" @change="isChange" class="joinWrap"> <van-radio-group v-model="isJoin" @change="isChange" class="joinWrap">

View File

@ -85,6 +85,7 @@ export default {
}) })
// if(result.code === 200){ // if(result.code === 200){
this.$toast('删除成功'); this.$toast('删除成功');
this.vehicleList=[]
await this.getVehicleList(); await this.getVehicleList();
// } // }
}, },

View File

@ -203,15 +203,14 @@
<div style="display: flex;margin-bottom: 5px"> <div style="display: flex;margin-bottom: 5px">
<img v-for="(item,index) in supplierPhotoList" :key="index" class="supplierImg" :src="item.url" @click="delSupplierPhoto(item)"> <img v-for="(item,index) in supplierPhotoList" :key="index" class="supplierImg" :src="item.url" @click="delSupplierPhoto(item)">
</div> </div>
<div style="display: flex"> <div style="display: flex" >
<van-uploader <van-uploader
v-model="files" v-model="files"
:after-read="handleFileRead" :after-read="handleFileRead"
multiple multiple
:preview-size="54" :preview-size="54"
accept="image"
capture="camera" capture="camera"
accept="image "
/> />
</div> </div>
</td> </td>
@ -361,8 +360,8 @@ export default {
}, },
}, },
methods:{ methods:{
handleFileRead() { handleFileRead(file) {
// console.log("file",file) console.log("file",file)
}, },
goback(){ goback(){
this.$router.push({ this.$router.push({
@ -536,6 +535,7 @@ export default {
let res = await updateAccountRecordInfo( { let res = await updateAccountRecordInfo( {
...this.form, ...this.form,
accountStatus: accountStatus, accountStatus: accountStatus,
postfix:this.postfix,
supplierBridgeAmount:parseInt(this.form.supplierBridgeAmountAb || 0) + parseInt(this.form.supplierBridgeAmountBc || 0) + parseInt(this.form.supplierBridgeAmountCa || 0) supplierBridgeAmount:parseInt(this.form.supplierBridgeAmountAb || 0) + parseInt(this.form.supplierBridgeAmountBc || 0) + parseInt(this.form.supplierBridgeAmountCa || 0)
}); });
const formData = new FormData(); const formData = new FormData();

View File

@ -64,7 +64,11 @@
</div> </div>
</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> </template>
<script> <script>