import{_ as y,d as w,cU as A,m as d,cl as B,d1 as F,w as T,r as c,o as _,A as h,x as i,h as b,u as n,D as R,H as S,a as E}from"./index.e80c366d.js";import{s as l,c as N}from"./content.config.52742a48.js";import{u as I}from"./use-page-search.e3e95470.js";import{i as P}from"./isBeyondTime.85391023.js";import{h as V}from"./export.6f50dc45.js";import"./createRequset.60472412.js";import"./xlsx.ed122d16.js";const u="consultOrder",z=w({__name:"all",setup(D){const{hasPermissionWithCode:g}=A(u),m=d(null),s=B(!1),p=F(),f=d(l),x={pageSearchHook:()=>I(void 0,void 0,l)},v={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};T(()=>p.level,e=>{const{formItems:t}=f.value,o=t.findIndex(({field:r})=>r==="depart_id"),{itemid:a=""}=p.info||{};Number(e)===2&&(f.value.formItems[o].defaultValue=a)},{immediate:!0});async function C(){const e=m.value.getBasicParams()||{},{start:t,end:o}=e;P({start:t,end:o,len:30})||await V({params:e,...v,isAdmin:!1,name:"\u7ADE\u4EF7\u5355\u603B\u6570\u5BFC\u51FA.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/purchase/zixunTotalExport"})}return(e,t)=>{const o=c("el-button"),a=c("page-container"),r=c("page-auth");return _(),h(r,{"page-name":u},{default:i(()=>[b(a,{hooks:x,"page-name":u,"get-content-ref":k=>m.value=k,"content-config":n(N),"search-config":n(l)},{content_header:i(()=>[n(g)("9")?(_(),h(o,{key:0,onClick:C,size:"small",icon:n(R)("arrow-up-line"),type:"primary"},{default:i(()=>[S("\u5BFC\u51FA")]),_:1},8,["icon"])):E("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var J=y(z,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/zixunTotal/components/all.vue"]]);export{J as default};
