import{_ as w,d as S,cT as P,m as _,cl as R,d0 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.d0c68291.js";import{s as i,c as b}from"./content.config.64e53f21.js";import{u as I}from"./use-page-search.f8fe5a6b.js";import{h as U}from"./export.8d59e752.js";import"./createRequset.2a519b90.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:()=>I(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 U({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(b),"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 L=w(V,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/waitProcureStockUp/components/all.vue"]]);export{L as default};
