CRMEB/crmeb/public/admin/system_static/js/chunk-6734ae2d.4f76a35b.js
2023-09-19 17:39:39 +08:00

1 line
14 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6734ae2d"],{"0f58":function(t,e,n){"use strict";var r=n("bf1e");n.n(r).a},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"),o=n("f3f3"),i=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},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(e){s=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o,i,c,u;e=e&&e.prototype instanceof p?e:p,e=Object.create(e.prototype),r=new O(r||[]);return a(e,"_invoke",{value:(o=t,i=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")),h):(r=d(a,e.iterator,n.arg),"throw"===r.type?(n.method="throw",n.arg=r.arg,n.delegate=null,h):(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,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)))}(n,c),n)){if(n===h)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=d(o,i,c),"normal"===n.type){if(u=c.done?"completed":"suspendedYield",n.arg===h)continue;return{value:n.arg,done:c.done}}"throw"===n.type&&(u="completed",c.method="throw",c.arg=n.arg)}})}),e}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function p(){}function m(){}function g(){}o={};var b=(s(o,i,(function(){return this})),Object.getPrototypeOf),v=(b=b&&b(b(j([]))),b&&b!==e&&n.call(b,i)&&(o=b),g.prototype=p.prototype=Object.create(o));function y(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var o;a(this,"_invoke",{value:function(a,i){function c(){return new e((function(o,c){!function a(o,i,c,u){var l;o=d(t[o],t,i);if("throw"!==o.type)return(i=(l=o.arg).value)&&"object"==Object(r.a)(i)&&n.call(i,"__await")?e.resolve(i.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(i).then((function(t){l.value=t,c(l)}),(function(t){return a("throw",t,c,u)}));u(o.arg)}(a,i,o,c)}))}return o=o?o.then(c,c):c()}})}function _(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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function j(t){if(t){var e,r=t[i];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(v,"constructor",{value:m.prototype=g,configurable:!0}),a(g,"constructor",{value:m,configurable:!0}),m.displayName=s(g,l,"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,s(t,l,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},y(w.prototype),s(w.prototype,c,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new w(f(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},y(v),s(v,l,"Generator"),s(v,i,(function(){return this})),s(v,"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(x),!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 i.type="throw",i.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 o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.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 o=a;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},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),h},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),x(n),h}},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,x(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),h}},t}o={name:"bill",data:function(){return{billList:[],formValidate:{nickname:"",start_time:"",end_time:"",type:"",page:1,limit:20},loading:!1,tabList:[],total:0}},computed:Object(o.a)(Object(o.a)({},Object(i.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},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)}))},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("0f58"),i=n("2877"),n=Object(i.a)(o,(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("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[n("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-row",{attrs:{gutter:24}},[n("el-col",{attrs:{xl:6,lg:12,md:13,sm:12,xs:24}},[n("el-form-item",{attrs:{label:"关键字:"}},[n("el-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("el-col",{attrs:{xl:6,lg:12,md:13,sm:12,xs:24}},[n("el-form-item",{staticClass:"tab_data",attrs:{label:"时间范围:"}},[n("el-date-picker",{staticStyle:{width:"80%"},attrs:{clearable:"",editable:!1,format:"yyyy/MM/dd","value-format":"yyyy/MM/dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onchangeTime}})],1)],1),n("el-col",{attrs:{xl:6,lg:12,md:13,sm:12,xs:24}},[n("el-form-item",{staticClass:"tab_data",attrs:{label:"筛选类型:"}},[n("el-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(t,e){return n("el-option",{key:e,attrs:{value:t.type,label:t.title}})})),1)],1)],1),n("el-col",{attrs:{span:6}},[n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("搜索")]),n("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["export-userFinance"],expression:"['export-userFinance']"}],staticClass:"export",on:{click:t.exports}},[t._v("导出\n ")])],1)],1)],1)],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",attrs:{"highlight-current-row":"",data:t.tabList,"empty-text":"暂无数据"}},[n("el-table-column",{attrs:{label:"用户ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.uid))])]}}])}),n("el-table-column",{attrs:{label:"昵称","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.nickname))])]}}])}),n("el-table-column",{attrs:{label:"金额","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{class:[1===e.row.pm?"green":"red"]},[t._v("\n "+t._s(1===e.row.pm?e.row.number:"-"+e.row.number)+"\n ")])]}}])}),n("el-table-column",{attrs:{label:"类型","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.title))])]}}])}),n("el-table-column",{attrs:{label:"备注","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.mark))])]}}])}),n("el-table-column",{attrs:{label:"创建时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.add_time))])]}}])})],1),n("div",{staticClass:"acea-row row-right page"},[t.total?n("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getList}}):t._e()],1)],1)],1)}),[],!1,null,"177b4bff",null),e.default=n.exports},bf1e:function(t,e,n){},cd05:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return o})),n.d(e,"f",(function(){return i})),n.d(e,"e",(function(){return c})),n.d(e,"h",(function(){return u})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return s})),n.d(e,"m",(function(){return f})),n.d(e,"k",(function(){return d})),n.d(e,"r",(function(){return h})),n.d(e,"l",(function(){return p})),n.d(e,"q",(function(){return m})),n.d(e,"p",(function(){return g})),n.d(e,"g",(function(){return b})),n.d(e,"j",(function(){return v})),n.d(e,"o",(function(){return y})),n.d(e,"i",(function(){return w})),n.d(e,"n",(function(){return _}));var r=n("6b6c");function a(){return Object(r.a)({url:"finance/finance/bill_type",method:"get"})}function o(t){return Object(r.a)({url:"finance/finance/list",method:"get",params:t})}function i(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 l(t){return Object(r.a)({url:"finance/extract",method:"get",params:t})}function s(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 d(t){return Object(r.a)({url:"finance/recharge",method:"get",params:t})}function h(t){return Object(r.a)({url:"finance/recharge/user_recharge",method:"get",params:t})}function p(t){return Object(r.a)({url:"finance/recharge/".concat(t,"/refund_edit"),method:"get"})}function m(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 b(t){return Object(r.a)({url:"export/userRecharge",method:"get",params:t})}function v(t){return Object(r.a)({url:"statistic/flow/get_list",method:"get",params:t})}function y(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 _(t,e){return Object(r.a)({url:"finance/balance/set_mark/".concat(t),method:"post",data:e})}}}]);