import{T as s,U as o,q as t,Q as e,c as a,w as r,i as l,o as i,t as n}from"./index-DL8B2Mxu.js";import{_ as c}from"./u-search.C1fh-wIV.js";import{r as p}from"./uni-app.es.BSVEa1f2.js";import{_ as m}from"./mescroll-body.DoI4hLy1.js";import{r as u}from"./resources.DipqUmnN.js";import{f as h}from"./flowBefore.CVOgWZ1y.js";import{M as d}from"./mescroll-mixins.DNza9FDh.js";import{f}from"./flowList.B6EodLYT.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./u-icon.CLOPtL2B.js";import"./u-tag.Bs11KZVx.js";const y=w({components:{flowlist:f},mixins:[d],data:()=>({keyword:"",opType:2,list:[],downOption:{use:!0,auto:!0},upOption:{page:{num:0,size:20,time:null},empty:{use:!0,icon:u.message.nodata,tip:"暂无数据",fixed:!0,top:"300rpx"},textNoMore:"没有更多数据",category:""}}),onLoad(s){this.category=s.category},onShow(){s("refresh",(()=>{this.list=[],this.mescroll.resetUpScroll()}))},onUnload(){o("refresh")},methods:{upCallback(s){let o={currentPage:s.num,pageSize:s.size,keyword:this.keyword,category:this.category};h(this.opType,o,{load:1==s.num}).then((o=>{let t;this.mescroll.endSuccess(o.data.list.length),1==s.num&&(this.list=[]);const e=o.data.list.map((s=>(t=1==s.status?u.status.adopt:10==s.status?u.status.frontSign:13==s.status?u.status.trun:u.status.refuse,{flowStatus:t,...s})));this.list=this.list.concat(e)})).catch((()=>{this.mescroll.endErr()}))},search(){this.searchTimer&&clearTimeout(this.searchTimer),this.searchTimer=setTimeout((()=>{this.list=[],this.mescroll.resetUpScroll()}),300)}}},[["render",function(s,o,u,h,d,f){const w=p(t("u-search"),c),y=l,g=e("flowlist"),_=p(t("mescroll-body"),m);return i(),a(y,{class:"flowDone-v"},{default:r((()=>[n(_,{ref:"mescrollRef",onInit:s.mescrollInit,onDown:s.downCallback,onUp:f.upCallback,sticky:!0,down:d.downOption,up:d.upOption},{default:r((()=>[n(y,{class:"search-box search-box_sticky"},{default:r((()=>[n(w,{placeholder:"请输入关键词搜索",modelValue:d.keyword,"onUpdate:modelValue":o[0]||(o[0]=s=>d.keyword=s),height:"72","show-action":!1,onChange:f.search,"bg-color":"#f0f2f6",shape:"square"},null,8,["modelValue","onChange"])])),_:1}),n(g,{list:d.list,opType:d.opType},null,8,["list","opType"])])),_:1},8,["onInit","onDown","onUp","down","up"])])),_:1})}],["__scopeId","data-v-8b32acda"]]);export{y as default};
