import{_ as y,d as w,cT as A,m as d,cl as b,d0 as R,w as S,r as c,o as _,A as g,x as i,h as T,u as n,D as B,H as E,a as F}from"./index.d0c68291.js";import{s as l,c as I}from"./content.config.ec6b7dec.js";import{u as N}from"./use-page-search.f8fe5a6b.js";import{i as P}from"./isBeyondTime.2be61112.js";import{h as V}from"./export.8d59e752.js";import"./isBeyondTime.e55d9c20.js";import"./createRequset.2a519b90.js";const u="consult",D=w({__name:"all",setup(H){const{hasPermissionWithCode:h}=A(u),m=d(null),s=b(!1),p=R(),f=d(l),v={pageSearchHook:()=>N(void 0,void 0,l)},x={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};S(()=>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,...x,isAdmin:!1,name:"\u7ADE\u4EF7\u5355\u62A5\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/consultInfoListExport"})}return(e,t)=>{const o=c("el-button"),a=c("page-container"),r=c("page-auth");return _(),g(r,{"page-name":u},{default:i(()=>[T(a,{hooks:v,"page-name":u,"get-content-ref":k=>m.value=k,"content-config":n(I),"search-config":n(l)},{content_header:i(()=>[n(h)("9")?(_(),g(o,{key:0,onClick:C,size:"small",icon:n(B)("arrow-up-line"),type:"primary"},{default:i(()=>[E("\u5BFC\u51FA")]),_:1},8,["icon"])):F("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var J=y(D,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/consult/components/all.vue"]]);export{J as default};
