import{_ as k,d as y,m as p,cl as R,cT as w,d0 as B,w as N,r as m,o as f,A as d,x as h,u as o,D as S,H as b,a as A}from"./index.d0c68291.js";import{s as P,c as F,a as D}from"./content.config.172f22ca.js";import{h as I}from"./export.8d59e752.js";import{u as E}from"./use-page-search.f8fe5a6b.js";import{u as T,a as V}from"./useBusinessQuery.0cfc7001.js";import"./createRequset.2a519b90.js";import"./lodash.ae569796.js";const q="unshipped",H=y({__name:"business",setup(L){const c=p(null),s=R(!1),{hasPermissionWithCode:g}=w(q),i=B(),{searchConfig:t}=T({sourceConfig:P,queryField:"companyNo"}),u=p(t),{contentConfig:C}=V({sourceConfig:F,apis:{httpList:D.list}}),_={pageSearchHook:()=>E(void 0,void 0,t)};N(()=>i.level,e=>{const{formItems:l}=u.value,n=l.findIndex(({field:r})=>r==="depart_id"),{itemid:a=""}=i.info||{};Number(e)===2&&(u.value.formItems[n].defaultValue=a)},{immediate:!0});const v={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};async function x(){const e=c.value.getBasicParams()||{};await I({isAdmin:!1,name:"\u672A\u53D1\u8D27\u62A5\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/orderNoOutListExport",...v,params:e})}return(e,l)=>{const n=m("el-button"),a=m("PageContainer");return f(),d(a,{hooks:_,getContentRef:r=>c.value=r,"content-config":o(C),"search-config":o(t),lockKey:"companyNo"},{content_header:h(()=>[o(g)("18")?(f(),d(n,{key:0,icon:o(S)("arrow-up-line"),onClick:x,size:"small",type:"primary"},{default:h(()=>[b("\u5BFC\u51FA")]),_:1},8,["icon"])):A("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var G=k(H,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/unshipped/components/business.vue"]]);export{G as default};
