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-Cg3FU-dV.js";import{d as y}from"./index.D_hliqYM.js";import{B as g}from"./index.C_aYDizf.js";import{e as j}from"./examineTab.vue_vue_type_style_index_0_scoped_b90844f4_lang.o_lCZF--.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{g as v}from"./index.vG6WzeDr.js";import{_ as w}from"./formBox.vrYgbAQH.js";import{e as I}from"./assessment.C7cFhOQt.js";import{u as D}from"./useVerifyCode.CrYQp_Od.js";import{c as T}from"./business.D15ulJLJ.js";import"./uni-nav-bar.BXgu2eq7.js";import"./uni-icons.D_sy4NxH.js";/* empty css                                                                  *//* empty css                                                                    *//* empty css                                                              *//* empty css                                                              */import"./uni-row.DfI4R5V8.js";import"./uni-dateformat.D7mTxFoD.js";import"./uni-list.B5vvSfhy.js";import"./uni-badge.AEsViQRE.js";import"./passed.ChLrPDzE.js";import"./refuse.CZtpHAer.js";import"./revoke.jEFcy-58.js";import"./index.Dozy1JgX.js";/* empty css                                                              */import"./examineListItem.BVe0Jq6v.js";import"./moment.BD7_iMEL.js";import"./uploadFromList.TGn3SBWs.js";import"./file.Hbk8zQoO.js";import"./uni-datetime-picker.h8Ix41Za.js";import"./uni-datetime-picker.vue_vue_type_style_index_0_scoped_6f474695_lang.CEqmT57_.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};
