import{_ as B,d as k,cU as w,m as d,cl as A,d1 as P,w as b,r as c,o as _,A as h,x as i,h as D,u as n,D as F,H as R,a as S}from"./index.aedafc85.js";import{s as u,c as E}from"./content.config.a6dd64b8.js";import{u as N}from"./use-page-search.76f1460d.js";import{i as T}from"./isBeyondTime.4a671960.js";import{h as I}from"./export.443e72b5.js";import"./createRequset.72613757.js";import"./xlsx.ed122d16.js";const l="purcheaseOrderPersonMonth",V=k({__name:"all",setup(M){const{hasPermissionWithCode:g}=w(l),m=d(null),s=A(!1),p=P(),f=d(u),v={pageSearchHook:()=>N(void 0,void 0,u)},x={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};b(()=>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_day:t,end_day:o}=e;T({start:t,end:o,len:30})||await I({params:e,...x,isAdmin:!1,name:"\u4F9B\u5E94\u5546\u8D1F\u8D23\u4EBA\u91C7\u8D2D\u8BA2\u5355\u60C5\u51B5.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/purcheaseOrderPersonMonthExport"})}return(e,t)=>{const o=c("el-button"),a=c("page-container"),r=c("page-auth");return _(),h(r,{"page-name":l},{default:i(()=>[D(a,{hooks:v,"page-name":l,"get-content-ref":y=>m.value=y,"content-config":n(E),"search-config":n(u)},{content_header:i(()=>[n(g)("9")?(_(),h(o,{key:0,onClick:C,size:"small",icon:n(F)("arrow-up-line"),type:"primary"},{default:i(()=>[R("\u5BFC\u51FA")]),_:1},8,["icon"])):S("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var G=B(V,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/purcheaseOrderPersonMonth/components/all.vue"]]);export{G as default};
