Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2 lignes
28KB

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