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