import{u as e,e as t,Q as a,a9 as s,r as i,K as r,x as n,aa as o,J as p,h as m,w as d,a as _,B as u,z as l,o as c,i as x,ci as f,m as h}from"./index-WeUkftbp.js";import{d as y}from"./index.BcUDVLb2.js";import{B as g}from"./index.Cu5Lzzw4.js";import{e as j}from"./examineTab.vue_vue_type_style_index_0_scoped_b90844f4_lang.U5wAgJ5F.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{g as v}from"./index.NTbA_2SX.js";import{_ as w}from"./formBox.DRs9q17k.js";import{e as I}from"./assessment.C7cFhOQt.js";import{u as D}from"./useVerifyCode.Bm9sm4v1.js";import{c as T}from"./business.Bp32YIvd.js";import"./uni-nav-bar.cBITQXNK.js";import"./uni-icons.B3nCnuXe.js";/* empty css                                                                  *//* empty css                                                                    *//* empty css                                                              *//* empty css                                                              */import"./uni-row.DLutFlIQ.js";import"./uni-dateformat.CAFQ6hZt.js";import"./uni-list.D2b1m_I0.js";import"./uni-badge.CLrZv6EZ.js";import"./passed.ChLrPDzE.js";import"./refuse.CZtpHAer.js";import"./revoke.jEFcy-58.js";import"./index.D8Jasx-l.js";/* empty css                                                              */import"./examineListItem.DPWnq2AM.js";import"./moment.BD7_iMEL.js";import"./uploadFromList.BbGpiZUD.js";import"./file.BMc01nZQ.js";import"./uni-datetime-picker.QyfaTtNF.js";import"./uni-datetime-picker.vue_vue_type_style_index_0_scoped_6f474695_lang.DnlGrpUa.js";const k=b({__name:"center",setup(b){e((e=>({"22b994c2":_(B)})));const k=t({typeIndex:0,tabIndex:0,defaultTitle:"待处理",emptyTitle:"当前暂无审批内容～",customStyle:{border:"none",lineHeight:"20px",background:"#ED4014"},examineTabData:I,listData:[],where:{limit:10,page:1,types:0,status:"",time:"",approve_id:""}}),{height:B,getBarHeight:H}=D(),N=u();a((()=>{H(".cr-position-header",N)})),s((e=>{const t=k.examineTabData.length-1;e.id?(e.id>t?k.tabIndex=t:k.tabIndex=Number(e.id),K()):K()}));const L=t([{type:1,icon:"icon-sousuo"}]),C=e=>{h(`/pages/users/examine/search?index=${k.tabIndex}&type=2`)},J=e=>{k.where.page=1,k.where.status=e.status,k.where.time=e.time,k.where.approve_id=e.approveId,K(!0)},K=(e=!1)=>{k.defaultTitle=k.examineTabData[k.tabIndex].name;const t=k.examineTabData[k.tabIndex].id;k.typeIndex=Number(t),t<0?k.where.types=0:(k.where.types=1,k.where.verify_status=t),Q(e)},O=i(!1),Q=(e=!1)=>{T(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?O.value=!1:O.value=!0,r()})).catch((e=>{n.error(e.message)}))};return o((()=>{O.value&&(k.where.page++,Q())})),p((()=>{k.where.page=1,k.value=!1,k.listData=[],Q()})),(e,t)=>{const a=l;return c(),m(a,{class:"content"},{default:d((()=>[x(a,{class:"cr-position-header"},{default:d((()=>[x(a,{class:"status_bar"}),x(y,{"default-title":k.defaultTitle,"is-right":!0,"right-data":L,onHandleNarItem:C,"back-func":_(f)},null,8,["default-title","right-data","back-func"]),x(w,{onChange:J})])),_:1}),x(a,{class:"examine-content m10"},{default:d((()=>[x(j,{"list-data":k.listData,"type-index":k.typeIndex,"empty-title":k.emptyTitle},null,8,["list-data","type-index","empty-title"])])),_:1}),x(v),x(a,{class:"uni-p-b-98"}),x(g,{type:2,"page-path":"/pages/users/examine/center"})])),_:1})}}},[["__scopeId","data-v-766f8e06"]]);export{k as default};
