CRM_26-06-04#story#8753,增加潜在供应商招募的H5链接中的信息填写
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
<div class="navBar">
|
||||
<van-nav-bar
|
||||
title="司机管理"
|
||||
left-arrow
|
||||
:left-arrow="!supplierId"
|
||||
left-arrow-color="#FFFFFF"
|
||||
:border="false"
|
||||
:fixed="true"
|
||||
:safe-area-inset-top="true"
|
||||
@click-left="goBack"
|
||||
>
|
||||
<template slot="right" v-if="permissonList.includes('driverAddBtn')">
|
||||
<template slot="right" v-if="permissonList.includes('driverAddBtn') || supplierId">
|
||||
<div class="rightWrap" @click="addDriver" >
|
||||
<img src="@/assets/addImg.png" />
|
||||
<span class="addTxt">添加</span>
|
||||
@@ -113,6 +113,9 @@
|
||||
</van-pull-refresh>
|
||||
|
||||
</div>
|
||||
<div class="btn_wrap" v-if="supplierId">
|
||||
<div class="btn" @click="goPage('supplierInfo', { id: routeId })">下一步</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -131,6 +134,9 @@ export default {
|
||||
total:'',
|
||||
driverList:[],
|
||||
states:'',
|
||||
supplierId: '',
|
||||
routeId: '',
|
||||
initialized: false,
|
||||
supplierType:'',
|
||||
count: 0,
|
||||
isLoading: false,
|
||||
@@ -176,7 +182,13 @@ export default {
|
||||
mounted() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
this.supplierType = urlParams.get('supplierType');
|
||||
this.getPermissions();
|
||||
const rawId = this.$route.query.id || urlParams.get('id');
|
||||
this.supplierId = rawId ? Number(rawId) : '';
|
||||
const potentialId = this.$route.query.potentialId || urlParams.get('potentialId');
|
||||
this.routeId = potentialId;
|
||||
if(!rawId) {
|
||||
this.getPermissions();
|
||||
}
|
||||
// this.getDriverList()
|
||||
},
|
||||
methods:{
|
||||
@@ -239,6 +251,7 @@ export default {
|
||||
}else{
|
||||
this.$router.push({
|
||||
name: 'driverAdd',
|
||||
params: this.supplierId ? { supplierId: this.supplierId } : {}
|
||||
})
|
||||
}
|
||||
},
|
||||
@@ -250,6 +263,7 @@ export default {
|
||||
idCardStatusList: this.idCardStatusList,
|
||||
driverLicenseStatusList: this.driverLicenseStatusList,
|
||||
authStatusList: this.authStatusList,
|
||||
supplierId: this.supplierId || undefined,
|
||||
});
|
||||
if(res.code == 200){
|
||||
this.total=res.total
|
||||
@@ -520,4 +534,22 @@ export default {
|
||||
.flex-between{
|
||||
line-height: 24px;
|
||||
}
|
||||
.btn_wrap {
|
||||
width: 100%;
|
||||
padding: 15px 0;
|
||||
position: fixed;
|
||||
bottom: 10px;
|
||||
z-index: 10000;
|
||||
.btn {
|
||||
width: calc(100% - 80px);
|
||||
margin-left: 40px;
|
||||
height: 46px;
|
||||
background: #0E76F4;
|
||||
border-radius: 5px;
|
||||
font-size: 15px;
|
||||
color: #FFFFFF;
|
||||
text-align: center;
|
||||
line-height: 46px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user