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