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.

2 lines
6.7KB

  1. import{G as q,E as H,a as $,r as h,$ as D,o as z,b as d,c as i,d as m,f as a,h as o,F as C,H as W,u as _,L,e as v,i as M,t as R,j as g,k as J}from"./index-dd5fae99.js";import{l as K}from"./reviewCheckProjectList-6136f459.js";import{g as Q}from"./getIsShowReviewCheck-63cac461.js";const X={class:"flex"},Z={class:"flex"},ee={key:0},te=["onClick"],ae={key:1,class:"text-info cursor-not-allowed"},le=["onClick"],oe=["onClick"],ne=J({name:"reviewCheckProjectList"}),ie=Object.assign(ne,{setup(re){const Y=q(H.userStore).userInfo||{},{statusOptions:f,statusGjOptions:V,statusOptionsCascader:U,projectTypeOptions:I}=H.dictStore.globalDicts||{},e=$({projectName:void 0,buildOrg:void 0,projectType:void 0,status:void 0,approveAmountMin:void 0,approveAmountMax:void 0,projectYear:void 0,times:void 0}),b=h(),N=h(0),P=$([{label:"序号",type:"index",width:"60"},{label:"项目名称",key:"projectName",prop:"projectName",minWidth:"200",showOverflowTooltip:!0},{label:"申报单位",key:"buildOrg",prop:"buildOrg",minWidth:"150",showOverflowTooltip:!0},{label:"项目类型",key:"projectTypeName",prop:"projectTypeName",width:80},{label:"预算年度",key:"projectYear",prop:"projectYear",width:"80"},{label:"当前已审查人数",slot:"verifiedHumans",prop:"verifiedHumans",width:"130"},{label:"项目状态",key:"status",prop:"status",width:"120",render:n=>{var l,u,r,s,y,k,c,j;return[D("span",{class:["dot mr-4",`bg-${((l=f[n.status])==null?void 0:l.color)||((u=V[n.status])==null?void 0:u.color)}`]}),D("span",{class:`text-${((r=f[n.status])==null?void 0:r.color)||((s=V[n.status])==null?void 0:s.color)}`},n.status&&((y=f[n.stage])!=null&&y.name)?`${(k=f[n.stage])==null?void 0:k.name}-${(c=f[n.status])==null?void 0:c.name}`:((j=V[n.status])==null?void 0:j.name)||"-")]}},{label:"创建时间",key:"createOn",prop:"createOn",width:"180"},{label:"操作",slot:"action",width:"150",fixed:"right"}]),O=h([]),w=async(n=b.value.pageParams)=>{var u,r,s;const l=await K({...n,...e,projectYear:e.projectYear*1||void 0,createOnMin:((u=e.times)==null?void 0:u[0])||void 0,createOnMax:((r=e.times)==null?void 0:r[1])||void 0,approveAmountMin:e.approveAmountMin*1||void 0,approveAmountMax:e.approveAmountMax*1||void 0,times:void 0,status:(s=e.status)==null?void 0:s[e.status.length-1]});O.value=l.data.records,N.value=l.data.total},S=()=>{w()},E=()=>{e.projectName=void 0,e.projectType=void 0,e.buildOrg=void 0,e.status=void 0,e.projectYear=void 0,e.approveAmountMin=void 0,e.approveAmountMax=void 0,e.times=void 0,b.value.pageParams.pageNumber=1,b.value.pageParams.pageSize=10,w()};return z(async()=>{w()}),(n,l)=>{const u=d("el-input"),r=d("el-form-item"),s=d("el-col"),y=d("el-option"),k=d("el-select"),c=d("el-row"),j=d("el-cascader"),x=d("el-date-picker"),A=d("el-button"),F=d("el-form"),T=d("el-card"),G=d("el-tooltip"),B=d("table-list");return i(),m(C,null,[a(T,{class:"w-full search"},{default:o(()=>[a(F,{model:e,size:"small","label-suffix":":"},{default:o(()=>[a(c,{gutter:16,class:"mb-16"},{default:o(()=>[a(s,{span:8},{default:o(()=>[a(r,{label:"项目名称"},{default:o(()=>[a(u,{modelValue:e.projectName,"onUpdate:modelValue":l[0]||(l[0]=t=>e.projectName=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),a(s,{span:8},{default:o(()=>[a(r,{label:"申报单位"},{default:o(()=>[a(u,{modelValue:e.buildOrg,"onUpdate:modelValue":l[1]||(l[1]=t=>e.buildOrg=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),a(s,{span:8},{default:o(()=>[a(r,{label:"项目类型"},{default:o(()=>[a(k,{modelValue:e.projectType,"onUpdate:modelValue":l[2]||(l[2]=t=>e.projectType=t),placeholder:"全部",class:"w-full"},{default:o(()=>[(i(!0),m(C,null,W(_(I),(t,p)=>(i(),L(y,{key:p,label:t,value:p},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),a(c,{gutter:16,class:"mb-16"},{default:o(()=>[a(s,{span:8},{default:o(()=>[a(r,{label:"项目状态"},{default:o(()=>[a(j,{modelValue:e.status,"onUpdate:modelValue":l[3]||(l[3]=t=>e.status=t),class:"w-full",props:{label:"name",value:"code"},options:_(U)},null,8,["modelValue","options"])]),_:1})]),_:1}),a(s,{span:8},{default:o(()=>[a(r,{class:"whitespace-nowrap",label:"批复资金(万元)"},{default:o(()=>[v("div",X,[a(u,{modelValue:e.approveAmountMin,"onUpdate:modelValue":l[4]||(l[4]=t=>e.approveAmountMin=t),type:"number",placeholder:"",clearable:""},null,8,["modelValue"]),l[8]||(l[8]=M("  至  ")),a(u,{modelValue:e.approveAmountMax,"onUpdate:modelValue":l[5]||(l[5]=t=>e.approveAmountMax=t),type:"number",placeholder:"",clearable:""},null,8,["modelValue"])])]),_:1})]),_:1}),a(s,{span:8},{default:o(()=>[a(r,{label:"预算年度"},{default:o(()=>[a(x,{modelValue:e.projectYear,"onUpdate:modelValue":l[6]||(l[6]=t=>e.projectYear=t),type:"year","value-format":"YYYY",placeholder:"请选择"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),a(c,{gutter:16},{default:o(()=>[a(s,{span:16},{default:o(()=>[a(r,{label:"创建时间"},{default:o(()=>[a(x,{modelValue:e.times,"onUpdate:modelValue":l[7]||(l[7]=t=>e.times=t),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}),a(s,{span:8},{default:o(()=>[a(r,{class:"btn"},{default:o(()=>[v("div",Z,[a(A,{type:"primary",onClick:S},{default:o(()=>l[9]||(l[9]=[M("查询 ")])),_:1}),a(A,{onClick:E},{default:o(()=>l[10]||(l[10]=[M("重置 ")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(T,{class:"w-full mt-8"},{header:o(()=>l[11]||(l[11]=[v("div",{class:"flex justify-between"},[v("span",null,"列表")],-1)])),default:o(()=>[a(B,{ref_key:"tableListRef",ref:b,column:P,data:O.value,total:N.value,onGetTableData:w},{verifiedHumans:o(({scope:t})=>[t.row.reviewCheckNotApprove?(i(),L(G,{key:1,class:"box-item",effect:"dark",content:t.row.reviewCheckNotApprove,placement:"top-start"},{default:o(()=>[v("a",null,R(t.row.verifiedHumans),1)]),_:2},1032,["content"])):(i(),m("span",ee,R(t.row.verifiedHumans),1))]),action:o(({scope:t})=>[!t.row.approved&&_(Q)(!0)?(i(),m("a",{key:0,onClick:p=>n.$router.push({name:"auditList",query:{id:t.row.id,projectCode:t.row.projectCode}})},"审查",8,te)):g("",!0),t.row.approved?(i(),m("a",ae,"已审查")):g("",!0),_(Y).userRoleInfoList.map(p=>p.code).includes("REGION_MANAGER")||_(Y).userRoleInfoList.map(p=>p.code).includes("SUPER_ADMIN")?(i(),m(C,{key:2},[!t.row.reviewCheckFinish&&t.row.verifiedHumans==="7/7"?(i(),m("a",{key:0,onClick:p=>n.$router.push({name:"reviewSummary",query:{id:t.row.id,projectCode:t.row.projectCode}})},"合成报告",8,le)):t.row.reviewCheckFinish?(i(),m("a",{key:1,onClick:p=>n.$router.push({name:"reviewCheckProjectListProjectDetail",query:{id:t.row.id}})},"查看报告",8,oe)):g("",!0)],64)):g("",!0)]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{ie as default};