CRM_26-04-22#story#8495,潜在供应商H5页面提交信息,信息审核,提交补充信息与退回理由的优化与修复(默认停用)
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
@click-left="goBack"
|
||||
>
|
||||
<template slot="right" v-if="permissonList.includes('vehicleAddBtn') || supplierId">
|
||||
<div class="rightWrap" @click="goPage('vehicleAdd', supplierId ? { supplierId } : {})">
|
||||
<div class="rightWrap" @click="goPage('vehicleAdd', supplierId ? { supplierId, potentialFlag } : {})">
|
||||
<img src="@/assets/addImg.png" />
|
||||
<span class="addTxt">添加</span>
|
||||
</div>
|
||||
@@ -149,6 +149,7 @@ export default {
|
||||
searchVal: '',
|
||||
authStates: [],
|
||||
liabilityInsuranceAuditList: [],
|
||||
potentialFlag: '',
|
||||
inputStatusListOptions: [{
|
||||
name: '行驶证未录入',
|
||||
value: 0
|
||||
@@ -199,6 +200,7 @@ export default {
|
||||
async mounted() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const rawId = this.$route.query.id || urlParams.get('id');
|
||||
this.potentialFlag = this.$route.query.potentialFlag || urlParams.get('potentialFlag') || '';
|
||||
if (rawId) {
|
||||
this.routeId = rawId;
|
||||
await this.getSupplierById(Number(rawId));
|
||||
@@ -212,8 +214,8 @@ export default {
|
||||
},
|
||||
methods:{
|
||||
nextToDriver() {
|
||||
localStorage.setItem('lastRoute', JSON.stringify({ name: 'driverManage', query: { id: this.supplierId, potentialId: this.routeId } }));
|
||||
this.goPage('driverManage', { id: this.supplierId, potentialId: this.routeId });
|
||||
localStorage.setItem('lastRoute', JSON.stringify({ name: 'driverManage', query: { id: this.supplierId, potentialId: this.routeId, potentialFlag: this.potentialFlag } }));
|
||||
this.goPage('driverManage', { id: this.supplierId, potentialId: this.routeId, potentialFlag: this.potentialFlag });
|
||||
},
|
||||
async getSupplierById(id) {
|
||||
let res = await supplierSelectById({ id });
|
||||
|
||||
Reference in New Issue
Block a user