business.fccbfd80.js 1.8 KB

1
  1. import{_ as y,d as k,m as l,cl as B,cT as b,d0 as R,w,r as f,o as p,A as d,x as g,u as n,D as S,H as A,a as N}from"./index.0ae106f0.js";import{s as P,c as T,a as F}from"./content.config.bd7a00de.js";import{h as I}from"./export.e35d0526.js";import{i as E}from"./isBeyondTime.be2c375c.js";import{u as V}from"./use-page-search.dd23dee3.js";import{u as q,a as D}from"./useBusinessQuery.dc254982.js";import"./isBeyondTime.b8d8ab42.js";import"./createRequset.68e3a4aa.js";import"./lodash.7512ecb8.js";const H="frontOrder",L=k({__name:"business",setup(O){const c=l(null),a=B(!1),{hasPermissionWithCode:C}=b(H),u=R(),{searchConfig:r}=q({sourceConfig:P,queryField:"companyNo"}),m=l(r),{contentConfig:_}=D({sourceConfig:T,apis:{httpList:F.list}}),h={pageSearchHook:()=>V(void 0,void 0,r)};w(()=>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;E({start:s,end:o,len:90})||await I({isAdmin:!1,name:"\u8BA2\u5355\u62A5\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/orderListExport",...v,params:e})}return(e,s)=>{const o=f("el-button"),t=f("PageContainer");return p(),d(t,{hooks:h,getContentRef:i=>c.value=i,"content-config":n(_),"search-config":n(r),lockKey:"companyNo"},{content_header:g(()=>[n(C)("18")?(p(),d(o,{key:0,icon:n(S)("arrow-up-line"),onClick:x,size:"small",type:"primary"},{default:g(()=>[A("\u5BFC\u51FA")]),_:1},8,["icon"])):N("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var Q=y(L,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/frontOrder/components/business.vue"]]);export{Q as default};