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