子公司不能添加司机

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{
//height: 46px;
margin-bottom: 46px;
}
.itemContent{
@include flexColBet;

View File

@ -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() {
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,

View File

@ -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),

View File

@ -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>

View File

@ -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">

View File

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

View File

@ -209,9 +209,8 @@
: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();

View File

@ -64,6 +64,10 @@
</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>