|
- import{y as h,E as ee,a as P,r as j,o as ae,b as r,c as i,d as w,f as l,h as t,u as m,L as N,j as le,F as O,H as G,e as f,N as y,i as A,k as te,s as oe}from"./index-dd5fae99.js";import{E as ne}from"./index-29b4120c.js";import{l as de,b as ue}from"./projectStore-30136ff6.js";import re from"./exportFieldDialog-e871f4a1.js";import{p as se}from"./index-b6aa4cff.js";import pe from"./projectList-5ff38777.js";import{u as ie}from"./useExportExc-f315048b.js";import{g as R,a as me}from"./getIsShowRegionTree-21a24141.js";import"./index-be0b3801.js";import"./preExaminationDialog-145dd497.js";import"./uploadAction-3962500e.js";import"./setTagDialog-e101bf2b.js";import"./tagsManage-b14aec3a.js";const fe={class:"flex"},ce={class:"flex"},_e={class:"flex"},Me={class:"flex justify-between"},ve=te({beforeRouteEnter(E,c,x){c.name==="projectDetail"||!c.name?E.meta.keepAlive=!0:E.meta.keepAlive=!1,x()}}),Re=Object.assign(ve,{__name:"index",setup(E){const{proxy:c}=oe(),x=h(),{statusOptionsCascader:B,projectTypeOptions:H,projectStageOptions:F}=ee.dictStore.globalDicts||{},e=P({projectName:void 0,buildOrg:void 0,projectType:void 0,status:void 0,declareAmountMin:void 0,declareAmountMax:void 0,approveAmountMin:void 0,approveAmountMax:void 0,projectYear:void 0,times:void 0}),Y=j(0),I=j([]),D=j(),L=u=>{D.value=u.regionLevel===3?u.regionCode:void 0,_.value.pageParams.pageNumber=1,p()},_=j(),p=async(u=_.value.pageParams)=>{var n,s,d,M;const a=await de({...u,...e,projectYear:e.projectYear*1||void 0,declareAmountMin:e.declareAmountMin*1||void 0,declareAmountMax:e.declareAmountMax*1||void 0,approveAmountMin:e.approveAmountMin*1||void 0,approveAmountMax:e.approveAmountMax*1||void 0,createOnMin:((n=e.times)==null?void 0:n[0])||void 0,createOnMax:((s=e.times)==null?void 0:s[1])||void 0,regionCode:D.value||void 0,times:void 0,status:(d=e.status)==null?void 0:d[e.status.length-1],projectTypes:((M=e==null?void 0:e.projectType)==null?void 0:M.join(","))||"",projectType:void 0});I.value=a.data.records,Y.value=a.data.total},$=()=>{p()},z=()=>{e.projectName=void 0,e.buildOrg=void 0,e.projectType=void 0,e.status=void 0,e.declareAmountMin=void 0,e.declareAmountMax=void 0,e.approveAmountMin=void 0,e.approveAmountMax=void 0,e.projectYear=void 0,e.times=void 0,e.projectStage=void 0,_.value.pageParams.pageNumber=1,_.value.pageParams.pageSize=10,p()},g=P({visible:!1}),q=u=>{g.visible=!0},S=()=>{g.visible=!1},{exportData:J}=ie(),K=async u=>{await J(()=>{var a,n,s,d;return ue({...e,projectYear:e.projectYear*1||void 0,declareAmountMin:e.declareAmountMin*1||void 0,declareAmountMax:e.declareAmountMax*1||void 0,approveAmountMin:e.approveAmountMin*1||void 0,approveAmountMax:e.approveAmountMax*1||void 0,createOnMin:((a=e.times)==null?void 0:a[0])||void 0,createOnMax:((n=e.times)==null?void 0:n[1])||void 0,regionCode:D.value||void 0,status:(s=e.status)==null?void 0:s[e.status.length-1],projectTypes:(d=e.projectType)==null?void 0:d.join(","),projectType:void 0,exportOptionList:u})}),S()},Q=u=>{c.$messageBox.confirm("提交后将发起项目预审流程,确定提交吗?","提示!",{type:"warning"}).then(async()=>{await se({projectId:u.id}),c.$message.success("发起成功!"),p()})},W=u=>{u.fromType==="1"?x.push({name:"projectDetail",query:{id:u.id}}):x.push({name:"operationProjectStoreDetail",query:{id:u.projectCode,type:1}})};return ae(async()=>{R(["SUPER_ADMIN","REGION_MANAGER","VISITOR"])||p()}),(u,a)=>{const n=r("el-col"),s=r("el-input"),d=r("el-form-item"),M=r("el-option"),C=r("el-select"),v=r("el-row"),X=r("el-cascader"),V=r("el-input-number"),U=r("el-date-picker"),T=r("el-button"),Z=r("el-form"),k=r("el-card");return i(),w(O,null,[l(v,null,{default:t(()=>[m(R)(["SUPER_ADMIN","REGION_MANAGER","VISITOR"])?(i(),N(n,{key:0,span:4,class:"pr-16"},{default:t(()=>[l(ne,{params:m(me)({SUPER_ADMIN:!1,REGION_MANAGER:!1,VISITOR:!1}),onGetTree:L},null,8,["params"])]),_:1})):le("",!0),l(n,{span:m(R)(["SUPER_ADMIN","REGION_MANAGER","VISITOR"])?20:24},{default:t(()=>[l(k,{class:"w-full search"},{default:t(()=>[l(Z,{model:e,size:"small","label-suffix":":"},{default:t(()=>[l(v,{gutter:16,class:"mb-16"},{default:t(()=>[l(n,{span:8},{default:t(()=>[l(d,{label:"项目名称"},{default:t(()=>[l(s,{modelValue:e.projectName,"onUpdate:modelValue":a[0]||(a[0]=o=>e.projectName=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),l(n,{span:8},{default:t(()=>[l(d,{label:"申报单位"},{default:t(()=>[l(s,{modelValue:e.buildOrg,"onUpdate:modelValue":a[1]||(a[1]=o=>e.buildOrg=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),l(n,{span:8},{default:t(()=>[l(d,{label:"项目类型"},{default:t(()=>[l(C,{modelValue:e.projectType,"onUpdate:modelValue":a[2]||(a[2]=o=>e.projectType=o),placeholder:"全部",class:"w-full",multiple:""},{default:t(()=>[(i(!0),w(O,null,G(m(H),(o,b)=>(i(),N(M,{key:b,label:o,value:b},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(v,{gutter:16,class:"mb-16"},{default:t(()=>[l(n,{span:8},{default:t(()=>[l(d,{label:"项目状态"},{default:t(()=>[l(X,{modelValue:e.status,"onUpdate:modelValue":a[3]||(a[3]=o=>e.status=o),class:"w-full",props:{label:"name",value:"code"},options:m(B)},null,8,["modelValue","options"])]),_:1})]),_:1}),l(n,{span:8},{default:t(()=>[l(d,{class:"whitespace-nowrap",label:"申报资金(万元)"},{default:t(()=>[f("div",fe,[l(V,{modelValue:e.declareAmountMin,"onUpdate:modelValue":a[4]||(a[4]=o=>e.declareAmountMin=o),clearable:"",controls:!1,onMousewheel:a[5]||(a[5]=y(()=>{},["prevent"]))},null,8,["modelValue"]),a[15]||(a[15]=A(" 至 ")),l(V,{modelValue:e.declareAmountMax,"onUpdate:modelValue":a[6]||(a[6]=o=>e.declareAmountMax=o),clearable:"",controls:!1,onMousewheel:a[7]||(a[7]=y(()=>{},["prevent"]))},null,8,["modelValue"])])]),_:1})]),_:1}),l(n,{span:8},{default:t(()=>[l(d,{class:"whitespace-nowrap",label:"批复资金(万元)"},{default:t(()=>[f("div",ce,[l(V,{modelValue:e.approveAmountMin,"onUpdate:modelValue":a[8]||(a[8]=o=>e.approveAmountMin=o),controls:!1,clearable:"",onMousewheel:a[9]||(a[9]=y(()=>{},["prevent"]))},null,8,["modelValue"]),a[16]||(a[16]=A(" 至 ")),l(V,{modelValue:e.approveAmountMax,"onUpdate:modelValue":a[10]||(a[10]=o=>e.approveAmountMax=o),controls:!1,clearable:"",onMousewheel:a[11]||(a[11]=y(()=>{},["prevent"]))},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),l(v,{gutter:16,class:"mb-16"},{default:t(()=>[l(n,{span:8},{default:t(()=>[l(d,{label:"预算年度"},{default:t(()=>[l(U,{modelValue:e.projectYear,"onUpdate:modelValue":a[12]||(a[12]=o=>e.projectYear=o),type:"year","value-format":"YYYY",placeholder:"请选择"},null,8,["modelValue"])]),_:1})]),_:1}),l(n,{span:16},{default:t(()=>[l(d,{label:"创建时间"},{default:t(()=>[l(U,{modelValue:e.times,"onUpdate:modelValue":a[13]||(a[13]=o=>e.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})]),_:1}),l(v,null,{default:t(()=>[l(n,{span:8},{default:t(()=>[l(d,{label:"项目阶段"},{default:t(()=>[l(C,{modelValue:e.projectStage,"onUpdate:modelValue":a[14]||(a[14]=o=>e.projectStage=o),placeholder:"全部",class:"w-full"},{default:t(()=>[(i(!0),w(O,null,G(m(F),(o,b)=>(i(),N(M,{key:b,label:o,value:b},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),l(n,{span:16},{default:t(()=>[l(d,{class:"btn"},{default:t(()=>[f("div",_e,[l(T,{type:"primary",onClick:$},{default:t(()=>a[17]||(a[17]=[A("查询")])),_:1}),l(T,{onClick:z},{default:t(()=>a[18]||(a[18]=[A("重置")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),l(k,{class:"w-full mt-8"},{header:t(()=>[f("div",Me,[a[20]||(a[20]=f("span",null,"列表",-1)),f("div",null,[l(T,{type:"primary",plain:"",size:"small",onClick:q},{default:t(()=>a[19]||(a[19]=[A("导出")])),_:1})])])]),default:t(()=>[l(pe,{ref_key:"listRef",ref:_,"list-data":I.value,total:Y.value,onGetTableData:p,onPreExamDeclare:Q,onToDetail:W},null,8,["list-data","total"])]),_:1})]),_:1},8,["span"])]),_:1}),l(re,{visible:g.visible,data:g.rowData,onClose:S,onExportProject:K},null,8,["visible","data"])],64)}}});export{Re as default};
|