|
- import{_ as Z,d as ee,r as u,b as ae,o as te,c as D,e as F,f as h,F as L,g as r,h as l,i as o,j as S,u as O,t as W,n as oe,z as le,A as ie,q as re,s as se,x as ne}from"./index.d340e473.js";import me from"./basicInfo.97c36c01.js";import fe from"./eduInfo.f88d867c.js";import ue from"./jobInfo.07c923fb.js";import de from"./professionalInfo.4c814c3b.js";import ce from"./recommendInfo.8fddcd7b.js";import{e as pe,a as ve,r as _e}from"./expertStore.5c886727.js";import{a as ge}from"./uploadAction.95992a5e.js";import{g as De}from"./expertVerify.e08bf046.js";import{g as ye}from"./auth.fe48d6d0.js";import{g as Ie}from"./getTimeDiffer.8e05304a.js";import xe from"./expertOtherInfo.633a6638.js";import"./unitManage.92dc7eb4.js";import"./index.92826120.js";const be="/assets/link-failure-img.6af694cb.png";const v=R=>(re("data-v-ecea41c5"),R=R(),se(),R),Ce=v(()=>r("div",{class:"top"},"\u6E56\u5DDE\u5E02\u4FE1\u606F\u5316\u4E13\u5BB6\u62A5\u540D",-1)),Fe={class:"px-[107px] mt-[-60px]"},he=v(()=>r("div",{class:"collapse-title"},"\u57FA\u672C\u4FE1\u606F",-1)),Re={class:"pb-24"},we=v(()=>r("div",{class:"collapse-title"},"\u5B66\u5386\u4FE1\u606F",-1)),ke={class:"pb-24"},je=v(()=>r("div",{class:"collapse-title"},"\u804C\u4E1A\u4FE1\u606F",-1)),Pe={class:"pb-24"},Se=v(()=>r("div",{class:"collapse-title"},"\u4E13\u4E1A\u4FE1\u606F",-1)),Ne={class:"pb-24"},$e=v(()=>r("div",{class:"collapse-title"},"\u63A8\u8350\u4FE1\u606F",-1)),Ee={class:"pb-24"},Ue=v(()=>r("div",{class:"collapse-title"},"\u5176\u4ED6\u4FE1\u606F",-1)),Ve={class:"pb-24"},Te={class:"footer"},Be=v(()=>r("img",{src:be,style:{width:"320px",height:"245px",margin:"160px auto 0"}},null,-1)),qe=v(()=>r("p",{style:{color:"#83868C"},class:"mt-32 text-19 text-center"},"\u94FE\u63A5\u5DF2\u5931\u6548\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458",-1)),Ae={key:1,class:"itemBlue"},Le=ee({name:"expertEnroll"}),Oe=Object.assign(Le,{setup(R){const{proxy:b}=ne(),_=le(),w=ie(),M=u({basicInfo:{}}),$=u(["1","2","3","4","5","6"]),i=u(),f=u(),d=u(),n=u(),p=u(),y=u(),z=async()=>{const t=[];t.push(new Promise((e,m)=>{i.value.validForm(s=>{s&&e()})})),t.push(new Promise((e,m)=>{f.value.validForm(s=>{s&&e()})})),t.push(new Promise((e,m)=>{d.value.validForm(s=>{s&&e()})})),t.push(new Promise((e,m)=>{n.value.validForm(s=>{s&&e()})})),t.push(new Promise((e,m)=>{p.value.validForm(s=>{s&&e()})})),t.push(new Promise((e,m)=>{y.value.validForm(s=>{s&&e()})})),Promise.all([...t]).then(async()=>{G()}).catch(e=>{e&&b.$message.warning(e)})},G=async()=>{var e,m,s,g,C,P;var t={expertUserId:_.query.id||void 0,basicInfo:{...i.value.formData,avatarUrl:((m=(e=i.value.formData)==null?void 0:e.avatarFile)==null?void 0:m.fileId)&&await ge(i.value.formData.avatarFile.fileId),expertIntentionWorkRegions:(s=i.value.formData.expertIntentionWorkRegions)==null?void 0:s.map((a,V)=>{var c,T,B,q,A;return{regionName:(c=a.unionCode)==null?void 0:c.join("@@"),regionCode:(B=(T=a.unionCode)==null?void 0:T.slice(-1)[0])==null?void 0:B.split("##")[0],regionLevel:(A=(q=a.unionCode)==null?void 0:q.slice(-1)[0])==null?void 0:A.split("##")[2]}}),expertRegionInfo:{regionName:(g=i.value.formData.expertRegionInfo)==null?void 0:g.join("@@"),regionCode:(C=i.value.formData.expertRegionInfo)==null?void 0:C.slice(-1)[0].split("##")[0],regionLevel:(P=i.value.formData.expertRegionInfo)==null?void 0:P.slice(-1)[0].split("##")[2]},political:i.value.formData.political&&[i.value.formData.political]||[],expertSource:i.value.formData.expertSource&&[i.value.formData.expertSource]||[],expertType:i.value.formData.expertType&&[i.value.formData.expertType]||[]},eduInfo:{...f.value.formData,edu:f.value.formData.edu&&[f.value.formData.edu],degree:f.value.formData.degree&&[f.value.formData.degree],degreeCertificateFile:f.value.formData.degreeCertificateFile&&await Promise.all(f.value.formData.degreeCertificateFile&&f.value.formData.degreeCertificateFile.map(async a=>({fileName:a.name,fileId:a.response.data.id,url:a.fileUrlById})))||[],graduationCertificateFile:f.value.formData.graduationCertificateFile&&await Promise.all(f.value.formData.graduationCertificateFile&&f.value.formData.graduationCertificateFile.map(async a=>({fileName:a.name,fileId:a.response.data.id,url:a.fileUrlById})))||[]},jobInfo:{...d.value.formData,administrativeRank:d.value.formData.administrativeRank&&[d.value.formData.administrativeRank]||[],jobStatus:d.value.formData.jobStatus&&[d.value.formData.jobStatus]||[],companyAttribute:d.value.formData.companyAttribute&&[d.value.formData.companyAttribute]||[]},professionalInfo:{...n.value.formData,goodAt:n.value.formData.goodAt&&[n.value.formData.goodAt]||[],titleLevel:n.value.formData.titleLevel&&[n.value.formData.titleLevel]||[],titleCertificateFile:n.value.formData.titleCertificateFile&&await Promise.all(n.value.formData.titleCertificateFile&&n.value.formData.titleCertificateFile.map(async a=>({fileName:a.name,fileId:a.response.data.id,url:a.fileUrlById})))||[],technicalExpertise:n.value.formData.technicalExpertise&&n.value.formData.technicalExpertise.map(a=>({tagCode:a.split("##")[1],tagName:a.split("##")[0]})),industrySector:n.value.formData.industrySector&&n.value.formData.industrySector.map(a=>({tagCode:a.split("##")[1],tagName:a.split("##")[0]}))},recommendInfo:{...p.value.formData,recommendedWay:p.value.formData.recommendedWay&&[p.value.formData.recommendedWay]||[],recommendationProofFile:p.value.formData.recommendationProofFile&&await Promise.all(p.value.formData.recommendationProofFile&&p.value.formData.recommendationProofFile.map(async a=>({fileName:a.name,fileId:a.response.data.id,url:a.fileUrlById})))||[]},expertOtherInfo:{...y.value.formData,other:y.value.formData.other&&y.value.formData.other.map(a=>({tagCode:a.split("##")[1],tagName:a.split("##")[0]}))}};_.name==="expertEnroll"?X(t):_.query.id?(await ve(t),b.$message.success("\u4E13\u5BB6\u7F16\u8F91\u6210\u529F"),w.go(-1)):(await pe(t),b.$message.success("\u4E13\u5BB6\u65B0\u589E\u6210\u529F"),w.go(-1))},I=ae({visible:!1,data:{}}),X=t=>{I.data=t,I.visible=!0},E=u(),k=u({verificationCode:""}),H={verificationCode:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},J=u(!1),K=async t=>{!t||t.validate(async e=>{e&&(await _e({...I.data,verificationCode:k.value.verificationCode}),b.$message.success("\u63D0\u4EA4\u6210\u529F"),w.go(0))})},j=u(null),x=u(0),Q=async()=>{await ye({mobile:i.value.formData.phoneNo,verificationType:"EXPERT_REGISTER"}),b.$message.success("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001");const t=60;j.value||(x.value=t,j.value=setInterval(()=>{x.value>0&&x.value<=t?x.value--:(clearInterval(j.value),j.value=null)},1e3))},Y=async()=>{const t=await De({expertUserId:_.query.id});i.value.setFormData(t.data.basicInfo),f.value.setFormData(t.data.eduInfo),d.value.setFormData(t.data.jobInfo),n.value.setFormData(t.data.professionalInfo),p.value.setFormData(t.data.recommendInfo),y.value.setFormData(t.data.expertOtherInfo)},N=u(!1),U=()=>{const t=window.atob(_.query.time);Ie(new Date,new Date(t*1),"d")>3&&(N.value=!0)};return te(()=>{_.query.time?(U(),setInterval(()=>{U()},1e4)):N.value=!0,_.query.id&&Y()}),(t,e)=>{const m=D("el-collapse-item"),s=D("el-collapse"),g=D("el-button"),C=D("el-form-item"),P=D("el-input"),a=D("el-form"),V=D("el-dialog");return F(),h("div",{class:oe(["expertEnroll footerPage",{relative:O(_).path==="expertEnroll"}])},[Ce,N.value?(F(),h(L,{key:1},[Be,qe],64)):(F(),h(L,{key:0},[r("div",Fe,[l(s,{modelValue:$.value,"onUpdate:modelValue":e[0]||(e[0]=c=>$.value=c)},{default:o(()=>[l(m,{name:"1",class:"mb-16"},{title:o(()=>[he]),default:o(()=>[r("div",Re,[l(me,{ref_key:"basicInfoRef",ref:i,"basic-info":M.value.basicInfo},null,8,["basic-info"])])]),_:1}),l(m,{name:"2",class:"mb-16"},{title:o(()=>[we]),default:o(()=>[r("div",ke,[l(fe,{ref_key:"eduInfoRef",ref:f},null,512)])]),_:1}),l(m,{name:"3",class:"mb-16"},{title:o(()=>[je]),default:o(()=>[r("div",Pe,[l(ue,{ref_key:"jobInfoRef",ref:d},null,512)])]),_:1}),l(m,{name:"4",class:"mb-16"},{title:o(()=>[Se]),default:o(()=>[r("div",Ne,[l(de,{ref_key:"professionalInfoRef",ref:n},null,512)])]),_:1}),l(m,{name:"5",class:"mb-16"},{title:o(()=>[$e]),default:o(()=>[r("div",Ee,[l(ce,{ref_key:"recommendInfoRef",ref:p},null,512)])]),_:1}),l(m,{name:"6",class:"mb-16"},{title:o(()=>[Ue]),default:o(()=>[r("div",Ve,[l(xe,{ref_key:"expertOtherInfoRef",ref:y},null,512)])]),_:1})]),_:1},8,["modelValue"])]),r("div",Te,[l(g,{type:"primary",onClick:z},{default:o(()=>[S(" \u63D0\u4EA4 ")]),_:1}),l(g,{onClick:e[1]||(e[1]=c=>O(w).go(-1))},{default:o(()=>[S("\u53D6\u6D88")]),_:1})])],64)),l(V,{"model-value":I.visible,title:"\u77ED\u4FE1\u9A8C\u8BC1",width:"400px","destroy-on-close":"",onClose:e[5]||(e[5]=c=>I.visible=!1)},{footer:o(()=>[l(g,{type:"primary",loading:J.value,onClick:e[3]||(e[3]=c=>K(E.value))},{default:o(()=>[S(" \u63D0\u4EA4 ")]),_:1},8,["loading"]),l(g,{onClick:e[4]||(e[4]=c=>I.visible=!1)},{default:o(()=>[S(" \u5173\u95ED ")]),_:1})]),default:o(()=>[l(a,{ref_key:"smsDialogFormRef",ref:E,model:k.value,rules:H,"label-width":"auto","label-suffix":":"},{default:o(()=>[l(C,{label:"\u624B\u673A\u53F7"},{default:o(()=>[r("span",null,W(i.value.formData.phoneNo),1)]),_:1}),l(C,{label:"\u9A8C\u8BC1\u7801",prop:"verificationCode"},{default:o(()=>[l(P,{modelValue:k.value.verificationCode,"onUpdate:modelValue":e[2]||(e[2]=c=>k.value.verificationCode=c),placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"},{suffix:o(()=>[x.value?(F(),h("span",Ae,W(x.value),1)):(F(),h("a",{key:0,class:"itemBlue",onClick:Q}," \u83B7\u53D6\u9A8C\u8BC1\u7801"))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])],2)}}}),oa=Z(Oe,[["__scopeId","data-v-ecea41c5"]]);export{oa as default};
|