Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

projectList.0e25dd50.js 5.2KB

před 2 měsíci
1
  1. import{d as Y,D as K,b as D,c as f,e as s,f as c,g as a,F as T,J as S,h as o,t as n,u as g,k as p,I as x,i as r,j as Q,n as w,x as W}from"./index.8d65dd27.js";import{N as X}from"./index.f2948841.js";import Z from"./preExaminationDialog.4b9e5205.js";import ee from"./setTagDialog.10b8fa93.js";import{r as ae}from"./tagsManage.36587289.js";import{g as se}from"./getIsShowRegionTree.559efd4b.js";import"./uploadAction.1ee5b723.js";import"./index.0cd97fe2.js";const te={class:"projectList"},oe={class:"left"},ne={class:"info"},le={class:"tit"},ce=["onClick"],ie={key:0,class:"statusTag status-primary mr-6"},re=a("span",{class:"label"},"\u7533\u62A5\u5355\u4F4D\uFF1A",-1),pe={class:"value"},de=a("span",{class:"label"},"\u9879\u76EE\u7C7B\u578B\uFF1A",-1),ue={class:"value"},_e=a("span",{class:"label"},"\u7533\u62A5\u91D1\u989D\uFF1A",-1),ge={class:"value"},me=a("span",{class:"label"},"\u6279\u590D\u91D1\u989D\uFF1A",-1),be={class:"value"},fe=a("span",{class:"label"},"\u9884\u7B97\u5E74\u5EA6\uFF1A",-1),ve={class:"value"},he=a("span",{class:"label"},"\u521B\u5EFA\u65F6\u95F4\uFF1A",-1),ye={class:"value"},Ce=a("span",{class:"label"},"\u9879\u76EE\u72B6\u6001\uFF1A",-1),ke={class:"right"},De=["onClick"],Te=["onClick"],ze=["onClick"],je=["onClick"],$e=["onClick"],Ne=Y({name:"projectList"}),Oe=Object.assign(Ne,{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:I}){const{statusOptions:y,businessTerritory:P,statusGjOptions:z}=K.dictStore.globalDicts||{},{proxy:j}=W(),C=v,d=I,i=D({pageNumber:1,pageSize:C.pageSizes[0]}),A=()=>{d("getTableData",i)},E=()=>{d("getTableData",i)},O=t=>{m.visible=!0,m.data=t},m=D({visible:void 0,data:void 0}),R=t=>{m.visible=!1,t&&d("getTableData",i)},b=D({visible:!1,data:void 0}),L=t=>{b.visible=!0,b.data=t},V=t=>{b.visible=!1,t&&d("getTableData",i)},G=(t,u)=>{j.$messageBox.confirm(`\u786E\u5B9A\u8981\u5220\u9664${u.name}\u5417?`,"\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await ae({tagId:u.id,projectCode:t.projectCode}),d("getTableData",i)})},U=()=>{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:i}),(t,u)=>{const q=f("svg-icon"),F=f("el-tag"),_=f("el-col"),M=f("el-row"),H=f("el-pagination");return s(),c(T,null,[a("div",te,[v.listData.length?(s(!0),c(T,{key:0},S(v.listData,(e,J)=>(s(),c("div",{key:J,class:"list"},[a("div",oe,[o(q,{name:"projectIcon",class:"icon"}),a("div",ne,[a("div",le,[a("p",{class:"mb-4 pointTit",onClick:l=>d("toDetail",e)},n(e.projectName),9,ce),e.bizDomain?(s(),c("span",ie,n(g(P)[e.bizDomain]),1)):p("",!0),e.tags?(s(!0),c(T,{key:1},S(e.tags,(l,h)=>(s(),x(F,{key:h,class:"myTag mx-2 mb-2",closable:"",onClose:k=>G(e,l)},{default:r(()=>[Q(n(l.name),1)]),_:2},1032,["onClose"]))),128)):p("",!0)]),o(M,{gutter:4},{default:r(()=>[o(_,{span:5,class:"mb-8"},{default:r(()=>[re,a("span",pe,n(e.buildOrg||"-"),1)]),_:2},1024),o(_,{span:7,class:"mb-8"},{default:r(()=>[de,a("span",ue,n(e.projectTypeName||"-"),1)]),_:2},1024),o(_,{span:6,class:"mb-8"},{default:r(()=>[_e,a("span",ge,n(e.declaredAmount||"-")+"\u4E07\u5143",1)]),_:2},1024),o(_,{span:6,class:"mb-8"},{default:r(()=>[me,a("span",be,n(e.approvedAmount||"-")+"\u4E07\u5143",1)]),_:2},1024),o(_,{span:5,class:"mb-8"},{default:r(()=>[fe,a("span",ve,n(e.projectYear)+"\u5E74",1)]),_:2},1024),o(_,{span:7,class:"mb-8"},{default:r(()=>[he,a("span",ye,n(e.createOn),1)]),_:2},1024),o(_,{span:12,class:"mb-8"},{default:r(()=>{var l,h,k,$,N;return[Ce,e.fromType==="1"?(s(),c("span",{key:0,class:w(`value statusTag status-${(l=g(y)[e.status])==null?void 0:l.color}`)},n((h=g(y)[e.stage])==null?void 0:h.name)+"-"+n((k=g(y)[e.status])==null?void 0:k.name),3)):p("",!0),e.fromType==="2"?(s(),c("span",{key:1,class:w(`value statusTag status-${($=g(z)[e.status])==null?void 0:$.color}`)},n(((N=g(z)[e.status])==null?void 0:N.name)||"-"),3)):p("",!0)]}),_:2},1024)]),_:2},1024)])]),a("div",ke,[e.canPreDeclared?(s(),c("a",{key:0,onClick:l=>O(e)},"\u9884\u5BA1\u7533\u62A5",8,De)):p("",!0),a("a",{onClick:l=>d("toDetail",e)},"\u8BE6\u60C5",8,Te),e.fromType==="1"?(s(),c("a",{key:1,onClick:l=>t.$router.push({name:"projectHistory",query:{id:e.id}})},"\u5386\u53F2\u8BB0\u5F55",8,ze)):p("",!0),e.fromType==="2"?(s(),c("a",{key:2,onClick:l=>t.$router.push({name:"operationProjectStoreEdit",query:{id:e.projectCode,type:1}})},"\u7F16\u8F91",8,je)):p("",!0),g(se)(["SUPER_ADMIN","REGION_MANAGER"])?(s(),c("a",{key:3,onClick:l=>L(e)},"\u8BBE\u7F6E\u6807\u7B7E",8,$e)):p("",!0),a("a",{onClick:U},"\u6CE8\u9500")])]))),128)):(s(),x(X,{key:1})),o(H,{currentPage:i.pageNumber,"onUpdate:currentPage":u[0]||(u[0]=e=>i.pageNumber=e),"page-size":i.pageSize,"onUpdate:pageSize":u[1]||(u[1]=e=>i.pageSize=e),small:v.small,background:"","page-sizes":C.pageSizes,layout:"total, sizes, prev, pager, next",total:C.total,onSizeChange:A,onCurrentChange:E},null,8,["currentPage","page-size","small","page-sizes","total"])]),o(Z,{visible:m.visible,data:m.data,onClose:R},null,8,["visible","data"]),o(ee,{visible:b.visible,data:b.data,onClose:V},null,8,["visible","data"])],64)}}});export{Oe as default};