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