all.e4f59632.js 1.7 KB

1
  1. import{_ as k,d as y,cT as B,m as d,cl as N,d0 as w,w as I,r as c,o as _,A as h,x as i,h as b,u as a,D as A,H as F,a as R}from"./index.2e9457cc.js";import{s as l,c as T}from"./content.config.58f4b2e3.js";import{u as E}from"./use-page-search.ea0049a0.js";import{i as P}from"./isBeyondTime.2cbd0624.js";import{h as V}from"./export.a52061a5.js";import"./createRequset.3978c053.js";import"./xlsx.ed122d16.js";const u="consultInfoBidsSumNot",D=y({__name:"all",setup(H){const{hasPermissionWithCode:g}=B(u),m=d(null),s=N(!1),p=w(),f=d(l),v={pageSearchHook:()=>E(void 0,void 0,l)},x={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};I(()=>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;P({start:t,end:o,len:30})||await V({params:e,...x,isAdmin:!1,name:"\u672A\u91C7\u53CD\u4FE1\u606F\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/purchase/consultInfoBidsSumNotExport"})}return(e,t)=>{const o=c("el-button"),n=c("page-container"),r=c("page-auth");return _(),h(r,{"page-name":u},{default:i(()=>[b(n,{hooks:v,"page-name":u,"get-content-ref":S=>m.value=S,"content-config":a(T),"search-config":a(l)},{content_header:i(()=>[a(g)("9")?(_(),h(o,{key:0,onClick:C,size:"small",icon:a(A)("arrow-up-line"),type:"primary"},{default:i(()=>[F("\u5BFC\u51FA")]),_:1},8,["icon"])):R("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var K=k(D,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/consultInfoBidsSumNot/components/all.vue"]]);export{K as default};