|
- import{a as P}from"./index-b6aa4cff.js";import{E as $,y as S,a as y,r as v,o as q,b as n,c as _,d as j,f as e,h as l,F as V,H as G,u as Y,L as W,e as m,i as g,j as I,k as J}from"./index-dd5fae99.js";import{u as K}from"./useExportExc-f315048b.js";import{l as Q}from"./delayApply-7439b69f.js";import X from"./applyDialog-c057748f.js";import"./uploadAction-3962500e.js";const Z={class:"flex"},ee={class:"flex justify-between"},te=["onClick"],ae=["onClick"],le=J({name:"delayApply"}),me=Object.assign(le,{setup(oe){const{projectTypeOptions:h}=$.dictStore.globalDicts||{},N=S(),t=y({projectType:void 0,status:void 0,projectYear:void 0,projectName:void 0,createOnMin:void 0,createOnMax:void 0,times:[]}),T=y([{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"}]),k=v([]),u=v(),s=async(r=u.value.pageParams)=>{var c,d;const a=await Q({...r,...t,createOnMin:(c=t.times)==null?void 0:c[0],createOnMax:(d=t.times)==null?void 0:d[1],projectYear:t.projectYear*1||void 0,times:void 0});k.value=a.data.records,x.value=a.data.total},x=v(2),C=()=>{s()},O=()=>{t.projectYear=void 0,t.projectName=void 0,t.projectType=void 0,t.createOnMin=void 0,t.createOnMax=void 0,t.times=void 0,u.value.pageParams.pageNumber=1,u.value.pageParams.pageSize=10,s()},{exportLoading:H,exportData:A}=K(),E=()=>{A(()=>{var r,a;return P(10,{...t,createOnMin:(r=t.times)==null?void 0:r[0],createOnMax:(a=t.times)==null?void 0:a[1],projectYear:t.projectYear*1||void 0,times:void 0})})},L=r=>{i.visible=!0,i.data=r},i=y({visible:void 0,data:void 0}),B=r=>{i.visible=!1,r&&s()};return q(async()=>{s()}),(r,a)=>{const c=n("el-input"),d=n("el-form-item"),p=n("el-col"),R=n("el-option"),U=n("el-select"),w=n("el-date-picker"),M=n("el-row"),b=n("el-button"),z=n("el-form"),D=n("el-card"),F=n("table-list");return _(),j(V,null,[e(D,{class:"w-full search"},{default:l(()=>[e(z,{model:t,size:"small","label-suffix":":"},{default:l(()=>[e(M,{gutter:16,class:"mb-16"},{default:l(()=>[e(p,{span:8},{default:l(()=>[e(d,{label:"项目名称"},{default:l(()=>[e(c,{modelValue:t.projectName,"onUpdate:modelValue":a[0]||(a[0]=o=>t.projectName=o),maxlength:"50",placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:6},{default:l(()=>[e(d,{label:"项目类型"},{default:l(()=>[e(U,{modelValue:t.projectType,"onUpdate:modelValue":a[1]||(a[1]=o=>t.projectType=o),placeholder:"全部",class:"w-full"},{default:l(()=>[(_(!0),j(V,null,G(Y(h),(o,f)=>(_(),W(R,{key:f,label:o,value:f},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(p,{span:10},{default:l(()=>[e(d,{label:"计划验收时间"},{default:l(()=>[e(w,{modelValue:t.times,"onUpdate:modelValue":a[2]||(a[2]=o=>t.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}),e(M,{gutter:24},{default:l(()=>[e(p,{span:12},{default:l(()=>[e(d,{label:"创建时间"},{default:l(()=>[e(w,{modelValue:t.times,"onUpdate:modelValue":a[3]||(a[3]=o=>t.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}),e(p,{span:12},{default:l(()=>[e(d,{class:"btn"},{default:l(()=>[m("div",Z,[e(b,{type:"primary",onClick:C},{default:l(()=>a[4]||(a[4]=[g("查询")])),_:1}),e(b,{onClick:O},{default:l(()=>a[5]||(a[5]=[g("重置")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(D,{class:"w-full mt-8"},{header:l(()=>[m("div",ee,[a[7]||(a[7]=m("span",null,"列表",-1)),m("div",null,[e(b,{type:"primary",size:"small",plain:"",loading:Y(H),onClick:E},{default:l(()=>a[6]||(a[6]=[g(" 导出 ")])),_:1},8,["loading"])])])]),default:l(()=>[e(F,{ref_key:"tableListRef",ref:u,column:T,data:k.value,total:x.value,onGetTableData:s},{action:l(({scope:o})=>[o.row.canDelayApply?(_(),j("a",{key:0,onClick:f=>L(o.row)},"申请延期",8,te)):I("",!0),m("a",{onClick:f=>Y(N).push({name:"delayApplyDetail",query:{id:o.row.id}})},"详情",8,ae)]),_:1},8,["column","data","total"])]),_:1}),e(X,{visible:i.visible,data:i.data,onClose:B},null,8,["visible","data"])],64)}}});export{me as default};
|