From 4a2513e1004931b5e752eb2f9fa1f79e90ddae58 Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Tue, 9 Jun 2026 16:10:19 +0800 Subject: [PATCH] =?UTF-8?q?CRM=5F26-04-22#story#8495,=E6=BD=9C=E5=9C=A8?= =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86H5=E9=A1=B5=E9=9D=A2=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=BF=A1=E6=81=AF=EF=BC=8C=E4=BF=A1=E6=81=AF=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=EF=BC=8C=E6=8F=90=E4=BA=A4=E8=A1=A5=E5=85=85=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=B8=8E=E9=80=80=E5=9B=9E=E7=90=86=E7=94=B1=E7=9A=84?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8E=E4=BF=AE=E5=A4=8D(=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=81=9C=E7=94=A8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/addWechat.vue | 18 +++++++++++------- src/views/index/driverAdd.vue | 15 +++++++++++++-- src/views/index/driverManage.vue | 8 +++++--- src/views/index/supplierAdd.vue | 2 +- src/views/index/supplierAddResult.vue | 8 +++++--- src/views/index/supplierInfo.vue | 6 ++++-- src/views/index/vehicleAdd.vue | 10 +++++++++- src/views/index/vehicleManage.vue | 8 +++++--- 8 files changed, 53 insertions(+), 22 deletions(-) diff --git a/src/views/index/addWechat.vue b/src/views/index/addWechat.vue index d66e03f6..9ff076c4 100644 --- a/src/views/index/addWechat.vue +++ b/src/views/index/addWechat.vue @@ -26,6 +26,7 @@ data() { return { name: '', + potentialFlag: '', formPayload: null, qrCodeUrl: '', qrCode: '', @@ -35,6 +36,8 @@ } }, async mounted() { + const urlParams = new URLSearchParams(window.location.search); + this.potentialFlag = this.$route.query.potentialFlag || urlParams.get('potentialFlag') || ''; const cached = localStorage.getItem('supplierAddForm'); if (cached) { this.formPayload = JSON.parse(cached); @@ -83,9 +86,9 @@ if (res?.code != 0) { Dialog.alert({ title: '提示', message: '该服务商已存在,查看信息' }).then(() => { localStorage.removeItem('supplierAddForm'); - const target = { name: 'supplierInfo', query: { id: res?.code } }; + const target = { name: 'supplierInfo', query: { id: res?.code, potentialFlag: this.potentialFlag } }; localStorage.setItem('lastRoute', JSON.stringify(target)); - this.goPage('supplierInfo', { id: res?.code }); + this.goPage('supplierInfo', { id: res?.code, potentialFlag: this.potentialFlag }); }); } else { Toast('该服务商已存在'); @@ -93,7 +96,8 @@ } else { localStorage.removeItem('supplierAddForm'); const supplierId = res?.data; - const target = { name: 'supplierAddResult', query: { id: supplierId } }; + const potentialFlag = this.potentialFlag; + const target = { name: 'supplierAddResult', query: { id: supplierId, potentialFlag } }; localStorage.setItem('lastRoute', JSON.stringify(target)); Dialog.confirm({ title: '提示', @@ -101,11 +105,11 @@ confirmButtonText: '去添加', cancelButtonText: '取消', }).then(() => { - localStorage.setItem('lastRoute', JSON.stringify({ name: 'vehicleManage', query: { id: supplierId } })); - this.goPage('vehicleManage', { id: supplierId }); + localStorage.setItem('lastRoute', JSON.stringify({ name: 'vehicleManage', query: { id: supplierId, potentialFlag } })); + this.goPage('vehicleManage', { id: supplierId, potentialFlag }); }).catch(() => { - localStorage.setItem('lastRoute', JSON.stringify({ name: 'supplierAddResult', query: { id: supplierId } })); - this.goPage('supplierAddResult', { id: supplierId }); + localStorage.setItem('lastRoute', JSON.stringify({ name: 'supplierAddResult', query: { id: supplierId, potentialFlag } })); + this.goPage('supplierAddResult', { id: supplierId, potentialFlag }); }); } } catch (e) { diff --git a/src/views/index/driverAdd.vue b/src/views/index/driverAdd.vue index 0d7172c5..001172ac 100644 --- a/src/views/index/driverAdd.vue +++ b/src/views/index/driverAdd.vue @@ -122,7 +122,7 @@ 司机状态
添加