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 l,z as _,o as x,i as c,m as b,aq as h}from"./index-B3cqKsI_.js";import{d as g}from"./index.CL60Q41z.js";import{B as f}from"./index.0khhkIFD.js";import{e as j}from"./examineTab.vue_vue_type_style_index_0_scoped_b90844f4_lang.DyULTjCs.js";import{e as y}from"./examineTab.B_KDxHCt.js";import{g as v}from"./index.CVKsP8q3.js";import{_ as w}from"./formBox.DceuzAE2.js";import{c as I}from"./assessment.C7cFhOQt.js";import{u as D}from"./useVerifyCode.Bz5RnOqO.js";import{c as T}from"./business.DGgyidim.js";import{_ as k}from"./_plugin-vue_export-helper.BCo6x5W8.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 B=k({__name:"approve",setup(k){e((e=>({"5ebce790":u(H)})));const B=t({typeIndex:0,tabIndex:0,tabId:1,defaultTitle:"待处理",emptyTitle:"当前暂无审批内容～",customStyle:{border:"none",lineHeight:"20px",background:"#ED4014"},examineTabData:I,listData:[],where:{limit:10,page:1,types:0,status:"",time:"",approve_id:""}}),{height:H,getBarHeight:N}=D(),C=l();a((()=>{N(".cr-position-header",C)})),s((e=>{const t=B.examineTabData.length-1;e.id?(e.id>t?B.tabIndex=t:B.tabIndex=Number(e.id),O()):O()}));const L=t([{type:1,icon:"icon-sousuo"}]),Q=e=>{b(`/pages/users/examine/search?index=${B.tabIndex}&type=1`)},J=e=>{B.where.page>1&&h(),B.tabId=e.id,B.tabIndex=e.index,B.where.page=1,O(!0)},K=e=>{B.where.page=1,B.where.status=e.status,B.where.time=e.time,B.where.approve_id=e.approveId,O(!0)},O=(e=!1)=>{B.defaultTitle=B.examineTabData[B.tabIndex].name;const t=B.examineTabData[B.tabIndex].id;B.typeIndex=Number(t),B.where.types=1,B.where.verify_status=t,$(e)},S=i(!1),$=(e=!1)=>{T(B.where).then((t=>{e&&(B.listData=[]),B.listData.push(...t.data.list);const a=Math.ceil(t.data.count/B.where.limit);B.listData.length<=0||B.where.page>=a?S.value=!1:S.value=!0,n()})).catch((e=>{r.error(e.message)}))};return p((()=>{S.value&&(B.where.page++,$())})),o((()=>{B.where.page=1,B.value=!1,B.listData=[],$()})),(e,t)=>{const a=_;return x(),d(a,{class:"content"},{default:m((()=>[c(a,{class:"cr-position-header"},{default:m((()=>[c(a,{class:"status_bar"}),c(g,{"jump-url":"/pages/workbench/index","default-title":B.defaultTitle,"is-right":!0,"right-data":L,onHandleNarItem:Q},null,8,["default-title","right-data"]),c(y,{"examine-tab-data":B.examineTabData,index:B.tabIndex,onChange:J},null,8,["examine-tab-data","index"]),c(w,{onChange:K,status:B.tabId,type:"approve"},null,8,["status"])])),_:1}),c(a,{class:"examine-content m10"},{default:m((()=>[c(j,{"list-data":B.listData,"type-index":B.typeIndex,"empty-title":B.emptyTitle},null,8,["list-data","type-index","empty-title"])])),_:1}),c(v),c(a,{class:"uni-p-b-98"}),c(f,{type:2,"page-path":"/pages/users/examine/approve"})])),_:1})}}},[["__scopeId","data-v-4f252286"]]);export{B as default};
