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