chunk-17b3bf17.24fcd054.js 9.0 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-17b3bf17"],{"0b65":function(t,e,n){"use strict";e.a={shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,n=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,n))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]}},af89:function(t,e,n){"use strict";var a=n("f6c0");n.n(a).a},badc:function(t,e,n){"use strict";n.r(e);var a=n("a34a"),r=n.n(a),i=n("2f62"),o=n("cd05"),c=n("2e83"),u=n("0b65");function s(t,e,n,a,r,i,o){try{var c=t[i](o),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(a,r)}function l(t){return function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function o(t){s(i,a,r,o,c,"next",t)}function c(t){s(i,a,r,o,c,"throw",t)}o(void 0)}))}}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m={name:"bill",data:function(){return{billList:[],formValidate:{nickname:"",start_time:"",end_time:"",type:"",page:1,limit:20},options:u.a,loading:!1,tabList:[],total:0,columns:[{title:"用户ID",key:"uid",sortable:!0,width:80},{title:"昵称",key:"nickname",minWidth:150},{title:"金额",minWidth:150,slot:"number"},{title:"类型",key:"title",minWidth:100},{title:"备注",key:"mark",minWidth:150},{title:"创建时间",key:"add_time",minWidth:200}]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(n,!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(i.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.selList(),this.getList()},methods:{onchangeTime:function(t){this.formValidate.start_time=t[0],this.formValidate.end_time=t[1]},selList:function(){var t=this;Object(o.b)().then(function(){var e=l(r.a.mark((function e(n){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.billList=n.data.list;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getList:function(){var t=this;this.loading=!0,Object(o.a)(this.formValidate).then(function(){var e=l(r.a.mark((function e(n){var a;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.data,t.tabList=a.data,t.total=a.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},userSearchs:function(){this.formValidate.page=1,this.getList()},exports:function(){var t=l(r.a.mark((function t(){var e,n,a,i,o,u,s;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=[],n=[],a=[],i="",(o=JSON.parse(JSON.stringify(this.formValidate))).page=1,u=0;case 4:if(!(u<o.page+1)){t.next=21;break}return t.next=7,this.getExcelData(o);case 7:if(s=t.sent,i||(i=s.filename),n.length||(n=s.filekey),e.length||(e=s.header),!s.export.length){t.next=16;break}a=a.concat(s.export),o.page++,t.next=18;break;case 16:return Object(c.a)(e,n,i,a),t.abrupt("return");case 18:u++,t.next=4;break;case 21:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),getExcelData:function(t){return new Promise((function(e,n){Object(o.m)(t).then((function(t){return e(t.data)}))}))}}},h=(n("af89"),n("2877")),p=Object(h.a)(m,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[n("div",{staticClass:"new_card_pd"},[n("Form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate,"label-width":t.labelWidth,inline:"","label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("FormItem",{attrs:{label:"昵称/ID:"}},[n("Input",{staticClass:"input-width",attrs:{"enter-button":"",placeholder:"请输入","element-id":"name"},model:{value:t.formValidate.nickname,callback:function(e){t.$set(t.formValidate,"nickname",e)},expression:"formValidate.nickname"}})],1),n("FormItem",{staticClass:"tab_data",attrs:{label:"时间范围:"}},[n("DatePicker",{staticClass:"input-width",attrs:{editable:!1,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),n("FormItem",{staticClass:"tab_data",attrs:{label:"筛选类型:"}},[n("Select",{staticClass:"input-add mr14",attrs:{clearable:""},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},t._l(t.billList,(function(e,a){return n("Option",{key:a,attrs:{value:e.type}},[t._v(t._s(e.title))])})),1),n("Button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("搜索")]),n("Button",{directives:[{name:"auth",rawName:"v-auth",value:["export-userFinance"],expression:"['export-userFinance']"}],staticClass:"export",on:{click:t.exports}},[t._v("导出")])],1)],1)],1)]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Table",{ref:"table",attrs:{"highlight-row":"",columns:t.columns,data:t.tabList,loading:t.loading,"no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"number",fn:function(e){var a=e.row;return[n("div",{class:[1===a.pm?"green":"red"]},[t._v("\n "+t._s(1===a.pm?a.number:"-"+a.number)+"\n ")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"687ad510",null);e.default=p.exports},cd05:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"e",(function(){return c})),n.d(e,"h",(function(){return u})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"k",(function(){return f})),n.d(e,"i",(function(){return d})),n.d(e,"n",(function(){return m})),n.d(e,"j",(function(){return h})),n.d(e,"m",(function(){return p})),n.d(e,"l",(function(){return g})),n.d(e,"g",(function(){return b}));var a=n("b6bd");function r(){return Object(a.a)({url:"finance/finance/bill_type",method:"get"})}function i(t){return Object(a.a)({url:"finance/finance/list",method:"get",params:t})}function o(t){return Object(a.a)({url:"finance/finance/commission_list",method:"get",params:t})}function c(t){return Object(a.a)({url:"finance/finance/user_info/".concat(t),method:"get"})}function u(t,e){return Object(a.a)({url:"finance/finance/extract_list/".concat(t),method:"get",params:e})}function s(t){return Object(a.a)({url:"finance/extract",method:"get",params:t})}function l(t){return Object(a.a)({url:"finance/extract/".concat(t,"/edit"),method:"get"})}function f(t,e){return Object(a.a)({url:"finance/extract/refuse/".concat(t),method:"put",data:e})}function d(t){return Object(a.a)({url:"finance/recharge",method:"get",params:t})}function m(t){return Object(a.a)({url:"finance/recharge/user_recharge",method:"get",params:t})}function h(t){return Object(a.a)({url:"finance/recharge/".concat(t,"/refund_edit"),method:"get"})}function p(t){return Object(a.a)({url:"export/userFinance",method:"get",params:t})}function g(t){return Object(a.a)({url:"export/userCommission",method:"get",params:t})}function b(t){return Object(a.a)({url:"export/userRecharge",method:"get",params:t})}},f6c0:function(t,e,n){}}]);