1 |
- import{m as i,_ as k,d as D,cl as F,cp as R,cs as S,r as g,o as _,A as h,x as v,u as r,D as E,H as N,a as P,S as x}from"./index.56449854.js";import{s as b,c as w,a as A}from"./content.config.80983a28.js";import{h as I}from"./export.a2ce61c0.js";import{u as j}from"./use-page-search.59eb5443.js";import{l as q}from"./lodash.0da4bba2.js";import{u as z}from"./useBusinessQuery.537f9a8c.js";import"./calc.f00124e1.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";const c={index:2,name:"relaComName",code:"relaComNo"};function H(f){const{sourceConfig:t,apis:s,insertBusinessField:u=c}=f,o=i(q.exports.cloneDeep(t)),{columns:a}=o.value,{index:l=c.index,name:d=c.name,code:C=c.code}=u,p=a.splice(l);return o.value.apis=s,o.value.columns=a.concat(p),{contentConfig:o}}const O="returnInvoiceStats",T=D({__name:"business",setup(f){const t=i(null),s=F(!1),{hasPermissionWithCode:u}=R(O);i(0),S();const{searchConfig:o}=z({sourceConfig:b,queryField:"companyNo"});i(o);const{contentConfig:a}=H({sourceConfig:w,apis:{httpList:A.list}}),l={pageSearchHook:()=>j(({month:e})=>{const n=x(e).endOf("month").date();return{result:{month:[e+"-01",e+"-"+n]},deleteProps:[]}},({month:e})=>{const n=x(e).endOf("month").date();return{result:{month:[e+"-01",e+"-"+n]},deleteProps:[]}},o)},d={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1},C={content:{}};async function p(){const e=t.value.getBasicParams()||{},{month:n,companyNo:m}=e;await I({isAdmin:!1,name:"\u56DE\u7968\u4ED8\u6B3E\u6BCF\u6708\u7EDF\u8BA1.xlsx",fileType:"aplication/x-msexecl",url:"/admin/everyday/EveryDzExport",params:{month:n,companyNo:m},...d})}return(e,n)=>{const m=g("el-button"),y=g("PageContainer");return _(),h(y,{hooks:l,getContentRef:B=>t.value=B,"content-config":r(a),"search-config":r(o),lockKey:"companyNo",events:C},{content_header:v(()=>[r(u)("18")?(_(),h(m,{key:0,icon:r(E)("arrow-up-line"),onClick:p,size:"small",type:"primary"},{default:v(()=>[N("\u5BFC\u51FA")]),_:1},8,["icon"])):P("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var Q=k(T,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/financeReport/returnInvoiceStats/components/business.vue"]]);export{Q as default};
|