|
- import{y as Y,a as M,r as _,$ as r,o as U,b as i,c as h,d as $,f as t,h as a,u as v,L,j as B,e as d,i as N,F as H,k as X}from"./index-dd5fae99.js";import{E as z}from"./index-29b4120c.js";import{b as F}from"./reviewMeeting-39e99ddc.js";import W from"./meetingProjectDialog-551c4793.js";import{g as k,a as q}from"./getIsShowRegionTree-21a24141.js";const J={class:"flex"},K={class:"flex justify-between"},Q=["onClick"],Z=["onClick"],ee=X({name:"reviewMeeting"}),ie=Object.assign(ee,{setup(te){const y=Y(),n=M({name:void 0,projectName:void 0,times:void 0}),m=_(),R=_(0),D=M([{label:"序号",type:"index",width:"60"},{label:"会议名称",key:"meetingName",prop:"meetingName",minWidth:"180",showOverflowTooltip:!0},{label:"评审项目",key:"projectName",slot:"projectName",minWidth:"80"},{label:"评审时间",key:"startTime",prop:"startTime",width:"290",render:e=>r("span",e.startTime+"~"+e.endTime)},{label:"会议状态",key:"status",prop:"status",width:"80",render:e=>[r("span",{class:["dot mr-4",`${e.status===1?"bg-success":e.status===3?"bg-danger":""}`]}),r("span",{class:`${e.status===1?"text-success":e.status===3?"text-danger":""}`},e.status===1?"正常":"已取消")]},{label:"抽取方式",key:"inviteType",prop:"inviteType",width:"80",render:e=>r("span",e.inviteType===1?"随机抽取":"指定抽取")},{label:"抽取状态",key:"inviteStatus",prop:"inviteStatus",width:"80",render:e=>r("span",e.inviteStatus?"抽取结束":"抽取中")},{label:"名单确认状态",key:"confirmedRoster",prop:"confirmedRoster",width:"120",render:e=>[r("span",{class:`${e.confirmedRoster?"text-success":""}`},e.confirmedRoster?"已确认":"未确认")]},{label:"创建时间",key:"createOn",prop:"createOn",width:"180"},{label:"操作",slot:"action",width:"80",fixed:"right"}]),E=_([]),I=e=>{n.regionCode=e.regionCode,n.regionLevel=e.regionLevel,m.value.pageParams.pageNumber=1,u()},u=async(e=m.value.pageParams)=>{var s,c;const l=await F({...e,...n,startTime:((s=n.times)==null?void 0:s[0])||void 0,endTime:((c=n.times)==null?void 0:c[1])||void 0,times:void 0});E.value=l.data.records,R.value=l.data.total},A=()=>{u()},w=()=>{n.name=void 0,n.projectName=void 0,n.times=void 0,m.value.pageParams.pageNumber=1,m.value.pageParams.pageSize=10,u()},P=e=>{y.push({name:"addMeeting"})},C=e=>{y.push({name:"meetingDetail",query:{id:e.meetingId}})},x=e=>{p.value.visible=!0,p.value.meetingId=e.meetingId},p=_({visible:!1,meetingId:void 0}),V=()=>{p.value.visible=!1};return U(()=>{k(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])||u()}),(e,l)=>{const s=i("el-col"),c=i("el-input"),f=i("el-form-item"),g=i("el-row"),j=i("el-date-picker"),b=i("el-button"),G=i("el-form"),T=i("el-card"),S=i("table-list");return h(),$(H,null,[t(g,null,{default:a(()=>[v(k)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?(h(),L(s,{key:0,style:{"padding-right":"16px"},span:4},{default:a(()=>[t(z,{params:v(q)({SUPER_ADMIN:!1,REGION_MANAGER:!1,EXPERT_ADMIN:!0}),onGetTree:I},null,8,["params"])]),_:1})):B("",!0),t(s,{span:v(k)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?20:24},{default:a(()=>[t(T,{class:"w-full search"},{default:a(()=>[t(G,{model:n,size:"small","label-suffix":":"},{default:a(()=>[t(g,{gutter:16,class:"mb-16"},{default:a(()=>[t(s,{span:12},{default:a(()=>[t(f,{label:"会议名称"},{default:a(()=>[t(c,{modelValue:n.name,"onUpdate:modelValue":l[0]||(l[0]=o=>n.name=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:12},{default:a(()=>[t(f,{label:"评审项目"},{default:a(()=>[t(c,{modelValue:n.projectName,"onUpdate:modelValue":l[1]||(l[1]=o=>n.projectName=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(g,{gutter:16},{default:a(()=>[t(s,{span:16},{default:a(()=>[t(f,{label:"评审时间"},{default:a(()=>[t(j,{modelValue:n.times,"onUpdate:modelValue":l[2]||(l[2]=o=>n.times=o),type:"datetimerange",editable:!1,format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间"},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:8},{default:a(()=>[t(f,{class:"btn"},{default:a(()=>[d("div",J,[t(b,{type:"primary",onClick:A},{default:a(()=>l[3]||(l[3]=[N("查询")])),_:1}),t(b,{onClick:w},{default:a(()=>l[4]||(l[4]=[N("重置")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(T,{class:"w-full mt-8"},{header:a(()=>[d("div",K,[l[6]||(l[6]=d("span",null,"列表",-1)),d("div",null,[t(b,{type:"primary",size:"small",icon:"Plus",onClick:P},{default:a(()=>l[5]||(l[5]=[N("新增会议")])),_:1})])])]),default:a(()=>[t(S,{ref_key:"tableListRef",ref:m,column:D,data:E.value,total:R.value,onGetTableData:u},{projectName:a(({scope:o})=>[d("a",{onClick:O=>x(o.row)},"查看",8,Q)]),action:a(({scope:o})=>[d("a",{onClick:O=>C(o.row)},"详情",8,Z)]),_:1},8,["column","data","total"])]),_:1})]),_:1},8,["span"])]),_:1}),t(W,{visible:p.value.visible,"meeting-id":p.value.meetingId,onClose:V},null,8,["visible","meeting-id"])],64)}}});export{ie as default};
|