import{a as R}from"./index.5b85d91e.js";import{d as U,A as z,D as I,b as w,r as b,o as P,c as n,e as y,f as M,h as t,i as a,F as D,J as q,u as f,I as S,g as d,j}from"./index.5bb861d3.js";import{u as $}from"./useExportExc.e58dcd47.js";import{l as G}from"./finalInspectionDeclare.a85fb575.js";const J={class:"flex"},W={class:"flex justify-between"},K=d("span",null,"\u5217\u8868",-1),Q=["onClick"],X=["onClick"],Z=U({name:"finalInspectionDeclare"}),ne=Object.assign(Z,{setup(ee){const Y=z(),{projectTypeOptions:V}=I.dictStore.globalDicts||{},e=w({projectType:void 0,status:void 0,projectYear:void 0,projectName:void 0,createOnMin:void 0,createOnMax:void 0,times:[]}),T=w([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName",minWidth:"200",showOverflowTooltip:!0},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectTypeName",prop:"projectTypeName",width:"80"},{label:"\u6279\u590D\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"approvedAmount",prop:"approvedAmount",width:"150"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:80},{label:"\u8BA1\u5212\u9A8C\u6536\u65F6\u95F4",key:"planAcceptanceTime",prop:"planAcceptanceTime",width:"200"},{label:"\u64CD\u4F5C",slot:"action",width:"180",fixed:"right"}]),h=b([]),i=b(),p=async(s=i.value.pageParams)=>{var u,r;const l=await G({...s,...e,createOnMin:(u=e.times)==null?void 0:u[0],createOnMax:(r=e.times)==null?void 0:r[1],projectYear:e.projectYear*1||void 0,times:void 0});h.value=l.data.records,g.value=l.data.total},g=b(0),N=()=>{p()},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,i.value.pageParams.pageNumber=1,i.value.pageParams.pageSize=10,p()},{exportLoading:C,exportData:H}=$(),A=()=>{H(()=>{var s,l;return R(9,{...e,createOnMin:(s=e.times)==null?void 0:s[0],createOnMax:(l=e.times)==null?void 0:l[1],projectYear:e.projectYear*1||void 0,times:void 0})})};return P(async()=>{p()}),(s,l)=>{const u=n("el-input"),r=n("el-form-item"),c=n("el-col"),E=n("el-option"),B=n("el-select"),v=n("el-date-picker"),x=n("el-row"),_=n("el-button"),F=n("el-form"),k=n("el-card"),L=n("table-list");return y(),M(D,null,[t(k,{class:"w-full search"},{default:a(()=>[t(F,{model:e,size:"small","label-suffix":":"},{default:a(()=>[t(x,{gutter:16,class:"mb-16"},{default:a(()=>[t(c,{span:8},{default:a(()=>[t(r,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[t(u,{modelValue:e.projectName,"onUpdate:modelValue":l[0]||(l[0]=o=>e.projectName=o),maxlength:"50",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(c,{span:6},{default:a(()=>[t(r,{label:"\u9879\u76EE\u7C7B\u578B"},{default:a(()=>[t(B,{modelValue:e.projectType,"onUpdate:modelValue":l[1]||(l[1]=o=>e.projectType=o),placeholder:"\u5168\u90E8",class:"w-full"},{default:a(()=>[(y(!0),M(D,null,q(f(V),(o,m)=>(y(),S(E,{key:m,label:o,value:m},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(c,{span:10},{default:a(()=>[t(r,{label:"\u8BA1\u5212\u9A8C\u6536\u65F6\u95F4"},{default:a(()=>[t(v,{modelValue:e.times,"onUpdate:modelValue":l[2]||(l[2]=o=>e.times=o),type:"datetimerange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(x,{gutter:24},{default:a(()=>[t(c,{span:12},{default:a(()=>[t(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:a(()=>[t(v,{modelValue:e.times,"onUpdate:modelValue":l[3]||(l[3]=o=>e.times=o),type:"datetimerange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm"},null,8,["modelValue"])]),_:1})]),_:1}),t(c,{span:12},{default:a(()=>[t(r,{class:"btn"},{default:a(()=>[d("div",J,[t(_,{type:"primary",onClick:N},{default:a(()=>[j("\u67E5\u8BE2")]),_:1}),t(_,{onClick:O},{default:a(()=>[j("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(k,{class:"w-full mt-8"},{header:a(()=>[d("div",W,[K,d("div",null,[t(_,{type:"primary",size:"small",plain:"",loading:f(C),onClick:A},{default:a(()=>[j(" \u5BFC\u51FA ")]),_:1},8,["loading"])])])]),default:a(()=>[t(L,{ref_key:"tableListRef",ref:i,column:T,data:h.value,total:g.value,onGetTableData:p},{action:a(({scope:o})=>[d("a",{onClick:m=>f(Y).push({name:"declarationFinal",query:{id:o.row.id}})},"\u7EC8\u9A8C\u7533\u62A5",8,Q),d("a",{onClick:m=>f(Y).push({name:"finalInspectionDeclareDetail",query:{id:o.row.id}})},"\u8BE6\u60C5",8,X)]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{ne as default};
