import{_ as w,d as A,cU as N,m as d,cl as R,d1 as S,w as y,r,o as _,A as h,x as c,h as b,u as o,D as B,H as D,a as F}from"./index.e80c366d.js";import{s as i,c as I}from"./content.config.4cb1a786.js";import{u as P}from"./use-page-search.e3e95470.js";import{h as V}from"./export.6f50dc45.js";import"./createRequset.60472412.js";import"./xlsx.ed122d16.js";const l="unshipped",E=A({__name:"all",setup(U){const{hasPermissionWithCode:g}=N(l),u=d(null),t=R(!1),p=S(),m=d(i),v={pageSearchHook:()=>P(void 0,void 0,i)},x={onSuccess:()=>t.value=!1,onStart:()=>t.value=!0,onFail:()=>t.value=!1};y(()=>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 V({params:e,...x,isAdmin:!1,name:"\u672A\u53D1\u8D27\u62A5\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/orderNoOutListExport"})}return(e,f)=>{const a=r("el-button"),n=r("page-container"),s=r("page-auth");return _(),h(s,{"page-name":l},{default:c(()=>[b(n,{hooks:v,"page-name":l,"get-content-ref":k=>u.value=k,"content-config":o(I),"search-config":o(i)},{content_header:c(()=>[o(g)("9")?(_(),h(a,{key:0,onClick:C,size:"small",icon:o(B)("arrow-up-line"),type:"primary"},{default:c(()=>[D("\u5BFC\u51FA")]),_:1},8,["icon"])):F("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var O=w(E,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/unshipped/components/all.vue"]]);export{O as default};
