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
18 KiB
1 line
18 KiB
2 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["technician-pages-income-commission-list"],{"138f":function(t,e,i){"use strict";i.r(e);var n=i("6120"),a=i.n(n);for(var c in n)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(c);e["default"]=a.a},6120:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("bf0f"),i("18f7"),i("de6c"),i("c223");var a=n(i("9b1b")),c=n(i("2634")),s=n(i("2fdc")),o=i("8f59"),r=n(i("cd23")),l=n(i("13f3")),u={components:{wPicker:l.default},data:function(){return{isLoad:!1,countList:[{key:"total_service_cash",title:"项目收益",text:"累计所有项目收益,不包含车费"},{key:"total_car_cash",title:"车费收益",text:"累计所有车费"}],countInd:0,showDialog:!1,curDay:"",curMonth:"",startYear:"",showKey:"",showDate:!1,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,o.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor}}),onLoad:function(){var t=this;return(0,s.default)((0,c.default)().mark((function e(){return(0,c.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(){uni.showNavigationBarLoading(),this.initRefresh(),uni.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:(0,a.default)((0,a.default)({},(0,o.mapMutations)([])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,c.default)().mark((function i(){var n,a;return(0,c.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.length>0&&void 0!==t[0]&&t[0],n||!e.$jweixin.isWechat()){i.next=5;break}return i.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:return e.$util.setNavigationBarColor({bg:e.primaryColor}),a=new Date(Math.ceil((new Date).getTime())),e.curDay=e.$util.formatTime(a,"YY-M-D"),e.curMonth=e.$util.formatTime(a,"YY-M"),e.startYear=e.$util.formatTime(a,"YY"),i.next=12,Promise.all([e.getCount(),e.getList()]);case 12:e.isLoad=!0;case 13:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getCount:function(){var t=this;return(0,s.default)((0,c.default)().mark((function e(){var i,n,a,s,o;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.activeIndex,n=t.$util.deepCopy(t.check_time),a=n.start_time,s=n.end_time,o={},1==i&&a&&s&&(o.start_time=t.$util.DateToUnix(a),o.end_time=t.$util.DateToUnix(s)+86400-1),e.next=6,t.$api.technician.coachCommissionData(o);case 6:t.count=e.sent;case 7:case"end":return e.stop()}}),e)})))()},getList:function(t){var e=this;return(0,s.default)((0,c.default)().mark((function i(){var n,a,s,o,r,l,u,d;return(0,c.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t&&(e.param.page=1,e.list.data=[],uni.pageScrollTo({scrollTop:0})),n=e.list,a=e.activeIndex,s=e.$util.deepCopy(e.param),o=e.$util.deepCopy(e.check_time),r=o.month,l=o.start_time,u=o.end_time,0==a&&(s.month=r?e.$util.DateToUnix("".concat(r,"-01")):""),1==a&&(s.start_time=l&&u?e.$util.DateToUnix(l):"",s.end_time=l&&u?e.$util.DateToUnix(u)+86400-1:""),i.next=8,e.$api.technician.coachCommissionList(s);case 8:d=i.sent,1==e.param.page||(d.data=n.data.concat(d.data)),e.list=d,e.loading=!1,e.$util.hideAll();case 12:case"end":return i.stop()}}),i)})))()},toShowDialog:function(t){this.countInd=t,this.$refs.show_rule_item.open()},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_
|