No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

2 líneas
27KB

  1. import{_ as Ae}from"./index.1f774a5b.js";import Ye from"./addExpertDialog.83b4bead.js";import Ee from"./addProjectDialog.58e80112.js";import{f as A}from"./expertStore.33bece92.js";import{c as Me}from"./reviewMeeting.f0265f8b.js";import{d as $e,G as se,D as X,A as Fe,r as h,b as N,o as He,H as ze,c as v,e as m,f as y,h as e,i as t,j as f,F as T,J as C,u as w,I,t as O,g as R,k as Z,K as Ge,x as Je}from"./index.121be81f.js";import{g as We}from"./getTimeDiffer.8e05304a.js";import"./unitManage.f69733da.js";const Ke=R("div",{class:"card-header"},[R("span",null,"\u57FA\u672C\u4FE1\u606F")],-1),Qe=["onClick"],Xe=R("div",{class:"card-header"},[R("span",null,"\u62BD\u53D6\u4FE1\u606F")],-1),Ze={class:"card-header flex justify-between"},et={class:"flex flex-col items-start"},tt=R("div",{class:"card-header"},[R("span",null,"\u56DE\u907F\u4FE1\u606F")],-1),lt={class:"flex flex-col items-start"},at={class:"flex flex-col items-start"};const nt=R("div",{style:{fontSize:"14px",color:"#666666",lineHeight:"2em"}},"\u6B21\u7684\u4E13\u5BB6\u4E0D\u518D\u62BD\u53D6",-1),ot={class:"footer"},it=$e({name:"addMeeting"}),Rt=Object.assign(it,{setup(rt){const{dictList:D}=se(X.dictStore),{meetingTypeOptions:ue,projectTypeOptions:de}=X.dictStore.globalDicts||{},{proxy:ee}=Je(),pe=se(X.userStore).userInfo||{},te=Fe(),le=h(),l=N({expertInviteRule:{inviteType:1,randomRules:[{expertDicts:[],expertTags:[]}],appointRule:{},avoidRule:{avoidUnitIdList:[],avoidOrgIdList:[],expertIds:[],avoidType:pe.value.regionName==="\u5E02\u672C\u7EA7"?2:1}},meetingBasicInfo:{isInnerProject:!0}}),ae=(n,a)=>{if(!n){l.expertInviteRule.randomRules[a].expertDicts=[];return}const u=n.split("##")[1],o={dictCodes:[n.split("##")[0]],expertDict:u};if(l.expertInviteRule.randomRules[a].expertDicts.length===0)l.expertInviteRule.randomRules[a].expertDicts.push(o);else{const s=l.expertInviteRule.randomRules[a].expertDicts.findIndex(p=>p.expertDict===u);s!==-1?l.expertInviteRule.randomRules[a].expertDicts.splice(s,1,o):l.expertInviteRule.randomRules[a].expertDicts.push(o)}},P=(n,a)=>{let u,o,s;if(n)Array.isArray(n)?(u=n[0].split("##")[0],o=n[n.length-1].split("##")[0],s={tagGeneralType:u,tagCodes:[n[n.length-1].split("##")[2]],expertTag:u}):(o=n.split("##")[0],s={tagType:o,tagCodes:[n.split("##")[2]],expertTag:o});else{s=void 0,l.expertInviteRule.randomRules[a].expertTags=[];return}if(l.expertInviteRule.randomRules[a].expertTags.length===0)l.expertInviteRule.randomRules[a].expertTags.push(s);else if(Array.isArray(n)){const p=l.expertInviteRule.randomRules[a].expertTags.findIndex(x=>x.tagGeneralType===u);p!==-1?l.expertInviteRule.randomRules[a].expertTags.splice(p,1,s):l.expertInviteRule.randomRules[a].expertTags.push(s)}else{const p=l.expertInviteRule.randomRules[a].expertTags.findIndex(x=>x.tagType===o);p!==-1?l.expertInviteRule.randomRules[a].expertTags.splice(p,1,s):l.expertInviteRule.randomRules[a].expertTags.push(s)}},ce=N([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName",minWidth:"150",showOverflowTooltip:!0},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrg",prop:"buildOrg",minWidth:"150",showOverflowTooltip:!0},{label:"\u9879\u76EE\u7C7B\u578B",slot:"projectTypeName",prop:"projectTypeName",width:"100"},{label:"\u7533\u62A5\u91D1\u989D",key:"declaredAmount",prop:"declaredAmount",width:"130"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:"100"},{label:"\u64CD\u4F5C",slot:"action",width:"60",fixed:"right"}]),me=(n,a,u)=>We(new Date(a[0].replace(/-/g,"/")),new Date,"h")>1?u():u(new Error("\u8BC4\u5BA1\u65F6\u95F4\u5FC5\u987B\u662F\u5F53\u524D\u65F6\u95F4\u7684\u4E00\u5C0F\u65F6\u4E4B\u540E")),ge=N({"meetingBasicInfo.name":[{required:!0,message:"\u8BF7\u8F93\u5165\u4F1A\u8BAE\u540D\u79F0",trigger:"blur"}],"meetingBasicInfo.isInnerProject":[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],"meetingBasicInfo.type":[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u5BA1\u7C7B\u578B",trigger:"blur"}],"meetingBasicInfo.projectIdList":[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u5BA1\u9879\u76EE",trigger:"blur"}],"meetingBasicInfo.projects":[{required:!0,message:"\u8BF7\u586B\u5199\u8BC4\u5BA1\u9879\u76EE",trigger:"blur"}],"meetingBasicInfo.times":[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u5BA1\u65F6\u95F4",trigger:"change"},{validator:me,trigger:"change"}],"meetingBasicInfo.meetingUsageTime":[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u5BA1\u8017\u65F6",trigger:"blur"}],"meetingBasicInfo.meetingAddress":[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5BA1\u5730\u70B9",trigger:"blur"}],"meetingBasicInfo.judgesAttendanceTime":[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u59D4\u5230\u573A\u65F6\u95F4",trigger:"blur"}],"meetingBasicInfo.connecter":[{required:!0,message:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA",trigger:"blur"}],"meetingBasicInfo.contact":[{required:!0,message:"\u8BF7\u8F93\u5165\u8054\u7CFB\u65B9\u5F0F",trigger:"blur"}],"expertInviteRule.inviteType":[{required:!0,message:"\u8BF7\u9009\u62E9\u62BD\u53D6\u65B9\u5F0F",trigger:"blur"}],"expertInviteRule.appointRule.inviteDesc":[{required:!0,message:"\u8BF7\u8F93\u5165\u62BD\u53D6\u7406\u7531",trigger:"blur"}],"expertInviteRule.appointRule.expertIdList":[{required:!0,message:"\u8BF7\u6307\u5B9A\u4E13\u5BB6",trigger:"blur"}],"expertInviteRule.avoidRule.avoidUnitIdList":[{required:!0,message:"\u8BF7\u6DFB\u52A0\u56DE\u907F\u5355\u4F4D",trigger:"blur"}],"expertInviteRule.avoidRule.expertIds":[{required:!0,message:"\u8BF7\u6DFB\u52A0\u56DE\u907F\u4E13\u5BB6",trigger:"blur"}],"expertInviteRule.avoidRule.avoidOrgIdList":[{required:!0,message:"\u8BF7\u6DFB\u52A0\u56DE\u907F\u6761\u7EBF",trigger:"blur"}],"expertInviteRule.avoidRule.avoidType":[{required:!0,message:"\u8BF7\u9009\u62E9"}]}),Y=h(!1),fe=async n=>{!n||await n.validate(async(a,u)=>{var o,s,p,x;if(a){const c=JSON.parse(JSON.stringify(l));l.expertInviteRule.inviteType===1?(delete c.expertInviteRule.appointRule,c.expertInviteRule.randomRules.forEach(g=>{g.inviteType=c.expertInviteRule.inviteType,Object.keys(g).forEach(_=>{switch(_){case"expertSource":delete g[_];break;case"expertType":delete g[_];break;case"goodAt":delete g[_];break;case"otherTag":delete g[_];break;case"professionalLevel":delete g[_];break;case"expertRegionLists":delete g[_];break}})})):(delete c.expertInviteRule.randomRules,c.expertInviteRule.appointRule.inviteType=c.expertInviteRule.inviteType,c.expertInviteRule.appointRule.expertIdList=c.expertInviteRule.appointRule.expertIdList.map(g=>g.id),c.expertInviteRule.appointRule.count=(s=(o=c.expertInviteRule.appointRule)==null?void 0:o.expertIdList)==null?void 0:s.length),c.expertInviteRule.avoidRule.avoidUnitIdList=c.expertInviteRule.avoidRule.avoidUnitIdList.map(g=>g.organizationCode),c.expertInviteRule.avoidRule.expertIds=c.expertInviteRule.avoidRule.expertIds.map(g=>g.userId),l.meetingBasicInfo.isInnerProject?c.meetingBasicInfo.innerProjects=c.meetingBasicInfo.projectIdList.map(g=>({projectId:g.id,projectCode:g.projectCode})):(c.meetingBasicInfo.projects=[],c.meetingBasicInfo.projects.push({projectName:l.meetingBasicInfo.projects})),c.meetingBasicInfo.startTime=((p=c.meetingBasicInfo.times)==null?void 0:p[0])||void 0,c.meetingBasicInfo.endTime=((x=c.meetingBasicInfo.times)==null?void 0:x[1])||void 0,c.meetingBasicInfo.times=void 0,Y.value=!0;try{await Me(c),ee.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),Y.value=!1,te.go(-1)}catch{Y.value=!1}}else console.log("error submit!",u)})},L=N({visible:!1,meetingType:l.meetingBasicInfo.type,data:[]}),ve=()=>{L.visible=!0,L.meetingType=l.meetingBasicInfo.type,L.data=l.meetingBasicInfo.projectIdList},Ie=n=>{l.meetingBasicInfo.projectIdList=JSON.parse(JSON.stringify(n)),L.visible=!1},Re=n=>{const a=l.meetingBasicInfo.projectIdList.findIndex(u=>u.id===n.id);l.meetingBasicInfo.projectIdList.splice(a,1)},E=h(),st=()=>{E.value="\u56DE\u907F\u6761\u7EBF",b.defaultProps={children:"records",label:"businessStripName",value:"businessStripCode",isLeaf:"isLeaf"},b.type="LINE",b.unitVisible=!0,b.showCheckbox=!0,b.data=l.expertInviteRule.avoidRule.avoidOrgIdList&&l.expertInviteRule.avoidRule.avoidOrgIdList.map(n=>n)||[]},ut=n=>{l.expertInviteRule.avoidRule.avoidOrgIdList.splice(n,1)},b=N({unitVisible:!1,showCheckbox:!1,data:void 0}),be=()=>{b.unitVisible=!0,b.showCheckbox=!0,b.defaultProps={children:"children",label:"title",value:"key",isLeaf:"isLeaf"},b.type="UNIT",b.data=l.expertInviteRule.avoidRule.avoidUnitIdList&&l.expertInviteRule.avoidRule.avoidUnitIdList.map(n=>({key:n.organizationCode,title:n.name}))||[]},_e=()=>{E.value=void 0,b.unitVisible=!1},xe=n=>{E.value==="\u56DE\u907F\u6761\u7EBF"?l.expertInviteRule.avoidRule.avoidOrgIdList=n.map(a=>a):l.expertInviteRule.avoidRule.avoidUnitIdList=n.map(a=>({organizationCode:a.key,name:a.title}))},he=n=>{l.expertInviteRule.avoidRule.avoidUnitIdList.splice(n,1)},M=h(),V=N({visible:!1,data:[]}),ye=()=>{var n,a;M.value=1,V.visible=!0,V.data=((a=(n=l.expertInviteRule.appointRule)==null?void 0:n.expertIdList)==null?void 0:a.map(u=>({userId:u.id,expertName:u.name})))||[]},Te=n=>{M.value===1?l.expertInviteRule.appointRule.expertIdList=n.map(a=>({id:a.userId,name:a.expertName})):l.expertInviteRule.avoidRule.expertIds=n,V.visible=!1},Ce=n=>{l.expertInviteRule.appointRule.expertIdList.splice(l.expertInviteRule.appointRule.expertIdList.indexOf(n),1)},Ve=n=>{l.expertInviteRule.avoidRule.expertIds.splice(l.expertInviteRule.avoidRule.expertIds.indexOf(n),1)},Be=()=>{var n;M.value=2,V.visible=!0,V.data=((n=l.expertInviteRule.avoidRule)==null?void 0:n.expertIds)||[]},S=h([0]),we=()=>{if(l.expertInviteRule.randomRules.length>=5){ee.$message.warning("\u6700\u591A\u6DFB\u52A05\u4E2A\u89C4\u5219");return}S.value.push(S.value.length),l.expertInviteRule.randomRules.push({expertDicts:[],expertTags:[]})},Le=n=>{l.expertInviteRule.randomRules.splice(n,1),S.value.splice(n,1)},H=h([]),z=h([]),G=h([]),J=h([]),W=h([]),U=n=>n==null?void 0:n.map(u=>{const o={};if(o.value=u.parentCode+"##"+u.unionCode,o.label=u.tagName,u.children&&u.children.length){o.children=u.children.map(p=>({value:p.parentCode+"##"+p.unionCode,label:p.tagName}));const s=U(u.children);o.children=[...s]}return o}),ke=(n,a)=>{var u;console.log(l.expertInviteRule.randomRules[a].expertRegionLists),l.expertInviteRule.randomRules[a].expertRegionList=((u=l.expertInviteRule.randomRules[a].expertRegionLists)==null?void 0:u.map(o=>{var s,p;return{regionCode:(s=o[o.length-1])==null?void 0:s.split("##")[0],regionLevel:((p=o[o.length-1])==null?void 0:p.split("##")[2])*1}}))||[]},je=(n,a)=>{let u=[];n?u=n.pop().split("##"):u=[];const o=u==null?void 0:u[0],s=u==null?void 0:u[2];l.expertInviteRule.randomRules[a].intentionRegionCode=o,l.expertInviteRule.randomRules[a].intentionRegionLevel=s},q=async n=>{if(n==="technical_expertise"&&H.value.length===0){const a=await A({rootTagCodeList:[n]});H.value=U(a)[0].children}else if(n==="industry_sector"&&z.value.length===0){const a=await A({rootTagCodeList:[n]});z.value=U(a)[0].children}else if(n==="expert_source"&&G.value.length===0){const a=await A({rootTagCodeList:[n]});G.value=U(a)[0].children}else if(n==="good_at"&&J.value.length===0){const a=await A({rootTagCodeList:[n]});J.value=U(a)[0].children}else if(n==="other"&&W.value.length===0){const a=await A({rootTagCodeList:[n]});W.value=U(a)[0].children}},K=h([]),ne=n=>n.map(u=>{const o={};if(o.value=u.unionCode,o.label=u.name,u.children&&u.children.length){o.children=u.children.map(p=>({value:p.unionCode,label:p.name}));const s=ne(u.children);o.children=[...s]}return o}),De=n=>{n?l.meetingBasicInfo.projects=void 0:l.meetingBasicInfo.projectIdList=void 0},Ue=()=>{l.meetingBasicInfo.projectIdList=[]},Ne=h({multiple:!0}),oe=h([]),Oe=async()=>{const n=await Ge();oe.value=n.data};return He(async()=>{const n=await ze({regionCode:330500,regionLevel:2}),a=[];a.push(n.data),K.value=ne(a),Oe()}),(n,a)=>{const u=v("el-input"),o=v("el-form-item"),s=v("el-col"),p=v("el-row"),x=v("el-radio"),c=v("el-radio-group"),g=v("table-list"),_=v("el-button"),ie=v("el-date-picker"),$=v("el-card"),re=v("el-input-number"),B=v("el-option"),k=v("el-select"),F=v("el-cascader"),Pe=v("Plus"),Se=v("el-icon"),Q=v("el-tag"),qe=v("el-form");return m(),y(T,null,[e(qe,{ref_key:"ruleFormRef",ref:le,model:l,rules:ge,"label-width":"auto",class:"demo-ruleForm footerPage","label-suffix":"\uFF1A","scroll-to-error":""},{default:t(()=>[e($,{class:"mb-16",shadow:"never"},{header:t(()=>[Ke]),default:t(()=>[e(p,{gutter:20},{default:t(()=>[e(s,{span:24},{default:t(()=>[e(o,{label:"\u4F1A\u8BAE\u540D\u79F0",prop:"meetingBasicInfo.name"},{default:t(()=>[e(u,{modelValue:l.meetingBasicInfo.name,"onUpdate:modelValue":a[0]||(a[0]=r=>l.meetingBasicInfo.name=r),placeholder:"\u8BF7\u8F93\u5165",maxlength:50},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,{gutter:20},{default:t(()=>[e(s,{span:24},{default:t(()=>[e(o,{label:"\u662F\u5426\u7CFB\u7EDF\u5185\u9879\u76EE",prop:"meetingBasicInfo.isInnerProject"},{default:t(()=>[e(c,{modelValue:l.meetingBasicInfo.isInnerProject,"onUpdate:modelValue":a[1]||(a[1]=r=>l.meetingBasicInfo.isInnerProject=r),class:"ml-4",onChange:De},{default:t(()=>[e(x,{label:!0},{default:t(()=>[f("\u662F")]),_:1}),e(x,{label:!1},{default:t(()=>[f("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,{gutter:20},{default:t(()=>[e(s,{span:24},{default:t(()=>[e(o,{label:"\u8BC4\u5BA1\u7C7B\u578B",prop:"meetingBasicInfo.type"},{default:t(()=>[e(c,{modelValue:l.meetingBasicInfo.type,"onUpdate:modelValue":a[2]||(a[2]=r=>l.meetingBasicInfo.type=r),onChange:Ue},{default:t(()=>[(m(!0),y(T,null,C(w(ue),(r,d)=>(m(),I(x,{key:d,label:d},{default:t(()=>[f(O(r),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,{gutter:20},{default:t(()=>[e(s,{span:l.meetingBasicInfo.isInnerProject?24:12},{default:t(()=>[l.meetingBasicInfo.isInnerProject?(m(),I(o,{key:0,label:"\u8BC4\u5BA1\u9879\u76EE",prop:"meetingBasicInfo.projectIdList"},{default:t(()=>[e(g,{class:"w-full",column:ce,pagination:!1,height:200,data:l.meetingBasicInfo.projectIdList},{projectTypeName:t(({scope:r})=>{var d;return[f(O(w(de)[(d=r.row)==null?void 0:d.projectType]),1)]}),action:t(({scope:r})=>[R("a",{onClick:d=>Re(r.row)},"\u5220\u9664",8,Qe)]),_:1},8,["column","data"])]),_:1})):(m(),I(o,{key:1,label:"\u8BC4\u5BA1\u9879\u76EE",prop:"meetingBasicInfo.projects"},{default:t(()=>[e(u,{modelValue:l.meetingBasicInfo.projects,"onUpdate:modelValue":a[3]||(a[3]=r=>l.meetingBasicInfo.projects=r),placeholder:"\u8BF7\u8F93\u5165",maxlength:50},null,8,["modelValue"])]),_:1}))]),_:1},8,["span"]),e(s,{span:12},{default:t(()=>[l.meetingBasicInfo.isInnerProject?(m(),I(_,{key:0,class:"ml-40",type:"primary",disabled:!l.meetingBasicInfo.type,onClick:a[4]||(a[4]=r=>ve())},{default:t(()=>[f("\u6DFB\u52A0\u9879\u76EE")]),_:1},8,["disabled"])):Z("",!0)]),_:1})]),_:1}),e(p,{gutter:20,class:"mt-30"},{default:t(()=>[e(s,{span:15},{default:t(()=>[e(o,{label:"\u8BC4\u5BA1\u65F6\u95F4",prop:"meetingBasicInfo.times"},{default:t(()=>[e(ie,{modelValue:l.meetingBasicInfo.times,"onUpdate:modelValue":a[5]||(a[5]=r=>l.meetingBasicInfo.times=r),type:"datetimerange",placeholder:"\u8BF7\u9009\u62E9",format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:t(()=>[e(o,{label:"\u8BC4\u5BA1\u8017\u65F6",prop:"meetingBasicInfo.meetingUsageTime"},{default:t(()=>[e(c,{modelValue:l.meetingBasicInfo.meetingUsageTime,"onUpdate:modelValue":a[6]||(a[6]=r=>l.meetingBasicInfo.meetingUsageTime=r),class:"ml-4"},{default:t(()=>[e(x,{label:1},{default:t(()=>[f("\u534A\u5929")]),_:1}),e(x,{label:2},{default:t(()=>[f("\u4E00\u5929")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:t(()=>[e(o,{label:"\u8BC4\u59D4\u5230\u573A\u65F6\u95F4",prop:"meetingBasicInfo.judgesAttendanceTime"},{default:t(()=>[e(ie,{modelValue:l.meetingBasicInfo.judgesAttendanceTime,"onUpdate:modelValue":a[7]||(a[7]=r=>l.meetingBasicInfo.judgesAttendanceTime=r),type:"datetime",placeholder:"\u8BF7\u9009\u62E9",format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,{gutter:20},{default:t(()=>[e(s,{span:24},{default:t(()=>[e(o,{label:"\u8BC4\u5BA1\u5730\u70B9",prop:"meetingBasicInfo.meetingAddress"},{default:t(()=>[e(u,{modelValue:l.meetingBasicInfo.meetingAddress,"onUpdate:modelValue":a[8]||(a[8]=r=>l.meetingBasicInfo.meetingAddress=r),placeholder:"\u8BF7\u8F93\u5165",maxlength:50},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,{gutter:20},{default:t(()=>[e(s,{span:12},{default:t(()=>[e(o,{label:"\u8054\u7CFB\u4EBA",prop:"meetingBasicInfo.connecter"},{default:t(()=>[e(u,{modelValue:l.meetingBasicInfo.connecter,"onUpdate:modelValue":a[9]||(a[9]=r=>l.meetingBasicInfo.connecter=r),placeholder:"\u8BF7\u8F93\u5165",maxlength:20},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:t(()=>[e(o,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"meetingBasicInfo.contact"},{default:t(()=>[e(u,{modelValue:l.meetingBasicInfo.contact,"onUpdate:modelValue":a[10]||(a[10]=r=>l.meetingBasicInfo.contact=r),placeholder:"\u8BF7\u8F93\u5165",maxlength:11},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),e($,{class:"mb-16",shadow:"never"},{header:t(()=>[Xe]),default:t(()=>[e(p,{gutter:20},{default:t(()=>[e(s,{span:12},{default:t(()=>[e(o,{label:"\u62BD\u53D6\u65B9\u5F0F",prop:"expertInviteRule.inviteType"},{default:t(()=>[e(c,{modelValue:l.expertInviteRule.inviteType,"onUpdate:modelValue":a[11]||(a[11]=r=>l.expertInviteRule.inviteType=r),class:"ml-4"},{default:t(()=>[e(x,{label:1},{default:t(()=>[f("\u968F\u673A\u62BD\u53D6")]),_:1}),e(x,{label:2},{default:t(()=>[f("\u6307\u5B9A\u62BD\u53D6")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),l.expertInviteRule.inviteType==1?(m(),I(p,{key:0,gutter:20},{default:t(()=>[e(s,{span:24},{default:t(()=>[e(o,{label:"\u62BD\u53D6\u89C4\u5219"},{default:t(()=>[(m(!0),y(T,null,C(S.value,(r,d)=>(m(),I($,{key:d,class:"box-card w-full mb-8"},{header:t(()=>[R("div",Ze,[R("span",null,"\u89C4\u5219"+O(d+1),1),e(_,{type:"danger",plain:"",icon:"Delete",disabled:S.value.length===1,onClick:i=>Le(d)},{default:t(()=>[f(" \u5220\u9664\u89C4\u5219 ")]),_:2},1032,["disabled","onClick"])])]),default:t(()=>[e(p,{class:"mt-8",gutter:10},{default:t(()=>[e(s,{span:8},{default:t(()=>[e(o,{label:"\u9080\u8BF7\u6570\u91CF","label-width":100,prop:`expertInviteRule.randomRules[${d}].count`,rules:[{required:!0,message:" ",trigger:"blur"}]},{default:t(()=>[e(re,{modelValue:l.expertInviteRule.randomRules[d].count,"onUpdate:modelValue":i=>l.expertInviteRule.randomRules[d].count=i,placeholder:"\u8BF7\u8F93\u5165",min:1,controls:!1,step:1,"step-strictly":""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024)]),_:2},1024),e(p,{gutter:10,class:"mt-8"},{default:t(()=>[e(s,{span:8},{default:t(()=>[e(o,{label:"\u5176\u4ED6\u6807\u7B7E","label-width":100},{default:t(()=>[e(k,{modelValue:l.expertInviteRule.randomRules[d].otherTag,"onUpdate:modelValue":i=>l.expertInviteRule.randomRules[d].otherTag=i,class:"w-full",clearable:"",placeholder:"\u8BF7\u9009\u62E9",onChange:i=>P(i,d),onVisibleChange:a[12]||(a[12]=i=>q("other"))},{default:t(()=>[(m(!0),y(T,null,C(W.value,i=>(m(),I(B,{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1024)]),_:2},1024),e(s,{span:8},{default:t(()=>[e(o,{label:"\u4E13\u5BB6\u7EA7\u522B","label-width":100},{default:t(()=>[e(F,{modelValue:l.expertInviteRule.randomRules[d].expertRegionLists,"onUpdate:modelValue":i=>l.expertInviteRule.randomRules[d].expertRegionLists=i,clearable:"",options:K.value,placeholder:"\u8BF7\u9009\u62E9",class:"w-full",props:Ne.value,onChange:i=>ke(i,d)},null,8,["modelValue","onUpdate:modelValue","options","props","onChange"])]),_:2},1024)]),_:2},1024),e(s,{span:8},{default:t(()=>[e(o,{label:"\u5185\u5916\u56F4","label-width":100},{default:t(()=>[e(k,{modelValue:l.expertInviteRule.randomRules[d].expertType,"onUpdate:modelValue":i=>l.expertInviteRule.randomRules[d].expertType=i,placeholder:"\u8BF7\u9009\u62E9",class:"w-full",clearable:"",onChange:i=>ae(i,d)},{default:t(()=>[(m(!0),y(T,null,C(w(D)&&w(D).length&&w(D).find(i=>i.dictionaryName==="expert_type").dictionaryList,(i,j)=>(m(),I(B,{key:j,label:i.describe,value:i.dictionaryCode+"##"+i.dictionaryType},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1024)]),_:2},1024)]),_:2},1024),e(p,{gutter:10,class:"mt-8"},{default:t(()=>[e(s,{span:8},{default:t(()=>[e(o,{label:"\u5C65\u804C\u610F\u5411","label-width":100},{default:t(()=>[e(F,{options:K.value,class:"w-full",clearable:"",onChange:i=>je(i,d)},null,8,["options","onChange"])]),_:2},1024)]),_:2},1024),e(s,{span:8},{default:t(()=>[e(o,{label:"\u4E13\u5BB6\u6765\u6E90","label-width":100},{default:t(()=>[e(k,{modelValue:l.expertInviteRule.randomRules[d].expertSource,"onUpdate:modelValue":i=>l.expertInviteRule.randomRules[d].expertSource=i,class:"w-full",placeholder:"\u8BF7\u9009\u62E9",clearable:"",onChange:i=>P(i,d),onVisibleChange:a[13]||(a[13]=i=>q("expert_source"))},{default:t(()=>[(m(!0),y(T,null,C(G.value,(i,j)=>(m(),I(B,{key:j,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1024)]),_:2},1024),e(s,{span:8},{default:t(()=>[e(o,{label:"\u804C\u79F0\u7EA7\u522B","label-width":100},{default:t(()=>[e(k,{modelValue:l.expertInviteRule.randomRules[d].professionalLevel,"onUpdate:modelValue":i=>l.expertInviteRule.randomRules[d].professionalLevel=i,class:"w-full",placeholder:"\u8BF7\u9009\u62E9",clearable:"",onChange:i=>ae(i,d)},{default:t(()=>[(m(!0),y(T,null,C(w(D)&&w(D).length&&w(D).find(i=>i.dictionaryName==="title_level").dictionaryList,(i,j)=>(m(),I(B,{key:j,label:i.describe,value:i.dictionaryCode+"##"+i.dictionaryType},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1024)]),_:2},1024)]),_:2},1024),e(p,{gutter:10,class:"mt-8"},{default:t(()=>[e(s,{span:8},{default:t(()=>[e(o,{label:"\u64C5\u957F\u65B9\u5411","label-width":100},{default:t(()=>[e(k,{modelValue:l.expertInviteRule.randomRules[d].goodAt,"onUpdate:modelValue":i=>l.expertInviteRule.randomRules[d].goodAt=i,class:"w-full",placeholder:"\u8BF7\u9009\u62E9",clearable:"",onChange:i=>P(i,d),onVisibleChange:a[14]||(a[14]=i=>q("good_at"))},{default:t(()=>[(m(!0),y(T,null,C(J.value,(i,j)=>(m(),I(B,{key:j,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1024)]),_:2},1024),e(s,{span:8},{default:t(()=>[e(o,{label:"\u6280\u672F\u4E13\u957F","label-width":100},{default:t(()=>[e(F,{options:H.value,placeholder:"\u8BF7\u9009\u62E9",class:"w-full",clearable:"",onChange:i=>P(i,d),onVisibleChange:a[15]||(a[15]=i=>q("technical_expertise"))},null,8,["options","onChange"])]),_:2},1024)]),_:2},1024),e(s,{span:8},{default:t(()=>[e(o,{label:"\u884C\u4E1A\u9886\u57DF","label-width":100},{default:t(()=>[e(F,{options:z.value,placeholder:"\u8BF7\u9009\u62E9",class:"w-full",clearable:"",onChange:i=>P(i,d),onVisibleChange:a[16]||(a[16]=i=>q("industry_sector"))},null,8,["options","onChange"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),e(_,{class:"w-full",type:"primary",icon:"plus",plain:"",onClick:we},{default:t(()=>[f("\u6DFB\u52A0\u89C4\u5219")]),_:1})]),_:1})]),_:1})]),_:1})):(m(),I(p,{key:1,gutter:20},{default:t(()=>[e(s,{span:24},{default:t(()=>[e(o,{label:"\u6307\u5B9A\u62BD\u53D6\u7406\u7531",prop:"expertInviteRule.appointRule.inviteDesc"},{default:t(()=>[e(u,{modelValue:l.expertInviteRule.appointRule.inviteDesc,"onUpdate:modelValue":a[17]||(a[17]=r=>l.expertInviteRule.appointRule.inviteDesc=r),placeholder:"\u8BF7\u8F93\u5165",type:"textarea",maxlength:"1000","show-word-limit":!0},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:t(()=>[e(o,{label:"\u6307\u5B9A\u4E13\u5BB6",prop:"expertInviteRule.appointRule.expertIdList"},{default:t(()=>[R("div",et,[e(_,{type:"primary",class:"button-new-tag ml-1",size:"small",onClick:ye},{default:t(()=>[e(Se,null,{default:t(()=>[e(Pe)]),_:1}),f("\u6DFB\u52A0\u4E13\u5BB6 ")]),_:1}),R("p",null,[(m(!0),y(T,null,C(l.expertInviteRule.appointRule.expertIdList,r=>(m(),I(Q,{key:r,class:"mx-1",closable:"","disable-transitions":!1,onClose:d=>Ce(r)},{default:t(()=>[f(O(r.name),1)]),_:2},1032,["onClose"]))),128))])])]),_:1})]),_:1})]),_:1}))]),_:1}),l.expertInviteRule.inviteType==1?(m(),I($,{key:0,shadow:"never"},{header:t(()=>[tt]),default:t(()=>[e(p,null,{default:t(()=>[e(s,null,{default:t(()=>[e(o,{label:"\u90E8\u95E8\u3001\u6761\u7EBF\u56DE\u907F\u89C4\u5219",prop:"expertInviteRule.avoidRule.avoidType"},{default:t(()=>[e(k,{modelValue:l.expertInviteRule.avoidRule.avoidType,"onUpdate:modelValue":a[18]||(a[18]=r=>l.expertInviteRule.avoidRule.avoidType=r)},{default:t(()=>[e(B,{value:1,label:"\u56DE\u907F\u5355\u4F4D"}),e(B,{value:2,label:"\u56DE\u907F\u6761\u7EBF"}),e(B,{value:3,label:"\u4E0D\u56DE\u907F"})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,{gutter:20},{default:t(()=>[e(s,{span:12},{default:t(()=>[e(o,{label:"\u56DE\u907F\u5355\u4F4D"},{default:t(()=>[R("div",lt,[e(_,{type:"primary",size:"small",icon:"Plus",onClick:be},{default:t(()=>[f(" \u6DFB\u52A0\u56DE\u907F\u5355\u4F4D ")]),_:1}),R("p",null,[(m(!0),y(T,null,C(l.expertInviteRule.avoidRule.avoidUnitIdList,(r,d)=>(m(),I(Q,{key:d,class:"mr-8",closable:"",onClose:i=>he(d)},{default:t(()=>[f(O(r.name),1)]),_:2},1032,["onClose"]))),128))])])]),_:1})]),_:1})]),_:1}),e(p,{gutter:20},{default:t(()=>[e(s,{span:12},{default:t(()=>[e(o,{label:"\u56DE\u907F\u4E13\u5BB6"},{default:t(()=>[R("div",at,[e(_,{type:"primary",class:"button-new-tag ml-1",size:"small",icon:"Plus",onClick:Be},{default:t(()=>[f(" \u6DFB\u52A0\u56DE\u907F\u4E13\u5BB6 ")]),_:1}),R("p",null,[(m(!0),y(T,null,C(l.expertInviteRule.avoidRule.expertIds,r=>(m(),I(Q,{key:r,class:"mx-1",closable:"","disable-transitions":!1,onClose:d=>Ve(r)},{default:t(()=>[f(O(r.expertName),1)]),_:2},1032,["onClose"]))),128))])])]),_:1})]),_:1})]),_:1}),e(p,{gutter:20},{default:t(()=>[e(s,{span:12},{default:t(()=>[Z("",!0),e(o,{label:"\u56DE\u907F\u6761\u7EBF"},{default:t(()=>[e(k,{modelValue:l.expertInviteRule.avoidRule.avoidOrgIdList,"onUpdate:modelValue":a[19]||(a[19]=r=>l.expertInviteRule.avoidRule.avoidOrgIdList=r),multiple:""},{default:t(()=>[(m(!0),y(T,null,C(oe.value,(r,d)=>(m(),I(B,{key:d,label:r.businessStripName,value:r.businessStripCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,{gutter:20},{default:t(()=>[e(s,{span:24},{default:t(()=>[e(o,{label:"\u4E00\u5468\u5185\u53C2\u4E0E"},{default:t(()=>[e(re,{modelValue:l.expertInviteRule.avoidRule.weekInviteCount,"onUpdate:modelValue":a[20]||(a[20]=r=>l.expertInviteRule.avoidRule.weekInviteCount=r),placeholder:"\u8BF7\u8F93\u5165",min:0,controls:!1,style:{width:"100px !important"}},null,8,["modelValue"]),nt]),_:1})]),_:1})]),_:1})]),_:1})):Z("",!0),R("div",ot,[e(_,{type:"primary",loading:Y.value,onClick:a[21]||(a[21]=r=>fe(le.value))},{default:t(()=>[f(" \u63D0\u4EA4 ")]),_:1},8,["loading"]),e(_,{onClick:a[22]||(a[22]=r=>w(te).go(-1))},{default:t(()=>[f("\u8FD4\u56DE")]),_:1})])]),_:1},8,["model","rules"]),e(Ae,{visible:b.unitVisible,"show-checkbox":b.showCheckbox,"default-data":b.data,title:E.value,type:b.type,"default-props":b.defaultProps,onClose:_e,onGetSelectUnit:xe},null,8,["visible","show-checkbox","default-data","title","type","default-props"]),e(Ye,{visible:V.visible,"org-code":V.orgCode,data:V.data,"select-expert-type":M.value,onGetUserData:Te,onClose:a[23]||(a[23]=r=>V.visible=!1)},null,8,["visible","org-code","data","select-expert-type"]),e(Ee,{visible:L.visible,data:L.data,"meeting-type":L.meetingType,"dictionary-list":n.dictionaryList,onGetProjectData:Ie,onClose:a[24]||(a[24]=r=>L.visible=!1)},null,8,["visible","data","meeting-type","dictionary-list"])],64)}}});export{Rt as default};