選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

2 行
7.9KB

  1. var Y=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var A=(u,i,r)=>i in u?Y(u,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[i]=r,j=(u,i)=>{for(var r in i||(i={}))le.call(i,r)&&A(u,r,i[r]);if(I)for(var r of I(i))te.call(i,r)&&A(u,r,i[r]);return u},O=(u,i)=>Z(u,ee(i));var $=(u,i,r)=>new Promise((v,x)=>{var a=m=>{try{b(r.next(m))}catch(C){x(C)}},h=m=>{try{b(r.throw(m))}catch(C){x(C)}},b=m=>m.done?v(m.value):Promise.resolve(m.value).then(a,h);b((r=r.apply(u,i)).next())});import{d as oe,D as w,G as ae,r as R,b as ne,o as re,c as s,e as y,f as k,i as t,j as o,F as V,J as L,u as d,g as U,k as F,_ as ie,I as S,t as se,x as ue}from"./index.47f2a3eb.js";import{O as de}from"./index.e7e609be.js";import{h as pe,b as ce,f as me}from"./uploadAction.7fbc4c63.js";import"./unitManage.55ac458e.js";const fe={class:"flex flex-col items-start"},ge=U("div",{class:"el-upload__tip"}," \u652F\u6301\u6269\u5C55\u540D:.pdf .png .jpg ,\u6587\u4EF6\u5927\u5C0F\u4E0D\u8D85\u8FC71M ",-1),_e=oe({name:"professionalInfo"}),ve=Object.assign(_e,{setup(u,{expose:i}){const r=w.dictStore.uploadUrl,{tagList:v}=ae(w.dictStore),{proxy:x}=ue(),a=R({}),h=R(),b={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"}]},m=n=>{h.value.validate(e=>{n(e)})},C=(n,e)=>{x.$message.warning("\u4EC5\u9650\u4E0A\u4F20\u4E00\u4E2A\u6587\u4EF6")},B=n=>{a.value=O(j({},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}))})},N=(n,e,p)=>{console.log(e)},f=ne({unitVisible:!1,showCheckbox:!1,data:void 0,name:void 0}),P=n=>{var e;f.name=n,f.unitVisible=!0,f.showCheckbox=!0,f.data=(e=a.value.avoidCompanyList)==null?void 0:e.map(p=>({key:p.companyUniqCode,title:p.companyName}))},M=()=>{f.unitVisible=!1},K=(n,e)=>{a.value[f.name]=n.map(p=>({companyUniqCode:p.key,companyName:p.title}))},G=n=>{a.value.avoidCompanyList.splice(n,1)};return i({validForm:m,formData:a,setFormData:B}),re(()=>$(this,null,function*(){})),(n,e)=>{const p=s("el-input"),g=s("el-form-item"),_=s("el-col"),E=s("el-option"),T=s("el-select"),q=s("el-tree-select"),J=s("Plus"),z=s("el-icon"),D=s("el-button"),H=s("el-tag"),Q=s("el-upload"),W=s("el-row"),X=s("el-form");return y(),k(V,null,[t(X,{ref_key:"formRef",ref:h,model:a.value,rules:b,"label-position":"right","label-width":"120px","label-suffix":":","scroll-to-error":"",class:"professionalInfo"},{default:o(()=>[t(W,{gutter:8},{default:o(()=>[t(_,{span:8},{default:o(()=>[t(g,{label:"\u6280\u672F\u804C\u79F0",prop:"technicalTitles"},{default:o(()=>[t(p,{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(_,{span:8},{default:o(()=>[t(g,{label:"\u804C\u79F0\u7EA7\u522B",prop:"titleLevel"},{default:o(()=>[t(T,{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(()=>[(y(!0),k(V,null,L(d(w).dictStore.titleLevelDict,(l,c)=>(y(),S(E,{key:c,label:l.dictionaryName,value:l},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(_,{span:8},{default:o(()=>[t(g,{label:"\u64C5\u957F\u65B9\u5411",prop:"goodAt"},{default:o(()=>[t(T,{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(()=>[(y(!0),k(V,null,L(d(w).dictStore.goodAtDict,(l,c)=>(y(),S(E,{key:c,label:l.tagName,value:l},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(_,{span:8},{default:o(()=>[t(g,{label:"\u6280\u672F\u4E13\u957F",prop:"technicalExpertise"},{default:o(()=>[t(q,{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:d(v)&&d(v).length&&d(v).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,c)=>N(l,c,"technicalExpertise"))},null,8,["modelValue","data"])]),_:1})]),_:1}),t(_,{span:8},{default:o(()=>[t(g,{label:"\u884C\u4E1A\u9886\u57DF",prop:"industrySector"},{default:o(()=>[t(q,{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:d(v)&&d(v).length&&d(v).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,c)=>N(l,c,"industrySector"))},null,8,["modelValue","data"])]),_:1})]),_:1}),t(_,{span:24},{default:o(()=>[t(g,{label:"\u83B7\u5956\u60C5\u51B5",prop:"awards"},{default:o(()=>[t(p,{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(_,{span:24},{default:o(()=>[t(g,{label:"\u8868\u5F70\u5956\u52B1",prop:"recognitionReward"},{default:o(()=>[t(p,{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(_,{span:24},{default:o(()=>[t(g,{label:"\u56DE\u907F\u5355\u4F4D",prop:"avoidCompanyList"},{default:o(()=>[U("div",fe,[t(D,{type:"primary",onClick:e[9]||(e[9]=l=>P("avoidCompanyList"))},{default:o(()=>[t(z,null,{default:o(()=>[t(J)]),_:1}),F("\u9009\u62E9\u56DE\u907F\u5355\u4F4D ")]),_:1}),U("p",null,[(y(!0),k(V,null,L(a.value.avoidCompanyList,(l,c)=>(y(),S(H,{key:c,class:"mr-8",closable:"",onClose:ye=>G(c)},{default:o(()=>[F(se(l.companyName),1)]),_:2},1032,["onClose"]))),128))])])]),_:1})]),_:1}),t(_,{span:24},{default:o(()=>[t(g,{label:"\u804C\u79F0\u8BC1\u660E",prop:"titleCertificateFile"},{default:o(()=>[t(Q,{"file-list":a.value.titleCertificateFile,"onUpdate:fileList":e[10]||(e[10]=l=>a.value.titleCertificateFile=l),class:"w-full",action:d(r),"on-exceed":C,limit:1,"on-success":l=>d(pe)(l,a.value.titleCertificateFile),"on-preview":d(ce),accept:".pdf,.png,.jpeg","before-upload":l=>d(me)(l,{types:["pdf","png","jpeg"],size:1024})},{tip:o(()=>[ge]),default:o(()=>[t(D,{type:"primary",plain:""},{default:o(()=>[F("\u9009\u62E9\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-success","on-preview","before-upload"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),t(de,{visible:f.unitVisible,"show-checkbox":f.showCheckbox,"default-data":f.data,onClose:M,onGetSelectUnit:K},null,8,["visible","show-checkbox","default-data"])],64)}}}),ke=ie(ve,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/expertManage/expertStore/addOrEditExpert/components/professionalInfo.vue"]]);export{ke as default};