|
- import{_ as R,d as z,C as P,B as V,x as G,b as h,r as c,o as F,c as n,e as I,G as q,i as t,h as e,g,j as v,u as j,k as w,t as J,a8 as K,aB as Q}from"./index.88314652.js";import{u as W}from"./useExportExc.d7823a98.js";const X={class:"flex"},Z={class:"flex justify-between items-center p-5"},ee=["onClick"],ae=z({name:"waitMeToHandle"}),te=Object.assign(ae,{props:{column:{type:Array,default:void 0},state:String,exportData:{type:Array,default:void 0}},emits:["toHandle"],setup(N,{emit:C}){const{notAppendNum:le,appendNum:oe}=P(V.countStore)||0,_=N,M=G(),T=C,l=h({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()},B=d=>{T("toHandle",d)},{exportLoading:S,exportData:L}=W(),A=()=>{L(()=>{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 F(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"),U=n("el-form"),k=n("el-card"),ne=n("el-tab-pane"),$=n("el-tabs"),E=n("table-list");return I(),q(f,null,{default:t(()=>[e(k,{class:"w-full search"},{default:t(()=>[e(U,{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:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[e(u,{modelValue:l.projectName,"onUpdate:modelValue":a[0]||(a[0]=o=>l.projectName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:8},{default:t(()=>[e(r,{label:"\u9879\u76EE\u5355\u4F4D"},{default:t(()=>[e(u,{modelValue:l.buildOrgName,"onUpdate:modelValue":a[1]||(a[1]=o=>l.buildOrgName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:8},{default:t(()=>[e(r,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:t(()=>[e(Y,{modelValue:l.projectYear,"onUpdate:modelValue":a[2]||(a[2]=o=>l.projectYear=o),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(f,{gutter:16},{default:t(()=>[e(m,{span:10},{default:t(()=>[e(r,{label:"\u53D1\u8D77\u65F6\u95F4"},{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":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:14},{default:t(()=>[e(r,{class:"btn"},{default:t(()=>[g("div",X,[e(b,{type:"primary",onClick:D},{default:t(()=>a[5]||(a[5]=[v("\u67E5\u8BE2")])),_:1}),e(b,{onClick:H},{default:t(()=>a[6]||(a[6]=[v("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(k,{class:"w-full mt-8 tab-card"},{header:t(()=>[g("div",Z,[e($,{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]=[v("\u5BFC\u51FA")])),_:1},8,["loading"])])]),default:t(()=>[e(E,{ref_key:"tableListRef",ref:p,column:N.column,data:y.value,total:x.value,onGetTableData:s},{action:t(({scope:o})=>[g("a",{onClick:de=>B(o.row)},J(j(M).name==="waitMeToHandle"&&(o.row.processStatusName==="\u5BA1\u6838\u4E2D"||o.row.processStatusName==="\u88AB\u9000\u56DE")?"\u5904\u7406":"\u8BE6\u60C5"),9,ee)]),_:1},8,["column","data","total"])]),_:1})]),_:1})}}}),ue=R(te,[["__scopeId","data-v-591626a8"]]);export{ue as default};
|