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-WeUkftbp.js";import{d as g}from"./index.BcUDVLb2.js";import{B as j}from"./index.Cu5Lzzw4.js";import{e as y}from"./examineTab.vue_vue_type_style_index_0_scoped_b90844f4_lang.U5wAgJ5F.js";import{e as v}from"./examineTab.DHKXvmLF.js";import{g as I}from"./index.NTbA_2SX.js";import{_ as w}from"./formBox.DRs9q17k.js";import{c as D}from"./assessment.C7cFhOQt.js";import{u as T}from"./useVerifyCode.Bm9sm4v1.js";import{c as k}from"./business.Bp32YIvd.js";import{_ as B}from"./_plugin-vue_export-helper.BCo6x5W8.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 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};
