chunk-829aa68e.be2e90d1.js 14 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-829aa68e"],{a36d:function(t,e,n){},badc:function(t,e,n){"use strict";n.r(e),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("159b"),n("b0c0"),n("131a"),n("fb6a");var r=n("0122"),a=n("c964"),i=n("f3f3"),o=n("2f62"),c=n("cd05");function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i,o,c,u;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),r=new O(r||[]);return a(e,"_invoke",{value:(i=t,o=n,c=r,u="suspendedStart",function(t,e){if("executing"===u)throw new Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return L()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n&&(n=function t(e,n){var r=n.method,a=e.iterator[r];return void 0===a?(n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d):(r=h(a,e.iterator,n.arg),"throw"===r.type?(n.method="throw",n.arg=r.arg,n.delegate=null,d):(a=r.arg,a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,d):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)))}(n,c),n)){if(n===d)continue;return n}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);if(u="executing",n=h(i,o,c),"normal"===n.type){if(u=c.done?"completed":"suspendedYield",n.arg===d)continue;return{value:n.arg,done:c.done}}"throw"===n.type&&(u="completed",c.method="throw",c.arg=n.arg)}})}),e}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function m(){}function p(){}function g(){}i={};var y=(l(i,o,(function(){return this})),Object.getPrototypeOf),b=(y=y&&y(y(j([]))),y&&y!==e&&n.call(y,o)&&(i=y),g.prototype=m.prototype=Object.create(i));function v(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var i;a(this,"_invoke",{value:function(a,o){function c(){return new e((function(i,c){!function a(i,o,c,u){var s;i=h(t[i],t,o);if("throw"!==i.type)return(o=(s=i.arg).value)&&"object"==Object(r.a)(o)&&n.call(o,"__await")?e.resolve(o.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(o).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}));u(i.arg)}(a,o,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 O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var e,r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(r=function r(){for(;++e<t.length;)if(n.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r}).next=r}return{next:L}}function L(){return{value:void 0,done:!0}}return a(b,"constructor",{value:p.prototype=g,configurable:!0}),a(g,"constructor",{value:p,configurable:!0}),p.displayName=l(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},v(w.prototype),l(w.prototype,c,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,a,i){void 0===i&&(i=Promise);var o=new w(f(e,n,r,a),i);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},v(b),l(b,s,"Generator"),l(b,o,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,n=Object(t),r=[];for(e in n)r.push(e);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=j,O.prototype={constructor:O,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)&&n.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 r(n,r){return o.type="throw",o.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var a=this.tryEntries.length-1;0<=a;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(o)},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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,a=this.tryEntries[e];if(a.tryLoc===t)return"throw"===(n=a.completion).type&&(r=n.arg,_(a)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}i={name:"bill",data:function(){return{billList:[],formValidate:{nickname:"",start_time:"",end_time:"",type:"",page:1,limit:20},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:Object(i.a)(Object(i.a)({},Object(o.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:80},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(c.b)().then(function(){var e=Object(a.a)(u().mark((function e(n){return u().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(c.a)(this.formValidate).then(function(){var e=Object(a.a)(u().mark((function e(n){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.tabList=r.data,t.total=r.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={start_time:e.start_time,end_time:e.end_time,nickname:e.nickname,type:e.type};Object(c.q)(e).then((function(t){location.href=t.data[0]})).catch((function(e){t.$Message.error(e.msg)}))}}},n("ed0f"),o=n("2877"),n=Object(o.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"i-layout-page-header header-title"},[n("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.$route.meta.title))])]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("Row",{attrs:{gutter:24,type:"flex"}},[n("Col",{attrs:{xl:6,lg:12,md:13,sm:12,xs:24}},[n("FormItem",{attrs:{label:"关键字:"}},[n("Input",{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)],1),n("Col",{attrs:{xl:6,lg:12,md:13,sm:12,xs:24}},[n("FormItem",{staticClass:"tab_data",attrs:{label:"时间范围:"}},[n("DatePicker",{staticStyle:{width:"80%"},attrs:{editable:!1,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end",placeholder:"请选择时间"},on:{"on-change":t.onchangeTime}})],1)],1),n("Col",{attrs:{xl:6,lg:12,md:13,sm:12,xs:24}},[n("FormItem",{staticClass:"tab_data",attrs:{label:"筛选类型:"}},[n("Select",{staticStyle:{width:"200px",height:"32px"},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,r){return n("Option",{key:r,attrs:{value:e.type}},[t._v(t._s(e.title))])})),1)],1)],1),n("Col",{attrs:{span:"6"}},[n("FormItem",[n("Button",{attrs:{type:"primary",icon:"ios-search"},on:{click:t.userSearchs}},[t._v("搜索")]),n("Button",{directives:[{name:"auth",rawName:"v-auth",value:["export-userFinance"],expression:"['export-userFinance']"}],staticClass:"export",attrs:{icon:"ios-share-outline"},on:{click:t.exports}},[t._v("导出\n ")])],1)],1)],1)],1),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){return e=e.row,[n("div",{class:[1===e.pm?"green":"red"]},[t._v("\n "+t._s(1===e.pm?e.number:"-"+e.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,"0914f1e6",null),e.default=n.exports},cd05:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),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,"m",(function(){return f})),n.d(e,"k",(function(){return h})),n.d(e,"r",(function(){return d})),n.d(e,"l",(function(){return m})),n.d(e,"q",(function(){return p})),n.d(e,"p",(function(){return g})),n.d(e,"g",(function(){return y})),n.d(e,"j",(function(){return b})),n.d(e,"o",(function(){return v})),n.d(e,"i",(function(){return w})),n.d(e,"n",(function(){return x}));var r=n("6b6c");function a(){return Object(r.a)({url:"finance/finance/bill_type",method:"get"})}function i(t){return Object(r.a)({url:"finance/finance/list",method:"get",params:t})}function o(t){return Object(r.a)({url:"finance/finance/commission_list",method:"get",params:t})}function c(t){return Object(r.a)({url:"finance/finance/user_info/".concat(t),method:"get"})}function u(t,e){return Object(r.a)({url:"finance/finance/extract_list/".concat(t),method:"get",params:e})}function s(t){return Object(r.a)({url:"finance/extract",method:"get",params:t})}function l(t){return Object(r.a)({url:"finance/extract/".concat(t,"/edit"),method:"get"})}function f(t,e){return Object(r.a)({url:"finance/extract/refuse/".concat(t),method:"put",data:e})}function h(t){return Object(r.a)({url:"finance/recharge",method:"get",params:t})}function d(t){return Object(r.a)({url:"finance/recharge/user_recharge",method:"get",params:t})}function m(t){return Object(r.a)({url:"finance/recharge/".concat(t,"/refund_edit"),method:"get"})}function p(t){return Object(r.a)({url:"export/userFinance",method:"get",params:t})}function g(t){return Object(r.a)({url:"export/userCommission",method:"get",params:t})}function y(t){return Object(r.a)({url:"export/userRecharge",method:"get",params:t})}function b(t){return Object(r.a)({url:"statistic/flow/get_list",method:"get",params:t})}function v(t,e){return Object(r.a)({url:"statistic/flow/set_mark/".concat(t),method:"post",data:e})}function w(t){return Object(r.a)({url:"finance/balance/list",method:"get",params:t})}function x(t,e){return Object(r.a)({url:"finance/balance/set_mark/".concat(t),method:"post",data:e})}},ed0f:function(t,e,n){"use strict";var r=n("a36d");n.n(r).a}}]);