kdIncome.js 4.9 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["admin/statistics/kdIncome"],{"0837":function(e,t,n){"use strict";n.r(t);var i=n("95a2"),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"4ce7":function(e,t,n){"use strict";var i=n("d8ba"),o=n.n(i);o.a},"55db":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement;e._self._c},r=[]},9461:function(e,t,n){"use strict";n.r(t);var i=n("55db"),o=n("0837");for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n("4ce7");var a,c=n("0095"),s=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"71784c43",null,!1,i["a"],a);t["default"]=s.exports},"95a2":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=c(n("4838")),o=n("fd6a"),r=n("1b62"),a=n("7736");function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,i,o,r,a){try{var c=e[r](a),s=c.value}catch(u){return void n(u)}c.done?t(s):Promise.resolve(s).then(i,o)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var r=e.apply(t,n);function a(e){s(r,i,o,a,c,"next",e)}function c(e){s(r,i,o,a,c,"throw",e)}a(void 0)}))}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=(new Date).getMonth()+1<10?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1,p=("".concat((new Date).getFullYear(),"-").concat(h,"-").concat((new Date).getDate()),function(){n.e("components/app-wrapper-empty").then(function(){return resolve(n("c078"))}.bind(null,n)).catch(n.oe)}),m=function(){n.e("components/plugin/selectList").then(function(){return resolve(n("e8a7"))}.bind(null,n)).catch(n.oe)},b=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)},w={components:{SelectList:m,AppWrapperEmpty:p,DorpdownSelect:b,DateSelect:v},mixins:[r.list,r.selectShop],computed:f({},(0,a.mapGetters)(["getDictionariesInfo","getLoginInfo"])),data:function(){return{isShow:!1,customizationTime:"",menuTimeObj:"",menuShopObj:"",selectTimeId:"",shopId:"",itemId:"",selectListData:[{title:"时间",key:"time",default:"1",data:[{name:"下午",value:"1"}]},{title:"全部",key:"shopId",default:"01",data:[{name:"瑞景店",value:"01"},{name:"加州店",value:"02"}]}],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:[],income:0}},onPullDownRefresh:function(){this.resetList(),this._list().then((function(t){e.stopPullDownRefresh()}))},onLoad:function(e){this.itemId=e.id,this.params.itemId=e.id;for(var t=[],n=this.getDictionariesInfo.dateDefaultOption,i=0;i<n.length;i++)t.push({name:n[i].name,id:n[i].value});this.menuTimeObj={title:"今天",titleChild:"时间",list:t},this.shopId=this.getLoginInfo.shopId},methods:f(f({},(0,a.mapActions)(["setUserShopAll"])),{},{selectShopSussess:function(e){this.params.shopId=e.selectItem.id,this.init()},selectSussess:function(e){this.params.selectTime=this.selectTimeId,1==e.custom?(this.isShow=!1,this.params.startTime=e.start,this.params.endTime=e.end,this.init()):this.init()},timeCancel:function(e){this.isShow=!1},init:function(){var e=u(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this._list();case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),_list:function(){var t=this;e.showLoading(),(0,o.getStatKdProfile)(this.params).then((function(n){e.hideLoading(),t.profile=n.data.list,t.income=n.data.income}))}})};t.default=w}).call(this,n("f3be")["default"])},c249:function(e,t,n){"use strict";(function(e){n("6cdc");i(n("4a15"));var t=i(n("9461"));function i(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("f3be")["createPage"])},d8ba:function(e,t,n){}},[["c249","common/runtime","common/vendor"]]]);