|
- import{a as R}from"./index-b6aa4cff.js";import{y as U,E as z,a as M,r as b,o as P,b as n,c as y,d as D,f as t,h as l,F as V,H as q,u as f,L as I,e as d,i as Y,k as S}from"./index-dd5fae99.js";import{u as $}from"./useExportExc-f315048b.js";import{l as G}from"./finalInspectionDeclare-e797bcb5.js";const W={class:"flex"},J={class:"flex justify-between"},K=["onClick"],Q=["onClick"],X=S({name:"finalInspectionDeclare"}),oe=Object.assign(X,{setup(Z){const j=U(),{projectTypeOptions:h}=z.dictStore.globalDicts||{},e=M({projectType:void 0,status:void 0,projectYear:void 0,projectName:void 0,createOnMin:void 0,createOnMax:void 0,times:[]}),T=M([{label:"序号",type:"index",width:"80"},{label:"项目名称",key:"projectName",prop:"projectName",minWidth:"200",showOverflowTooltip:!0},{label:"项目类型",key:"projectTypeName",prop:"projectTypeName",width:"80"},{label:"批复金额(万元)",key:"approvedAmount",prop:"approvedAmount",width:"150"},{label:"预算年度",key:"projectYear",prop:"projectYear",width:80},{label:"计划验收时间",key:"planAcceptanceTime",prop:"planAcceptanceTime",width:"200"},{label:"操作",slot:"action",width:"180",fixed:"right"}]),v=b([]),p=b(),u=async(s=p.value.pageParams)=>{var m,r;const a=await G({...s,...e,createOnMin:(m=e.times)==null?void 0:m[0],createOnMax:(r=e.times)==null?void 0:r[1],projectYear:e.projectYear*1||void 0,times:void 0});v.value=a.data.records,g.value=a.data.total},g=b(0),N=()=>{u()},O=()=>{e.projectYear=void 0,e.projectName=void 0,e.projectType=void 0,e.createOnMin=void 0,e.createOnMax=void 0,e.times=void 0,p.value.pageParams.pageNumber=1,p.value.pageParams.pageSize=10,u()},{exportLoading:C,exportData:H}=$(),E=()=>{H(()=>{var s,a;return R(9,{...e,createOnMin:(s=e.times)==null?void 0:s[0],createOnMax:(a=e.times)==null?void 0:a[1],projectYear:e.projectYear*1||void 0,times:void 0})})};return P(async()=>{u()}),(s,a)=>{const m=n("el-input"),r=n("el-form-item"),i=n("el-col"),L=n("el-option"),A=n("el-select"),x=n("el-date-picker"),k=n("el-row"),_=n("el-button"),B=n("el-form"),w=n("el-card"),F=n("table-list");return y(),D(V,null,[t(w,{class:"w-full search"},{default:l(()=>[t(B,{model:e,size:"small","label-suffix":":"},{default:l(()=>[t(k,{gutter:16,class:"mb-16"},{default:l(()=>[t(i,{span:8},{default:l(()=>[t(r,{label:"项目名称"},{default:l(()=>[t(m,{modelValue:e.projectName,"onUpdate:modelValue":a[0]||(a[0]=o=>e.projectName=o),maxlength:"50",placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),t(i,{span:6},{default:l(()=>[t(r,{label:"项目类型"},{default:l(()=>[t(A,{modelValue:e.projectType,"onUpdate:modelValue":a[1]||(a[1]=o=>e.projectType=o),placeholder:"全部",class:"w-full"},{default:l(()=>[(y(!0),D(V,null,q(f(h),(o,c)=>(y(),I(L,{key:c,label:o,value:c},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(i,{span:10},{default:l(()=>[t(r,{label:"计划验收时间"},{default:l(()=>[t(x,{modelValue:e.times,"onUpdate:modelValue":a[2]||(a[2]=o=>e.times=o),type:"datetimerange","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(k,{gutter:24},{default:l(()=>[t(i,{span:12},{default:l(()=>[t(r,{label:"创建时间"},{default:l(()=>[t(x,{modelValue:e.times,"onUpdate:modelValue":a[3]||(a[3]=o=>e.times=o),type:"datetimerange","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm"},null,8,["modelValue"])]),_:1})]),_:1}),t(i,{span:12},{default:l(()=>[t(r,{class:"btn"},{default:l(()=>[d("div",W,[t(_,{type:"primary",onClick:N},{default:l(()=>a[4]||(a[4]=[Y("查询")])),_:1}),t(_,{onClick:O},{default:l(()=>a[5]||(a[5]=[Y("重置")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(w,{class:"w-full mt-8"},{header:l(()=>[d("div",J,[a[7]||(a[7]=d("span",null,"列表",-1)),d("div",null,[t(_,{type:"primary",size:"small",plain:"",loading:f(C),onClick:E},{default:l(()=>a[6]||(a[6]=[Y(" 导出 ")])),_:1},8,["loading"])])])]),default:l(()=>[t(F,{ref_key:"tableListRef",ref:p,column:T,data:v.value,total:g.value,onGetTableData:u},{action:l(({scope:o})=>[d("a",{onClick:c=>f(j).push({name:"declarationFinal",query:{id:o.row.id}})},"终验申报",8,K),d("a",{onClick:c=>f(j).push({name:"finalInspectionDeclareDetail",query:{id:o.row.id}})},"详情",8,Q)]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{oe as default};
|