import{_ as y,d as b,cp as k,m as l,cs as N,w,r as c,o as f,A as d,x as i,h as A,u as m,D as B,H as D,a as I}from"./index.56449854.js";import{s as _,c as g}from"./content.config.3e15cbbb.js";import{u as E}from"./use-page-search.59eb5443.js";import{i as P}from"./isBeyondTime.b16fe52f.js";import{f as R}from"./export.a2ce61c0.js";import"./createRequset.56e9fc42.js";import"./isBeyondTime.ddc44ee0.js";import"./calc.f00124e1.js";import"./xlsx.ed122d16.js";const p="reportDaily",S=b({__name:"all",setup(T){const{hasPermissionWithCode:h}=k(p),r=l(null),u=N(),v={pageSearchHook:()=>E(void 0,void 0,_)},n=l(_);w(()=>u.level,o=>{const{formItems:a}=n.value,e=a.findIndex(({field:t})=>t==="depart_id"),{itemid:s=""}=u.info||{};Number(o)===2&&(n.value.formItems[e].disabled=Number(o)===2,n.value.formItems[e].defaultValue=s)},{immediate:!0});async function x(){const o=r.value.getBasicParams()||{},{start:a,end:e}=o;if(P({start:a,end:e,len:30}))return;const t=r.value.getData();R({columns:g.columns,name:"\u65E5\u62A5.xlsx",data:t})}return(o,a)=>{const e=c("el-button"),s=c("page-container"),t=c("page-auth");return f(),d(t,{"page-name":p},{default:i(()=>[A(s,{hooks:v,"page-name":p,"get-content-ref":C=>r.value=C,"content-config":m(g),"search-config":n.value},{content_header:i(()=>[m(h)("9")?(f(),d(e,{key:0,onClick:x,size:"small",icon:m(B)("arrow-up-line"),type:"primary"},{default:i(()=>[D("\u5BFC\u51FA")]),_:1},8,["icon"])):I("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var J=y(S,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/reportDaily/components/all.vue"]]);export{J as default};