import{_ as b,d as k,cT as y,m as p,d0 as E,w as N,r as c,o as f,A as d,x as i,h as w,u as m,D as A,H as B,a as I}from"./index.d0c68291.js";import{s as _,c as g}from"./content.config.7f8c0fbc.js";import{u as T}from"./use-page-search.f8fe5a6b.js";import{i as F}from"./isBeyondTime.2be61112.js";import{f as P}from"./export.8d59e752.js";import"./createRequset.2a519b90.js";import"./isBeyondTime.e55d9c20.js";import"./calc.3602fe08.js";const u="receivableManager",R=k({__name:"all",setup(S){const{hasPermissionWithCode:h}=y(u),r=p(null),l=E(),v={pageSearchHook:()=>T(e=>({result:{...e}}),e=>({result:{...e}}),_)},n=p(_);N(()=>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].disabled=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(F({start:a,end:t,len:30}))return;const o=r.value.getData();P({columns:g.columns,name:"\u9879\u76EE\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(()=>[w(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(A)("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 q=b(R,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/receivableManager/components/all.vue"]]);export{q as default};
