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-Dnh6GPlT.js";import{d as v}from"./index.C9RyZqIW.js";import{B as g}from"./index.B0ZEKuEV.js";import{_ as j,r as x}from"./formBox.D31XCb-z.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-nav-bar.Bf2crVgQ.js";import"./uni-icons.C_vWVLAq.js";/* empty css                                                                  *//* empty css                                                                    *//* empty css                                                              *//* empty css                                                              */import"./uni-dateformat.C-BKL-OF.js";import"./uni-row.C8l4_QpR.js";import"./uni-list.Y9x-0uJ_.js";import"./uni-badge.B-SCmJj5.js";import"./index.ZMpzRqor.js";/* empty css                                                              */import"./index.DpKG4AQp.js";import"./default-avatar.BAKNUlXW.js";/* empty css                                                              */import"./uni-datetime-picker.BvABLVwC.js";import"./uni-datetime-picker.vue_vue_type_style_index_0_scoped_6f474695_lang.CKy4NM-m.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};
