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