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.13c405ad.js 7.2KB

преди 3 месеца
1
  1. import{d as z,B as g,C as H,r as S,b as J,o as Q,c as i,e as m,f as _,h as t,i as o,F as v,H as b,u as r,g as y,j as C,G as x,t as W,q as X}from"./index.a2494fc2.js";import{_ as Y}from"./index.9a76b4bf.js";import{h as Z,b as ee,f as le}from"./uploadAction.0eabe13b.js";import"./unitManage.98e613d0.js";const te={class:"flex flex-col items-start"},oe=z({name:"professionalInfo"}),de=Object.assign(oe,{setup(ae,{expose:U}){const N=g.dictStore.uploadUrl,{tagList:f}=H(g.dictStore),{proxy:q}=X(),a=S({}),h=S(),E={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"}]},T=n=>{h.value.validate(e=>{n(e)})},A=(n,e)=>{q.$message.warning("\u4EC5\u9650\u4E0A\u4F20\u4E00\u4E2A\u6587\u4EF6")},$=n=>{a.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=J({unitVisible:!1,showCheckbox:!1,data:void 0,name:void 0}),j=n=>{var e;d.name=n,d.unitVisible=!0,d.showCheckbox=!0,d.data=(e=a.value.avoidCompanyList)==null?void 0:e.map(s=>({key:s.companyUniqCode,title:s.companyName}))},B=()=>{d.unitVisible=!1},D=(n,e)=>{a.value[d.name]=n.map(s=>({companyUniqCode:s.key,companyName:s.title}))},I=n=>{a.value.avoidCompanyList.splice(n,1)};return U({validForm:T,formData:a,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"),R=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:h,model:a.value,rules:E,"label-position":"right","label-width":"120px","label-suffix":":","scroll-to-error":"",class:"professionalInfo"},{default:o(()=>[t(K,{gutter:8},{default:o(()=>[t(c,{span:8},{default:o(()=>[t(p,{label:"\u6280\u672F\u804C\u79F0",prop:"technicalTitles"},{default:o(()=>[t(s,{modelValue:a.value.technicalTitles,"onUpdate:modelValue":e[0]||(e[0]=l=>a.value.technicalTitles=l),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(c,{span:8},{default:o(()=>[t(p,{label:"\u804C\u79F0\u7EA7\u522B",prop:"titleLevel"},{default:o(()=>[t(k,{modelValue:a.value.titleLevel,"onUpdate:modelValue":e[1]||(e[1]=l=>a.value.titleLevel=l),class:"w-full",placeholder:"\u8BF7\u9009\u62E9","value-key":"dictionaryCode"},{default:o(()=>[(m(!0),_(v,null,b(r(g).dictStore.titleLevelDict,(l,u)=>(m(),x(V,{key:u,label:l.dictionaryName,value:l},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(c,{span:8},{default:o(()=>[t(p,{label:"\u64C5\u957F\u65B9\u5411",prop:"goodAt"},{default:o(()=>[t(k,{modelValue:a.value.goodAt,"onUpdate:modelValue":e[2]||(e[2]=l=>a.value.goodAt=l),class:"w-full",placeholder:"\u8BF7\u9009\u62E9",clearable:"","value-key":"tagCode",multiple:""},{default:o(()=>[(m(!0),_(v,null,b(r(g).dictStore.goodAtDict,(l,u)=>(m(),x(V,{key:u,label:l.tagName,value:l},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(c,{span:8},{default:o(()=>[t(p,{label:"\u6280\u672F\u4E13\u957F",prop:"technicalExpertise"},{default:o(()=>[t(L,{modelValue:a.value.technicalExpertise,"onUpdate:modelValue":e[3]||(e[3]=l=>a.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:o(()=>[t(p,{label:"\u884C\u4E1A\u9886\u57DF",prop:"industrySector"},{default:o(()=>[t(L,{modelValue:a.value.industrySector,"onUpdate:modelValue":e[5]||(e[5]=l=>a.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:o(()=>[t(p,{label:"\u83B7\u5956\u60C5\u51B5",prop:"awards"},{default:o(()=>[t(s,{modelValue:a.value.awards,"onUpdate:modelValue":e[7]||(e[7]=l=>a.value.awards=l),maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(c,{span:24},{default:o(()=>[t(p,{label:"\u8868\u5F70\u5956\u52B1",prop:"recognitionReward"},{default:o(()=>[t(s,{modelValue:a.value.recognitionReward,"onUpdate:modelValue":e[8]||(e[8]=l=>a.value.recognitionReward=l),maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(c,{span:24},{default:o(()=>[t(p,{label:"\u56DE\u907F\u5355\u4F4D",prop:"avoidCompanyList"},{default:o(()=>[y("div",te,[t(F,{type:"primary",onClick:e[9]||(e[9]=l=>j("avoidCompanyList"))},{default:o(()=>[t(O,null,{default:o(()=>[t(R)]),_:1}),e[11]||(e[11]=C("\u9009\u62E9\u56DE\u907F\u5355\u4F4D "))]),_:1}),y("p",null,[(m(!0),_(v,null,b(a.value.avoidCompanyList,(l,u)=>(m(),x(P,{key:u,class:"mr-8",closable:"",onClose:ne=>I(u)},{default:o(()=>[C(W(l.companyName),1)]),_:2},1032,["onClose"]))),128))])])]),_:1})]),_:1}),t(c,{span:24},{default:o(()=>[t(p,{label:"\u804C\u79F0\u8BC1\u660E",prop:"titleCertificateFile"},{default:o(()=>[t(G,{"file-list":a.value.titleCertificateFile,"onUpdate:fileList":e[10]||(e[10]=l=>a.value.titleCertificateFile=l),class:"w-full",action:r(N),"on-exceed":A,limit:1,"on-success":l=>r(Z)(l,a.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:o(()=>e[13]||(e[13]=[y("div",{class:"el-upload__tip"}," \u652F\u6301\u6269\u5C55\u540D:.pdf .png .jpg .pdf,\u6587\u4EF6\u5927\u5C0F\u4E0D\u8D85\u8FC71M ",-1)])),default:o(()=>[t(F,{type:"primary",plain:""},{default:o(()=>e[12]||(e[12]=[C("\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:B,onGetSelectUnit:D},null,8,["visible","show-checkbox","default-data"])],64)}}});export{de as default};