(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/everdayRenven/index"],{"59e9":function(e,t,i){"use strict";var n=i("a928"),o=i.n(n);o.a},"73ee":function(e,t,i){"use strict";i.r(t);var n=i("d5e3"),o=i.n(n);for(var r in n)"default"!==r&&function(e){i.d(t,e,(function(){return n[e]}))}(r);t["default"]=o.a},"7de6":function(e,t,i){"use strict";i.r(t);var n=i("c6d2"),o=i("73ee");for(var r in o)"default"!==r&&function(e){i.d(t,e,(function(){return o[e]}))}(r);i("59e9");var a,s=i("f0c5"),u=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"a44ffdca",null,!1,n["a"],a);t["default"]=u.exports},a928:function(e,t,i){},acb1:function(e,t,i){"use strict";(function(e){i("5fd4");n(i("66fd"));var t=n(i("7de6"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,i("543d")["createPage"])},c6d2:function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return n}));var o=function(){var e=this,t=e.$createElement,i=(e._self._c,e.showPage&&1020==e.theRequest.GroupType?e.__map(e.regionList,(function(t,i){var n=e.__get_orig(t),o=e.$util.fmoney(t.CASHPAY,2),r=e.$util.fmoney(t.UPLOAD_COUNT/t.TOTAL_COUNT*100,2);return{$orig:n,g0:o,g1:r}})):null),n=e.showPage&&1020!=e.theRequest.GroupType&&1e3==e.theRequest.GroupType?e.__map(e.regionList[0],(function(t,i){var n=e.__get_orig(t),o=e.$util.fmoney(t.CASHPAY,2),r=e.$util.fmoney(t.UPLOAD_COUNT/t.TOTAL_COUNT*100,2),a=e.__map(t.ServerpartList,(function(t,i){var n=e.__get_orig(t),o=e.$util.fmoney(t.CASHPAY,2);return{$orig:n,g4:o}}));return{$orig:n,g2:o,g3:r,l1:a}})):null,o=e.showPage&&1020!=e.theRequest.GroupType&&1e3==e.theRequest.GroupType?e.__map(e.regionList[1],(function(t,i){var n=e.__get_orig(t),o=e.$util.fmoney(t.CASHPAY,2),r=e.$util.fmoney(t.UPLOAD_COUNT/t.TOTAL_COUNT*100,2);return{$orig:n,g5:o,g6:r}})):null,r=e.showPage&&e.wechatPushSalesList.length>0?e.__map(e.wechatPushSalesList[e.nowRank].GoodsList,(function(t,i){var n=e.__get_orig(t),o=e.$util.fmoney(t.TOTALPRICE);return{$orig:n,g7:o}})):null;e._isMounted||(e.e0=function(t){e.regionShow1=!e.regionShow1},e.e1=function(t){e.regionShow2=!e.regionShow2}),e.$mp.data=Object.assign({},{$root:{l0:i,l2:n,l3:o,l4:r}})},r=[]},d5e3:function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i("2f62"),o=r(i("397f"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function s(e){for(var t=1;t0?this.$util.fmoney(n.CASHPAY/n.TICKETCOUNT,2):0,n.COMMODITYAVE=n.COMMODITY_COUNT>0?this.$util.fmoney(n.CASHPAY/n.COMMODITY_COUNT,2):0,t)var r=e.UPLOADSTATE.split("/"),a=t.UPLOADSTATE.split("/"),s=Number(r[0])+Number(a[0]),u=Number(r[1])+Number(a[1]);n.uploadState=t?s+"/"+u:e.UPLOADSTATE,this.headMsg=n},operationFn:function(e,t){var i=this;if(1==e.SHOWBUSINESSTRADE){var n=["#5E67B4","#4E5699","#75B7AD","#AFB7E6"],o=[["MARKET_REVENUE","商超营收"],["RESTAURANT_REVENUE","餐饮营收"],["SNACK_REVENUE","小吃营收"],["OTHER_REVENUE","其他营收"]],r=i.operationBusniess(o,e);this.regionProgress=r[1],i.showPie({id:"businessCont",data:r[0],colors:n})}if(1==e.SHOWTRADETYPE){var a=["#7886E3","#70D598","#9BC8FB","#ADE5EE","#6B75B8","#6FEBC3"],s=[["COMPREHENSIVE_REVENUE","综合服务区"],["THEME_REVENUE","主题服务区"],["STANDARD_REVENUE","标配服务区"],["PAKINGZONE_REVENUE","其他停车区"]],u=i.operationBusniess(s,e);this.tradeType=u[1],i.showPie({id:"typeCont",data:u[0],colors:a})}if(1==e.SHOWREGIONREVENUE){var h=["#F19B4B","#DE724D","#F4B27A","#FFE886","#E87EA3","#F3B1C9","#F08F87","#F7CD7B","#F19B4B"],c=i.operationArea(e.RegionList,e.CASHPAY);this.areaProgress=c[1],i.showPie({id:"areaCont",data:c[0],colors:h})}},operationArea:function(e,t){var i=[],n=[],o=this;return e.forEach((function(e,r){i.push({name:e.TYPE_NAME,data:e.CASHPAY,textColor:"#999",format:function(t){return[e.TYPE_NAME,(100*t).toFixed(2)+"%"]}}),n.push({name:e.TYPE_NAME,data:o.$util.fmoney(e.CASHPAY),bili:o.$util.fmoney(e.CASHPAY/t*100,2)})})),[i,n]},operationBusniess:function(e,t){var i=[],n=[],o=this;return e.forEach((function(e,r){if(t[e[0]]>0){var a=Number(t[e[0]]);i.push({name:e[1],textColor:"#999",data:t[e[0]],format:function(t){return[e[1],(100*t).toFixed(2)+"%"]}}),n.push({name:e[1],data:o.$util.fmoney(t[e[0]]),bili:o.$util.fmoney(a/t.CASHPAY*100,2)})}})),[i,n]},showPie:function(t){var i={series:[]};i.series=i.series.concat(t.data),l[t.id]=new o.default({$this:h,canvasId:t.id,colors:t.colors,type:"ring",fontSize:12,padding:[15,15,25,15],legend:{show:!1,padding:5,lineHeight:11,margin:0},background:"#FFFFFF",pixelRatio:1,series:i.series,animation:!1,width:e.upx2px(686),height:e.upx2px(510),dataLabel:!0,extra:{pie:{ringWidth:32,labelWidth:30}}})},getDetail:function(e){var t=this,i=this;this.$request.$get("getShopRevenueList",{serverpartID:e.ServerpartIds,pushProvinceCode:e.ProvinceCode,StartDate:e.time||this.lastDay,EndDate:e.time||this.lastDay}).then((function(e){100==e.ResultCode&&(e.Data.List.map((function(e){e.show=!1,e.detail=t.getListDetail(e)})),i.regionList=e.Data.List)}))},getListDetail:function(e){var t=[],i={SHOWMORE_SIGN:{1:"【长款】",2:"【异常长款】"},SHOWLESS_SIGN:{1:"【短款】",2:"【异常短款】"},SHOWABNORMAL_SIGN:{1:"【异常校验】"},SHOWSCAN_SIGN:{1:"【扫】"},SHOWSSUPPLY_SIGN:{1:"【补】"},SHOWCHECK_SIGN:{1:"【稽核检查】"},INTERFACE_SIGN:{1:"【接口传输】"}},n=["SHOWABNORMAL_SIGN","SHOWCHECK_SIGN","SHOWMORE_SIGN","SHOWLESS_SIGN","SHOWSCAN_SIGN","SHOWSSUPPLY_SIGN","INTERFACE_SIGN"];return n.map((function(n){i[n][e[n]]&&t.push(i[n][e[n]])})),t},toggleShow:function(e){var t=this.regionList[e];t.show=!t.show,this.$forceUpdate()}},onLoad:function(t){h=this,e.showLoading({title:"正在加载..."}),t.ProvinceCode?(this.theRequest=t,this.getData()):this.user.PushAuthority.length>0?(this.theRequest=this.user.PushAuthority[5]||{},this.getData()):(e.hideLoading(),this.theRequest={},this.isLoading=!1,this.showPage=!1,this.noDataText="您暂无营收数据"),1010==this.theRequest.GroupType&&this.getDetail(this.theRequest),"620000"==this.theRequest.ProvinceCode&&"1000"==this.theRequest.GroupType&&this.todayAmount()}};t.default=f}).call(this,i("543d")["default"])}},[["acb1","common/runtime","common/vendor"]]]);