business.9ce7190a.js 1.9 KB

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