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-Dnh6GPlT.js";import{_ as j}from"./uni-search-bar.BQvXEb_X.js";import{e as y}from"./examineTab.vue_vue_type_style_index_0_scoped_b90844f4_lang.CUfRhsS8.js";import{e as g}from"./examineTab.BgM_sqL3.js";import{e as w,c as v}from"./assessment.C7cFhOQt.js";import{u as D}from"./useVerifyCode.BZsFpwrY.js";import{c as I}from"./business.B0hIPKPC.js";import{_ as T}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-icons.C_vWVLAq.js";/* 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";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};