import{ar as I,d as la,r as c,g as _a,N as oa,y as ia,S as ca,o as v,c as sa,j as k,i as a,a as r,dx as na,C as w,a6 as ma,w as e,l as _,k as P,t as m,aY as T,e7 as Y,F as pa,p as da,q as ua,_ as fa,H as ya,E as ha,n as ga,I as va,J as wa,K as xa,L as Ca,__tla as ba}from"./index-741bb3ba.js";import{_ as Ia,__tla as ka}from"./ContentWrap.vue_vue_type_script_setup_true_lang-906f7684.js";import{_ as Pa,__tla as Ta}from"./index.vue_vue_type_script_setup_true_lang-9577611e.js";import{f as Ya,__tla as Da}from"./formatTime-4ec22d04.js";import{d as j}from"./download-20922b56.js";import{_ as Na,__tla as Sa}from"./DailyBillForm.vue_vue_type_script_setup_true_lang-10753cbe.js";import{u as za,__tla as Ma}from"./useMessage-b0a47100.js";import{_ as Ra}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as qa}from"./el-card-3646e770.js";import{__tla as Ba}from"./index-442786e9.js";import{__tla as Fa}from"./Dialog-af7fff2f.js";import{__tla as Ha}from"./OrderIndex-4517da2a.js";import{__tla as Ua}from"./SPuUploadImg-9296d950.js";import{__tla as Va}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-0eaa0bc0.js";import{__tla as Ea}from"./index-cbaa0b4b.js";import{__tla as ja}from"./el-image-viewer-69a92123.js";import{__tla as Ja}from"./OrderBaseInfo-f8856daf.js";import{__tla as Ka}from"./index-03d47fe3.js";import{__tla as La}from"./dict-19d36537.js";import{__tla as Aa}from"./OrderProduct-d184596a.js";import{__tla as Ga}from"./el-descriptions-item-dc620923.js";import{__tla as Oa}from"./DictTag.vue_vue_type_script_lang-26daf8e2.js";import"./color-6e929987.js";import{__tla as Qa}from"./OrderComment-b3fc6b3b.js";import{__tla as Wa}from"./el-image-d15dfade.js";import{__tla as Xa}from"./OrderService-c16c0fdc.js";import{__tla as Za}from"./AfterSale-e92b6a71.js";import{__tla as $a}from"./index-8b378295.js";import{__tla as at}from"./OrderLogistics-77239011.js";import{__tla as tt}from"./el-timeline-item-7b2b7e17.js";import{__tla as rt}from"./index-ab013fa5.js";import{__tla as et}from"./orderPay-5d5fddef.js";import{__tla as lt}from"./OrderLogs-cb279895.js";import"./constants-e43f22dd.js";import{__tla as _t}from"./OrderDeliveryForm-16de6a7f.js";import{__tla as ot}from"./OrderUpdateRemarkForm-59aadf09.js";import{__tla as it}from"./OrderUpdateAddressForm.vue_vue_type_script_setup_true_lang-9ee6531a.js";import{__tla as ct}from"./el-tree-select-71f4229a.js";import{__tla as st}from"./index-85883e14.js";import"./tree-0af4953a.js";let J,nt=Promise.all([(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return st}catch{}})()]).then(async()=>{let D,N,S,z,M,R;D=async s=>await I.get({url:"/distri/daily-bill/page",params:s}),N=async s=>await I.download({url:"/distri/daily-bill/export-excel",params:s}),S=async s=>await I.download({url:"/trade/order/export-excel/dailyBill",params:s}),z={class:"search-one"},M={style:{"text-align":"right"},class:"search-input"},R={class:"searchMore",style:{width:"calc(100% - 60px)"}},J=Ra(la({name:"DailyBill",__name:"index",setup(s){const f=c(!1),K=()=>{f.value=!f.value},y=()=>{f.value=!1},q=za(),x=c(!0),B=c([]),F=c(0),l=_a({pageNo:1,pageSize:10,price:void 0,receivedPrice:void 0,orderCount:void 0,shopId:void 0,merchantId:void 0,orderIds:void 0,createTime:[],refundPrice:void 0,integral:void 0,receivedIntegral:void 0,refundIntegral:void 0,orderCalcTime:[]}),H=c(),p=c(!1),d=async()=>{x.value=!0;try{const h=await D(l);B.value=h.list,F.value=h.total}finally{x.value=!1}},U=()=>{l.pageNo=1,d(),y()},L=()=>{H.value.resetFields(),U(),y()},V=c(),A=async h=>{try{await q.exportConfirm(),p.value=!0;const o=await N(l);j.excel(o,"\u6BCF\u65E5\u8D26\u5355.xls")}catch{}finally{y(),p.value=!1}};return oa(()=>l.orderCalcTime,()=>{d()}),ia(()=>{d()}),(h,o)=>{const G=da,n=ua,C=fa,O=ya,Q=ha,W=ga,X=va,i=wa,Z=xa,$=Pa,aa=Ia,E=ca("hasPermi"),ta=Ca;return v(),sa(pa,null,[k("div",z,[k("div",M,[a(G,{modelValue:r(l).orderCalcTime,"onUpdate:modelValue":o[0]||(o[0]=t=>r(l).orderCalcTime=t),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u8D26\u5355\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u8D26\u5355\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"]),a(n,{icon:r(na),onClick:K,style:{"margin-left":"0"}},null,8,["icon"])])]),w(k("div",R,[a(X,{class:"mb-15px",model:r(l),ref_key:"queryFormRef",ref:H,inline:!0,"label-width":"120px"},{default:e(()=>[a(W,null,{default:e(()=>[a(Q,null,{default:e(()=>[a(O,null,{default:e(()=>[a(n,{onClick:y},{default:e(()=>[_(" \u6536\u8D77 ")]),_:1}),a(n,{onClick:L},{default:e(()=>[a(C,{class:"mr-5px",icon:"ep:refresh"}),_(" \u91CD\u7F6E ")]),_:1}),a(n,{onClick:U,plain:"",type:"primary"},{default:e(()=>[a(C,{class:"mr-5px",icon:"ep:search"}),_(" \u641C\u7D22 ")]),_:1}),w((v(),P(n,{type:"success",plain:"",onClick:A,loading:r(p)},{default:e(()=>[a(C,{icon:"ep:download",class:"mr-5px"}),_(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[E,["distri:daily-bill:export"]]])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[ma,r(f)]]),a(aa,{class:"mt-15px"},{default:e(()=>[w((v(),P(Z,{data:r(B),stripe:!0,"show-overflow-tooltip":!0,onRowClick:o[1]||(o[1]=t=>{return g=t,void V.value.open(g,b);var g,b}),"row-class-name":"row"},{default:e(()=>[a(i,{label:"\u8D26\u5355\u7F16\u53F7",align:"center",prop:"id"}),a(i,{label:"\u91D1\u989D",align:"center",prop:"price"},{default:e(t=>[_(" \uFFE5"+m(r(T)(t.row.price)),1)]),_:1}),a(i,{label:"\u786E\u6536\u91D1\u989D",align:"center",prop:"receivedPrice"},{default:e(t=>[_(" \uFFE5"+m(r(T)(t.row.receivedPrice)),1)]),_:1}),a(i,{label:"\u9000\u6B3E\u91D1\u989D",align:"center",prop:"refundPrice"},{default:e(t=>[_(" \uFFE5"+m(r(T)(t.row.refundPrice)),1)]),_:1}),a(i,{label:"\u4F63\u91D1",align:"center",prop:"integral"},{default:e(t=>[_(m(r(Y)(t.row.integral)),1)]),_:1}),a(i,{label:"\u786E\u6536\u4F63\u91D1",align:"center",prop:"receivedIntegral"},{default:e(t=>[_(m(r(Y)(t.row.receivedIntegral)),1)]),_:1}),a(i,{label:"\u9000\u6B3E\u4F63\u91D1",align:"center",prop:"refundIntegral"},{default:e(t=>[_(m(r(Y)(t.row.refundIntegral)),1)]),_:1}),a(i,{label:"\u8BA2\u5355\u6570",align:"center",prop:"orderCount"}),a(i,{label:"\u8D26\u5355\u65E5\u671F",align:"center",prop:"orderCalcTime"}),a(i,{label:"\u64CD\u4F5C",align:"center"},{default:e(t=>[w((v(),P(n,{type:"success",plain:"",size:"small",onClick:g=>(async(b,u)=>{b.stopPropagation();try{await q.exportConfirm(),p.value=!0;const ra=await S({shopId:u.shopId,orderCalcTime:u.orderCalcTime,merchantId:u.merchantId,payStatus:1}),ea=u.shopName+Ya(u.createTime,"YYYY-MM-DD")+"\u8D26\u5355.xls";j.excel(ra,ea)}catch{}finally{p.value=!1}})(g,t.row)},{default:e(()=>[_(" \u5BFC\u51FA ")]),_:2},1032,["onClick"])),[[E,["distri:daily-bill:export"]]])]),_:1})]),_:1},8,["data"])),[[ta,r(x)]]),a($,{total:r(F),page:r(l).pageNo,"onUpdate:page":o[2]||(o[2]=t=>r(l).pageNo=t),limit:r(l).pageSize,"onUpdate:limit":o[3]||(o[3]=t=>r(l).pageSize=t),onPagination:d},null,8,["total","page","limit"])]),_:1}),a(Na,{ref_key:"formRef",ref:V,onSuccess:d},null,512)],64)}}}),[["__scopeId","data-v-ffeb2e05"]])});export{nt as __tla,J as default};