2 lines
52 KiB
JavaScript
2 lines
52 KiB
JavaScript
|
import{a as l,u as c}from"./index.esm-41c14e67.js";import{s as r,a as m,n as d}from"./index-2b234fd0.js";import{d as p}from"./index-1d16a656.js";import{C as u}from"./check-circle-4750a554.js";import{U as f,L as h}from"./user-03ef2f01.js";const _={components:{VueCropper:p.VueCropper,CheckCircleIcon:u,UserIcon:f,LockOnIcon:h,Editor:l,Toolbar:c},data(){return{editorJJ:null,editorCJ:null,editorGS:null,editorZY:null,editorRY:null,editorQT:null,editorLX:null,toolbarConfig:{showLinkImg:!1,uploadImgShowBase64:!0,excludeKeys:["insertVideo","uploadVideo","group-video","insertImage","uploadImage","group-image","insertLink","insertTable","codeBlock"]},editorConfig:{placeholder:"",readOnly:!1,autoFocus:!0},caiMode:!1,previews:{},caiImg:"",association:{},work:{time:"",address:"",book:""},work_time:[],workList:[],contacts:{name:"",post:"",phone:""},tuan:{name:"",sex:"",job:"",tun_job:"",phone:""},tuan_list:[],contactsList:[],social_duties:[],member_list:[],formData:{enterprise_lvxingzeren:"",mail_address:"",source_channel:"",intentional_association_position:"",recommended_cities:"",recommendation_id:"",recommendation_name:"",reporting_method:"",recommendation_content:"",phone:"",password:"",nikename:"",gender:null,birth_time:"",nation:"",political:"",jiguan:"",institution:"",education:"",academic_degree:"",card_number:"",work_unit:"",zip_code:"",unit_position:"",wx_number:"",mailbox:"",fixed_telephone:"",achievement_award:"",other_contacts:"",other_social_positions:"",position:"",cardf_image_show:[],cardz_image_show:[],photo_image_show:[],cardf_image:"",cardz_image:"",photo_image:"",business_license_image_show:[],business_license_image:"",unified_code:"",enterprise_nature:"",enterprise_website:"",if_list:null,employee:"",previous_revenue:"",previous_tax:"",position_id:null,previous_profit:"",previous_donation:"",enterprise_location:"",industry_id:null,qitaqiyerenzhiqingkuang:"",enterprise_Introduction:"",introdiction:"",enterprise_honor:"",if_organization:null,nature:"",jiantuan_time:"",jiantuan_number:"",youth_number:"",superior_nature:"",tuanweifuzerenxinxi:"",documents_file:"",documents_file_show:[],introduction:"",enterprise_name:"",company_image:"",company_image_show:[],region_id:null,longitude:"",dimension:""},id:0,info:"",plan_list:[],region_list:[],industry_list:[]}},mounted(){typeof r.state.user.association=="object"?this.association=r.state.user.association:this.association=JSON.parse(r.state.user.association),console.log(this.association),this.id=this.$route.query.id,this.getMemberList(),this.getPlan(),this.getIndustry(),this.getRegion(),setTimeout(()=>{this.getInfo()},1e3)},methods:{getMemberInfo(t){console.log(t);var i=this.member_list.findIndex(a=>a.id==t);this.formData.recommendation_id=t,this.formData.recommendation_content=this.member_list[i].work_unit+this.member_list[i].unit_position},getMemberList(){this.$request.post("/move/association/memberList").then(t=>{console.log(t),t.code==1&&(this.member_list=t.data)}).catch(t=>{console.log(t)})},onChange(t,i){this.work.time=t[0]+"至"+t[1]},addTuan(){if(this.tuan.name==""){this.$message.error("请输入姓名!",1500);return}if(this.tuan.sex==""){this.$message.error("请输入性别!",1500);return}if(this.tuan.job==""){this.$message.error("请输入单位职务!",1500);return}if(this.tuan.tun_job==""){this.$message.error("请输入团委职务!",1500);return}if(this.tuan.phone==""){this.$message.error("请输入手机号!",1500);return}var t={...this.tuan};this.tuan_list.push(t),this.tuan.name="",this.tuan.sex="",this.tuan.job="",this.tuan.tun_job="",this.tuan.phone=""},delTuan(t){this.tuan_list.splice(t,1)},addWork(){if(this.workList.length>=12){this.$message.error("最多添加12条数据!",1500);return}if(this.work.time==""){this.$message.error("请输入起止日期!",1500);return}if(this.work.address==""){this.$message.error("请输入地区单位!",1500);return}if(this.work.book==""){this.$message.error("请输入担任职务!",1500);return}var t={...this.work};this.workList.push(t),this.work.time="",this.work.address="",this.work.book="",this.work_
|