cgStat.js 4.9 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["admin/statistics/cgStat"],{"0f84":function(t,e,n){"use strict";n.r(e);var o=n("add0"),r=n("74a0");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("4378");var a,c=n("7702"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,"12c6530a",null,!1,o["a"],a);e["default"]=s.exports},4378:function(t,e,n){"use strict";var o=n("9caa"),r=n.n(o);r.a},"6ec8":function(t,e,n){"use strict";(function(t){n("6cdc");o(n("dda7"));var e=o(n("0f84"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("255a")["createPage"])},"74a0":function(t,e,n){"use strict";n.r(e);var o=n("c46e"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},"9caa":function(t,e,n){},add0:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.profile,(function(e,n){var o=t.__get_orig(e),r=parseFloat(e.num),i=parseFloat(e.amount);return{$orig:o,m0:r,m1:i}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},i=[]},c46e:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=c(n("7da1")),r=n("fd6a"),i=n("1b62"),a=n("7736");function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e,n,o,r,i,a){try{var c=t[i](a),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).then(o,r)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var i=t.apply(e,n);function a(t){s(i,o,r,a,c,"next",t)}function c(t){s(i,o,r,a,c,"throw",t)}a(void 0)}))}}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(){n.e("components/app-wrapper-empty").then(function(){return resolve(n("c078"))}.bind(null,n)).catch(n.oe)},h=function(){n.e("components/plugin/selectList").then(function(){return resolve(n("e8a7"))}.bind(null,n)).catch(n.oe)},m=function(){n.e("components/module/shopSelect").then(function(){return resolve(n("868a"))}.bind(null,n)).catch(n.oe)},v=function(){n.e("components/module/dateSelect").then(function(){return resolve(n("f9d6"))}.bind(null,n)).catch(n.oe)},g=function(){n.e("components/module/app-search").then(function(){return resolve(n("80f2"))}.bind(null,n)).catch(n.oe)},b={components:{SelectList:h,AppWrapperEmpty:d,ShopSelect:m,AppSearchModule:g,DateSelect:v},mixins:[i.list],computed:l({},(0,a.mapGetters)(["getDictionariesInfo","getLoginInfo"])),data:function(){return{isShow:!1,customizationTime:[],shopId:"",itemId:"",nowTime:"",showTimeDropdown:!1,nowShop:"",showShopDropdown:!1,columns:[{name:"姓名",dataIndex:"name",color:"info"},{name:"开单额",dataIndex:"amount",color:"info",width:120,align:"center"},{name:"开单数",dataIndex:"num",color:"info",align:"center"}],dataList:[],params:{itemId:"",searchTime:"",startTime:"",endTime:"",shopId:""},profile:[],storageData:[],searchContent:""}},onPullDownRefresh:function(){this.resetList(),this.getList().then((function(e){t.stopPullDownRefresh()}))},onLoad:function(t){this.itemId=t.id,this.params.itemId=t.id,this.shopId=this.getLoginInfo.shopId},methods:l(l({},(0,a.mapActions)(["setUserShopAll"])),{},{searchFn:function(t){this.searchContent=t,this.filterStat()},filterStat:function(){var t=this,e=this;this.searchContent.length>0?(e.profile=[],e.storageData.forEach((function(n){var o=n.name&&n.name.indexOf(t.searchContent)>=0,r=n.py&&n.py.toLocaleUpperCase()||"",i=r.indexOf(t.searchContent.toLocaleUpperCase())>=0;(o||i)&&e.profile.push(n)}))):e.profile=e.storageData},selectShopFn:function(t){this.params.shopId=t.id,this.init()},selectDateFn:function(t){this.params=l(l({},this.params),t),this.init()},init:function(){var t=u(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.getList();case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getList:function(){var e=this,n=this;t.showLoading(),(0,r.getStatCgGhsProfile)(this.params).then((function(o){t.hideLoading(),e.$util.isEmpty(o.data.list)?n.storageData=[]:(n.storageData=o.data.list,n.filterStat())}))}})};e.default=b}).call(this,n("255a")["default"])}},[["6ec8","common/runtime","common/vendor"]]]);