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