You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

todoList-74059707.js 3.9KB

1
  1. import{_ as R,G as z,E as V,x as P,a as G,r as c,o as h,b as n,c as F,L as I,h as t,f as e,e as v,i as N,u as j,j as w,t as q,k as J,a9 as K,aC as Q}from"./index-dd5fae99.js";import{u as W}from"./useExportExc-f315048b.js";const X={class:"flex"},Z={class:"flex justify-between items-center p-5"},ee=["onClick"],ae=J({name:"waitMeToHandle"}),te=Object.assign(ae,{props:{column:{type:Array,default:void 0},state:String,exportData:{type:Array,default:void 0}},emits:["toHandle"],setup(g,{emit:C}){const{notAppendNum:le,appendNum:oe}=z(V.countStore)||0,_=g,M=P(),T=C,l=G({buildOrgName:void 0,projectYear:void 0,projectName:void 0,times:void 0}),D=()=>{s()},H=()=>{l.buildOrgName=void 0,l.projectYear=void 0,l.projectName=void 0,l.times=void 0,p.value.pageParams.pageNumber=1,p.value.pageParams.pageSize=10,s()},p=c(),x=c(0),y=c([]),s=async(d=p.value.pageParams)=>{var u,r;const a=await K(_.state,{...d,...l,createOnMin:(u=l.times)==null?void 0:u[0],createOnMax:(r=l.times)==null?void 0:r[1],times:void 0,projectYear:l.projectYear*1||void 0});x.value=a.data.total,y.value=a.data.records},i=c("0"),O=(d,a)=>{i.value=d.props.name,s()},L=d=>{T("toHandle",d)},{exportLoading:S,exportData:B}=W(),A=()=>{B(()=>{var d,a;return Q(_.state,{...l,createOnMin:((d=l.times)==null?void 0:d[0])||void 0,createOnMax:((a=l.times)==null?void 0:a[1])||void 0,projectYear:l.projectYear*1||void 0,exportOptionList:_.exportData,isTemporaryAugment:i.value})})};return h(async()=>{s(),V.countStore.setTodoNumsStore()}),(d,a)=>{const u=n("el-input"),r=n("el-form-item"),m=n("el-col"),Y=n("el-date-picker"),f=n("el-row"),b=n("el-button"),E=n("el-form"),k=n("el-card"),ne=n("el-tab-pane"),U=n("el-tabs"),$=n("table-list");return F(),I(f,null,{default:t(()=>[e(k,{class:"w-full search"},{default:t(()=>[e(E,{model:l,size:"small","label-suffix":":"},{default:t(()=>[e(f,{gutter:16,class:"mb-16"},{default:t(()=>[e(m,{span:8},{default:t(()=>[e(r,{label:"项目名称"},{default:t(()=>[e(u,{modelValue:l.projectName,"onUpdate:modelValue":a[0]||(a[0]=o=>l.projectName=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:8},{default:t(()=>[e(r,{label:"项目单位"},{default:t(()=>[e(u,{modelValue:l.buildOrgName,"onUpdate:modelValue":a[1]||(a[1]=o=>l.buildOrgName=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:8},{default:t(()=>[e(r,{label:"预算年度"},{default:t(()=>[e(Y,{modelValue:l.projectYear,"onUpdate:modelValue":a[2]||(a[2]=o=>l.projectYear=o),type:"year","value-format":"YYYY",placeholder:"请选择"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(f,{gutter:16},{default:t(()=>[e(m,{span:10},{default:t(()=>[e(r,{label:"发起时间"},{default:t(()=>[e(Y,{modelValue:l.times,"onUpdate:modelValue":a[3]||(a[3]=o=>l.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}),e(m,{span:14},{default:t(()=>[e(r,{class:"btn"},{default:t(()=>[v("div",X,[e(b,{type:"primary",onClick:D},{default:t(()=>a[5]||(a[5]=[N("查询")])),_:1}),e(b,{onClick:H},{default:t(()=>a[6]||(a[6]=[N("重置")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(k,{class:"w-full mt-8 tab-card"},{header:t(()=>[v("div",Z,[e(U,{modelValue:i.value,"onUpdate:modelValue":a[4]||(a[4]=o=>i.value=o),onTabClick:O},{default:t(()=>[w("",!0),w("",!0)]),_:1},8,["modelValue"]),e(b,{type:"primary",plain:"",size:"small",loading:j(S),onClick:A},{default:t(()=>a[7]||(a[7]=[N("导出")])),_:1},8,["loading"])])]),default:t(()=>[e($,{ref_key:"tableListRef",ref:p,column:g.column,data:y.value,total:x.value,onGetTableData:s},{action:t(({scope:o})=>[v("a",{onClick:de=>L(o.row)},q(j(M).name==="waitMeToHandle"&&(o.row.processStatusName==="审核中"||o.row.processStatusName==="被退回")?"处理":"详情"),9,ee)]),_:1},8,["column","data","total"])]),_:1})]),_:1})}}}),ue=R(te,[["__scopeId","data-v-591626a8"]]);export{ue as default};