|
- import{d as J,B as K,b as T,c as f,e as t,f as i,g as s,F as h,H as S,h as l,t as n,u as _,k as u,G as x,i as p,j as Q,n as w,q as W}from"./index.0018c8ef.js";import{N as X}from"./index.c0978c32.js";import Z from"./preExaminationDialog.f557b2a7.js";import ee from"./setTagDialog.e715670a.js";import{r as ae}from"./tagsManage.2f8c47de.js";import{g as se}from"./getIsShowRegionTree.7b9f4043.js";import"./uploadAction.60337e0f.js";import"./index.ae9e1952.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=J({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:P}){const{statusOptions:C,businessTerritory:A,statusGjOptions:z}=K.dictStore.globalDicts||{},{proxy:j}=W(),k=v,d=P,c=T({pageNumber:1,pageSize:k.pageSizes[0]}),E=()=>{d("getTableData",c)},I=()=>{d("getTableData",c)},O=o=>{m.visible=!0,m.data=o},m=T({visible:void 0,data:void 0}),R=o=>{m.visible=!1,o&&d("getTableData",c)},b=T({visible:!1,data:void 0}),G=o=>{b.visible=!0,b.data=o},L=o=>{b.visible=!1,o&&d("getTableData",c)},V=(o,a)=>{j.$messageBox.confirm(`\u786E\u5B9A\u8981\u5220\u9664${a.name}\u5417?`,"\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await ae({tagId:a.id,projectCode:o.projectCode}),d("getTableData",c)})},q=()=>{j.$messageBox.confirm("\u8BF7\u53BBIRS\u5E73\u53F0\u4E0B\u67B6\u9879\u76EE\uFF0C\u4EE5\u53CA\u91CA\u653E\u76F8\u5173\u8D44\u6E90","\u63D0\u793A\uFF01",{type:"warning",showCancelButton:!1})};return B({pageParams:c}),(o,a)=>{const U=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(U,{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(_(A)[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=>V(e,r)},{default:p(()=>[Q(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"},"\u7533\u62A5\u5355\u4F4D\uFF1A",-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"},"\u9879\u76EE\u7C7B\u578B\uFF1A",-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"},"\u7533\u62A5\u91D1\u989D\uFF1A",-1)),s("span",ue,n(e.declaredAmount||"-")+"\u4E07\u5143",1)]),_:2},1024),l(g,{span:6,class:"mb-8"},{default:p(()=>[a[5]||(a[5]=s("span",{class:"label"},"\u6279\u590D\u91D1\u989D\uFF1A",-1)),s("span",de,n(e.approvedAmount||"-")+"\u4E07\u5143",1)]),_:2},1024),l(g,{span:5,class:"mb-8"},{default:p(()=>[a[6]||(a[6]=s("span",{class:"label"},"\u9884\u7B97\u5E74\u5EA6\uFF1A",-1)),s("span",ge,n(e.projectYear)+"\u5E74",1)]),_:2},1024),l(g,{span:7,class:"mb-8"},{default:p(()=>[a[7]||(a[7]=s("span",{class:"label"},"\u521B\u5EFA\u65F6\u95F4\uFF1A",-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"},"\u9879\u76EE\u72B6\u6001\uFF1A",-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)},"\u9884\u5BA1\u7533\u62A5",8,be)):u("",!0),s("a",{onClick:r=>d("toDetail",e)},"\u8BE6\u60C5",8,fe),e.fromType==="1"?(t(),i("a",{key:1,onClick:r=>o.$router.push({name:"projectHistory",query:{id:e.id}})},"\u5386\u53F2\u8BB0\u5F55",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}})},"\u7F16\u8F91",8,ye)):u("",!0),_(se)(["SUPER_ADMIN","REGION_MANAGER"])?(t(),i("a",{key:3,onClick:r=>G(e)},"\u8BBE\u7F6E\u6807\u7B7E",8,Ce)):u("",!0),s("a",{onClick:q},"\u6CE8\u9500")])]))),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:E,onCurrentChange:I},null,8,["currentPage","page-size","small","page-sizes","total"])]),l(Z,{visible:m.visible,data:m.data,onClose:R},null,8,["visible","data"]),l(ee,{visible:b.visible,data:b.data,onClose:L},null,8,["visible","data"])],64)}}});export{xe as default};
|