From 65f038f8c22b0a3bde4ac12b99f2581d0351c413 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Wed, 5 Nov 2025 14:19:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/contract/contractEdit.vue | 33 ++++++++++------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/src/views/contract/contractEdit.vue b/src/views/contract/contractEdit.vue index a88ad79..9062736 100644 --- a/src/views/contract/contractEdit.vue +++ b/src/views/contract/contractEdit.vue @@ -1838,6 +1838,14 @@ export default { if (this.form.hasOwnProperty(key)) { this.form[key] = defaultJSON[key]; } + if(this.form.flow_mod_id){ + this.showEdit = true; + this.showTypes = false; + this.isWeixiu = true; + this.myPurchaseType = 1; + this.form.is_common_purchase = 0; + this.step = 2; + } } } catch (e) { console.error(e); @@ -1950,16 +1958,6 @@ export default { ...data, }; }); - const { flowModId } = this.$route.query; - if(flowModId){ - this.form.flow_mod_id = parseInt(flowModId); - this.showTypes = false; - this.isWeixiu = true; - this.myPurchaseType = 1; - this.form.is_common_purchase = 0; - this.step = 2; - this.showEdit = true; - } } catch (e) { this.flowIds = copy; } @@ -2466,7 +2464,8 @@ export default { this.getSh() }, beforeRouteEnter(to, from, next) { - const { contractId, myPurchaseType,flowModId } = to.query; + const { contractId, myPurchaseType } = to.query; + console.log('to.query',to) if (contractId) { next((vm) => { vm.contractId = contractId; @@ -2488,17 +2487,6 @@ export default { vm.form.is_common_purchase = 1; } }); - }else if(flowModId){ - next((vm) => { - vm.form.flow_mod_id = parseInt(flowModId); - vm.showTypes = false; - vm.isWeixiu = true; - vm.myPurchaseType = 1; - vm.form.is_common_purchase = 0; - vm.step = 2; - vm.showEdit = true; - }); - } else { next((vm) => { vm.showTypes = true; @@ -2544,6 +2532,7 @@ export default { } &-types { width: 30%; + margin-left:15px; .el-button { margin-bottom: 10px; }