You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
9.0 KiB
1 line
9.0 KiB
5 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["technician/pages/income/cash-integral"],{"104b":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("7eb4")),r=n(i("7ca3")),o=n(i("ee10")),c=i("8f59"),u=n(i("cd23"));function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach((function(e){(0,r.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var d={components:{wPicker:function(){i.e("components/w-picker/w-picker").then(function(){return resolve(i("13f3"))}.bind(null,i)).catch(i.oe)}},data:function(){return{isLoad:!1,curDay:"",curMonth:"",startYear:"",showKey:"",showDate:!1,time_text:"",prev_time:{activeIndex:0,month:"",start_time:"",end_time:""},check_time:{activeIndex:0,month:"",start_time:"",end_time:""},count:{},activeIndex:0,tabList:[{id:1,title:"月份选择"},{id:2,title:"自定义时间"}],param:{page:1},list:{data:[]},loading:!0}},computed:(0,c.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor}}),onLoad:function(){var t=this;return(0,o.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.initIndex();case 2:case"end":return e.stop()}}),e)})))()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:l(l({},(0,c.mapMutations)([])),{},{initIndex:function(){var t=arguments,e=this;return(0,o.default)(a.default.mark((function i(){var n;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.length>0&&void 0!==t[0]&&t[0],e.$util.setNavigationBarColor({bg:e.primaryColor}),n=new Date(Math.ceil((new Date).getTime())),e.curDay=e.$util.formatTime(n,"YY-M-D"),e.curMonth=e.$util.formatTime(n,"YY-M"),e.startYear=e.$util.formatTime(n,"YY"),i.next=8,Promise.all([e.getCount(),e.getList()]);case 8:e.isLoad=!0;case 9:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getCount:function(){var t=this;return(0,o.default)(a.default.mark((function e(){var i,n,r,o,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.activeIndex,n=t.$util.deepCopy(t.check_time),r=n.start_time,o=n.end_time,c={},1==i&&r&&o&&(c.start_time=t.$util.DateToUnix(r),c.end_time=t.$util.DateToUnix(o)+86400-1),e.next=6,t.$api.technician.balanceCommissionData(c);case 6:t.count=e.sent;case 7:case"end":return e.stop()}}),e)})))()},getList:function(e){var i=this;return(0,o.default)(a.default.mark((function n(){var r,o,c,u,s,l,d,f;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e&&(i.param.page=1,i.list.data=[],t.pageScrollTo({scrollTop:0})),r=i.list,o=i.activeIndex,c=i.$util.deepCopy(i.param),u=i.$util.deepCopy(i.check_time),s=u.month,l=u.start_time,d=u.end_time,0==o&&(c.month=s?i.$util.DateToUnix("".concat(s,"-01")):""),1==o&&(c.start_time=l&&d?i.$util.DateToUnix(l):"",c.end_time=l&&d?i.$util.DateToUnix(d)+86400-1:""),n.next=8,i.$api.technician.balanceCommissionList(c);case 8:f=n.sent,1==i.param.page||(f.data=r.data.concat(f.data)),i.list=f,i.loading=!1,i.$util.hideAll();case 12:case"end":return n.stop()}}),n)})))()},handerTabChange:function(t){this.activeIndex=t,this.check_time.activeIndex=t},toShowTimePopup:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.check_time=this.$util.deepCopy(this.prev_time),e&&
|