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