import{d as e,r as t,e as a,Q as s,b7 as i,K as p,ah as r,x as n,aa as _,J as o,o as l,h as u,w as d,i as c,a as m,aq as y,m as h,z as f}from"./index-WeUkftbp.js";import{d as v}from"./index.BcUDVLb2.js";import{B as g}from"./index.Cu5Lzzw4.js";import{_ as j,r as x}from"./formBox.CPQxWc6b.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-nav-bar.cBITQXNK.js";import"./uni-icons.B3nCnuXe.js";/* empty css                                                                  *//* empty css                                                                    *//* empty css                                                              *//* empty css                                                              */import"./uni-dateformat.CAFQ6hZt.js";import"./uni-row.DLutFlIQ.js";import"./uni-list.D2b1m_I0.js";import"./uni-badge.CLrZv6EZ.js";import"./index.D8Jasx-l.js";/* empty css                                                              */import"./index.d2K7R4mP.js";import"./default-avatar.BAKNUlXW.js";/* empty css                                                              */import"./uni-datetime-picker.QyfaTtNF.js";import"./uni-datetime-picker.vue_vue_type_style_index_0_scoped_6f474695_lang.DnlGrpUa.js";const w=b(e({__name:"check",setup(e){const b=t("暂无提交的汇报～"),w=a([{name:"我提交的",type:"mine",types:"tab"},{name:"我收到的",type:"receive",types:"tab"}]),D=a([{type:1,icon:"icon-sousuo",types:"icon"}]),k=a({selectType:"mine",where:{finish:"",type:0,types:"",time:"",user_id:"",page:1,limit:10,scope_frame:"self"},listData:[]}),T=t(!1);s((()=>{I()}));const I=(e=!1)=>{k.where.type="mine"===k.selectType?0:1,i(k.where).then((t=>{e&&(k.listData=[]),k.listData.push(...t.data.list);const a=Math.ceil(t.data.count/k.where.limit);k.listData.length<=0||k.where.page>=a?T.value=!1:T.value=!0,p()})).catch((e=>{r(),n.error(e.message)}))},B=e=>{e&&(k.where.types=e.status||"",k.where.time=e.time||"",k.where.user_id=e.approveId||"",k.where.page=1,I(!0))},H=e=>{"tab"===e.types?(k.selectType=e.type,"mine"==e.type?k.where.scope_frame="self":"receive"==e.type&&(k.where.scope_frame="all"),y()):h(`/pages/users/report/search?type=${k.selectType}`)};return _((()=>{T.value&&(k.where.page++,I())})),o((()=>{k.where.page=1,T.value=!1,k.listData=[],I()})),(e,t)=>{const a=f;return l(),u(a,{class:"content"},{default:d((()=>[c(a,{class:"cr-position-header"},{default:d((()=>[c(a,{class:"status_bar"}),c(m(v),{"jump-url":"/pages/workbench/index",index:1,"default-type":1,"tab-data":w,"is-right":!0,"right-data":D,onHandleNarItem:H},null,8,["tab-data","right-data"]),c(a,{class:"bar-search"},{default:d((()=>[c(j,{type:k.selectType,onChange:B},null,8,["type"])])),_:1})])),_:1}),c(a,{class:"report-content m10"},{default:d((()=>[c(x,{"list-data":k.listData,"empty-title":b.value},null,8,["list-data","empty-title"])])),_:1}),c(a,{class:"uni-p-b-98"}),c(m(g),{type:1,"page-path":"/pages/users/report/check"})])),_:1})}}}),[["__scopeId","data-v-6f67494b"]]);export{w as default};
