1 |
- import{ar as I,d as la,r as c,g as oa,N as _a,y as ia,S as na,o as w,c as ca,j as k,i as a,a as r,dx as sa,C as x,a6 as pa,w as e,l,k as T,t as n,aY as Y,dz as m,F as ma,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-ecc2785b.js";import{_ as Pa,__tla as Ia}from"./ContentWrap.vue_vue_type_script_setup_true_lang-13de8544.js";import{_ as ka,__tla as Ta}from"./index.vue_vue_type_script_setup_true_lang-3eecd42d.js";import{f as Ya,__tla as Da}from"./formatTime-158d9eb6.js";import{d as j}from"./download-20922b56.js";import{_ as Na,__tla as Sa}from"./DailyBillForm.vue_vue_type_script_setup_true_lang-1f67bc42.js";import{u as za,__tla as Ma}from"./useMessage-23ea1f6c.js";import{_ as Ra}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as qa}from"./el-card-99460cde.js";import{__tla as Ba}from"./index-bfba6893.js";import{__tla as Fa}from"./Dialog-e3083a37.js";import{__tla as Ha}from"./OrderIndex-738bb04e.js";import{__tla as Ua}from"./SPuUploadImg-72fecbb4.js";import{__tla as Va}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-4bdbbeec.js";import{__tla as Ea}from"./index-670a17bc.js";import{__tla as ja}from"./el-image-viewer-24503c90.js";import{__tla as Ja}from"./OrderBaseInfo-4ef55892.js";import{__tla as Ka}from"./index-499bccaa.js";import{__tla as La}from"./dict-9266706a.js";import{__tla as Aa}from"./OrderProduct-fee2687b.js";import{__tla as Ga}from"./el-descriptions-item-9c080219.js";import{__tla as Oa}from"./DictTag.vue_vue_type_script_lang-2b84bf42.js";import"./color-6e929987.js";import{__tla as Qa}from"./OrderComment-7dba8abe.js";import{__tla as Wa}from"./el-image-2ba3072e.js";import{__tla as Xa}from"./OrderService-c86057cc.js";import{__tla as Za}from"./AfterSale-e7fa321e.js";import{__tla as $a}from"./index-e1d7ff6d.js";import{__tla as at}from"./OrderLogistics-158bbcd4.js";import{__tla as tt}from"./el-timeline-item-e21c5b93.js";import{__tla as rt}from"./index-67eda3ee.js";import{__tla as et}from"./orderPay-6e550068.js";import{__tla as lt}from"./OrderLogs-2924d4d5.js";import"./constants-e43f22dd.js";import{__tla as ot}from"./OrderDeliveryForm-e3213966.js";import{__tla as _t}from"./OrderUpdateRemarkForm-5d228d41.js";import{__tla as it}from"./OrderUpdateAddressForm.vue_vue_type_script_setup_true_lang-3d5c140f.js";import{__tla as nt}from"./el-tree-select-0bae797d.js";import{__tla as ct}from"./index-4158ca11.js";import"./tree-0af4953a.js";let J,st=Promise.all([(()=>{try{return ba}catch{}})(),(()=>{try{return Ia}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 ot}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return ct}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 y=c(!1),K=()=>{y.value=!y.value},h=()=>{y.value=!1},q=za(),C=c(!0),B=c([]),F=c(0),_=oa({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(),d=c(!1),u=async()=>{C.value=!0;try{const g=await D(_);B.value=g.list,F.value=g.total}finally{C.value=!1}},U=()=>{_.pageNo=1,u(),h()},L=()=>{H.value.resetFields(),U(),h()},V=c(),A=async g=>{try{await q.exportConfirm(),d.value=!0;const i=await N(_);j.excel(i,"\u6BCF\u65E5\u8D26\u5355.xls")}catch{}finally{h(),d.value=!1}};return _a(()=>_.orderCalcTime,()=>{u()}),ia(()=>{u()}),(g,i)=>{const G=da,p=ua,b=fa,O=ya,Q=ha,W=ga,X=va,o=wa,Z=xa,$=ka,aa=Pa,E=na("hasPermi"),ta=Ca;return w(),ca(ma,null,[k("div",z,[k("div",M,[a(G,{modelValue:r(_).orderCalcTime,"onUpdate:modelValue":i[0]||(i[0]=t=>r(_).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(p,{icon:r(sa),onClick:K,style:{"margin-left":"0"}},null,8,["icon"])])]),x(k("div",R,[a(X,{class:"mb-15px",model:r(_),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(p,{onClick:h},{default:e(()=>[l(" \u6536\u8D77 ")]),_:1}),a(p,{onClick:L},{default:e(()=>[a(b,{class:"mr-5px",icon:"ep:refresh"}),l(" \u91CD\u7F6E ")]),_:1}),a(p,{onClick:U,plain:"",type:"primary"},{default:e(()=>[a(b,{class:"mr-5px",icon:"ep:search"}),l(" \u641C\u7D22 ")]),_:1}),x((w(),T(p,{type:"success",plain:"",onClick:A,loading:r(d)},{default:e(()=>[a(b,{icon:"ep:download",class:"mr-5px"}),l(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[E,["distri:daily-bill:export"]]])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[pa,r(y)]]),a(aa,{class:"mt-15px"},{default:e(()=>[x((w(),T(Z,{data:r(B),stripe:!0,"show-overflow-tooltip":!0,onRowClick:i[1]||(i[1]=t=>{return v=t,void V.value.open(v,P);var v,P}),"row-class-name":"row"},{default:e(()=>[a(o,{label:"\u8D26\u5355\u7F16\u53F7",align:"center",prop:"id"}),a(o,{label:"\u91D1\u989D",align:"center",prop:"price"},{default:e(t=>[l(" \uFFE5"+n(r(Y)(t.row.price)),1)]),_:1}),a(o,{label:"\u786E\u6536\u91D1\u989D",align:"center",prop:"receivedPrice"},{default:e(t=>[l(" \uFFE5"+n(r(Y)(t.row.receivedPrice)),1)]),_:1}),a(o,{label:"\u9000\u6B3E\u91D1\u989D",align:"center",prop:"refundPrice"},{default:e(t=>[l(" \uFFE5"+n(r(Y)(t.row.refundPrice)),1)]),_:1}),a(o,{label:"\u4F63\u91D1",align:"center",prop:"integral"},{default:e(t=>[l(n(r(m)(t.row.integral)),1)]),_:1}),a(o,{label:"\u786E\u6536\u4F63\u91D1",align:"center",prop:"receivedIntegral"},{default:e(t=>[l(n(r(m)(t.row.receivedIntegral)),1)]),_:1}),a(o,{label:"\u9000\u6B3E\u4F63\u91D1",align:"center",prop:"refundIntegral"},{default:e(t=>[l(n(r(m)(t.row.refundIntegral)),1)]),_:1}),a(o,{label:"\u6D88\u8D39\u5206",align:"center",prop:"consumptionPoints"},{default:e(t=>[l(n(r(m)(t.row.consumptionPoints)),1)]),_:1}),a(o,{label:"\u786E\u6536\u6D88\u8D39\u5206",align:"center",prop:"receivedConsumptionPoints"},{default:e(t=>[l(n(r(m)(t.row.receivedConsumptionPoints)),1)]),_:1}),a(o,{label:"\u9000\u6B3E\u6D88\u8D39\u5206",align:"center",prop:"refundConsumptionPoints"},{default:e(t=>[l(n(r(m)(t.row.refundConsumptionPoints)),1)]),_:1}),a(o,{label:"\u8BA2\u5355\u6570",align:"center",prop:"orderCount"}),a(o,{label:"\u8D26\u5355\u65E5\u671F",align:"center",prop:"orderCalcTime"}),a(o,{label:"\u64CD\u4F5C",align:"center"},{default:e(t=>[x((w(),T(p,{type:"success",plain:"",size:"small",onClick:v=>(async(P,f)=>{P.stopPropagation();try{await q.exportConfirm(),d.value=!0;const ra=await S({shopId:f.shopId,orderCalcTime:f.orderCalcTime,merchantId:f.merchantId,payStatus:1}),ea=f.shopName+Ya(f.createTime,"YYYY-MM-DD")+"\u8D26\u5355.xls";j.excel(ra,ea)}catch{}finally{d.value=!1}})(v,t.row)},{default:e(()=>[l(" \u5BFC\u51FA ")]),_:2},1032,["onClick"])),[[E,["distri:daily-bill:export"]]])]),_:1})]),_:1},8,["data"])),[[ta,r(C)]]),a($,{total:r(F),page:r(_).pageNo,"onUpdate:page":i[2]||(i[2]=t=>r(_).pageNo=t),limit:r(_).pageSize,"onUpdate:limit":i[3]||(i[3]=t=>r(_).pageSize=t),onPagination:u},null,8,["total","page","limit"])]),_:1}),a(Na,{ref_key:"formRef",ref:V,onSuccess:u},null,512)],64)}}}),[["__scopeId","data-v-3689d70d"]])});export{st as __tla,J as default};
|