cashier-ERP/dist/assets/indexCount-CXssA-b0.js

2 lines
2.8 KiB
JavaScript
Raw Normal View History

2024-04-12 10:43:47 +08:00
import{h as P,s as b}from"./pay.vue_vue_type_style_index_0_scoped_d2507c03_lang-gr8qz3eu.js";import{_ as x,u as w,r as o,b as u,l as I,v as S,c as p,h,e,t,x as C,f as i,w as m,g as D,y as N,z as V,C as k}from"./index-C1l2eLK2.js";const a=d=>(N("data-v-e41866ee"),d=d(),V(),d),B={"element-loading-text":"加载中",class:"my-order"},L={key:0,class:"from"},A={class:"form-card green"},O=a(()=>e("div",{class:"tips"},"今日线上收银金额",-1)),z={class:"form-card green"},E=a(()=>e("div",{class:"tips"},"昨日线上收银金额",-1)),F={class:"form-card green"},R=a(()=>e("div",{class:"tips"},"本月线上收银金额",-1)),T={class:"form-card"},U=a(()=>e("div",{class:"tips"},"今日收银 线上+现金 总金额",-1)),j={class:"form-card"},q=a(()=>e("div",{class:"tips"},"本月收银 线上+现金 总金额",-1)),G={class:"form-card red"},H=a(()=>e("div",{class:"tips"},"今日现金收银金额",-1)),J={class:"form-card red"},K=a(()=>e("div",{class:"tips"},"昨日现金收银金额",-1)),M={class:"form-card red"},Q=a(()=>e("div",{class:"tips"},"本月现金收银金额",-1)),W={class:"form-card"},X=a(()=>e("div",{class:"tips"},"昨日收银 线上+现金 总金额",-1)),Y={class:"table"},Z={__name:"indexCount",setup(d){const l=w(),_=o([]);k(),o(1),o(null);const y=o({page:1,limit:15,staff_id:l.userInfo.service.service_id}),n=o(!1);o(0),(()=>{P(l.userInfo.service.mer_id,y.value).then(r=>{_.value=r.data})})();const s=o({});return(()=>{n.value=!0,b(l.userInfo.service.mer_id,{staff_id:l.userInfo.service.service_id}).then(r=>{s.value=r.data.data,n.value=!1})})(),(r,se)=>{const c=u("el-table-column"),f=u("el-table"),g=I("loading");return S((p(),h("div",B,[s.value.today?(p(),h("div",L,[e("div",A,[e("div",null,t(s.value.today.payPrice),1),O]),e("div",z,[e("div",null,t(s.value.yesterday.payPrice),1),E]),e("div",F,[e("div",null,t(s.value.month.payPrice),1),R]),e("div",T,[e("div",null,t(s.value.today.cashPayment+s.value.today.payPrice),1),U]),e("div",j,[e("div",null,t(s.value.month.cashPayment+s.value.month.payPrice),1),q]),e("div",G,[e("div",null,t(s.value.today.cashPayment),1),H]),e("div",J,[e("div",null,t(s.value.yesterday.cashPayment),1),K]),e("div",M,[e("div",null,t(s.value.month.cashPayment),1),Q]),e("div",W,[e("div",null,t(s.value.yesterday.cashPayment+s.value.yesterday.payPrice),1),X])])):C("",!0),e("div",Y,[i(f,{data:_.value,style:{width:"100%"}},{default:m(()=>[i(c,{prop:"day",label:"日期",width:"260"}),i(c,{prop:"total",label:"订单数量"}),i(c,{prop:"cash_payment",label:"现金收银金额"}),i(c,{prop:"pay_price",label:"线上收银金额"}),i(c,{label:"线上收银金额"},{default:m(v=>[D(t(((+v.row.pay_price||0)+(+v.row.cash_payment||0)).toFixed(2)),1)]),_:1})]),_:1},8,["data"])])])),[[g,n.value]])}}},oe=x(Z,[["__scopeId","data-v-e41866ee"]]);export{oe as default};