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