chunk-22844407.b349ba0f.js 24 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-22844407"],{"07d4":function(t,e,r){},"93c9":function(t,e,r){"use strict";var n=r("b3e4");r.n(n).a},9400:function(t,e,r){"use strict";var n=r("07d4");r.n(n).a},b3e4:function(t,e,r){},cd05:function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return i})),r.d(e,"f",(function(){return a})),r.d(e,"e",(function(){return c})),r.d(e,"h",(function(){return s})),r.d(e,"d",(function(){return u})),r.d(e,"c",(function(){return l})),r.d(e,"m",(function(){return f})),r.d(e,"k",(function(){return h})),r.d(e,"r",(function(){return d})),r.d(e,"l",(function(){return p})),r.d(e,"q",(function(){return m})),r.d(e,"p",(function(){return g})),r.d(e,"g",(function(){return v})),r.d(e,"j",(function(){return y})),r.d(e,"o",(function(){return b})),r.d(e,"i",(function(){return w})),r.d(e,"n",(function(){return x}));var n=r("6b6c");function o(){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 a(t){return Object(n.a)({url:"finance/finance/commission_list",method:"get",params:t})}function c(t){return Object(n.a)({url:"finance/finance/user_info/".concat(t),method:"get"})}function s(t,e){return Object(n.a)({url:"finance/finance/extract_list/".concat(t),method:"get",params:e})}function u(t){return Object(n.a)({url:"finance/extract",method:"get",params:t})}function l(t){return Object(n.a)({url:"finance/extract/".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){return Object(n.a)({url:"finance/recharge",method:"get",params:t})}function d(t){return Object(n.a)({url:"finance/recharge/user_recharge",method:"get",params:t})}function p(t){return Object(n.a)({url:"finance/recharge/".concat(t,"/refund_edit"),method:"get"})}function m(t){return Object(n.a)({url:"export/userFinance",method:"get",params:t})}function g(t){return Object(n.a)({url:"export/userCommission",method:"get",params:t})}function v(t){return Object(n.a)({url:"export/userRecharge",method:"get",params:t})}function y(t){return Object(n.a)({url:"statistic/flow/get_list",method:"get",params:t})}function b(t,e){return Object(n.a)({url:"statistic/flow/set_mark/".concat(t),method:"post",data:e})}function w(t){return Object(n.a)({url:"finance/balance/list",method:"get",params:t})}function x(t,e){return Object(n.a)({url:"finance/balance/set_mark/".concat(t),method:"post",data:e})}},e9f8:function(t,e,r){"use strict";r.r(e),r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var n=r("0122"),o=r("c964"),i=r("f3f3"),a=r("2f62"),c=r("cd05");function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i,a,c,s;e=e&&e.prototype instanceof p?e:p,e=Object.create(e.prototype),n=new L(n||[]);return o(e,"_invoke",{value:(i=t,a=r,c=n,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return k()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r&&(r=function t(e,r){var n=r.method,o=e.iterator[n];return void 0===o?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d):(n=h(o,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,d):(o=n.arg,o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)))}(r,c),r)){if(r===d)continue;return r}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);if(s="executing",r=h(i,a,c),"normal"===r.type){if(s=c.done?"completed":"suspendedYield",r.arg===d)continue;return{value:r.arg,done:c.done}}"throw"===r.type&&(s="completed",c.method="throw",c.arg=r.arg)}})}),e}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function p(){}function m(){}function g(){}i={};var v=(l(i,a,(function(){return this})),Object.getPrototypeOf),y=(v=v&&v(v(O([]))),v&&v!==e&&r.call(v,a)&&(i=v),g.prototype=p.prototype=Object.create(i));function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var i;o(this,"_invoke",{value:function(o,a){function c(){return new e((function(i,c){!function o(i,a,c,s){var u;i=h(t[i],t,a);if("throw"!==i.type)return(a=(u=i.arg).value)&&"object"==Object(n.a)(a)&&r.call(a,"__await")?e.resolve(a.__await).then((function(t){o("next",t,c,s)}),(function(t){o("throw",t,c,s)})):e.resolve(a).then((function(t){u.value=t,c(u)}),(function(t){return o("throw",t,c,s)}));s(i.arg)}(o,a,i,c)}))}return i=i?i.then(c,c):c()}})}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function O(t){if(t){var e,n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:k}}function k(){return{value:void 0,done:!0}}return o(y,"constructor",{value:m.prototype=g,configurable:!0}),o(g,"constructor",{value:m,configurable:!0}),m.displayName=l(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,c,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),l(y,u,"Generator"),l(y,a,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,_(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}var u={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:Object(i.a)(Object(i.a)({},Object(a.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:100},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(c.e)(t).then(function(){var t=Object(o.a)(s().mark((function t(r){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:200===r.status?(n=r.data,e.detailsData=n.user_info,e.spinShow=!1):(e.spinShow=!1,e.$Message.error(r.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(c.h)(this.Ids,this.formValidate).then(function(){var e=Object(o.a)(s().mark((function e(r){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.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()}}},l=(r("9400"),r("2877"));function f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */f=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(e){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i,a,c,s;e=e&&e.prototype instanceof p?e:p,e=Object.create(e.prototype),n=new L(n||[]);return o(e,"_invoke",{value:(i=t,a=r,c=n,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return k()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r&&(r=function t(e,r){var n=r.method,o=e.iterator[n];return void 0===o?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d):(n=h(o,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,d):(o=n.arg,o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)))}(r,c),r)){if(r===d)continue;return r}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);if(s="executing",r=h(i,a,c),"normal"===r.type){if(s=c.done?"completed":"suspendedYield",r.arg===d)continue;return{value:r.arg,done:c.done}}"throw"===r.type&&(s="completed",c.method="throw",c.arg=r.arg)}})}),e}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function p(){}function m(){}function g(){}i={};var v=(u(i,a,(function(){return this})),Object.getPrototypeOf),y=(v=v&&v(v(O([]))),v&&v!==e&&r.call(v,a)&&(i=v),g.prototype=p.prototype=Object.create(i));function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var i;o(this,"_invoke",{value:function(o,a){function c(){return new e((function(i,c){!function o(i,a,c,s){var u;i=h(t[i],t,a);if("throw"!==i.type)return(a=(u=i.arg).value)&&"object"==Object(n.a)(a)&&r.call(a,"__await")?e.resolve(a.__await).then((function(t){o("next",t,c,s)}),(function(t){o("throw",t,c,s)})):e.resolve(a).then((function(t){u.value=t,c(u)}),(function(t){return o("throw",t,c,s)}));s(i.arg)}(o,a,i,c)}))}return i=i?i.then(c,c):c()}})}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function O(t){if(t){var e,n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:k}}function k(){return{value:void 0,done:!0}}return o(y,"constructor",{value:m.prototype=g,configurable:!0}),o(g,"constructor",{value:m,configurable:!0}),m.displayName=u(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,c,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,a,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,_(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}u={name:"commissionRecord",components:{commissionDetails:Object(l.a)(u,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{staticStyle:{width:"100%"}},[e("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?e("Spin",{attrs:{size:"large",fix:""}}):t._e(),e("div",{},[e("div",{staticClass:"dashboard-workplace-header-tip"},[e("div",{staticClass:"dashboard-workplace-header-tip-desc"},[e("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("姓名:"+t._s(t.detailsData.nickname))]),e("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("上级推广人:"+t._s(t.detailsData.spread_name||"无"))]),e("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("佣金总收入:"+t._s(t.detailsData.number))]),e("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("用户余额:"+t._s(t.detailsData.now_money))]),e("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("创建时间:"+t._s(t.detailsData.add_time))])])])]),e("Divider",{attrs:{dashed:""}}),e("Form",{ref:"formValidate",staticClass:"tabform",attrs:{"label-width":75,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("Row",{attrs:{gutter:24,type:"flex"}},[e("Col",{attrs:{span:"12"}},[e("FormItem",{staticClass:"tab_data",attrs:{label:"时间范围:"}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{editable:!1,format:"yyyy-MM-dd",type:"daterange",placement:"bottom-end",placeholder:"请选择时间范围"},on:{"on-change":t.onchangeTime}})],1)],1),e("Col",{attrs:{span:"4"}},[e("Button",{attrs:{type:"primary",icon:"ios-search"},on:{click:t.userSearchs}},[t._v("搜索")])],1)],1)],1),e("Table",{ref:"table",staticClass:"table",attrs:{columns:t.columns,data:t.tabList,loading:t.loading,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}}),e("div",{staticClass:"acea-row row-right page"},[e("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,null,null).exports},data:function(){return{total:0,loading:!1,tabList:[],formValidate:{nickname:"",price_max:"",price_min:"",excel:0,page:1,limit:20},columns:[{title:"用户信息",key:"nickname",minWidth:150},{title:"总佣金金额",key:"sum_number",sortable:"custom",minWidth:120},{title:"账户余额",key:"now_money",minWidth:100},{title:"账户佣金",key:"brokerage_price",sortable:"custom",minWidth:120},{title:"提现到账佣金",key:"extract_price",minWidth:150}]}},computed:Object(i.a)(Object(i.a)({},Object(a.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(c.f)(this.formValidate).then(function(){var e=Object(o.a)(f().mark((function e(r){var n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.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)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},userSearchs:function(){this.formValidate.page=1,this.getList()},exports:function(){var t=this,e=this.formValidate;e={price_max:e.price_max,price_min:e.price_min,nickname:e.nickname};Object(c.p)(e).then((function(t){location.href=t.data[0]})).catch((function(e){t.$Message.error(e.msg)}))},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()}}},r("93c9"),i=Object(l.a)(u,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Form",{ref:"formValidate",staticClass:"tabform",attrs:{"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("Row",{attrs:{gutter:24,type:"flex"}},[e("Col",{staticClass:"mr10",attrs:{xl:5,lg:8,md:10,sm:11,xs:24}},[e("FormItem",{attrs:{label:"昵称/ID:"}},[e("Input",{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)],1),e("Col",{attrs:{xl:6,lg:12,md:13,sm:12,xs:24}},[e("FormItem",{staticClass:"tab_data",attrs:{label:"佣金范围:"}},[e("Input-number",{staticClass:"mr10",attrs:{type:"number",min:0,"enter-button":"",placeholder:"¥","element-id":"price_min"},model:{value:t.formValidate.price_min,callback:function(e){t.$set(t.formValidate,"price_min",e)},expression:"formValidate.price_min"}}),e("span",{staticClass:"mr10"},[t._v("一")]),e("Input-number",{attrs:{type:"number",min:0,"enter-button":"",placeholder:"¥","element-id":"price_max"},model:{value:t.formValidate.price_max,callback:function(e){t.$set(t.formValidate,"price_max",e)},expression:"formValidate.price_max"}})],1)],1),e("Col",[e("Button",{attrs:{type:"primary",icon:"ios-search"},on:{click:t.userSearchs}},[t._v("搜索")]),e("Button",{directives:[{name:"auth",rawName:"v-auth",value:["export-userCommission"],expression:"['export-userCommission']"}],staticClass:"export",attrs:{icon:"ios-share-outline"},on:{click:t.exports}},[t._v("导出\n ")])],1)],1)],1),e("Table",{ref:"table",attrs:{columns:t.columns,data:t.tabList,loading:t.loading,"no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果"},on:{"on-sort-change":t.sortChanged}}),e("div",{staticClass:"acea-row row-right page"},[e("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),e("commission-details",{ref:"commission"})],1)}),[],!1,null,"7c736778",null),e.default=i.exports}}]);