You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

professionalInfo.4c814c3b.js 7.1KB

1
  1. import{d as z,D as g,G as J,r as S,b as H,o as Q,c as i,e as m,f as _,h as t,i as a,F as v,J as b,u as r,g as h,j as y,I as C,t as W,x as X}from"./index.d340e473.js";import{_ as Y}from"./index.92826120.js";import{h as Z,b as ee,f as le}from"./uploadAction.95992a5e.js";import"./unitManage.92dc7eb4.js";const te={class:"flex flex-col items-start"},ae=h("div",{class:"el-upload__tip"}," \u652F\u6301\u6269\u5C55\u540D:.pdf .png .jpg .pdf,\u6587\u4EF6\u5927\u5C0F\u4E0D\u8D85\u8FC71M ",-1),oe=z({name:"professionalInfo"}),pe=Object.assign(oe,{setup(ne,{expose:U}){const N=g.dictStore.uploadUrl,{tagList:f}=J(g.dictStore),{proxy:E}=X(),o=S({}),x=S(),T={technicalTitles:[{required:!0,message:"\u8BF7\u8F93\u5165\u6280\u672F\u804C\u79F0",trigger:"blur"}],titleLevel:[{required:!0,message:"\u8BF7\u9009\u62E9\u804C\u79F0\u7EA7\u522B",trigger:"blur"}],goodAt:[{required:!0,message:"\u8BF7\u9009\u62E9\u64C5\u957F\u65B9\u5411",trigger:"blur"}],technicalExpertise:[{required:!0,message:"\u8BF7\u9009\u62E9\u6280\u672F\u4E13\u957F",trigger:"blur"}],industrySector:[{required:!0,message:"\u8BF7\u9009\u62E9\u884C\u4E1A\u9886\u57DF",trigger:"blur"}],avoidCompanyList:[{required:!0,message:"\u8BF7\u8F93\u5165\u56DE\u907F\u5355\u4F4D",trigger:"blur"}],titleCertificateFile:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u804C\u79F0\u8BC1\u660E",trigger:"blur"}]},q=n=>{x.value.validate(e=>{n(e)})},A=(n,e)=>{E.$message.warning("\u4EC5\u9650\u4E0A\u4F20\u4E00\u4E2A\u6587\u4EF6")},$=n=>{o.value={...n,goodAt:n.goodAt&&n.goodAt||void 0,titleLevel:n.titleLevel&&n.titleLevel[0]||void 0,industrySector:n.industrySector&&n.industrySector.map(e=>`${e.tagName}##${e.tagCode}`),technicalExpertise:n.technicalExpertise&&n.technicalExpertise.map(e=>`${e.tagName}##${e.tagCode}`),titleCertificateFile:n.titleCertificateFile&&n.titleCertificateFile.map(e=>({name:e.fileName,response:{data:{id:e.fileId}},fileUrlById:e.url}))}},w=(n,e,s)=>{console.log(e)},d=H({unitVisible:!1,showCheckbox:!1,data:void 0,name:void 0}),D=n=>{var e;d.name=n,d.unitVisible=!0,d.showCheckbox=!0,d.data=(e=o.value.avoidCompanyList)==null?void 0:e.map(s=>({key:s.companyUniqCode,title:s.companyName}))},I=()=>{d.unitVisible=!1},j=(n,e)=>{o.value[d.name]=n.map(s=>({companyUniqCode:s.key,companyName:s.title}))},R=n=>{o.value.avoidCompanyList.splice(n,1)};return U({validForm:q,formData:o,setFormData:$}),Q(async()=>{}),(n,e)=>{const s=i("el-input"),p=i("el-form-item"),c=i("el-col"),V=i("el-option"),k=i("el-select"),L=i("el-tree-select"),B=i("Plus"),O=i("el-icon"),F=i("el-button"),P=i("el-tag"),G=i("el-upload"),K=i("el-row"),M=i("el-form");return m(),_(v,null,[t(M,{ref_key:"formRef",ref:x,model:o.value,rules:T,"label-position":"right","label-width":"120px","label-suffix":":","scroll-to-error":"",class:"professionalInfo"},{default:a(()=>[t(K,{gutter:8},{default:a(()=>[t(c,{span:8},{default:a(()=>[t(p,{label:"\u6280\u672F\u804C\u79F0",prop:"technicalTitles"},{default:a(()=>[t(s,{modelValue:o.value.technicalTitles,"onUpdate:modelValue":e[0]||(e[0]=l=>o.value.technicalTitles=l),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(c,{span:8},{default:a(()=>[t(p,{label:"\u804C\u79F0\u7EA7\u522B",prop:"titleLevel"},{default:a(()=>[t(k,{modelValue:o.value.titleLevel,"onUpdate:modelValue":e[1]||(e[1]=l=>o.value.titleLevel=l),class:"w-full",placeholder:"\u8BF7\u9009\u62E9","value-key":"dictionaryCode"},{default:a(()=>[(m(!0),_(v,null,b(r(g).dictStore.titleLevelDict,(l,u)=>(m(),C(V,{key:u,label:l.dictionaryName,value:l},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(c,{span:8},{default:a(()=>[t(p,{label:"\u64C5\u957F\u65B9\u5411",prop:"goodAt"},{default:a(()=>[t(k,{modelValue:o.value.goodAt,"onUpdate:modelValue":e[2]||(e[2]=l=>o.value.goodAt=l),class:"w-full",placeholder:"\u8BF7\u9009\u62E9",clearable:"","value-key":"tagCode",multiple:""},{default:a(()=>[(m(!0),_(v,null,b(r(g).dictStore.goodAtDict,(l,u)=>(m(),C(V,{key:u,label:l.tagName,value:l},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(c,{span:8},{default:a(()=>[t(p,{label:"\u6280\u672F\u4E13\u957F",prop:"technicalExpertise"},{default:a(()=>[t(L,{modelValue:o.value.technicalExpertise,"onUpdate:modelValue":e[3]||(e[3]=l=>o.value.technicalExpertise=l),class:"w-full",placeholder:"\u8BF7\u9009\u62E9\u6280\u672F\u4E13\u957F",data:r(f)&&r(f).length&&r(f).find(l=>l.tagCode==="technical_expertise").children||[],props:{label:"tagName",value:"unionCode"},"node-key":"unionCode","collapse-tags":"",multiple:"","show-checkbox":"","check-on-click-node":"",onCheck:e[4]||(e[4]=(l,u)=>w(l,u,"technicalExpertise"))},null,8,["modelValue","data"])]),_:1})]),_:1}),t(c,{span:8},{default:a(()=>[t(p,{label:"\u884C\u4E1A\u9886\u57DF",prop:"industrySector"},{default:a(()=>[t(L,{modelValue:o.value.industrySector,"onUpdate:modelValue":e[5]||(e[5]=l=>o.value.industrySector=l),class:"w-full",placeholder:"\u8BF7\u9009\u62E9\u884C\u4E1A\u9886\u57DF",data:r(f)&&r(f).length&&r(f).find(l=>l.tagCode==="industry_sector").children||[],props:{label:"tagName",value:"unionCode"},"node-key":"unionCode","collapse-tags":"",multiple:"","show-checkbox":"","check-on-click-node":"",onCheck:e[6]||(e[6]=(l,u)=>w(l,u,"industrySector"))},null,8,["modelValue","data"])]),_:1})]),_:1}),t(c,{span:24},{default:a(()=>[t(p,{label:"\u83B7\u5956\u60C5\u51B5",prop:"awards"},{default:a(()=>[t(s,{modelValue:o.value.awards,"onUpdate:modelValue":e[7]||(e[7]=l=>o.value.awards=l),maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(c,{span:24},{default:a(()=>[t(p,{label:"\u8868\u5F70\u5956\u52B1",prop:"recognitionReward"},{default:a(()=>[t(s,{modelValue:o.value.recognitionReward,"onUpdate:modelValue":e[8]||(e[8]=l=>o.value.recognitionReward=l),maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(c,{span:24},{default:a(()=>[t(p,{label:"\u56DE\u907F\u5355\u4F4D",prop:"avoidCompanyList"},{default:a(()=>[h("div",te,[t(F,{type:"primary",onClick:e[9]||(e[9]=l=>D("avoidCompanyList"))},{default:a(()=>[t(O,null,{default:a(()=>[t(B)]),_:1}),y("\u9009\u62E9\u56DE\u907F\u5355\u4F4D ")]),_:1}),h("p",null,[(m(!0),_(v,null,b(o.value.avoidCompanyList,(l,u)=>(m(),C(P,{key:u,class:"mr-8",closable:"",onClose:ie=>R(u)},{default:a(()=>[y(W(l.companyName),1)]),_:2},1032,["onClose"]))),128))])])]),_:1})]),_:1}),t(c,{span:24},{default:a(()=>[t(p,{label:"\u804C\u79F0\u8BC1\u660E",prop:"titleCertificateFile"},{default:a(()=>[t(G,{"file-list":o.value.titleCertificateFile,"onUpdate:fileList":e[10]||(e[10]=l=>o.value.titleCertificateFile=l),class:"w-full",action:r(N),"on-exceed":A,limit:1,"on-success":l=>r(Z)(l,o.value.titleCertificateFile),"on-preview":r(ee),accept:"application/pdf,image/png,image/jpeg","before-upload":l=>r(le)(l,{types:["png","jpg","jpeg","pdf"],size:1024})},{tip:a(()=>[ae]),default:a(()=>[t(F,{type:"primary",plain:""},{default:a(()=>[y("\u9009\u62E9\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-success","on-preview","before-upload"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),t(Y,{visible:d.unitVisible,"show-checkbox":d.showCheckbox,"default-data":d.data,onClose:I,onGetSelectUnit:j},null,8,["visible","show-checkbox","default-data"])],64)}}});export{pe as default};