1
This commit is contained in:
		
							parent
							
								
									3e3a19ca65
								
							
						
					
					
						commit
						38131ff398
					
				| @ -3,7 +3,7 @@ | |||||||
|     <div class="form-step-container"> |     <div class="form-step-container"> | ||||||
|       <t-button @click="add">新增</t-button> |       <t-button @click="add">新增</t-button> | ||||||
|       <t-tabs v-model="tabIndex" @change="tabIndexChange"> |       <t-tabs v-model="tabIndex" @change="tabIndexChange"> | ||||||
|         <t-tab-panel value="1" label="线下活动" :destroyOnHide="false"></t-tab-panel> |         <t-tab-panel value="1" label="协会活动" :destroyOnHide="false"></t-tab-panel> | ||||||
|         <t-tab-panel value="2" label="调查问卷" :destroyOnHide="false"></t-tab-panel> |         <t-tab-panel value="2" label="调查问卷" :destroyOnHide="false"></t-tab-panel> | ||||||
|         <t-tab-panel value="3" label="公益捐赠" :destroyOnHide="false"></t-tab-panel> |         <t-tab-panel value="3" label="公益捐赠" :destroyOnHide="false"></t-tab-panel> | ||||||
|         <t-tab-panel value="4" label="学习培训" :destroyOnHide="false"></t-tab-panel> |         <t-tab-panel value="4" label="学习培训" :destroyOnHide="false"></t-tab-panel> | ||||||
| @ -45,7 +45,7 @@ | |||||||
|         </template> |         </template> | ||||||
|         <template #activity_type="{ row }"> |         <template #activity_type="{ row }"> | ||||||
|           <div style="text-align: center;"> |           <div style="text-align: center;"> | ||||||
|             <span v-if="row.activity_type==1">线下活动</span> |             <span v-if="row.activity_type==1">协会活动</span> | ||||||
|             <span v-if="row.activity_type==2">调查问卷</span> |             <span v-if="row.activity_type==2">调查问卷</span> | ||||||
|             <span v-if="row.activity_type==3">公益捐赠</span> |             <span v-if="row.activity_type==3">公益捐赠</span> | ||||||
|             <span v-if="row.activity_type==4">学习培训</span> |             <span v-if="row.activity_type==4">学习培训</span> | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ | |||||||
|           layout="inline" |           layout="inline" | ||||||
|           labelAlign="top" |           labelAlign="top" | ||||||
|         > |         > | ||||||
|           <t-form-item label="手机号" name="phone"> |           <t-form-item label="手机号" name="phone" :requiredMark="true"> | ||||||
|             <t-input v-model="formData.phone" placeholder="请输入手机号"></t-input> |             <t-input v-model="formData.phone" placeholder="请输入手机号"></t-input> | ||||||
|           </t-form-item> |           </t-form-item> | ||||||
|           <t-form-item label="密码" name="password"> |           <t-form-item label="密码" name="password"> | ||||||
| @ -31,8 +31,8 @@ | |||||||
|           labelAlign="top" |           labelAlign="top" | ||||||
|           layout="inline" |           layout="inline" | ||||||
|         > |         > | ||||||
|           <t-form-item label="真实姓名" name="nikename"> |           <t-form-item label="会员姓名" name="nikename" :requiredMark="true"> | ||||||
|             <t-input v-model="formData.nikename" placeholder="请输入真实姓名"></t-input> |             <t-input v-model="formData.nikename" placeholder="请输入会员姓名"></t-input> | ||||||
|           </t-form-item> |           </t-form-item> | ||||||
| 
 | 
 | ||||||
|           <t-form-item label="性别" name="gender"> |           <t-form-item label="性别" name="gender"> | ||||||
| @ -151,7 +151,7 @@ | |||||||
|           <t-form-item label="统一社会信用代码" name="unified_code"> |           <t-form-item label="统一社会信用代码" name="unified_code"> | ||||||
|             <t-input v-model="formData.unified_code" placeholder="请输入统一社会信用代码"></t-input> |             <t-input v-model="formData.unified_code" placeholder="请输入统一社会信用代码"></t-input> | ||||||
|           </t-form-item> |           </t-form-item> | ||||||
|           <t-form-item label="企业名称" name="enterprise_name"> |           <t-form-item label="企业名称" name="enterprise_name" :requiredMark="true"> | ||||||
|             <t-input v-model="formData.enterprise_name" placeholder="请输入企业名称"></t-input> |             <t-input v-model="formData.enterprise_name" placeholder="请输入企业名称"></t-input> | ||||||
|           </t-form-item> |           </t-form-item> | ||||||
|           <t-form-item label="企业性质" name="enterprise_nature"> |           <t-form-item label="企业性质" name="enterprise_nature"> | ||||||
| @ -254,6 +254,7 @@ | |||||||
| import {UserIcon, LockOnIcon} from 'tdesign-icons-vue'; | import {UserIcon, LockOnIcon} from 'tdesign-icons-vue'; | ||||||
| import {CheckCircleIcon} from 'tdesign-icons-vue'; | import {CheckCircleIcon} from 'tdesign-icons-vue'; | ||||||
| import store from '@/store' | import store from '@/store' | ||||||
|  | 
 | ||||||
| export default { | export default { | ||||||
|   components: { |   components: { | ||||||
|     CheckCircleIcon, |     CheckCircleIcon, | ||||||
| @ -404,13 +405,30 @@ export default { | |||||||
|           this.formData.other_contacts = res.data.other_contacts; |           this.formData.other_contacts = res.data.other_contacts; | ||||||
|           this.formData.other_social_positions = res.data.other_social_positions; |           this.formData.other_social_positions = res.data.other_social_positions; | ||||||
|           this.formData.position = res.data.position; |           this.formData.position = res.data.position; | ||||||
|  |           if(res.data.cardf_image==''){ | ||||||
|  |             this.formData.cardf_image_show = []; | ||||||
|  |           }else{ | ||||||
|             this.formData.cardf_image_show = [{url: store.state.user.apiUrl + res.data.cardf_image}]; |             this.formData.cardf_image_show = [{url: store.state.user.apiUrl + res.data.cardf_image}]; | ||||||
|  |           } | ||||||
|  |           if( res.data.cardz_image==''){ | ||||||
|  |             this.formData.cardz_image_show = []; | ||||||
|  |           }else{ | ||||||
|             this.formData.cardz_image_show = [{url: store.state.user.apiUrl + res.data.cardz_image}]; |             this.formData.cardz_image_show = [{url: store.state.user.apiUrl + res.data.cardz_image}]; | ||||||
|  |           } | ||||||
|  |           if( res.data.photo_image==''){ | ||||||
|  |             this.formData.photo_image_show = []; | ||||||
|  |           }else{ | ||||||
|             this.formData.photo_image_show = [{url: store.state.user.apiUrl + res.data.photo_image}]; |             this.formData.photo_image_show = [{url: store.state.user.apiUrl + res.data.photo_image}]; | ||||||
|  |           } | ||||||
|  | 
 | ||||||
|           this.formData.cardf_image = res.data.cardf_image; |           this.formData.cardf_image = res.data.cardf_image; | ||||||
|           this.formData.cardz_image = res.data.cardz_image; |           this.formData.cardz_image = res.data.cardz_image; | ||||||
|           this.formData.photo_image = res.data.photo_image; |           this.formData.photo_image = res.data.photo_image; | ||||||
|  |           if(res.data.business_license_image==''){ | ||||||
|  |             this.formData.business_license_image_show = []; | ||||||
|  |           }else{ | ||||||
|             this.formData.business_license_image_show = [{url: store.state.user.apiUrl + res.data.business_license_image}]; |             this.formData.business_license_image_show = [{url: store.state.user.apiUrl + res.data.business_license_image}]; | ||||||
|  |           } | ||||||
|           this.formData.business_license_image = res.data.business_license_image; |           this.formData.business_license_image = res.data.business_license_image; | ||||||
|           this.formData.unified_code = res.data.unified_code; |           this.formData.unified_code = res.data.unified_code; | ||||||
|           this.formData.enterprise_nature = res.data.enterprise_nature; |           this.formData.enterprise_nature = res.data.enterprise_nature; | ||||||
| @ -443,104 +461,119 @@ export default { | |||||||
|         }); |         }); | ||||||
|     }, |     }, | ||||||
|     submit() { |     submit() { | ||||||
|       if (this.formData.business_license_image == '') { |       // if (this.formData.business_license_image == '') { | ||||||
|         this.$message.error('请上传营业执照!'); |       //   this.$message.error('请上传营业执照!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       if (this.formData.phone == '') { | ||||||
|  |         this.$message.error('请填写手机号!'); | ||||||
|         return; |         return; | ||||||
|       } |       } | ||||||
|       if (this.formData.unified_code == '') { |       if (this.formData.nikename == '') { | ||||||
|         this.$message.error('请输入统一社会信用代码!'); |         this.$message.error('请填写会员姓名!'); | ||||||
|         return; |         return; | ||||||
|       } |       } | ||||||
|       if (this.formData.enterprise_nature == '') { |       // if (this.formData.unified_code == '') { | ||||||
|         this.$message.error('请输入企业性质!'); |       //   this.$message.error('请输入统一社会信用代码!'); | ||||||
|         return; |       //   return; | ||||||
|       } |       // } | ||||||
|       if (this.formData.enterprise_website == '') { |       if (this.formData.enterprise_name == '') { | ||||||
|         this.$message.error('请输入企业网址!'); |         this.$message.error('请填写企业名称!'); | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if (this.formData.if_list == null) { |  | ||||||
|         this.$message.error('请选择是否上市!'); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if (this.formData.employee == '') { |  | ||||||
|         this.$message.error('请输入员工人数!'); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if (this.formData.enterprise_location == '') { |  | ||||||
|         this.$message.error('请输入企业注册地!'); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if (this.formData.previous_revenue == '') { |  | ||||||
|         this.$message.error('请输入上年度营业额!'); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if (this.formData.previous_tax == '') { |  | ||||||
|         this.$message.error('请输入上年度纳税额!'); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if (this.formData.education == '') { |  | ||||||
|         this.$message.error('请输入学历!'); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if (this.formData.previous_profit == '') { |  | ||||||
|         this.$message.error('请输入上年度净利润!'); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if (this.formData.previous_donation == '') { |  | ||||||
|         this.$message.error('请输入上年度公益性捐赠支出!'); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if (this.formData.qitaqiyerenzhiqingkuang == '') { |  | ||||||
|         this.$message.error('请输入其他企业任职情况!'); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if (this.formData.enterprise_Introduction == '') { |  | ||||||
|         this.$message.error('请输入企业介绍!'); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if (this.formData.introdiction == '') { |  | ||||||
|         this.$message.error('请输入业务介绍!'); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if (this.formData.enterprise_honor == '') { |  | ||||||
|         this.$message.error('请输入企业所获荣誉以及专利!'); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if (this.formData.if_organization == null) { |  | ||||||
|         this.$message.error('是否建立团组织!'); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|       if(this.formData.if_organization==0){ |  | ||||||
|         if (this.formData.nature == '') { |  | ||||||
|           this.$message.error('请输主团组织性质!'); |  | ||||||
|           return; |  | ||||||
|         } |  | ||||||
|         if (this.formData.jiantuan_time == '') { |  | ||||||
|           this.$message.error('请输入建团时间!'); |  | ||||||
|           return; |  | ||||||
|         } |  | ||||||
|         if (this.formData.jiantuan_number == '') { |  | ||||||
|           this.$message.error('请输入建团人数!'); |  | ||||||
|           return; |  | ||||||
|         } |  | ||||||
|         if (this.formData.youth_number == '') { |  | ||||||
|           this.$message.error('请输入青年人数!'); |  | ||||||
|           return; |  | ||||||
|         } |  | ||||||
|         if (this.formData.superior_nature == '') { |  | ||||||
|           this.$message.error('请输入上级团组织!'); |  | ||||||
|           return; |  | ||||||
|         } |  | ||||||
|         if (this.formData.tuanweifuzerenxinxi == '') { |  | ||||||
|           this.$message.error('请输入团委负责人信息!'); |  | ||||||
|           return; |  | ||||||
|         } |  | ||||||
|         if (this.formData.documents_file == '') { |  | ||||||
|           this.$message.error('请上传批复文件!'); |  | ||||||
|         return; |         return; | ||||||
|       } |       } | ||||||
|  |       if(this.formData.photo_image==''){ | ||||||
|  |           this.formData.photo_image = '/uploads/20240517/8b2da599cd1e90fcfbb56bdf0f4f4181.webp'; | ||||||
|       } |       } | ||||||
|  |       // if (this.formData.enterprise_nature == '') { | ||||||
|  |       //   this.$message.error('请输入企业性质!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.enterprise_website == '') { | ||||||
|  |       //   this.$message.error('请输入企业网址!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.if_list == null) { | ||||||
|  |       //   this.$message.error('请选择是否上市!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.employee == '') { | ||||||
|  |       //   this.$message.error('请输入员工人数!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.enterprise_location == '') { | ||||||
|  |       //   this.$message.error('请输入企业注册地!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.previous_revenue == '') { | ||||||
|  |       //   this.$message.error('请输入上年度营业额!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.previous_tax == '') { | ||||||
|  |       //   this.$message.error('请输入上年度纳税额!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.education == '') { | ||||||
|  |       //   this.$message.error('请输入学历!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.previous_profit == '') { | ||||||
|  |       //   this.$message.error('请输入上年度净利润!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.previous_donation == '') { | ||||||
|  |       //   this.$message.error('请输入上年度公益性捐赠支出!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.qitaqiyerenzhiqingkuang == '') { | ||||||
|  |       //   this.$message.error('请输入其他企业任职情况!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.enterprise_Introduction == '') { | ||||||
|  |       //   this.$message.error('请输入企业介绍!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.introdiction == '') { | ||||||
|  |       //   this.$message.error('请输入业务介绍!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.enterprise_honor == '') { | ||||||
|  |       //   this.$message.error('请输入企业所获荣誉以及专利!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.if_organization == null) { | ||||||
|  |       //   this.$message.error('是否建立团组织!'); | ||||||
|  |       //   return; | ||||||
|  |       // } | ||||||
|  |       // if (this.formData.if_organization == 0) { | ||||||
|  |       //   if (this.formData.nature == '') { | ||||||
|  |       //     this.$message.error('请输主团组织性质!'); | ||||||
|  |       //     return; | ||||||
|  |       //   } | ||||||
|  |       //   if (this.formData.jiantuan_time == '') { | ||||||
|  |       //     this.$message.error('请输入建团时间!'); | ||||||
|  |       //     return; | ||||||
|  |       //   } | ||||||
|  |       //   if (this.formData.jiantuan_number == '') { | ||||||
|  |       //     this.$message.error('请输入建团人数!'); | ||||||
|  |       //     return; | ||||||
|  |       //   } | ||||||
|  |       //   if (this.formData.youth_number == '') { | ||||||
|  |       //     this.$message.error('请输入青年人数!'); | ||||||
|  |       //     return; | ||||||
|  |       //   } | ||||||
|  |       //   if (this.formData.superior_nature == '') { | ||||||
|  |       //     this.$message.error('请输入上级团组织!'); | ||||||
|  |       //     return; | ||||||
|  |       //   } | ||||||
|  |       //   if (this.formData.tuanweifuzerenxinxi == '') { | ||||||
|  |       //     this.$message.error('请输入团委负责人信息!'); | ||||||
|  |       //     return; | ||||||
|  |       //   } | ||||||
|  |       //   if (this.formData.documents_file == '') { | ||||||
|  |       //     this.$message.error('请上传批复文件!'); | ||||||
|  |       //     return; | ||||||
|  |       //   } | ||||||
|  |       // } | ||||||
|       this.formData.member_id = this.id; |       this.formData.member_id = this.id; | ||||||
|       this.$request |       this.$request | ||||||
|         .post("/member/update", this.formData) |         .post("/member/update", this.formData) | ||||||
|  | |||||||
| @ -12,12 +12,12 @@ | |||||||
|           <t-col :span="5"> |           <t-col :span="5"> | ||||||
|             <t-row :gutter="[16, 24]"> |             <t-row :gutter="[16, 24]"> | ||||||
|               <t-col :flex="2"> |               <t-col :flex="2"> | ||||||
|                 <t-form-item label="姓名" name="nikename"> |                 <t-form-item label="会员姓名" name="nikename"> | ||||||
|                   <t-input |                   <t-input | ||||||
|                     v-model="formData.nikename" |                     v-model="formData.nikename" | ||||||
|                     class="form-item-content" |                     class="form-item-content" | ||||||
|                     type="search" |                     type="search" | ||||||
|                     placeholder="请输入姓名" |                     placeholder="请输入会员姓名" | ||||||
|                     :style="{ minWidth: '134px' }" |                     :style="{ minWidth: '134px' }" | ||||||
|                   /> |                   /> | ||||||
|                 </t-form-item> |                 </t-form-item> | ||||||
|  | |||||||
| @ -90,10 +90,10 @@ | |||||||
|           </div> |           </div> | ||||||
|         </t-descriptions-item> |         </t-descriptions-item> | ||||||
|         <t-descriptions-item label="企业注册地" :content="info.enterprise_location"></t-descriptions-item> |         <t-descriptions-item label="企业注册地" :content="info.enterprise_location"></t-descriptions-item> | ||||||
|         <t-descriptions-item label="上年度营业额" :content="info.previous_revenue+'万'"></t-descriptions-item> |         <t-descriptions-item label="上年度营业额" :content="!info.previous_revenue?'':info.previous_revenue+'万'"></t-descriptions-item> | ||||||
|         <t-descriptions-item label="上年度纳税额" :content="info.previous_tax+'万'"></t-descriptions-item> |         <t-descriptions-item label="上年度纳税额" :content="!info.previous_tax?'':info.previous_tax+'万'"></t-descriptions-item> | ||||||
|         <t-descriptions-item label="上年度净利润" :content="info.previous_profit+'万'"></t-descriptions-item> |         <t-descriptions-item label="上年度净利润" :content="!info.previous_profit?'':info.previous_profit+'万'"></t-descriptions-item> | ||||||
|         <t-descriptions-item label="上年度公益性捐赠支出" :content="info.previous_donation+'万'"></t-descriptions-item> |         <t-descriptions-item label="上年度公益性捐赠支出" :content="!info.previous_donation?'':info.previous_donation+'万'"></t-descriptions-item> | ||||||
|         <t-descriptions-item label="企业介绍" :content="info.enterprise_Introduction"></t-descriptions-item> |         <t-descriptions-item label="企业介绍" :content="info.enterprise_Introduction"></t-descriptions-item> | ||||||
|         <t-descriptions-item label="业务介绍" :content="info.introdiction"></t-descriptions-item> |         <t-descriptions-item label="业务介绍" :content="info.introdiction"></t-descriptions-item> | ||||||
|         <t-descriptions-item label="企业所获荣誉以及专利" :content="info.enterorise_honor"></t-descriptions-item> |         <t-descriptions-item label="企业所获荣誉以及专利" :content="info.enterorise_honor"></t-descriptions-item> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user