chunk-fbed2012.f6c141c3.js 15 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-fbed2012"],{"0b65":function(t,e,a){"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,a=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,a))),[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]}}]}},"3b62":function(t,e,a){},7054:function(t,e,a){},"76e9":function(t,e,a){"use strict";var n=a("3b62");a.n(n).a},ae3e:function(t,e,a){"use strict";var n=a("7054");a.n(n).a},cd05:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"a",(function(){return i})),a.d(e,"f",(function(){return o})),a.d(e,"e",(function(){return s})),a.d(e,"m",(function(){return c})),a.d(e,"d",(function(){return l})),a.d(e,"i",(function(){return u})),a.d(e,"c",(function(){return d})),a.d(e,"h",(function(){return m})),a.d(e,"p",(function(){return f})),a.d(e,"j",(function(){return h})),a.d(e,"n",(function(){return p})),a.d(e,"s",(function(){return g})),a.d(e,"o",(function(){return b})),a.d(e,"r",(function(){return w})),a.d(e,"q",(function(){return v})),a.d(e,"k",(function(){return D})),a.d(e,"l",(function(){return y})),a.d(e,"g",(function(){return x}));var n=a("b6bd");function r(){return Object(n.a)({url:"finance/finance/bill_type",method:"get"})}function i(t){return Object(n.a)({url:"finance/finance/list",method:"get",params:t})}function o(t){return Object(n.a)({url:"finance/finance/commission_list",method:"get",params:t})}function s(t){return Object(n.a)({url:"finance/finance/user_info/".concat(t),method:"get"})}function c(t,e){return Object(n.a)({url:"finance/finance/extract_list/".concat(t),method:"get",params:e})}function l(t){return Object(n.a)({url:"finance/extract",method:"get",params:t})}function u(t){return Object(n.a)({url:"finance/exchange",method:"get",params:t})}function d(t){return Object(n.a)({url:"finance/extract/".concat(t,"/edit"),method:"get"})}function m(t){return Object(n.a)({url:"finance/exchange/".concat(t,"/edit"),method:"get"})}function f(t,e){return Object(n.a)({url:"finance/extract/refuse/".concat(t),method:"put",data:e})}function h(t,e){return Object(n.a)({url:"finance/exchange/refuse/".concat(t),method:"put",data:e})}function p(t){return Object(n.a)({url:"finance/recharge",method:"get",params:t})}function g(t){return Object(n.a)({url:"finance/recharge/user_recharge",method:"get",params:t})}function b(t){return Object(n.a)({url:"finance/recharge/".concat(t,"/refund_edit"),method:"get"})}function w(t){return Object(n.a)({url:"export/userFinance",method:"get",params:t})}function v(t){return Object(n.a)({url:"export/userCommission",method:"get",params:t})}function D(t){return Object(n.a)({url:"export/userRecharge",method:"get",params:t})}function y(t){return Object(n.a)({url:"export/extract",method:"get",params:t})}function x(t){return Object(n.a)({url:"export/exchange",method:"get",params:t})}},e9f8:function(t,e,a){"use strict";a.r(e);var n=a("a34a"),r=a.n(n),i=a("2f62"),o=a("cd05");function s(t,e,a,n,r,i,o){try{var s=t[i](o),c=s.value}catch(t){return void a(t)}s.done?e(c):Promise.resolve(c).then(n,r)}function c(t){return function(){var e=this,a=arguments;return new Promise((function(n,r){var i=t.apply(e,a);function o(t){s(i,n,r,o,c,"next",t)}function c(t){s(i,n,r,o,c,"throw",t)}o(void 0)}))}}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function u(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var d={name:"commissionDetails",data:function(){return{modals:!1,spinShow:!1,detailsData:{},Ids:0,loading:!1,formValidate:{nickname:"",start_time:"",end_time:"",page:1,limit:20},total:0,columns:[{title:"佣金金额",key:"number",minWidth:80},{title:"获得时间",key:"_add_time",minWidth:150},{title:"备注",key:"mark",minWidth:330}],tabList:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?l(a,!0).forEach((function(e){u(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):l(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},Object(i.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),mounted:function(){this.Ids&&this.getList()},methods:{onchangeTime:function(t){this.formValidate.start_time=t[0],this.formValidate.end_time=t[1]},getDetails:function(t){var e=this;this.Ids=t,this.spinShow=!0,Object(o.e)(t).then(function(){var t=c(r.a.mark((function t(a){var n;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:200===a.status?(n=a.data,e.detailsData=n.user_info,e.spinShow=!1):(e.spinShow=!1,e.$Message.error(a.msg));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.spinShow=!1,e.$Message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,Object(o.m)(this.Ids,this.formValidate).then(function(){var e=c(r.a.mark((function e(a){var n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a.data,t.tabList=n.data,t.total=n.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()}}},m=(a("ae3e"),a("2877")),f=Object(m.a)(d,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"100%"}},[a("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:"用户详情","mask-closable":!1,width:"700"},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.spinShow?a("Spin",{attrs:{size:"large",fix:""}}):t._e(),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"dashboard-workplace-header-tip"},[a("div",{staticClass:"dashboard-workplace-header-tip-desc"},[a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("姓名:"+t._s(t.detailsData.nickname))]),a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("上级推广人:"+t._s(t.detailsData.spread_name?t.detailsData.spread_name:"无"))]),a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("佣金总收入:"+t._s(t.detailsData.number))]),a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("用户余额:"+t._s(t.detailsData.now_money))]),a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("创建时间:"+t._s(t.detailsData.add_time))])])])]),a("Divider",{attrs:{dashed:""}}),a("Form",{ref:"formValidate",staticClass:"tabform",attrs:{"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[a("Row",{attrs:{gutter:24,type:"flex"}},[a("Col",{attrs:{span:"12"}},[a("FormItem",{staticClass:"tab_data",attrs:{label:"时间范围:"}},[a("DatePicker",{staticStyle:{width:"100%"},attrs:{editable:!1,format:"yyyy-MM-dd",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{"on-change":t.onchangeTime}})],1)],1),a("Col",{attrs:{span:"4"}},[a("Button",{attrs:{type:"primary",icon:"ios-search"},on:{click:t.userSearchs}},[t._v("搜索")])],1)],1)],1),a("Table",{ref:"table",staticClass:"table",attrs:{columns:t.columns,data:t.tabList,loading:t.loading,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}}),a("div",{staticClass:"acea-row row-right page"},[a("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,"46f9247a",null).exports,h=a("2e83"),p=a("0b65");function g(t,e,a,n,r,i,o){try{var s=t[i](o),c=s.value}catch(t){return void a(t)}s.done?e(c):Promise.resolve(c).then(n,r)}function b(t){return function(){var e=this,a=arguments;return new Promise((function(n,r){var i=t.apply(e,a);function o(t){g(i,n,r,o,s,"next",t)}function s(t){g(i,n,r,o,s,"throw",t)}o(void 0)}))}}function w(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function v(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var D={name:"commissionRecord",components:{commissionDetails:f},data:function(){return{timeVal:[],total:0,loading:!1,tabList:[],formValidate:{nickname:"",price_max:"",price_min:"",excel:0,page:1,limit:20},options:p.a,columns:[{title:"昵称/姓名/ID",slot:"nickname",minWidth:230},{title:"总佣金金额",key:"sum_number",minWidth:120},{title:"账户余额",key:"now_money",minWidth:100},{title:"账户佣金",key:"brokerage_price",minWidth:120},{title:"提现到账佣金",key:"extract_price",minWidth:150},{title:"时间",key:"time",minWidth:150},{title:"操作",slot:"action",minWidth:100}]}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?w(a,!0).forEach((function(e){v(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):w(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},Object(i.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(o.f)(this.formValidate).then(function(){var e=b(r.a.mark((function e(a){var n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a.data,t.tabList=n.list,t.total=n.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)}))},selectChange:function(t){this.formValidate.page=1,this.formValidate.date=t,this.timeVal=[],this.getList()},onchangeTime:function(t){this.timeVal=t,this.formValidate.date=this.timeVal[0]?this.timeVal.join("-"):"",this.formValidate.page=1,t[0]||(this.formValidate.date=""),this.getList()},pageChange:function(t){this.formValidate.page=t,this.getList()},userSearchs:function(){this.formValidate.page=1,this.getList()},exports:function(){var t=b(r.a.mark((function t(){var e,a,n,i,o,s,c;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=[],a=[],n=[],i="",(o=JSON.parse(JSON.stringify(this.formValidate))).page=1,s=0;case 4:if(!(s<o.page+1)){t.next=21;break}return t.next=7,this.getExcelData(o);case 7:if(c=t.sent,i||(i=c.filename),a.length||(a=c.filekey),e.length||(e=c.header),!c.export.length){t.next=16;break}n=n.concat(c.export),o.page++,t.next=18;break;case 16:return Object(h.a)(e,a,i,n),t.abrupt("return");case 18:s++,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,a){Object(o.q)(t).then((function(t){return e(t.data)}))}))},Info:function(t){this.$refs.commission.modals=!0,this.$refs.commission.getDetails(t.uid),this.$refs.commission.getList(t.uid)},sortChanged:function(t){"sum_number"==t.key?delete this.formValidate.brokerage_price:delete this.formValidate.sum_number,this.formValidate[t.key]=t.order,this.getList()}}},y=(a("76e9"),Object(m.a)(D,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[a("div",{staticClass:"new_card_pd"},[a("Form",{ref:"formValidate",staticClass:"tabform",attrs:{"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"时间选择:"}},[a("DatePicker",{staticClass:"input-add",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),a("FormItem",{attrs:{label:"昵称/ID:"}},[a("Input",{staticClass:"input-add",attrs:{"enter-button":"",placeholder:"请输入","element-id":"nickname",clearable:""},model:{value:t.formValidate.nickname,callback:function(e){t.$set(t.formValidate,"nickname",e)},expression:"formValidate.nickname"}})],1),a("FormItem",{staticClass:"tab_data",attrs:{label:"佣金范围:"}},[a("Input",{staticClass:"mr10",staticStyle:{width:"109px"},attrs:{"enter-button":"",placeholder:"¥","element-id":"price_min",clearable:""},model:{value:t.formValidate.price_min,callback:function(e){t.$set(t.formValidate,"price_min",e)},expression:"formValidate.price_min"}}),a("span",{staticClass:"mr10"},[t._v("一")]),a("Input",{staticStyle:{width:"109px","margin-right":"14px"},attrs:{"enter-button":"",placeholder:"¥","element-id":"price_max",clearable:""},model:{value:t.formValidate.price_max,callback:function(e){t.$set(t.formValidate,"price_max",e)},expression:"formValidate.price_max"}}),a("Button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")]),a("Button",{directives:[{name:"auth",rawName:"v-auth",value:["export-userCommission"],expression:"['export-userCommission']"}],staticClass:"export",on:{click:t.exports}},[t._v("导出")])],1)],1)],1)]),a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.tabList,loading:t.loading,"no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果"},on:{"on-sort-change":t.sortChanged},scopedSlots:t._u([{key:"nickname",fn:function(e){var n=e.row;return e.index,[a("span",[t._v(t._s(n.nickname)+" ")]),null!=n.delete_time?a("span",{staticStyle:{color:"#ed4014"}},[t._v(" (已注销)")]):t._e()]}},{key:"action",fn:function(e){var n=e.row;return e.index,[a("a",{on:{click:function(e){return t.Info(n)}}},[t._v("详情")])]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("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),a("commission-details",{ref:"commission"})],1)}),[],!1,null,"fff1fa42",null));e.default=y.exports}}]);