index-419d8ee8.js 7.8 KB

1
  1. import{as as I,d as la,r as c,g as _a,O as oa,z as ia,T as ca,o as v,c as sa,j as k,i as a,a as r,dz as na,D as w,a7 as ma,w as e,l as _,k as P,t as m,aZ as T,e9 as D,F as pa,q as da,s as ua,n as fa,I as ya,E as ha,p as ga,J as va,K as wa,L as xa,M as Ca,_ as ba,__tla as Ia}from"./index-2f799233.js";import{_ as ka,__tla as Pa}from"./ContentWrap-9da801df.js";import{_ as Ta,__tla as Da}from"./index-e6cd813f.js";import{f as za,__tla as Ya}from"./formatTime-2157894c.js";import{d as E}from"./download-20922b56.js";import Ma,{__tla as Sa}from"./DailyBillForm-6b671120.js";import{u as Na,__tla as Ra}from"./useMessage-e567ad40.js";import{__tla as qa}from"./el-card-c64c83d1.js";import{__tla as Ba}from"./index-1c180a16.js";import{__tla as Fa}from"./Dialog-6fd39e06.js";import{__tla as Ua}from"./OrderIndex-30acc9a9.js";import{__tla as Va}from"./SPuUploadImg-121cd89e.js";import{__tla as Ha}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-ac19fa49.js";import{__tla as ja}from"./index-5f6db4a5.js";import{__tla as Ea}from"./el-image-viewer-8e9e3571.js";import{__tla as Ja}from"./OrderBaseInfo-3a3e160e.js";import{__tla as Ka}from"./index-36dfbc52.js";import{__tla as La}from"./dict-20c916e2.js";import{__tla as Oa}from"./OrderProduct-fc3eaa5a.js";import{__tla as Wa}from"./el-descriptions-item-0a78cef7.js";import{__tla as Za}from"./DictTag-ea4c6cc2.js";import"./color-6e929987.js";import{__tla as Aa}from"./OrderComment-633e72f0.js";import{__tla as Ga}from"./el-image-4d26fa76.js";import{__tla as Qa}from"./OrderService-8a5b7080.js";import{__tla as Xa}from"./AfterSale-babc95d3.js";import{__tla as $a}from"./index-8cb2149a.js";import{__tla as at}from"./OrderLogistics-fae4e907.js";import{__tla as tt}from"./el-timeline-item-e925b025.js";import{__tla as rt}from"./index-d6a9bc38.js";import{__tla as et}from"./orderPay-738f0c41.js";import{__tla as lt}from"./OrderLogs-e2991d51.js";import"./constants-d55a3460.js";import{__tla as _t}from"./OrderDeliveryForm-92525808.js";import{__tla as ot}from"./OrderUpdateRemarkForm-cbe6a516.js";import{__tla as it}from"./OrderUpdateAddressForm-1094c50a.js";import{__tla as ct}from"./el-tree-select-ef4257fc.js";import{__tla as st}from"./index-0f3b07dc.js";import"./tree-0af4953a.js";let J,nt=Promise.all([(()=>{try{return Ia}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Xa}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 z,Y,M,S,N,R;z=async s=>await I.get({url:"/distri/daily-bill/page",params:s}),Y=async s=>await I.download({url:"/distri/daily-bill/export-excel",params:s}),M=async s=>await I.download({url:"/trade/order/export-excel/dailyBill",params:s}),S={class:"search-one"},N={style:{"text-align":"right"},class:"search-input"},R={class:"searchMore",style:{width:"calc(100% - 60px)"}},J=ba(la({name:"DailyBill",__name:"index",setup(s){const f=c(!1),K=()=>{f.value=!f.value},y=()=>{f.value=!1},q=Na(),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:[]}),U=c(),p=c(!1),d=async()=>{x.value=!0;try{const h=await z(l);B.value=h.list,F.value=h.total}finally{x.value=!1}},V=()=>{l.pageNo=1,d(),y()},L=()=>{U.value.resetFields(),V(),y()},H=c(),O=async h=>{try{await q.exportConfirm(),p.value=!0;const o=await Y(l);E.excel(o,"\u6BCF\u65E5\u8D26\u5355.xls")}catch{}finally{y(),p.value=!1}};return oa(()=>l.orderCalcTime,()=>{d()}),ia(()=>{d()}),(h,o)=>{const W=da,n=ua,C=fa,Z=ya,A=ha,G=ga,Q=va,i=wa,X=xa,$=Ta,aa=ka,j=ca("hasPermi"),ta=Ca;return v(),sa(pa,null,[k("div",S,[k("div",N,[a(W,{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(Q,{class:"mb-15px",model:r(l),ref_key:"queryFormRef",ref:U,inline:!0,"label-width":"120px"},{default:e(()=>[a(G,null,{default:e(()=>[a(A,null,{default:e(()=>[a(Z,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:V,plain:"",type:"primary"},{default:e(()=>[a(C,{class:"mr-5px",icon:"ep:search"}),_(" \u641C\u7D22 ")]),_:1}),w((v(),P(n,{type:"success",plain:"",onClick:O,loading:r(p)},{default:e(()=>[a(C,{icon:"ep:download",class:"mr-5px"}),_(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[j,["distri:daily-bill:export"]]])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[ma,r(f)]]),a(aa,{class:"mt-15px"},{default:e(()=>[w((v(),P(X,{data:r(B),stripe:!0,"show-overflow-tooltip":!0,onRowClick:o[1]||(o[1]=t=>{return g=t,void H.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:"\u79EF\u5206",align:"center",prop:"integral"},{default:e(t=>[_(m(r(D)(t.row.integral)),1)]),_:1}),a(i,{label:"\u786E\u6536\u79EF\u5206",align:"center",prop:"receivedIntegral"},{default:e(t=>[_(m(r(D)(t.row.receivedIntegral)),1)]),_:1}),a(i,{label:"\u9000\u6B3E\u79EF\u5206",align:"center",prop:"refundIntegral"},{default:e(t=>[_(m(r(D)(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 M({shopId:u.shopId,orderCalcTime:u.orderCalcTime,merchantId:u.merchantId,payStatus:1}),ea=u.shopName+za(u.createTime,"YYYY-MM-DD")+"\u8D26\u5355.xls";E.excel(ra,ea)}catch{}finally{p.value=!1}})(g,t.row)},{default:e(()=>[_(" \u5BFC\u51FA ")]),_:2},1032,["onClick"])),[[j,["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(Ma,{ref_key:"formRef",ref:H,onSuccess:d},null,512)],64)}}}),[["__scopeId","data-v-3d0fc71c"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/system/distri/dailybill/index.vue"]])});export{nt as __tla,J as default};