This commit is contained in:
王创世 2024-05-20 18:09:34 +08:00
parent 3e3a19ca65
commit 38131ff398
4 changed files with 217 additions and 184 deletions

View File

@ -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>

View File

@ -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">
@ -86,9 +86,9 @@
<t-form-item label="其他联系人" name="other_contacts"> <t-form-item label="其他联系人" name="other_contacts">
<t-input v-model="formData.other_contacts" placeholder="请输入其他联系人"></t-input> <t-input v-model="formData.other_contacts" placeholder="请输入其他联系人"></t-input>
</t-form-item> </t-form-item>
<!-- <t-form-item label="意向协会职务" name="position">--> <!-- <t-form-item label="意向协会职务" name="position">-->
<!-- <t-input v-model="formData.position" placeholder="请输入意向协会职务"></t-input>--> <!-- <t-input v-model="formData.position" placeholder="请输入意向协会职务"></t-input>-->
<!-- </t-form-item>--> <!-- </t-form-item>-->
<t-form-item label="自我介绍" name="introduction"> <t-form-item label="自我介绍" name="introduction">
<t-textarea placeholder="请输入自我介绍" :autosize="{ minRows: 3, maxRows: 5 }" <t-textarea placeholder="请输入自我介绍" :autosize="{ minRows: 3, maxRows: 5 }"
v-model="formData.introduction"/> v-model="formData.introduction"/>
@ -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,
@ -299,11 +300,11 @@ export default {
employee: '', employee: '',
previous_revenue: '', previous_revenue: '',
previous_tax: '', previous_tax: '',
position_id:null, position_id: null,
previous_profit: '', previous_profit: '',
previous_donation: '', previous_donation: '',
enterprise_location:'', enterprise_location: '',
industry_id:null, industry_id: null,
qitaqiyerenzhiqingkuang: '', qitaqiyerenzhiqingkuang: '',
enterprise_Introduction: '', enterprise_Introduction: '',
introdiction: '', introdiction: '',
@ -317,13 +318,13 @@ export default {
tuanweifuzerenxinxi: '', tuanweifuzerenxinxi: '',
documents_file: '', documents_file: '',
documents_file_show: [], documents_file_show: [],
introduction:'', introduction: '',
enterprise_name:'', enterprise_name: '',
}, },
id: 0, id: 0,
info: '', info: '',
plan_list:[], plan_list: [],
industry_list:[] industry_list: []
}; };
}, },
mounted() { mounted() {
@ -349,26 +350,26 @@ export default {
return {url: res.data.fullurl}; return {url: res.data.fullurl};
}, },
getIndustry(){ getIndustry() {
this.$request this.$request
.post("/industry") .post("/industry")
.then( (res) => { .then((res) => {
console.log(res); console.log(res);
if(res.code==1){ if (res.code == 1) {
this.industry_list=res.data; this.industry_list = res.data;
} }
}) })
.catch((e) => { .catch((e) => {
console.log(e); console.log(e);
}); });
}, },
getPlan(){ getPlan() {
this.$request this.$request
.post("/position") .post("/position")
.then( (res) => { .then((res) => {
console.log(res); console.log(res);
if(res.code==1){ if (res.code == 1) {
this.plan_list=res.data; this.plan_list = res.data;
} }
}) })
.catch((e) => { .catch((e) => {
@ -377,178 +378,210 @@ export default {
}, },
getInfo() { getInfo() {
this.$request this.$request
.post("/member/find",{member_id:this.id}) .post("/member/find", {member_id: this.id})
.then( (res) => { .then((res) => {
console.log(res); console.log(res);
this.info=res.data; this.info = res.data;
this.formData.phone=res.data.phone; this.formData.phone = res.data.phone;
this.formData.position_id=res.data.position_id; this.formData.position_id = res.data.position_id;
this.formData.industry_id=res.data.industry_id; this.formData.industry_id = res.data.industry_id;
this.formData.password=res.data.password; this.formData.password = res.data.password;
this.formData.nikename=res.data.nikename; this.formData.nikename = res.data.nikename;
this.formData.gender=res.data.gender; this.formData.gender = res.data.gender;
this.formData.birth_time=res.data.birth_time; this.formData.birth_time = res.data.birth_time;
this.formData.nation=res.data.nation; this.formData.nation = res.data.nation;
this.formData.political=res.data.political; this.formData.political = res.data.political;
this.formData.jiguan=res.data.jiguan; this.formData.jiguan = res.data.jiguan;
this.formData.institution=res.data.institution; this.formData.institution = res.data.institution;
this.formData.education=res.data.education; this.formData.education = res.data.education;
this.formData.academic_degree=res.data.academic_degree; this.formData.academic_degree = res.data.academic_degree;
this.formData.card_number=res.data.card_number; this.formData.card_number = res.data.card_number;
this.formData.work_unit=res.data.work_unit; this.formData.work_unit = res.data.work_unit;
this.formData.unit_position=res.data.unit_position; this.formData.unit_position = res.data.unit_position;
this.formData.wx_number=res.data.wx_number; this.formData.wx_number = res.data.wx_number;
this.formData.mailbox=res.data.mailbox; this.formData.mailbox = res.data.mailbox;
this.formData.fixed_telephone=res.data.fixed_telephone; this.formData.fixed_telephone = res.data.fixed_telephone;
this.formData.achievement_award=res.data.achievement_award; this.formData.achievement_award = res.data.achievement_award;
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;
this.formData.cardf_image_show=[{url: store.state.user.apiUrl+res.data.cardf_image}]; if(res.data.cardf_image==''){
this.formData.cardz_image_show=[{url: store.state.user.apiUrl+res.data.cardz_image}]; this.formData.cardf_image_show = [];
this.formData.photo_image_show=[{url:store.state.user.apiUrl+ res.data.photo_image}]; }else{
this.formData.cardf_image=res.data.cardf_image; this.formData.cardf_image_show = [{url: store.state.user.apiUrl + res.data.cardf_image}];
this.formData.cardz_image=res.data.cardz_image; }
this.formData.photo_image=res.data.photo_image; if( res.data.cardz_image==''){
this.formData.business_license_image_show=[{url:store.state.user.apiUrl+res.data.business_license_image}]; this.formData.cardz_image_show = [];
this.formData.business_license_image=res.data.business_license_image; }else{
this.formData.unified_code=res.data.unified_code; this.formData.cardz_image_show = [{url: store.state.user.apiUrl + res.data.cardz_image}];
this.formData.enterprise_nature=res.data.enterprise_nature; }
this.formData.enterprise_website=res.data.enterprise_website; if( res.data.photo_image==''){
this.formData.if_list=res.data.if_list; this.formData.photo_image_show = [];
this.formData.employee=res.data.employee; }else{
this.formData.previous_revenue=res.data.previous_revenue; this.formData.photo_image_show = [{url: store.state.user.apiUrl + res.data.photo_image}];
this.formData.previous_tax=res.data.previous_tax; }
this.formData.previous_profit=res.data.previous_profit;
this.formData.previous_donation=res.data.previous_donation; this.formData.cardf_image = res.data.cardf_image;
this.formData.qitaqiyerenzhiqingkuang=res.data.qitaqiyerenzhiqingkuang; this.formData.cardz_image = res.data.cardz_image;
this.formData.enterprise_Introduction=res.data.enterprise_Introduction; this.formData.photo_image = res.data.photo_image;
this.formData.introdiction=res.data.introdiction; if(res.data.business_license_image==''){
this.formData.enterprise_honor=res.data.enterprise_honor; this.formData.business_license_image_show = [];
this.formData.if_organization=res.data.if_organization; }else{
this.formData.nature=res.data.nature; this.formData.business_license_image_show = [{url: store.state.user.apiUrl + res.data.business_license_image}];
this.formData.jiantuan_time=res.data.jiantuan_time; }
this.formData.jiantuan_number=res.data.jiantuan_number; this.formData.business_license_image = res.data.business_license_image;
this.formData.youth_number=res.data.youth_number; this.formData.unified_code = res.data.unified_code;
this.formData.superior_nature=res.data.superior_nature; this.formData.enterprise_nature = res.data.enterprise_nature;
this.formData.tuanweifuzerenxinxi=res.data.tuanweifuzerenxinxi; this.formData.enterprise_website = res.data.enterprise_website;
this.formData.documents_file=res.data.documents_file; this.formData.if_list = res.data.if_list;
this.formData.enterprise_location=res.data.enterprise_location; this.formData.employee = res.data.employee;
this.formData.documents_file_show= [{url:store.state.user.apiUrl+ res.data.documents_file}]; this.formData.previous_revenue = res.data.previous_revenue;
this.formData.introduction=res.data.introduction; this.formData.previous_tax = res.data.previous_tax;
this.formData.enterprise_name=res.data.enterprise_name; this.formData.previous_profit = res.data.previous_profit;
this.formData.previous_donation = res.data.previous_donation;
this.formData.qitaqiyerenzhiqingkuang = res.data.qitaqiyerenzhiqingkuang;
this.formData.enterprise_Introduction = res.data.enterprise_Introduction;
this.formData.introdiction = res.data.introdiction;
this.formData.enterprise_honor = res.data.enterprise_honor;
this.formData.if_organization = res.data.if_organization;
this.formData.nature = res.data.nature;
this.formData.jiantuan_time = res.data.jiantuan_time;
this.formData.jiantuan_number = res.data.jiantuan_number;
this.formData.youth_number = res.data.youth_number;
this.formData.superior_nature = res.data.superior_nature;
this.formData.tuanweifuzerenxinxi = res.data.tuanweifuzerenxinxi;
this.formData.documents_file = res.data.documents_file;
this.formData.enterprise_location = res.data.enterprise_location;
this.formData.documents_file_show = [{url: store.state.user.apiUrl + res.data.documents_file}];
this.formData.introduction = res.data.introduction;
this.formData.enterprise_name = res.data.enterprise_name;
}) })
.catch((e) => { .catch((e) => {
console.log(e); console.log(e);
}); });
}, },
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)
.then((res) => { .then((res) => {
console.log(res); console.log(res);
if (res.code==1){ if (res.code == 1) {
this.$message.success(res.msg); this.$message.success(res.msg);
}else{ } else {
this.$message.error(res.msg); this.$message.error(res.msg);
} }
this.getInfo(); this.getInfo();

View File

@ -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>

View File

@ -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>