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