import{_ as k,d as y,m as p,cl as R,cU as w,d1 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.e80c366d.js";import{s as P,c as F,a as D}from"./content.config.4cb1a786.js";import{h as I}from"./export.6f50dc45.js";import{u as E}from"./use-page-search.e3e95470.js";import{u as U,a as V}from"./useBusinessQuery.00e2ea8d.js";import"./createRequset.60472412.js";import"./xlsx.ed122d16.js";import"./lodash.92db800d.js";const q="unshipped",H=y({__name:"business",setup(L){const i=p(null),s=R(!1),{hasPermissionWithCode:g}=w(q),c=B(),{searchConfig:t}=U({sourceConfig:P,queryField:"companyNo"}),u=p(t),{contentConfig:C}=V({sourceConfig:F,apis:{httpList:D.list}}),_={pageSearchHook:()=>E(void 0,void 0,t)};N(()=>c.level,e=>{const{formItems:l}=u.value,n=l.findIndex(({field:r})=>r==="depart_id"),{itemid:a=""}=c.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=i.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=>i.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 J=k(H,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/unshipped/components/business.vue"]]);export{J as default};
