From 46bd4dc3690bf9f90ae4b02e4b32c4fe5393c60b Mon Sep 17 00:00:00 2001 From: danshihao Date: Wed, 27 Mar 2024 11:42:40 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E4=BC=9A=E8=AE=AE=E6=8A=A5=E5=90=8D?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E7=BC=96=E8=BE=91]=20=E7=BC=B4=E8=B4=B9?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=E4=B8=8D=E8=83=BD=E9=80=89=E6=8B=A9=E6=89=93?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../meetManage/SignUpInfoEdit.vue | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/views/incomePayments/meetManage/SignUpInfoEdit.vue b/src/views/incomePayments/meetManage/SignUpInfoEdit.vue index 69c5077..32a6ffa 100644 --- a/src/views/incomePayments/meetManage/SignUpInfoEdit.vue +++ b/src/views/incomePayments/meetManage/SignUpInfoEdit.vue @@ -448,6 +448,8 @@ export default { // 设置编辑的显示隐藏状态 this.identifyType = this.model.identity this.guestType = this.model.guestType ? this.model.guestType : null + // 判断当前企业是否是打包企业 + this.judgeCompanyIsPackaged(this.model.companyId, false) // 参会单位回显 this.model.companyId = { id:this.model.companyId, @@ -706,14 +708,14 @@ export default { /** * 判断当前的企业是否是打包企业,如果是修改isPackEnterprise */ - judgeCompanyIsPackaged (id) { + judgeCompanyIsPackaged (id, clearForm = true) { judgeCompanyIsPackaged({ companyId: id }).then(res => { if (res.success) { this.isPackEnterprise = res.result } }).finally(() => { // 清空已选的缴费方式 - if (this.$refs.formother) { + if (clearForm && this.$refs.formother) { this.$refs.formother.clearPayMode() } }) @@ -738,7 +740,7 @@ export default { /* * 判断当前的企业是否是内部企业,如果是修改isInternalEnterprise * */ - judgeInternalEnterprise(id) { + judgeInternalEnterprise(id, clearForm = true) { let params = { id: id } @@ -747,12 +749,14 @@ export default { this.isInternalEnterprise = res.result !== 'false' } }).finally(() => { - // 清空form表单身份的数据 - this.form.setFieldsValue({ - identity: null - }) - // 嘉宾类型置空 - this.guestType = null + if (clearForm) { + // 清空form表单身份的数据 + this.form.setFieldsValue({ + identity: null + }) + // 嘉宾类型置空 + this.guestType = null + } }) }, /**