Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

2 строки
5.9KB

  1. import{y as J,E as K,a as h,r as y,$ as k,o as Q,b as r,c as p,L as x,h as l,f as t,d as v,F as E,H as $,u as b,e as m,i as g,j as O,k as X,s as Z}from"./index-dd5fae99.js";import{r as ee,a as ae}from"./renewalProjectTreasury-fd1e2d66.js";import{u as te}from"./useExportExc-f315048b.js";import{a as le}from"./index-b6aa4cff.js";const ne={class:"flex"},oe={class:"flex justify-between"},re=["onClick"],se=["onClick"],de=["onClick"],ue=X({name:"projectStore"}),_e=Object.assign(ue,{setup(pe){const{proxy:j}=Z(),S=J(),{reAuditStatusOptions:I,projectTypeOptions:C}=K.dictStore.globalDicts||{},e=h({projectName:void 0,projectType:void 0,approvalStatus:void 0,year:void 0,times:void 0}),c=y(),D=y(0),L=h([{label:"序号",type:"index",width:"60"},{label:"项目名称",key:"projectName",prop:"projectName",minWidth:"200",showOverflowTooltip:!0},{label:"项目类型",key:"projectType",prop:"projectType",minWidth:"80",render:n=>k("span",C[n.projectType]||"-")},{label:"预算年度",key:"projectYear",prop:"projectYear",width:"80"},{label:"下一年度支付金额(万元)",key:"annualPaymentAmount",prop:"annualPaymentAmount",width:"200"},{label:"项目状态",key:"approvalStatus",prop:"approvalStatus",width:"180",render:n=>[k("span",{class:["dot mr-4",`bg-${n.approvalStatus==="PENDING"?"warning":n.approvalStatus==="PASS"?"success":"danger"}`]}),k("span",{class:`text-${n.approvalStatus==="PENDING"?"warning":n.approvalStatus==="PASS"?"success":"danger"}`},n.approvalStatus==="PENDING"?"待审核":n.approvalStatus==="PASS"?"审核通过":"审核不通过")]},{label:"创建时间",key:"createOn",prop:"createOn",width:"180"},{label:"操作",slot:"action",width:"200",fixed:"right"}]),N=y([]),V=y(),i=async(n=c.value.pageParams)=>{var f,s;const a=await ee({...n,...e,year:e.year*1||void 0,startTime:((f=e.times)==null?void 0:f[0])||void 0,endTime:((s=e.times)==null?void 0:s[1])||void 0,regionCode:V.value||void 0,times:void 0});N.value=a.data.records,D.value=a.data.total},B=()=>{i()},H=()=>{e.projectName=void 0,e.projectType=void 0,e.approvalStatus=void 0,e.maxDeclareAmount=void 0,e.maxApprovalAmount=void 0,e.year=void 0,e.times=void 0,c.value.pageParams.pageNumber=1,c.value.pageParams.pageSize=10,i()},{exportLoading:M,exportData:U}=te(),z=()=>{U(()=>{var n,a;return le(5,{...e,year:e.year*1||void 0,maxDeclareAmount:e.maxDeclareAmount*1||void 0,maxApprovalAmount:e.maxApprovalAmount*1||void 0,startTime:((n=e.times)==null?void 0:n[0])||void 0,endTime:((a=e.times)==null?void 0:a[1])||void 0,areaCode:V.value||void 0,times:void 0})})},G=n=>{j.$messageBox.confirm("确定要删除该项吗?","提示!",{type:"warning"}).then(async()=>{await ae({projectRenewalId:n.id}),j.$message.success("删除成功!"),i()})},R=n=>{S.push({name:"renewProjectDetail",query:{id:n.id}})},F=n=>{S.push({name:"renewalCapitalDeclare",query:{id:n.id}})};return Q(async()=>{i()}),(n,a)=>{const f=r("el-input"),s=r("el-form-item"),u=r("el-col"),T=r("el-option"),A=r("el-select"),w=r("el-row"),P=r("el-date-picker"),_=r("el-button"),q=r("el-form"),Y=r("el-card"),W=r("table-list");return p(),x(w,null,{default:l(()=>[t(u,{span:24},{default:l(()=>[t(Y,{class:"w-full search"},{default:l(()=>[t(q,{model:e,size:"small","label-suffix":":"},{default:l(()=>[t(w,{gutter:16,class:"mb-16"},{default:l(()=>[t(u,{span:8},{default:l(()=>[t(s,{label:"项目名称"},{default:l(()=>[t(f,{modelValue:e.projectName,"onUpdate:modelValue":a[0]||(a[0]=o=>e.projectName=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),t(u,{span:8},{default:l(()=>[t(s,{label:"项目类型"},{default:l(()=>[t(A,{modelValue:e.projectType,"onUpdate:modelValue":a[1]||(a[1]=o=>e.projectType=o),placeholder:"全部",class:"w-full"},{default:l(()=>[(p(!0),v(E,null,$(b(C),(o,d)=>(p(),x(T,{key:d,label:o,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(u,{span:8},{default:l(()=>[t(s,{label:"项目状态"},{default:l(()=>[t(A,{modelValue:e.approvalStatus,"onUpdate:modelValue":a[2]||(a[2]=o=>e.approvalStatus=o),placeholder:"全部",class:"w-full"},{default:l(()=>[(p(!0),v(E,null,$(b(I),(o,d)=>(p(),x(T,{key:d,label:o,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(w,{gutter:16},{default:l(()=>[t(u,{span:8},{default:l(()=>[t(s,{label:"预算年度"},{default:l(()=>[t(P,{modelValue:e.year,"onUpdate:modelValue":a[3]||(a[3]=o=>e.year=o),type:"year","value-format":"YYYY",placeholder:"请选择"},null,8,["modelValue"])]),_:1})]),_:1}),t(u,{span:12},{default:l(()=>[t(s,{label:"创建时间"},{default:l(()=>[t(P,{modelValue:e.times,"onUpdate:modelValue":a[4]||(a[4]=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}),t(u,{span:4},{default:l(()=>[t(s,{class:"btn"},{default:l(()=>[m("div",ne,[t(_,{type:"primary",onClick:B},{default:l(()=>a[6]||(a[6]=[g("查询")])),_:1}),t(_,{onClick:H},{default:l(()=>a[7]||(a[7]=[g("重置")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(Y,{class:"w-full mt-8"},{header:l(()=>[m("div",oe,[a[10]||(a[10]=m("span",null,"申报列表",-1)),m("div",null,[t(_,{type:"primary",plain:"",size:"small",loading:b(M),onClick:z},{default:l(()=>a[8]||(a[8]=[g("导出")])),_:1},8,["loading"]),t(_,{type:"primary",size:"small",icon:"Plus",onClick:a[5]||(a[5]=o=>b(S).push({name:"renewalCapitalDeclare"}))},{default:l(()=>a[9]||(a[9]=[g("续建资金申报")])),_:1})])])]),default:l(()=>[t(W,{ref_key:"tableListRef",ref:c,column:L,data:N.value,total:D.value,onGetTableData:i},{action:l(({scope:o})=>[m("a",{onClick:d=>R(o.row)},"详情",8,re),o.row.approvalStatus==="NOT_PASS"?(p(),v("a",{key:0,onClick:d=>F(o.row)},"重新申报",8,se)):O("",!0),o.row.approvalStatus==="NOT_PASS"?(p(),v("a",{key:1,class:"text-danger",onClick:d=>G(o.row)},"删除",8,de)):O("",!0)]),_:1},8,["column","data","total"])]),_:1})]),_:1})]),_:1})}}});export{_e as default};