import{u as e,e as a,Q as t,a9 as s,r as i,aa as n,f as r,g as o,h as m,w as p,a as l,B as d,K as u,x as _,z as c,o as x,i as h,_ as b,aq as f}from"./index-B3cqKsI_.js";import{_ as j}from"./uni-search-bar.BeJhs2X5.js";import{e as y}from"./examineTab.vue_vue_type_style_index_0_scoped_b90844f4_lang.DyULTjCs.js";import{e as g}from"./examineTab.B_KDxHCt.js";import{e as w,c as v}from"./assessment.C7cFhOQt.js";import{u as D}from"./useVerifyCode.Bz5RnOqO.js";import{c as I}from"./business.DGgyidim.js";import{_ as T}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-icons.EqO7jntL.js";/* 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";const C=T({__name:"search",setup(T){e((e=>({aabf4348:l(F)})));const C=a({typeIndex:0,tabIndex:0,examineTabData:[],listData:[],emptyTitle:"暂无搜索结果～",where:{limit:10,page:1,types:0,name:""}}),{height:F,getBarHeight:V}=D(),N=d();t((()=>{V(".cr-position-header",N)})),s((e=>{e.type&&e.type>1?C.examineTabData=w:C.examineTabData=v;const a=C.examineTabData.length-1;e.index&&(e.index>a?C.tabIndex=a:C.tabIndex=Number(e.index))}));const Q=()=>{C.where.name="",C.listData=[]},k=()=>{b()},B=()=>{C.where.page=1,C.where.name?L(!0):Q()},K=e=>{C.where.page>1&&f(),C.tabIndex=e.index,C.where.page=1,C.where.name?L(!0):Q()},L=(e=!1)=>{const a=C.examineTabData[C.tabIndex].id;C.typeIndex=Number(a),a<0?(C.where.types=0,C.where.verify_status=5):(C.where.types=1,C.where.verify_status=a),q(e)},O=i(!1),q=(e=!1)=>{I(C.where).then((a=>{e&&(C.listData=[]),C.listData.push(...a.data.list);const t=Math.ceil(a.data.count/C.where.limit);C.listData.length<=0||C.where.page>=t?O.value=!1:O.value=!0,u()})).catch((e=>{_.error(e.message)}))};return n((()=>{O.value&&(C.where.page++,q())})),(e,a)=>{const t=c,s=r(o("uni-search-bar"),j);return x(),m(t,{class:"content"},{default:p((()=>[h(t,{class:"cr-position-header"},{default:p((()=>[h(t,{class:"status_bar"}),h(t,{class:"default-search"},{default:p((()=>[h(s,{onConfirm:B,placeholder:"请填写人员姓名搜索",onFocus:B,focus:!0,bgColor:"#F0F1F5",modelValue:C.where.name,"onUpdate:modelValue":a[0]||(a[0]=e=>C.where.name=e),onClear:Q,onCancel:k},null,8,["modelValue"])])),_:1}),h(g,{"examine-tab-data":C.examineTabData,onChange:K,index:C.tabIndex},null,8,["examine-tab-data","index"])])),_:1}),h(t,{class:"examine-content m10"},{default:p((()=>[h(y,{"list-data":C.listData,"type-index":C.typeIndex,"empty-title":C.emptyTitle},null,8,["list-data","type-index","empty-title"])])),_:1})])),_:1})}}},[["__scopeId","data-v-3c5098a6"]]);export{C as default};
