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-DXvjTqMr.js";import{d as g}from"./index.D3kEQn5y.js";import{B as j}from"./index.CVWg71nP.js";import{e as y}from"./examineTab.vue_vue_type_style_index_0_scoped_b90844f4_lang.B0wm4HZ2.js";import{e as v}from"./examineTab.DzUtEbps.js";import{g as I}from"./index.C_bCAwVj.js";import{_ as w}from"./formBox.BxO3VLiI.js";import{c as D}from"./assessment.C7cFhOQt.js";import{u as T}from"./useVerifyCode.DQiHoo7S.js";import{c as k}from"./business.KmXA2f2I.js";import{_ as B}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-nav-bar.BZJJc0Hh.js";import"./uni-icons.Dxt3pfrw.js";/* empty css                                                                  *//* empty css                                                                    *//* empty css                                                              *//* empty css                                                              */import"./uni-row.DufxBgTC.js";import"./uni-dateformat.R_eYMhRe.js";import"./uni-list.DC8Q_4GY.js";import"./uni-badge.BiEW0hVl.js";import"./passed.ChLrPDzE.js";import"./refuse.CZtpHAer.js";import"./revoke.jEFcy-58.js";import"./index.Bd3eRv6X.js";/* empty css                                                              */import"./examineListItem.CgNYmAnI.js";import"./moment.BD7_iMEL.js";import"./uploadFromList.C6U-Mux_.js";import"./file.u5oGG8Vo.js";import"./uni-datetime-picker.DoXFjUWA.js";import"./uni-datetime-picker.vue_vue_type_style_index_0_scoped_6f474695_lang.U38A_nZ2.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};
