(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04c57eb8"],{"049e":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ba_f outmain"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("实时概况")]),a("span",{staticClass:"fnormal fon_14 color_9 mar_l10"},[t._v("更新时间:"+t._s(t.dateFormat(t.date)))])])]),a("div",{staticClass:"main-icon flex t_l mar_t20"},[a("div",{staticClass:"flex-1 t_l pad_20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("营业总额(元)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.instoreData.inStoreMoney||0))])])]),a("div",{staticClass:"flex"},[a("p",{staticClass:"fon_14 color_9 lh25"},[t._v("堂食订单:"+t._s(t.instoreData.instorePay||0))]),a("p",{staticClass:"fon_14 color_9 lh25 mar_l20"},[t._v("快餐订单:"+t._s(t.instoreData.fastPay||0))])])]),a("div",{staticClass:"flex-1 t_l pad_20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("预计收入(元)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.instoreData.instoreActualMoney||0))])])]),a("div",{staticClass:"flex"},[a("p",{staticClass:"fon_14 color_9 lh25"},[t._v("堂食订单:"+t._s(t.instoreData.instoreMoney||0))]),a("p",{staticClass:"fon_14 color_9 lh25 mar_l20"},[t._v("快餐订单:"+t._s(t.instoreData.fastMoney||0))])])]),a("div",{staticClass:"flex-1 t_l pad_20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("有效订单数(单)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.instoreData.inStoreNumCount||0))])])]),a("div",{staticClass:"flex"},[a("p",{staticClass:"fon_14 color_9 lh25"},[t._v("堂食订单:"+t._s(t.instoreData.inStoreNum||0))]),a("p",{staticClass:"fon_14 color_9 lh25 mar_l20"},[t._v("快餐订单:"+t._s(t.instoreData.fastNum||0))])])]),a("div",{staticClass:"flex-1 t_l pad_20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("无效订单数(单)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.instoreData.instoreRefundNumCount||0))])])]),a("div",{staticClass:"flex"},[a("p",{staticClass:"fon_14 color_9 lh25"},[t._v("堂食订单:"+t._s(t.instoreData.instoreRefundNum||0))]),a("p",{staticClass:"fon_14 color_9 lh25 mar_l20"},[t._v("快餐订单:"+t._s(t.instoreData.fastRefundNum||0))])])])])]),t._m(0),a("div",{staticClass:"mar_t20 pad_20 ba_f outmain"},[t._m(1),a("div",{staticClass:"mar_t20 flex-bet"},[a("div",{staticClass:"flex-g-1",staticStyle:{height:"520px"}},[t._m(2),a("div",{staticClass:"mar_t10 shuju_table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.goodsData,stripe:""}},[a("el-table-column",{attrs:{prop:"id",label:"排名"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"name",label:"商品名称"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"num",label:"商品销量数"}}),a("el-table-column",{attrs:{prop:"money",label:"销售额"}})],1)],1)]),a("div",{staticClass:"flex-g-1 mar_l30",staticStyle:{height:"520px"}},[t._m(3),a("div",{staticClass:"mar_t10 shuju_table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.orderData,stripe:""}},[a("el-table-column",{attrs:{prop:"id",label:"排名"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"name",label:"商品名称"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"money",label:"销售额"}}),a("el-table-column",{attrs:{prop:"num",label:"商品销量"}})],1)],1)])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mar_t20"},[a("div",{staticClass:"mar_t20 flex-bet"},[a("div",{staticClass:"flex-g-1 ba_f pad_20 bor_rad5",staticStyle:{height:"420px"}},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("堂食总览")])])]),a("div",{staticClass:"flex-bet"},[a("div",{staticClass:"flex-g-1"},[a("div",{staticClass:"mar_r20",staticStyle:{height:"280px",width:"380px","margin-top":"40px"},attrs:{id:"mainEch32"}})]),a("div",{staticClass:"flex-g-1"},[a("div",{staticClass:"mar_r20",staticStyle:{height:"280px",width:"380px","margin-top":"40px"},attrs:{id:"mainEch33"}})])])]),a("div",{staticClass:"flex-g-1 ba_f pad_20 bor_rad5 mar_l20",staticStyle:{height:"420px"}},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("快餐总览")])])]),a("div",{staticClass:"flex-bet"},[a("div",{staticClass:"flex-g-1"},[a("div",{staticClass:"mar_r20",staticStyle:{height:"280px",width:"380px","margin-top":"40px"},attrs:{id:"mainEch35"}})]),a("div",{staticClass:"flex-g-1"},[a("div",{staticClass:"mar_r20",staticStyle:{height:"280px",width:"380px","margin-top":"40px"},attrs:{id:"mainEch34"}})])])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("商品看板")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex t_l"},[a("div",{staticClass:"title35"},[t._v("堂食TOP10商品")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex t_l"},[a("div",{staticClass:"title35"},[t._v("快餐TOP10商品")])])}],i=(a("96cf"),a("1da1")),r=a("9cde"),o=a("313e"),l=a.n(o),c={mounted:function(){this.bus.$emit("loading",!0),this.init()},data:function(){return{instoreData:{},inStoreCashierData:{},inStoreFastData:{},inStoreData:{},goodsData:[],orderData:[],echarts32_option:{color:["#5654F5","#4CA8FF","#4EC478","#fba33f","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["微信小程序","支付宝小程序","收银台"]},series:[{name:"有效订单",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"微信小程序"},{value:20,name:"支付宝小程序"},{value:20,name:"收银台"}]}]},echarts33_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["微信支付","支付宝支付","余额支付","现金支付","自有支付方式"]},series:[{name:"支付金额",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"微信支付"},{value:20,name:"支付宝支付"},{value:20,name:"余额支付"},{value:20,name:"现金支付"},{value:20,name:"自有支付方式"}]}]},echarts34_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["微信支付","支付宝支付","余额支付","现金支付","自有支付方式"]},series:[{name:"支付金额",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"微信支付"},{value:20,name:"支付宝支付"},{value:20,name:"余额支付"},{value:20,name:"现金支付"},{value:20,name:"自有支付方式"}]}]},echarts35_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["微信小程序","支付宝小程序","收银台"]},series:[{name:"有效订单",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"微信小程序"},{value:20,name:"支付宝小程序"},{value:20,name:"收银台"}]}]},date:new Date}},methods:{init:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["r"])();case 2:a=e.sent,n=a.data,n&&(t.instoreData=n,t.inStoreCashierData=n.inStoreCashierData,t.inStoreFastData=n.inStoreFastData,t.inStoreData=n.inStoreData,t.echarts32_option.series[0].data[0].value=+n.wxPaySum,t.echarts32_option.series[0].data[1].value=+n.aliPaySum,t.echarts32_option.series[0].data[2].value=+n.cashierPaySum,t.mainEch32(),t.echarts33_option.series[0].data[0].value=+n.wxPay,t.echarts33_option.series[0].data[1].value=+n.aliPay,t.echarts33_option.series[0].data[2].value=+n.balancePay,t.echarts33_option.series[0].data[3].value=+n.moneyPay,t.echarts33_option.series[0].data[4].value=+n.myselfPay,t.mainEch33(),t.echarts35_option.series[0].data[0].value=+n.fWxPaySum,t.echarts35_option.series[0].data[1].value=+n.fAliPaySum,t.echarts35_option.series[0].data[2].value=+n.fCashierPaySum,t.mainEch35(),t.echarts34_option.series[0].data[0].value=+n.fWxPay,t.echarts34_option.series[0].data[1].value=+n.fAliPay,t.echarts34_option.series[0].data[2].value=+n.fBalancePay,t.echarts34_option.series[0].data[3].value=+n.fMoneyPay,t.echarts34_option.series[0].data[4].value=+n.fMyselfPay,t.mainEch34(),t.goodsData=n.inStoreGoodsData?n.inStoreGoodsData:[],t.orderData=n.fastGoodsData?n.fastGoodsData:[],t.bus.$emit("loading",!1));case 5:case"end":return e.stop()}}),e)})))()},mainEch32:function(){var t=l.a.init(document.getElementById("mainEch32"));t.setOption(this.echarts32_option,!0)},mainEch33:function(){var t=l.a.init(document.getElementById("mainEch33"));t.setOption(this.echarts33_option,!0)},mainEch34:function(){var t=l.a.init(document.getElementById("mainEch34"));t.setOption(this.echarts34_option,!0)},mainEch35:function(){var t=l.a.init(document.getElementById("mainEch35"));t.setOption(this.echarts35_option,!0)},dateFormat:function(t){var e=new Date(t),a=e.getFullYear(),n=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,s=e.getDate()<10?"0"+e.getDate():e.getDate(),i=e.getHours()<10?"0"+e.getHours():e.getHours(),r=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),o=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+"-"+n+"-"+s+" "+i+":"+r+":"+o}}},u=c,d=a("2877"),h=Object(d["a"])(u,n,s,!1,null,null,null);e["default"]=h.exports},"9cde":function(t,e,a){"use strict";a.d(e,"F",(function(){return s})),a.d(e,"n",(function(){return i})),a.d(e,"z",(function(){return r})),a.d(e,"a",(function(){return o})),a.d(e,"x",(function(){return l})),a.d(e,"J",(function(){return c})),a.d(e,"l",(function(){return u})),a.d(e,"H",(function(){return d})),a.d(e,"p",(function(){return h})),a.d(e,"C",(function(){return f})),a.d(e,"K",(function(){return m})),a.d(e,"I",(function(){return p})),a.d(e,"q",(function(){return _})),a.d(e,"v",(function(){return v})),a.d(e,"D",(function(){return b})),a.d(e,"b",(function(){return g})),a.d(e,"e",(function(){return C})),a.d(e,"c",(function(){return y})),a.d(e,"d",(function(){return x})),a.d(e,"G",(function(){return O})),a.d(e,"o",(function(){return j})),a.d(e,"t",(function(){return w})),a.d(e,"i",(function(){return S})),a.d(e,"g",(function(){return D})),a.d(e,"h",(function(){return E})),a.d(e,"j",(function(){return F})),a.d(e,"A",(function(){return P})),a.d(e,"k",(function(){return B})),a.d(e,"s",(function(){return A})),a.d(e,"u",(function(){return M})),a.d(e,"y",(function(){return L})),a.d(e,"B",(function(){return $})),a.d(e,"f",(function(){return N})),a.d(e,"r",(function(){return W})),a.d(e,"m",(function(){return k})),a.d(e,"w",(function(){return z})),a.d(e,"E",(function(){return G}));var n=a("b775");function s(t){return Object(n["a"])({url:"channel/in-store/save-area",method:"post",data:t})}function i(t){return Object(n["a"])({url:"channel/in-store/save-area",method:"get",params:t})}function r(t){return Object(n["a"])({url:"channel/in-store/modify-area",method:"post",data:t})}function o(t){return Object(n["a"])({url:"channel/in-store/area-list",method:"get",params:t})}function l(t){return Object(n["a"])({url:"channel/in-store/goods-type",method:"get",params:t})}function c(t){return Object(n["a"])({url:"channel/in-store/table-list",method:"get",params:t})}function u(t){return Object(n["a"])({url:"channel/in-store/get-area",method:"get",params:t})}function d(t){return Object(n["a"])({url:"channel/in-store/save-table",method:"post",data:t})}function h(t){return Object(n["a"])({url:"channel/in-store/save-table",method:"get",params:t})}function f(t){return Object(n["a"])({url:"channel/in-store/modify-table",method:"post",data:t})}function m(t){return Object(n["a"])({url:"channel/in-store/type-list",method:"get",params:t})}function p(t){return Object(n["a"])({url:"channel/in-store/save-type",method:"post",data:t})}function _(t){return Object(n["a"])({url:"channel/in-store/save-type",method:"get",params:t})}function v(t){return Object(n["a"])({url:"channel/in-store/get-type",method:"get",params:t})}function b(t){return Object(n["a"])({url:"channel/in-store/modify-type",method:"post",data:t})}function g(t){return Object(n["a"])({url:"channel/in-store/batch-table",method:"post",data:t})}function C(t){return Object(n["a"])({url:"channel/in-store/cashier-statistics",method:"get",params:t})}function y(t){return Object(n["a"])({url:"channel/in-store/cashier-order-list",method:"get",params:t})}function x(t){return Object(n["a"])({url:"channel/in-store/cashier-print",method:"post",data:t})}function O(t){return Object(n["a"])({url:"channel/in-store/save-code",method:"post",data:t})}function j(t){return Object(n["a"])({url:"channel/in-store/save-code",method:"get",params:t})}function w(t){return Object(n["a"])({url:"channel/in-store/get-table",method:"get",params:t})}function S(t){return Object(n["a"])({url:"channel/in-store/establish-code",method:"post",data:t})}function D(t){return Object(n["a"])({url:"channel/in-store/code-list",method:"get",params:t})}function E(t){return Object(n["a"])({url:"channel/in-store/del-code",method:"post",data:t})}function F(t){return Object(n["a"])({url:"channel/in-store/fast-order-list",method:"get",params:t})}function P(t){return Object(n["a"])({url:"channel/in-store/modify-fast-order",method:"post",data:t})}function B(t){return Object(n["a"])({url:"channel/screen/fast-screen",method:"post",data:t})}function A(t){return Object(n["a"])({url:"channel/in-store/get-store-code",method:"get",params:t})}function M(t){return Object(n["a"])({url:"channel/in-store/table-order",method:"get",params:t})}function L(t){return Object(n["a"])({url:"channel/in-store/in-store-order-list",method:"get",params:t})}function $(t){return Object(n["a"])({url:"channel/in-store/modify-in-store-order",method:"post",data:t})}function N(t){return Object(n["a"])({url:"channel/in-store/clean-table",method:"post",data:t})}function W(t){return Object(n["a"])({url:"channel/in-store/statistics",method:"get",params:t})}function k(t){return Object(n["a"])({url:"channel/pay-vip/order-statistics",method:"get",params:t})}function z(t){return Object(n["a"])({url:"channel/pay-vip/order-list",method:"get",params:t})}function G(t){return Object(n["a"])({url:"channel/in-store/out-order-list",method:"get",params:t})}}}]);