business.7aeacc39.js 1.8 KB

1
  1. import{_ as y,d as B,m as l,cl as S,cp as k,cs as b,w as R,r as f,o as p,A as d,x as C,u as t,D as w,H as I,a as F}from"./index.56449854.js";import{s as N,c as P,a as A}from"./content.config.e7231e5e.js";import{h as E}from"./export.a2ce61c0.js";import{i as T}from"./isBeyondTime.b16fe52f.js";import{u as D}from"./use-page-search.59eb5443.js";import{u as V,a as q}from"./useBusinessQuery.7bd11851.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";import"./lodash.0da4bba2.js";const H="consultInfoBidsSum",U=B({__name:"business",setup(j){const c=l(null),a=S(!1),{hasPermissionWithCode:g}=k(H),u=b(),{searchConfig:i}=V({sourceConfig:N,queryField:"companyNo"}),m=l(i),{contentConfig:h}=q({sourceConfig:P,apis:{httpList:A.list}}),_={pageSearchHook:()=>D(void 0,void 0,i)};R(()=>u.level,e=>{const{formItems:s}=m.value,o=s.findIndex(({field:r})=>r==="depart_id"),{itemid:n=""}=u.info||{};Number(e)===2&&(m.value.formItems[o].defaultValue=n)},{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;T({start:s,end:o,len:30})||await E({isAdmin:!1,name:"\u7ADE\u4EF7\u53CD\u9988\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/purchase/consultInfoBidsSumExport",...v,params:e})}return(e,s)=>{const o=f("el-button"),n=f("PageContainer");return p(),d(n,{hooks:_,getContentRef:r=>c.value=r,"content-config":t(h),"search-config":t(i),lockKey:"companyNo"},{content_header:C(()=>[t(g)("18")?(p(),d(o,{key:0,icon:t(w)("arrow-up-line"),onClick:x,size:"small",type:"primary"},{default:C(()=>[I("\u5BFC\u51FA")]),_:1},8,["icon"])):F("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var Q=y(U,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/consultInfoBidsSum/components/business.vue"]]);export{Q as default};