import{e,a9 as s,r as t,K as a,x as i,aa as o,f as l,g as n,h as r,w as m,z as d,o as u,i as _,k as p,l as c,F as f,j,t as y,N as v,m as x,O as g}from"./index-WeUkftbp.js";import{_ as h,a as k}from"./uni-row.DLutFlIQ.js";import{_ as b}from"./uni-dateformat.CAFQ6hZt.js";import{_ as w,a as D}from"./uni-list.D2b1m_I0.js";import{_ as C}from"./examine.CLOTCpEn.js";import{_ as L}from"./passed.ChLrPDzE.js";import{_ as M}from"./refuse.CZtpHAer.js";import{_ as T}from"./revoke.jEFcy-58.js";import{d as F}from"./index.BcUDVLb2.js";import{e as H}from"./index.D8Jasx-l.js";/* empty css                                                              */import{_ as I}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{g as K}from"./index.NTbA_2SX.js";import{e as N}from"./examineListItem.DPWnq2AM.js";import{c as O}from"./business.Bp32YIvd.js";import"./uni-icons.B3nCnuXe.js";/* empty css                                                                  */import"./uni-badge.CLrZv6EZ.js";import"./uni-nav-bar.cBITQXNK.js";/* empty css                                                                    *//* empty css                                                              *//* empty css                                                              */import"./moment.BD7_iMEL.js";import"./uploadFromList.BbGpiZUD.js";import"./file.BMc01nZQ.js";const S=I({__name:"mine",setup(I){const S=e({defaultTitle:"",customStyle:{border:"none",lineHeight:"20px",background:"#ED4014"},listData:[],where:{limit:10,page:1,types:0,approve_id:""}});s((e=>{e.id&&(S.id=e.id,S.where.approve_id=e.id,S.defaultTitle=e.name?e.name:"申请审批",z())}));const $=e=>{x(`/pages/users/examine/defaults?id=${e.id}`)},q=t(!1),z=()=>{O(S.where).then((e=>{S.listData.push(...e.data.list);const s=Math.ceil(e.data.count/S.where.limit);S.listData.length<=0||S.where.page>=s?q.value=!1:q.value=!0,a()})).catch((e=>{i.error(e.message)}))};return o((()=>{q.value&&(S.where.page++,z())})),(e,s)=>{const t=d,a=l(n("uni-col"),h),i=l(n("uni-dateformat"),b),o=l(n("uni-row"),k),x=g,I=l(n("uni-list-item"),w),O=l(n("uni-list"),D);return u(),r(t,{class:"content"},{default:m((()=>[_(t,{class:"cr-position-header"},{default:m((()=>[_(t,{class:"status_bar"}),_(F,{"default-title":S.defaultTitle},null,8,["default-title"])])),_:1}),_(t,{class:"examine-content m10"},{default:m((()=>[S.listData.length>0?(u(),r(O,{key:0,border:!1},{default:m((()=>[(u(!0),p(f,null,c(S.listData,((e,s)=>(u(),r(I,{key:"list"+e.id},{body:m((()=>[_(t,{class:"item-list"},{default:m((()=>[e.card?(u(),r(t,{key:0,class:"item-list-top",onClick:s=>$(e)},{default:m((()=>[j(y(e.card.name)+"的"+y(e.approve.name),1)])),_:2},1032,["onClick"])):v("",!0),_(t,{class:"",onClick:s=>$(e)},{default:m((()=>[_(N,{content:e.content},null,8,["content"]),_(o,{class:"item-list-content"},{default:m((()=>[_(a,{span:6,class:"left"},{default:m((()=>[j("提交时间")])),_:1}),_(a,{span:18},{default:m((()=>[_(i,{format:"yyyy/MM/dd hh:mm",date:e.created_at},null,8,["date"])])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"]),0===e.status?(u(),r(x,{key:1,class:"item-list-status",src:C,mode:""})):v("",!0),1===e.status?(u(),r(x,{key:2,class:"item-list-status",src:L,mode:""})):v("",!0),2===e.status?(u(),r(x,{key:3,class:"item-list-status",src:M,mode:""})):v("",!0),-1===e.status?(u(),r(x,{key:4,class:"item-list-status",src:T,mode:""})):v("",!0)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(u(),r(H,{key:1,index:4,title:"暂无提交内容～"}))])),_:1}),_(K)])),_:1})}}},[["__scopeId","data-v-fb23fb13"]]);export{S as default};
