1 |
- import{_ as y,d as B,m as l,cl as S,cT as k,d0 as N,w as b,r as f,o as p,A as d,x as C,u as n,D as R,H as w,a as F}from"./index.2e9457cc.js";import{s as I,c as P,a as T}from"./content.config.58f4b2e3.js";import{h as A}from"./export.a52061a5.js";import{i as E}from"./isBeyondTime.2cbd0624.js";import{u as D}from"./use-page-search.ea0049a0.js";import{u as V,a as q}from"./useBusinessQuery.47fbf468.js";import"./createRequset.3978c053.js";import"./xlsx.ed122d16.js";import"./lodash.53dc519d.js";const H="consultInfoBidsSumNot",U=B({__name:"business",setup(j){const c=l(null),a=S(!1),{hasPermissionWithCode:g}=k(H),u=N(),{searchConfig:i}=V({sourceConfig:I,queryField:"companyNo"}),m=l(i),{contentConfig:h}=q({sourceConfig:P,apis:{httpList:T.list}}),_={pageSearchHook:()=>D(void 0,void 0,i)};b(()=>u.level,e=>{const{formItems:s}=m.value,o=s.findIndex(({field:r})=>r==="depart_id"),{itemid:t=""}=u.info||{};Number(e)===2&&(m.value.formItems[o].defaultValue=t)},{immediate:!0});const v={onSuccess:()=>a.value=!1,onStart:()=>a.value=!0,onFail:()=>a.value=!1};async function x(){const e=c.value.getBasicParams()||{},{start:s,end:o}=e;E({start:s,end:o,len:30})||await A({isAdmin:!1,name:"\u672A\u91C7\u53CD\u4FE1\u606F\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/purchase/consultInfoBidsSumNotExport",...v,params:e})}return(e,s)=>{const o=f("el-button"),t=f("PageContainer");return p(),d(t,{hooks:_,getContentRef:r=>c.value=r,"content-config":n(h),"search-config":n(i),lockKey:"companyNo"},{content_header:C(()=>[n(g)("18")?(p(),d(o,{key:0,icon:n(R)("arrow-up-line"),onClick:x,size:"small",type:"primary"},{default:C(()=>[w("\u5BFC\u51FA")]),_:1},8,["icon"])):F("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var Q=y(U,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/consultInfoBidsSumNot/components/business.vue"]]);export{Q as default};
|