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