yifengyide/public/dist/assets/index-8c866356.js

2 lines
53 KiB
JavaScript
Raw Normal View History

import{a as l,u as c}from"./index.esm-41c14e67.js";import{a as m,s,n as d}from"./index-2b234fd0.js";import{d as u}from"./index-1d16a656.js";const p={components:{VueCropper:u.VueCropper,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},show:!1,caiMode:!1,previews:{},caiImg:"",work:{time:"",address:"",book:""},work_time:[],workList:[],contacts:{name:"",post:"",phone:""},contactsList:[],social_duties:[],tuan:{name:"",sex:"",job:"",tun_job:"",phone:""},tuan_list:[],formData:{enterprise_lvxingzeren:"",registered_capital:"",zip_code:"",mail_address:"",intentional_association_position:"",source_channel:"",region_id:null,recommendation_id:"",recommendation_name:"",position_id:null,industry_id:null,phone:"",password:"",nikename:"",gender:null,birth_time:"",nation:"",political:"",jiguan:"",institution:"",education:"",academic_degree:"",card_number:"",work_unit:"",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:"",previous_profit:"",previous_donation:"",qitaqiyerenzhiqingkuang:"",enterprise_Introduction:"",introdiction:"",enterprise_honor:"",if_organization:null,nature:"",jiantuan_time:"",jiantuan_number:"",youth_number:"",superior_nature:"",tuanweifuzerenxinxi:"",documents_file:"",documents_file_show:[],enterprise_location:"",introduction:"",enterprise_name:"",company_image:"",company_image_show:[],token:"",openid:"",work_experience:"",main_social_positions:"",reporting_method:3,recommendation_content:"",recommended_cities:"",longitude:"",dimension:""},current:2,industry_list:[],plan_list:[],member_list:[],region_list:[]}},mounted(){console.log(this.$route.query.id),this.formData.token=this.$route.query.token,this.formData.openid=this.$route.query.openid,this.getIndustry(),this.getRegion(),this.getInfo(),this.getUserList()},methods:{getMemberInfo(t){var i=this.member_list.findIndex(e=>e.id==t.id);this.formData.recommendation_content=this.member_list[i].work_unit+this.member_list[i].unit_position},getUserList(){if(typeof this.$route.query.recommendation_id<"u")this.formData.reporting_method=2;else return this.member_list=[],!1;var t=this.$route.query.recommendation_id;this.$request.post("/move/member/getrecommendationSelect",{openid:this.$route.query.openid}).then(i=>{console.log(i),this.member_list=i.data;var e=i.data.findIndex(a=>a.id==t);this.formData.recommendation_content=this.member_list[e].work_unit+this.member_list[e].unit_position,this.formData.recommendation_id=this.member_list[e].id,this.formData.recommendation_name=this.member_list[e].nikename}).catch(i=>{console.log(i)})},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("请输入地区