import{u as e,e as t,Q as a,a9 as s,r as i,K as n,x as r,aa as p,J as o,h as d,w as m,a as u,B as _,z as l,o as x,i as c,ci as b,m as f,aq as h}from"./index-Dnh6GPlT.js";import{d as g}from"./index.C9RyZqIW.js";import{B as j}from"./index.B0ZEKuEV.js";import{e as y}from"./examineTab.vue_vue_type_style_index_0_scoped_b90844f4_lang.CUfRhsS8.js";import{e as v}from"./examineTab.BgM_sqL3.js";import{g as I}from"./index.pjiugiR4.js";import{_ as w}from"./formBox.BW8y_s57.js";import{c as D}from"./assessment.C7cFhOQt.js";import{u as T}from"./useVerifyCode.BZsFpwrY.js";import{c as k}from"./business.B0hIPKPC.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-row.C8l4_QpR.js";import"./uni-dateformat.C-BKL-OF.js";import"./uni-list.Y9x-0uJ_.js";import"./uni-badge.B-SCmJj5.js";import"./passed.ChLrPDzE.js";import"./refuse.CZtpHAer.js";import"./revoke.jEFcy-58.js";import"./index.ZMpzRqor.js";/* empty css                                                              */import"./examineListItem.DLm4Ta0N.js";import"./moment.BD7_iMEL.js";import"./uploadFromList.mXfmvSyj.js";import"./file.Clzwct6P.js";import"./uni-datetime-picker.BvABLVwC.js";import"./uni-datetime-picker.vue_vue_type_style_index_0_scoped_6f474695_lang.CKy4NM-m.js";const H=B({__name:"approve",setup(B){e((e=>({"0d28d595":u(N)})));const H=t({typeIndex:0,tabIndex:0,tabId:1,defaultTitle:"待处理",emptyTitle:"当前暂无审批内容～",customStyle:{border:"none",lineHeight:"20px",background:"#ED4014"},examineTabData:D,listData:[],where:{limit:10,page:1,types:0,status:"",time:"",approve_id:""}}),{height:N,getBarHeight:C}=T(),L=_();a((()=>{C(".cr-position-header",L)})),s((e=>{const t=H.examineTabData.length-1;e.id?(e.id>t?H.tabIndex=t:H.tabIndex=Number(e.id),S()):S()}));const Q=t([{type:1,icon:"icon-sousuo"}]),J=e=>{f(`/pages/users/examine/search?index=${H.tabIndex}&type=1`)},K=e=>{H.where.page>1&&h(),H.tabId=e.id,H.tabIndex=e.index,H.where.page=1,S(!0)},O=e=>{H.where.page=1,H.where.status=e.status,H.where.time=e.time,H.where.approve_id=e.approveId,S(!0)},S=(e=!1)=>{H.defaultTitle=H.examineTabData[H.tabIndex].name;const t=H.examineTabData[H.tabIndex].id;H.typeIndex=Number(t),H.where.types=1,H.where.verify_status=t,q(e)},$=i(!1),q=(e=!1)=>{k(H.where).then((t=>{e&&(H.listData=[]),H.listData.push(...t.data.list);const a=Math.ceil(t.data.count/H.where.limit);H.listData.length<=0||H.where.page>=a?$.value=!1:$.value=!0,n()})).catch((e=>{r.error(e.message)}))};return p((()=>{$.value&&(H.where.page++,q())})),o((()=>{H.where.page=1,H.value=!1,H.listData=[],q()})),(e,t)=>{const a=l;return x(),d(a,{class:"content"},{default:m((()=>[c(a,{class:"cr-position-header"},{default:m((()=>[c(a,{class:"status_bar"}),c(g,{"default-title":H.defaultTitle,"is-right":!0,"right-data":Q,onHandleNarItem:J,"back-func":u(b)},null,8,["default-title","right-data","back-func"]),c(v,{"examine-tab-data":H.examineTabData,index:H.tabIndex,onChange:K},null,8,["examine-tab-data","index"]),c(w,{onChange:O,status:H.tabId,type:"approve"},null,8,["status"])])),_:1}),c(a,{class:"examine-content m10"},{default:m((()=>[c(y,{"list-data":H.listData,"type-index":H.typeIndex,"empty-title":H.emptyTitle},null,8,["list-data","type-index","empty-title"])])),_:1}),c(I),c(a,{class:"uni-p-b-98"}),c(j,{type:2,"page-path":"/pages/users/examine/approve"})])),_:1})}}},[["__scopeId","data-v-4ca3095c"]]);export{H as default};
