From 7c40fbc4c5e066650aeee2f9dcda6714dfdcab8f Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Tue, 9 Jun 2026 15:28:46 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"CRM=5F26-04-22#story#8495,=E6=BD=9C?= =?UTF-8?q?=E5=9C=A8=E4=BE=9B=E5=BA=94=E5=95=86H5=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=A1=E6=81=AF=EF=BC=8C=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=EF=BC=8C=E6=8F=90=E4=BA=A4=E8=A1=A5=E5=85=85?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E4=B8=8E=E9=80=80=E5=9B=9E=E7=90=86=E7=94=B1?= =?UTF-8?q?=E7=9A=84=E4=BC=98=E5=8C=96=E4=B8=8E=E4=BF=AE=E5=A4=8D(?= =?UTF-8?q?=E5=81=9C=E5=90=AF=E7=94=A8=E4=BF=AE=E6=94=B9)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 57f83916 --- src/views/index/driverAdd.vue | 6 ------ src/views/index/driverManage.vue | 5 +---- src/views/index/supplierAdd.vue | 4 ---- src/views/index/supplierInfo.vue | 4 ++-- src/views/index/vehicleAdd.vue | 6 ------ src/views/index/vehicleManage.vue | 9 +++------ 6 files changed, 6 insertions(+), 28 deletions(-) diff --git a/src/views/index/driverAdd.vue b/src/views/index/driverAdd.vue index bf3e2041..0d7172c5 100644 --- a/src/views/index/driverAdd.vue +++ b/src/views/index/driverAdd.vue @@ -222,12 +222,6 @@ export default { this.identityCardFront = this.$route.params?.identityCardFront; this.driverInfo.lssueDate = this.$route.params?.lssueDate; this.drivingLicenceName = this.$route.params?.drivingLicenceName; - // 获取 fromSupplierAdd 标识 - const fromSupplierAdd = this.$route.params?.fromSupplierAdd; - // 如果从 supplierAdd 进入且不是修改模式,默认设置为停用状态 - if(!this.id && fromSupplierAdd === 'true') { - this.states = 0; - } if( this.identityCardFront ) { this.identityCardFrontList = [{ url : this.identityCardFront }]; } diff --git a/src/views/index/driverManage.vue b/src/views/index/driverManage.vue index 65222bd5..c0277129 100644 --- a/src/views/index/driverManage.vue +++ b/src/views/index/driverManage.vue @@ -137,7 +137,6 @@ export default { supplierId: '', routeId: '', initialized: false, - fromSupplierAdd: '', // 是否从 supplierAdd 进入 supplierType:'', count: 0, isLoading: false, @@ -187,8 +186,6 @@ export default { this.supplierId = rawId ? Number(rawId) : ''; const potentialId = this.$route.query.potentialId || urlParams.get('potentialId'); this.routeId = potentialId; - // 获取 fromSupplierAdd 标识 - this.fromSupplierAdd = this.$route.query.fromSupplierAdd || urlParams.get('fromSupplierAdd') || ''; if(!rawId) { this.getPermissions(); } @@ -258,7 +255,7 @@ export default { }else{ this.$router.push({ name: 'driverAdd', - params: this.supplierId ? { supplierId: this.supplierId, fromSupplierAdd: this.fromSupplierAdd } : {} + params: this.supplierId ? { supplierId: this.supplierId } : {} }) } }, diff --git a/src/views/index/supplierAdd.vue b/src/views/index/supplierAdd.vue index 6d0e927f..39c69048 100644 --- a/src/views/index/supplierAdd.vue +++ b/src/views/index/supplierAdd.vue @@ -323,10 +323,6 @@ }); this.wechatId = res?.data?.wechatId }, - isFromSupplierAdd() { - // 判断是否从 supplierAdd 进入 - return this.$route.name === 'supplierAdd' || this.$route.query.fromSupplierAdd === 'true'; - }, async saveHandler() { if( this.clickFlag ) { try { diff --git a/src/views/index/supplierInfo.vue b/src/views/index/supplierInfo.vue index c222cffc..47aa81d8 100644 --- a/src/views/index/supplierInfo.vue +++ b/src/views/index/supplierInfo.vue @@ -166,8 +166,8 @@ methods: { goAddVehicle() { const supplierId = this.id - localStorage.setItem('lastRoute', JSON.stringify({ name: 'vehicleManage', query: { id: supplierId, fromSupplierAdd: 'true' } })); - this.goPage('vehicleManage', { id: supplierId, fromSupplierAdd: 'true' }); + localStorage.setItem('lastRoute', JSON.stringify({ name: 'vehicleManage', query: { id: supplierId } })); + this.goPage('vehicleManage', { id: supplierId }); }, goModifyPage() { this.goPage('supplierAdd', { id : this.id }) diff --git a/src/views/index/vehicleAdd.vue b/src/views/index/vehicleAdd.vue index 305a1a43..1e0399ac 100644 --- a/src/views/index/vehicleAdd.vue +++ b/src/views/index/vehicleAdd.vue @@ -689,8 +689,6 @@ export default { const urlParams = new URLSearchParams(window.location.search); const rawId = this.$route.query.supplierId || urlParams.get('supplierId'); this.supplierId = rawId ? Number(rawId) : ''; - // 获取 fromSupplierAdd 标识 - const fromSupplierAdd = this.$route.query.fromSupplierAdd || urlParams.get('fromSupplierAdd'); await this.getSupplierServiceTree(); await this.getTypeList(); if( this.id){ @@ -707,10 +705,6 @@ export default { liabilityInsuranceEndTime:'', insurancePicturePhoto:'' } - // 如果从 supplierAdd 进入,默认设置为停用状态 - if(fromSupplierAdd === 'true') { - this.vehicleStatus = 2; - } } }, methods:{ diff --git a/src/views/index/vehicleManage.vue b/src/views/index/vehicleManage.vue index 93bebc77..1d9404f3 100644 --- a/src/views/index/vehicleManage.vue +++ b/src/views/index/vehicleManage.vue @@ -11,7 +11,7 @@ @click-left="goBack" >