From 288823bac5a5c6fd93c475132cef75c453b3e26d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A6=86=E9=92=B1=E8=90=BD=E5=B0=BD=E6=A7=BF=E8=8A=B1?= =?UTF-8?q?=E7=A8=80?= <2675540038@qq.com> Date: Fri, 18 Apr 2025 19:59:21 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E5=A4=9A=E4=B8=AA=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/register/index.vue | 71 +++++++++++++++++++++--------------- 1 file changed, 42 insertions(+), 29 deletions(-) diff --git a/src/pages/register/index.vue b/src/pages/register/index.vue index d94b9bd..b251276 100644 --- a/src/pages/register/index.vue +++ b/src/pages/register/index.vue @@ -1090,7 +1090,7 @@ export default { workList: [], contactsList: [], - + tuan_list: [], formData: { enterprise_credit_report: '', @@ -1185,11 +1185,11 @@ export default { dimension: '', tuan: [{ name: '', - sex: '', - job: '', - tun_job: '', - phone: '', - }], + sex: '', + job: '', + tun_job: '', + phone: '', + }], hj: [ { time: '', @@ -1909,6 +1909,8 @@ export default { if (this.formData.work == null || this.formData.work.length == 0) { this.$message.error('请输入学习工作经历!'); return; + } else { + this.formData.work = JSON.parse(this.formData.work); } if (this.formData.social_duties == null || this.formData.social_duties.length == 0) { this.$message.error('请选择主要社会职务!'); @@ -2003,9 +2005,11 @@ export default { this.$message.error('请上传企业信用信息报告!'); return; } - if (this.formData.contacts_list.length == 0) { + if (this.formData.contacts.length == 0) { this.$message.error('请输入紧急联系人!'); return; + }else{ + this.formData.contacts = JSON.parse(this.formData.contacts); } if (this.formData.enterprise_Introduction == null || this.formData.enterprise_Introduction == '') { this.$message.error('请输入企业简介!'); @@ -2014,6 +2018,8 @@ export default { if (this.formData.zl_list.length == 0) { this.$message.error('请上传荣誉与专利!'); return; + }else{ + this.formData.zl_list = JSON.parse(this.formData.zl_list); } if (this.formData.qitaqiyerenzhiqingkuang == null || this.formData.qitaqiyerenzhiqingkuang == '') { this.$message.error('请输入其他企业任职情况!'); @@ -2023,87 +2029,94 @@ export default { this.$message.error('请输入企业履行社会责任情况!'); return; } - if(this.formData.if_abroad == null || this.formData.if_abroad == ''){ + if (this.formData.if_abroad == null || this.formData.if_abroad == '') { this.$message.error('请选择是否开展海外业务!'); return; } - if(this.formData.if_abroad == 0){ - if(this.formData.abroad_region_id == null || this.formData.abroad_region_id == ''){ + if (this.formData.if_abroad == 0) { + if (this.formData.abroad_region_id == null || this.formData.abroad_region_id == '') { this.$message.error('请选择国家/城市!'); return; } - if(this.formData.staff_size == null || this.formData.staff_size == ''){ + if (this.formData.staff_size == null || this.formData.staff_size == '') { this.$message.error('请输入人员规模!'); return; } - if(this.formData.business_case == null || this.formData.business_case == ''){ + if (this.formData.business_case == null || this.formData.business_case == '') { this.$message.error('请输入经营情况!'); return; } - if(this.formData.economic_and_trade_exchanges_with_china == null || this.formData.economic_and_trade_exchanges_with_china == ''){ + if (this.formData.economic_and_trade_exchanges_with_china == null || this.formData.economic_and_trade_exchanges_with_china == '') { this.$message.error('请输入涉华经贸往来情况!'); return; } } - if(this.formData.if_party == null || this.formData.if_party == ''){ + if (this.formData.if_party == null || this.formData.if_party == '') { this.$message.error('请选择是否成立党组织!'); return; } - if(this.formData.if_party == 0){ - if(this.formData.party_nature == null || this.formData.party_nature == ''){ + if (this.formData.if_party == 0) { + if (this.formData.party_nature == null || this.formData.party_nature == '') { this.$message.error('请选择党组织性质!'); return; } - if(this.formData.partytime == null || this.formData.partytime == ''){ + if (this.formData.partytime == null || this.formData.partytime == '') { this.$message.error('请输入建党时间!'); return; } - if(this.formData.party_number == null || this.formData.party_number == ''){ + if (this.formData.party_number == null || this.formData.party_number == '') { this.$message.error('请输入建党人数!'); return; } - if(this.formData.manager_party == null || this.formData.manager_party == ''){ + if (this.formData.manager_party == null || this.formData.manager_party == '') { this.$message.error('请输入上级党组织!'); return; } - if(this.formData.party.length == 0){ + if (this.formData.party.length == 0) { this.$message.error('请输入党委负责人信息!'); return; + } else { + this.formData.party = JSON.parse(this.formData.party); } } - - if(this.formData.if_organization == null || this.formData.if_organization == ''){ + + if (this.formData.if_organization == null || this.formData.if_organization == '') { this.$message.error('请选择是否成立团组织!'); return; } - if(this.formData.if_party == 0){ - if(this.formData.nature == null || this.formData.nature == ''){ + if (this.formData.if_party == 0) { + if (this.formData.nature == null || this.formData.nature == '') { this.$message.error('请选择团组织性质!'); return; } - if(this.formData.jiantuan_time == null || this.formData.jiantuan_time == ''){ + if (this.formData.jiantuan_time == null || this.formData.jiantuan_time == '') { this.$message.error('请输入建团时间!'); return; } - if(this.formData.jiantuan_number == null || this.formData.jiantuan_number == ''){ + if (this.formData.jiantuan_number == null || this.formData.jiantuan_number == '') { this.$message.error('请输入建团人数!'); return; } - if(this.formData.youth_number == null || this.formData.youth_number == ''){ + if (this.formData.youth_number == null || this.formData.youth_number == '') { this.$message.error('请输入青年人数!'); return; } - if(this.formData.superior_nature == null || this.formData.superior_nature == ''){ + if (this.formData.superior_nature == null || this.formData.superior_nature == '') { this.$message.error('请输入上级团组织!'); return; } - if(this.formData.party.length == 0){ + if (this.formData.party.length == 0) { this.$message.error('请输入团组织负责人信息!'); return; + } else { + this.formData.tuan = JSON.parse(this.formData.tuan); } } + if(this.formData.hj.length >0){ + this.formData.hj = JSON.parse(this.formData.hj); + } this.$request .post('/move/temporary_token/shenqing', this.formData) .then((res) => {