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
5.0KB

  1. import{E as J,a as T,b as f,c as t,d as i,e as s,F as h,H as S,f as l,t as n,u as _,j as u,L as x,h as p,i as K,n as w,k as Q,s as W}from"./index-dd5fae99.js";import{N as X}from"./index-be0b3801.js";import Z from"./preExaminationDialog-145dd497.js";import ee from"./setTagDialog-e101bf2b.js";import{r as ae}from"./tagsManage-b14aec3a.js";import{g as se}from"./getIsShowRegionTree-21a24141.js";import"./uploadAction-3962500e.js";import"./index-b6aa4cff.js";const te={class:"projectList"},oe={class:"left"},le={class:"info"},ne={class:"tit"},re=["onClick"],ie={key:0,class:"statusTag status-primary mr-6"},ce={class:"value"},pe={class:"value"},ue={class:"value"},de={class:"value"},ge={class:"value"},_e={class:"value"},me={class:"right"},be=["onClick"],fe=["onClick"],ve=["onClick"],ye=["onClick"],Ce=["onClick"],ke=Q({name:"projectList"}),xe=Object.assign(ke,{props:{listData:Array,pageSizes:{type:Array,default:()=>[10,20,30,40]},total:{type:Number,default:0},small:{type:Boolean,default:!1}},emits:["getTableData","preExamDeclare","toDetail"],setup(v,{expose:B,emit:E}){const{statusOptions:C,businessTerritory:P,statusGjOptions:z}=J.dictStore.globalDicts||{},{proxy:j}=W(),k=v,d=E,c=T({pageNumber:1,pageSize:k.pageSizes[0]}),A=()=>{d("getTableData",c)},I=()=>{d("getTableData",c)},O=o=>{m.visible=!0,m.data=o},m=T({visible:void 0,data:void 0}),L=o=>{m.visible=!1,o&&d("getTableData",c)},b=T({visible:!1,data:void 0}),R=o=>{b.visible=!0,b.data=o},V=o=>{b.visible=!1,o&&d("getTableData",c)},G=(o,a)=>{j.$messageBox.confirm(`确定要删除${a.name}吗?`,"提示!",{type:"warning"}).then(async()=>{await ae({tagId:a.id,projectCode:o.projectCode}),d("getTableData",c)})},U=()=>{j.$messageBox.confirm("请去IRS平台下架项目,以及释放相关资源","提示!",{type:"warning",showCancelButton:!1})};return B({pageParams:c}),(o,a)=>{const q=f("svg-icon"),F=f("el-tag"),g=f("el-col"),H=f("el-row"),M=f("el-pagination");return t(),i(h,null,[s("div",te,[v.listData.length?(t(!0),i(h,{key:0},S(v.listData,(e,Y)=>(t(),i("div",{key:Y,class:"list"},[s("div",oe,[l(q,{name:"projectIcon",class:"icon"}),s("div",le,[s("div",ne,[s("p",{class:"mb-4 pointTit",onClick:r=>d("toDetail",e)},n(e.projectName),9,re),e.bizDomain?(t(),i("span",ie,n(_(P)[e.bizDomain]),1)):u("",!0),e.tags?(t(!0),i(h,{key:1},S(e.tags,(r,y)=>(t(),x(F,{key:y,class:"myTag mx-2 mb-2",closable:"",onClose:D=>G(e,r)},{default:p(()=>[K(n(r.name),1)]),_:2},1032,["onClose"]))),128)):u("",!0)]),l(H,{gutter:4},{default:p(()=>[l(g,{span:5,class:"mb-8"},{default:p(()=>[a[2]||(a[2]=s("span",{class:"label"},"申报单位:",-1)),s("span",ce,n(e.buildOrg||"-"),1)]),_:2},1024),l(g,{span:7,class:"mb-8"},{default:p(()=>[a[3]||(a[3]=s("span",{class:"label"},"项目类型:",-1)),s("span",pe,n(e.projectTypeName||"-"),1)]),_:2},1024),l(g,{span:6,class:"mb-8"},{default:p(()=>[a[4]||(a[4]=s("span",{class:"label"},"申报金额:",-1)),s("span",ue,n(e.declaredAmount||"-")+"万元",1)]),_:2},1024),l(g,{span:6,class:"mb-8"},{default:p(()=>[a[5]||(a[5]=s("span",{class:"label"},"批复金额:",-1)),s("span",de,n(e.approvedAmount||"-")+"万元",1)]),_:2},1024),l(g,{span:5,class:"mb-8"},{default:p(()=>[a[6]||(a[6]=s("span",{class:"label"},"预算年度:",-1)),s("span",ge,n(e.projectYear)+"年",1)]),_:2},1024),l(g,{span:7,class:"mb-8"},{default:p(()=>[a[7]||(a[7]=s("span",{class:"label"},"创建时间:",-1)),s("span",_e,n(e.createOn),1)]),_:2},1024),l(g,{span:12,class:"mb-8"},{default:p(()=>{var r,y,D,$,N;return[a[8]||(a[8]=s("span",{class:"label"},"项目状态:",-1)),e.fromType==="1"?(t(),i("span",{key:0,class:w(`value statusTag status-${(r=_(C)[e.status])==null?void 0:r.color}`)},n((y=_(C)[e.stage])==null?void 0:y.name)+"-"+n((D=_(C)[e.status])==null?void 0:D.name),3)):u("",!0),e.fromType==="2"?(t(),i("span",{key:1,class:w(`value statusTag status-${($=_(z)[e.status])==null?void 0:$.color}`)},n(((N=_(z)[e.status])==null?void 0:N.name)||"-"),3)):u("",!0)]}),_:2},1024)]),_:2},1024)])]),s("div",me,[e.canPreDeclared?(t(),i("a",{key:0,onClick:r=>O(e)},"预审申报",8,be)):u("",!0),s("a",{onClick:r=>d("toDetail",e)},"详情",8,fe),e.fromType==="1"?(t(),i("a",{key:1,onClick:r=>o.$router.push({name:"projectHistory",query:{id:e.id}})},"历史记录",8,ve)):u("",!0),e.fromType==="2"?(t(),i("a",{key:2,onClick:r=>o.$router.push({name:"operationProjectStoreEdit",query:{id:e.projectCode,type:1}})},"编辑",8,ye)):u("",!0),_(se)(["SUPER_ADMIN","REGION_MANAGER"])?(t(),i("a",{key:3,onClick:r=>R(e)},"设置标签",8,Ce)):u("",!0),s("a",{onClick:U},"注销")])]))),128)):(t(),x(X,{key:1})),l(M,{currentPage:c.pageNumber,"onUpdate:currentPage":a[0]||(a[0]=e=>c.pageNumber=e),"page-size":c.pageSize,"onUpdate:pageSize":a[1]||(a[1]=e=>c.pageSize=e),small:v.small,background:"","page-sizes":k.pageSizes,layout:"total, sizes, prev, pager, next",total:k.total,onSizeChange:A,onCurrentChange:I},null,8,["currentPage","page-size","small","page-sizes","total"])]),l(Z,{visible:m.visible,data:m.data,onClose:L},null,8,["visible","data"]),l(ee,{visible:b.visible,data:b.data,onClose:V},null,8,["visible","data"])],64)}}});export{xe as default};