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,m as h}from"./index-B3cqKsI_.js";import{d as f}from"./index.CL60Q41z.js";import{B as g}from"./index.0khhkIFD.js";import{e as j}from"./examineTab.vue_vue_type_style_index_0_scoped_b90844f4_lang.DyULTjCs.js";import{_ as y}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{g as v}from"./index.CVKsP8q3.js";import{_ as b}from"./formBox.DceuzAE2.js";import{e as w}from"./assessment.C7cFhOQt.js";import{u as I}from"./useVerifyCode.Bz5RnOqO.js";import{c as D}from"./business.DGgyidim.js";import"./uni-nav-bar.xE5Um1Eb.js";import"./uni-icons.EqO7jntL.js";/* empty css                                                                  *//* empty css                                                                    *//* empty css                                                              *//* empty css                                                              */import"./uni-row.DyJ89Jxj.js";import"./uni-dateformat.DQ4pg8Wo.js";import"./uni-list.zT2ADjW3.js";import"./uni-badge.D3PXVPFA.js";import"./passed.ChLrPDzE.js";import"./refuse.CZtpHAer.js";import"./revoke.jEFcy-58.js";import"./index.GhHyI8tz.js";/* empty css                                                              */import"./examineListItem.B6yml2Gi.js";import"./moment.BD7_iMEL.js";import"./uploadFromList.kO4gonbo.js";import"./file.D3W-3X-4.js";import"./uni-datetime-picker.BOA05J9e.js";import"./uni-datetime-picker.vue_vue_type_style_index_0_scoped_6f474695_lang.AgOLQYUm.js";const T=y({__name:"center",setup(y){e((e=>({"68a7d823":_(k)})));const T=t({typeIndex:0,tabIndex:0,defaultTitle:"待处理",emptyTitle:"当前暂无审批内容～",customStyle:{border:"none",lineHeight:"20px",background:"#ED4014"},examineTabData:w,listData:[],where:{limit:10,page:1,types:0,status:"",time:"",approve_id:""}}),{height:k,getBarHeight:B}=I(),H=u();a((()=>{B(".cr-position-header",H)})),s((e=>{const t=T.examineTabData.length-1;e.id?(e.id>t?T.tabIndex=t:T.tabIndex=Number(e.id),J()):J()}));const N=t([{type:1,icon:"icon-sousuo"}]),L=e=>{h(`/pages/users/examine/search?index=${T.tabIndex}&type=2`)},C=e=>{T.where.page=1,T.where.status=e.status,T.where.time=e.time,T.where.approve_id=e.approveId,J(!0)},J=(e=!1)=>{T.defaultTitle=T.examineTabData[T.tabIndex].name;const t=T.examineTabData[T.tabIndex].id;T.typeIndex=Number(t),t<0?T.where.types=0:(T.where.types=1,T.where.verify_status=t),O(e)},K=i(!1),O=(e=!1)=>{D(T.where).then((t=>{e&&(T.listData=[]),T.listData.push(...t.data.list);const a=Math.ceil(t.data.count/T.where.limit);T.listData.length<=0||T.where.page>=a?K.value=!1:K.value=!0,r()})).catch((e=>{n.error(e.message)}))};return o((()=>{K.value&&(T.where.page++,O())})),p((()=>{T.where.page=1,T.value=!1,T.listData=[],O()})),(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(f,{"jump-url":"/pages/workbench/index","default-title":T.defaultTitle,"is-right":!0,"right-data":N,onHandleNarItem:L},null,8,["default-title","right-data"]),x(b,{onChange:C})])),_:1}),x(a,{class:"examine-content m10"},{default:d((()=>[x(j,{"list-data":T.listData,"type-index":T.typeIndex,"empty-title":T.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-a9f2a53a"]]);export{T as default};
