1 |
- import{s as r,c as S}from"./content.config.6c0d0a3d.js";import{d as k,cT as B,l as d,cl as b,d0 as w,w as I,r as i,o as _,z as g,v as u,f as R,u as a,C as T,H as E,G as F}from"./index.12539bc7.js";import{u as N}from"./use-page-search.bd08a5db.js";import{i as A}from"./isBeyondTime.37822da1.js";import{h as P}from"./export.a56fa246.js";import"./createRequset.c52757eb.js";import"./xlsx.ed122d16.js";const l="consultInfoBidsSum",j=k({__name:"all",setup(V){const{hasPermissionWithCode:h}=B(l),m=d(null),s=b(!1),f=w(),p=d(r),x={pageSearchHook:()=>N(void 0,void 0,r)},C={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};I(()=>f.level,e=>{const{formItems:t}=p.value,o=t.findIndex(({field:c})=>c==="depart_id"),{itemid:n=""}=f.info||{};Number(e)===2&&(p.value.formItems[o].defaultValue=n)},{immediate:!0});async function v(){const e=m.value.getBasicParams()||{},{start:t,end:o}=e;A({start:t,end:o,len:30})||await P({params:e,...C,isAdmin:!1,name:"\u7ADE\u4EF7\u53CD\u9988\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/purchase/consultInfoBidsSumExport"})}return(e,t)=>{const o=i("el-button"),n=i("page-container"),c=i("page-auth");return _(),g(c,{"page-name":l},{default:u(()=>[R(n,{hooks:x,"page-name":l,"get-content-ref":y=>m.value=y,"content-config":a(S),"search-config":a(r)},{content_header:u(()=>[a(h)("9")?(_(),g(o,{key:0,onClick:v,size:"small",icon:a(T)("arrow-up-line"),type:"primary"},{default:u(()=>[E("\u5BFC\u51FA")]),_:1},8,["icon"])):F("",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});export{j as default};
|