yifengyide/public/dist/assets/user_add-7434762e.js

2 lines
47 KiB
JavaScript
Raw Normal View History

import{a as n,u as c}from"./index.esm-41c14e67.js";import{s,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 g={components:{VueCropper:p.VueCropper,CheckCircleIcon:u,UserIcon:f,LockOnIcon:h,Editor:n,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:"",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,if_xianshi:1,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 s.state.user.association=="object"?this.association=s.state.user.association:this.association=JSON.parse(s.state.user.association),console.log(this.association),this.id=this.$route.query.id,this.getPlan(),this.getIndustry(),this.getRegion(),this.getMemberList()},methods:{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_time=[]},delWork(t){this.workList.splice(t,1)},addContacts(){if(this.contacts.name==""){this.$message.error("请输入姓名!",1500);return}if(this.contacts.post==""){this.$message.error("请输入职务!",1500);return}if(this.contacts.phone==""){this.$message.error("请输入电话!",1500);return}var t={...this.contacts};this.contactsList.push(t),this.contacts.name="",this.contacts.post="",this.contacts.phone=""}