1 |
- import{_ as b,d as k,cp as y,m as p,cs as A,w as E,r as c,o as f,A as d,x as i,h as N,u as m,D as w,H as B,a as I}from"./index.56449854.js";import{s as _,c as g}from"./content.config.45171125.js";import{u as F}from"./use-page-search.59eb5443.js";import{i as P}from"./isBeyondTime.b16fe52f.js";import{f as R}from"./export.a2ce61c0.js";import"./createRequset.56e9fc42.js";import"./isBeyondTime.ddc44ee0.js";import"./calc.f00124e1.js";import"./xlsx.ed122d16.js";const u="receivableManager",S=k({__name:"all",setup(T){const{hasPermissionWithCode:h}=y(u),r=p(null),l=A(),v={pageSearchHook:()=>F(e=>({result:{...e}}),e=>({result:{...e}}),_)},n=p(_);E(()=>l.level,e=>{const{formItems:a}=n.value,t=a.findIndex(({field:o})=>o==="depart_id"),{itemid:s=""}=l.info||{};Number(e)===2&&(n.value.formItems[t].disbaled=Number(e)===2,n.value.formItems[t].defaultValue=s)},{immediate:!0});async function C(){const e=r.value.getBasicParams()||{},{start:a,end:t}=e;if(P({start:a,end:t,len:30}))return;const o=r.value.getData();R({columns:g.columns,name:"\u4E1A\u52A1\u7ECF\u7406\u65E5\u62A5.xlsx",data:o})}return(e,a)=>{const t=c("el-button"),s=c("page-container"),o=c("page-auth");return f(),d(o,{"page-name":u},{default:i(()=>[N(s,{hooks:v,"page-name":u,"get-content-ref":x=>r.value=x,"content-config":m(g),"search-config":n.value},{content_header:i(()=>[m(h)("9")?(f(),d(t,{key:0,onClick:C,size:"small",icon:m(w)("arrow-up-line"),type:"primary"},{default:i(()=>[B("\u5BFC\u51FA")]),_:1},8,["icon"])):I("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var G=b(S,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/receivableManager/components/all.vue"]]);export{G as default};
|