import{_ as b,d as k,cU as y,m as p,d1 as A,w as E,r as c,o as f,A as d,x as i,h as N,u as m,D as w,H as B,a as I}from"./index.e80c366d.js";import{s as _,c as g}from"./content.config.69c43c8c.js";import{u as F}from"./use-page-search.e3e95470.js";import{i as P}from"./isBeyondTime.85391023.js";import{f as R}from"./export.6f50dc45.js";import"./createRequset.60472412.js";import"./isBeyondTime.e174d920.js";import"./calc.3602fe08.js";import"./xlsx.ed122d16.js";const u="receivableManager",S=k({__name:"all",setup(T){const{hasPermissionWithCode:h}=y(u),r=p(null),l=A(),v={pageSearchHook:()=>F(e=>({result:{...e}}),e=>({result:{...e}}),_)},n=p(_);E(()=>l.level,e=>{const{formItems:a}=n.value,t=a.findIndex(({field:o})=>o==="depart_id"),{itemid:s=""}=l.info||{};Number(e)===2&&(n.value.formItems[t].disbaled=Number(e)===2,n.value.formItems[t].defaultValue=s)},{immediate:!0});async function C(){const e=r.value.getBasicParams()||{},{start:a,end:t}=e;if(P({start:a,end:t,len:30}))return;const o=r.value.getData();R({columns:g.columns,name:"\u4E1A\u52A1\u7ECF\u7406\u65E5\u62A5.xlsx",data:o})}return(e,a)=>{const t=c("el-button"),s=c("page-container"),o=c("page-auth");return f(),d(o,{"page-name":u},{default:i(()=>[N(s,{hooks:v,"page-name":u,"get-content-ref":x=>r.value=x,"content-config":m(g),"search-config":n.value},{content_header:i(()=>[m(h)("9")?(f(),d(t,{key:0,onClick:C,size:"small",icon:m(w)("arrow-up-line"),type:"primary"},{default:i(()=>[B("\u5BFC\u51FA")]),_:1},8,["icon"])):I("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var G=b(S,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/receivableManager/components/all.vue"]]);export{G as default};
