all.acd5ec8f.js 1.9 KB

1
  1. import{_ as k,d as w,cp as I,m as d,cl as R,cs as b,w as A,r as c,o as _,A as g,x as i,h as P,u as a,D as B,H as D,a as E,S as h}from"./index.56449854.js";import{s as l,c as F}from"./content.config.80983a28.js";import{u as N}from"./use-page-search.59eb5443.js";import{i as T}from"./isBeyondTime.b16fe52f.js";import{h as V}from"./export.a2ce61c0.js";import"./calc.f00124e1.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";const u="returnInvoiceStats",j=w({__name:"all",setup(H){const{hasPermissionWithCode:v}=I(u),p=d(null),s=R(!1),m=b(),f=d(l),x={pageSearchHook:()=>N(({month:e})=>{const t=h(e).endOf("month").date();return{result:{month:[e+"-01",e+"-"+t]},deleteProps:[]}},({month:e})=>{const t=h(e).endOf("month").date();return{result:{month:[e+"-01",e+"-"+t]},deleteProps:[]}},l)},C={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};A(()=>m.level,e=>{const{formItems:t}=f.value,o=t.findIndex(({field:r})=>r==="depart_id"),{itemid:n=""}=m.info||{};Number(e)===2&&(f.value.formItems[o].defaultValue=n)},{immediate:!0});async function y(){const e=p.value.getBasicParams()||{},{start:t,end:o}=e;T({start:t,end:o,len:30})||await V({params:e,...C,isAdmin:!1,name:"\u7ADE\u4EF7\u5355\u62A5\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/consultInfoListExport"})}return(e,t)=>{const o=c("el-button"),n=c("page-container"),r=c("page-auth");return _(),g(r,{"page-name":u},{default:i(()=>[P(n,{hooks:x,"page-name":u,"get-content-ref":S=>p.value=S,"content-config":a(F),"search-config":a(l)},{content_header:i(()=>[a(v)("9")?(_(),g(o,{key:0,onClick:y,size:"small",icon:a(B)("arrow-up-line"),type:"primary"},{default:i(()=>[D("\u5BFC\u51FA")]),_:1},8,["icon"])):E("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var K=k(j,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/financeReport/returnInvoiceStats/components/all.vue"]]);export{K as default};