import{_ as v,d as x,m as i,cl as y,cU as B,d1 as k,r as u,o as l,A as m,x as p,u as e,D as S,H as N,a as b}from"./index.e80c366d.js";import{s as F,c as R,a as P}from"./content.config.c62bb34d.js";import{h as w}from"./export.6f50dc45.js";import{i as A}from"./isBeyondTime.85391023.js";import{u as T}from"./use-page-search.e3e95470.js";import{u as E,a as I}from"./useBusinessQuery.00e2ea8d.js";import"./createRequset.60472412.js";import"./xlsx.ed122d16.js";import"./lodash.92db800d.js";const D="consultInfoBidsSumNot",U=x({__name:"business",setup(q){const a=i(null),o=y(!1),{hasPermissionWithCode:f}=B(D);k();const{searchConfig:s}=E({sourceConfig:F,queryField:"companyNo"});i(s);const{contentConfig:d}=I({sourceConfig:R,apis:{httpList:P.list}}),C={pageSearchHook:()=>T(void 0,void 0,s)},g={onSuccess:()=>o.value=!1,onStart:()=>o.value=!0,onFail:()=>o.value=!1};async function _(){const n=a.value.getBasicParams()||{},{start:r,end:t}=n;A({start:r,end:t,len:30})||await w({isAdmin:!1,name:"\u672A\u91C7\u53CD\u4FE1\u606F\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/purchase/consultInfoBidsSumNotExport",...g,params:n})}return(n,r)=>{const t=u("el-button"),c=u("PageContainer");return l(),m(c,{hooks:C,getContentRef:h=>a.value=h,"content-config":e(d),"search-config":e(s),lockKey:"companyNo"},{content_header:p(()=>[e(f)("18")?(l(),m(t,{key:0,icon:e(S)("arrow-up-line"),onClick:_,size:"small",type:"primary"},{default:p(()=>[N("\u5BFC\u51FA")]),_:1},8,["icon"])):b("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var J=v(U,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/consultInfoBidsSumNot/components/business.vue"]]);export{J as default};
