CRM_26-06-04#story#8753,增加潜在供应商招募的H5链接中的信息填写
This commit is contained in:
@@ -3,15 +3,15 @@
|
||||
<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('vehicleAddBtn')">
|
||||
<div class="rightWrap" @click="goPage('vehicleAdd')">
|
||||
<template slot="right" v-if="permissonList.includes('vehicleAddBtn') || supplierId">
|
||||
<div class="rightWrap" @click="goPage('vehicleAdd', supplierId ? { supplierId } : {})">
|
||||
<img src="@/assets/addImg.png" />
|
||||
<span class="addTxt">添加</span>
|
||||
</div>
|
||||
@@ -71,6 +71,7 @@
|
||||
<div class="wrap_cls">
|
||||
<van-pull-refresh v-model="isLoading" @refresh="onRefresh">
|
||||
<van-list
|
||||
v-if="initialized"
|
||||
v-model="loading"
|
||||
:finished="finished"
|
||||
finished-text="没有更多了"
|
||||
@@ -114,6 +115,9 @@
|
||||
</div>
|
||||
|
||||
<van-dialog v-model="show" title="确定删除吗" show-cancel-button @confirm="handleConfirm"></van-dialog>
|
||||
<div class="btn_wrap" v-if="supplierId">
|
||||
<div class="btn" @click="goPage('driverManage', { id: supplierId , potentialId: routeId })">下一步</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
@@ -121,7 +125,7 @@
|
||||
<script>
|
||||
import {Dialog} from "vant";
|
||||
import { myMixins} from "@/utils/myMixins";
|
||||
import {supplierVehicleList, deleteVehicle, userOperationPermissions, enableVehicle} from "@/api/mine"
|
||||
import {supplierVehicleList, deleteVehicle, userOperationPermissions, enableVehicle, supplierSelectById} from "@/api/mine"
|
||||
export default {
|
||||
name: "vehicleManage",
|
||||
mixins:[myMixins],
|
||||
@@ -130,6 +134,9 @@ export default {
|
||||
vehicleList:[],
|
||||
show:false,
|
||||
id:'',
|
||||
supplierId: '',
|
||||
routeId: '',
|
||||
initialized: false,
|
||||
pageNum:1,
|
||||
pageSize:10,
|
||||
total:'',
|
||||
@@ -189,10 +196,26 @@ export default {
|
||||
}],
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getPermissions();
|
||||
async mounted() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const rawId = this.$route.query.id || urlParams.get('id');
|
||||
if (rawId) {
|
||||
this.routeId = rawId;
|
||||
await this.getSupplierById(Number(rawId));
|
||||
} else {
|
||||
this.initialized = true;
|
||||
}
|
||||
let _token = localStorage.getItem('token')
|
||||
if( _token ) {
|
||||
this.getPermissions();
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
async getSupplierById(id) {
|
||||
let res = await supplierSelectById({ id });
|
||||
this.supplierId = res?.data?.supplierId || '';
|
||||
this.initialized = true;
|
||||
},
|
||||
showTip(msg) {
|
||||
Dialog.alert({
|
||||
title: '未通过原因',
|
||||
@@ -277,6 +300,7 @@ export default {
|
||||
inputStatusList: this.inputStatusList,
|
||||
authStates: this.authStates,
|
||||
liabilityInsuranceAuditList: this.liabilityInsuranceAuditList,
|
||||
supplierId: this.supplierId || undefined,
|
||||
})
|
||||
this.total=result.total
|
||||
if(this.pageNum == 1){// 第一页直接赋值
|
||||
@@ -585,5 +609,23 @@ export default {
|
||||
justify-content: flex-start;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.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