chunk-d8db1fb2.9a0cfdd6.js 19 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-d8db1fb2"],{"0436":function(t,e,a){"use strict";var r=a("2f62");function n(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s={name:"publicSearchFrom",props:{fromList:{type:Array},searchFrom:{type:Object},treeData:{type:Object},isExist:{type:Object}},data:function(){return{date:"全部",withdrawalTxt:"提现状态",paymentTxt:"提现方式"}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?n(a,!0).forEach((function(e){i(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):n(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},Object(r.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){},methods:{changeTree:function(){}}},o=(a("4091"),a("2877")),c=Object(o.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Form",{ref:"orderData",staticClass:"tabform",attrs:{"label-width":t.labelWidth,"label-position":t.labelPosition}},[t._l(t.fromList,(function(e,r){return a("Row",{key:r,attrs:{gutter:24,type:"flex"}},[a("Col",{attrs:{xl:8,lg:8,md:8,sm:24,xs:24}},[a("FormItem",{attrs:{label:e.title+":"}},[a("RadioGroup",{attrs:{type:"button"},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}},t._l(e.fromTxt,(function(r,n){return a("Radio",{key:n,attrs:{label:r.text}},[t._v(t._s(r.text)+t._s(e.num))])})),1)],1)],1),e.custom?a("Col",[a("FormItem",{staticClass:"tab_data"},[a("DatePicker",{staticClass:"width20",attrs:{editable:!1,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"}})],1)],1):t._e()],1)})),t.isExist.existOne?a("Row",{attrs:{gutter:24,type:"flex"}},[a("Col",{staticClass:"mr",attrs:{span:"10"}},[a("FormItem",{attrs:{label:t.searchFrom.title+":",prop:"real_name","label-for":"real_name"}},[a("Input",{attrs:{search:"","enter-button":"",placeholder:t.searchFrom.place,"element-id":"name"}})],1)],1),a("Col",[a("Button",{staticClass:"mr"},[t._v("导出")]),a("span",{staticClass:"Refresh"},[t._v("刷新")]),a("Icon",{attrs:{type:"ios-refresh"}})],1)],1):t._e(),t.isExist.existTwo?a("Row",{staticClass:"withdrawal",attrs:{gutter:24,type:"flex"}},[a("Col",{staticClass:"item",attrs:{span:"2.5"}},[a("TreeSelect",{directives:[{name:"width",rawName:"v-width",value:160,expression:"160"}],attrs:{data:t.treeData.withdrawal},on:{"on-change":t.changeTree},model:{value:t.withdrawalTxt,callback:function(e){t.withdrawalTxt=e},expression:"withdrawalTxt"}})],1),a("Col",{staticClass:"item",attrs:{span:"2.5"}},[a("TreeSelect",{directives:[{name:"width",rawName:"v-width",value:160,expression:"160"}],attrs:{data:t.treeData.payment},on:{"on-change":t.changeTree},model:{value:t.paymentTxt,callback:function(e){t.paymentTxt=e},expression:"paymentTxt"}})],1),a("Col",{staticClass:"item",attrs:{span:"6"}},[a("Input",{attrs:{search:"","enter-button":"",placeholder:"微信名称、姓名、支付宝账号、银行卡号","element-id":"name"}})],1)],1):t._e()],2)],1)}),[],!1,null,"ad82d0da",null);e.a=c.exports},"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]}}]}},"31b4":function(t,e,a){"use strict";var r=a("9860"),n=a.n(r),i=a("b6bd"),s=a("2f62");function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function c(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var l={name:"edit",components:{formCreate:n.a.$form()},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(a,!0).forEach((function(e){c(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},Object(s.e)("admin/userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},userEdit:{type:Number,default:0}},data:function(){return{modals:!1,type:0,config:{global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.Message.error(t.msg)}}}}},isDisable:!1}},methods:{couponsType:function(){this.$parent.addType(this.type)},onSubmit:function(t){var e,a=this;(setTimeout((function(){a.isDisable=!1}),1e3),this.isDisable)||(this.isDisable=!0,e=t,Object(i.a)({url:this.FromData.action,method:this.FromData.method,data:e}).then((function(t){a.$parent.getList(),a.$Message.success(t.msg),a.modals=!1,setTimeout((function(){a.$emit("submitFail")}),1e3)})).catch((function(t){a.$Message.error(t.msg)})))},cancel:function(){this.type=0}}},u=(a("bddf"),a("2877")),d=Object(u.a)(l,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.FromData?a("div",[a("Modal",{class:t.userEdit?"userEdit":"",attrs:{scrollable:"","footer-hide":"",closable:"",title:t.FromData.title,width:"700"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[["/marketing/coupon/save.html"===t.FromData.action?a("div",{staticClass:"radio acea-row row-middle"},[a("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),a("Radio-group",{on:{"on-change":t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("Radio",{attrs:{label:0}},[t._v("通用券")]),a("Radio",{attrs:{label:1}},[t._v("品类券")]),a("Radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],a("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(t.FromData.rules),handleIcon:"false"},on:{"on-submit":t.onSubmit}})],2)],1):t._e()}),[],!1,null,"2850396f",null);e.a=d.exports},"3cb6":function(t,e,a){},"3f15":function(t,e,a){"use strict";var r=a("a973");a.n(r).a},4091:function(t,e,a){"use strict";var r=a("f57e");a.n(r).a},"5dd9":function(t,e,a){"use strict";var r=a("fd59");a.n(r).a},7027:function(t,e,a){"use strict";a.r(e);var r=a("a34a"),n=a.n(r),i=a("a584"),s=a("0436"),o=a("2f62"),c=a("2e83"),l=a("cd05"),u=a("31b4"),d=a("0b65");function f(t,e,a,r,n,i,s){try{var o=t[i](s),c=o.value}catch(t){return void a(t)}o.done?e(c):Promise.resolve(c).then(r,n)}function m(t){return function(){var e=this,a=arguments;return new Promise((function(r,n){var i=t.apply(e,a);function s(t){f(i,r,n,s,o,"next",t)}function o(t){f(i,r,n,s,o,"throw",t)}s(void 0)}))}}function p(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function h(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var g={name:"recharge",components:{cardsData:i.a,searchFrom:s.a,editFrom:u.a},data:function(){return{FromData:null,formValidate:{data:"",paid:"",nickname:"",excel:0,page:1,limit:20},formValidate2:{data:"",paid:"",nickname:""},total:0,cardLists:[],loading:!1,columns:[{title:"ID",key:"id",sortable:!0,width:80},{title:"头像",key:"avatar",minWidth:80,render:function(t,e){return t("viewer",[t("div",{style:{width:"36px",height:"36px",borderRadius:"4px",cursor:"pointer"}},[t("img",{attrs:{src:e.row.avatar?e.row.avatar:a("7153")},style:{width:"100%",height:"100%"}})])])}},{title:"用户昵称",slot:"nickname",minWidth:150},{title:"订单号",key:"order_id",minWidth:160},{title:"支付金额",key:"price",minWidth:110},{title:"是否支付",slot:"paid_type",minWidth:110},{title:"充值类型",key:"_recharge_type",minWidth:100},{title:"支付时间",key:"_pay_time",minWidth:120},{title:"操作",slot:"right",minWidth:100}],tabList:[],options:d.a,timeVal:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?p(a,!0).forEach((function(e){h(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):p(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},Object(o.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.getList(),this.getUserRecharge()},methods:{del:function(t,e,a){var r=this,n={title:e,num:a,url:"finance/recharge/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(n).then((function(t){r.$Message.success(t.msg),r.tabList.splice(a,1),r.tabList.length||(r.formValidate.page=1==r.formValidate.page?1:r.formValidate.page-1),r.getUserRecharge(),r.getList()})).catch((function(t){r.$Message.error(t.msg)}))},refund:function(t){var e=this;Object(l.j)(t.id).then(function(){var t=m(n.a.mark((function t(a){return n.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==a.data.status){t.next=2;break}return t.abrupt("return",e.$authLapse(a.data));case 2:e.FromData=a.data,e.$refs.edits.modals=!0;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},submitFail:function(){this.getList(),this.getUserRecharge()},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal[0]?this.timeVal.join("-"):"",this.formValidate.page=1,this.getList(),this.getUserRecharge()},selectChange:function(t){this.formValidate.data=t,this.timeVal=[],this.formValidate.page=1,this.getList(),this.getUserRecharge()},selChange:function(){this.formValidate.page=1,this.getList(),this.getUserRecharge()},getList:function(){var t=this;this.loading=!0,Object(l.i)(this.formValidate).then(function(){var e=m(n.a.mark((function e(a){var r;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.tabList=r.list,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)}))},orderSearch:function(){this.formValidate.page=1,this.getList()},pageChange:function(t){this.formValidate.page=t,this.getList()},getUserRecharge:function(){var t=this;Object(l.n)({data:this.formValidate.data,paid:this.formValidate.paid,nickname:this.formValidate.nickname}).then(function(){var e=m(n.a.mark((function e(a){var r;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.cardLists=r;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},exports:function(){var t=m(n.a.mark((function t(){var e,a,r,i,s,o,l;return n.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=[],a=[],r=[],i="",(s=JSON.parse(JSON.stringify(this.formValidate))).page=1,o=0;case 4:if(!(o<s.page+1)){t.next=21;break}return t.next=7,this.getExcelData(s);case 7:if(l=t.sent,i||(i=l.filename),a.length||(a=l.filekey),e.length||(e=l.header),!l.export.length){t.next=16;break}r=r.concat(l.export),s.page++,t.next=18;break;case 16:return Object(c.a)(e,a,i,r),t.abrupt("return");case 18:o++,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(l.g)(t).then((function(t){return e(t.data)}))}))}}},b=(a("3f15"),a("2877")),v=Object(b.a)(g,(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:{model:t.formValidate,"label-width":t.labelWidth,inline:"","label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"时间选择:"}},[a("DatePicker",{staticClass:"input-width",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:"支付类型:"}},[a("Select",{staticClass:"input-add",model:{value:t.formValidate.paid,callback:function(e){t.$set(t.formValidate,"paid",e)},expression:"formValidate.paid"}},[a("Option",{attrs:{value:""}},[t._v("全部")]),a("Option",{attrs:{value:"1"}},[t._v("已支付")]),a("Option",{attrs:{value:"0"}},[t._v("未支付")])],1)],1),a("FormItem",{attrs:{label:"搜索:"}},[a("Input",{staticClass:"mr input-add",attrs:{placeholder:"请输入用户昵称、订单号","element-id":"name"},on:{"on-search":t.selChange},model:{value:t.formValidate.nickname,callback:function(e){t.$set(t.formValidate,"nickname",e)},expression:"formValidate.nickname"}}),a("Button",{staticClass:"mr",attrs:{type:"primary"},on:{click:function(e){return t.orderSearch()}}},[t._v("查询")]),a("Button",{directives:[{name:"auth",rawName:"v-auth",value:["export-userRecharge"],expression:"['export-userRecharge']"}],on:{click:t.exports}},[t._v("导出")])],1)],1)],1)]),t.cardLists.length>=0?a("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),a("Card",{attrs:{bordered:!1,"dis-hover":""}},[a("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tabList,loading:t.loading,"no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"nickname",fn:function(e){var r=e.row;return[a("span",[t._v(t._s(r.nickname)+" ")]),null!=r.delete_time?a("span",{staticStyle:{color:"#ed4014"}},[t._v(" (已注销)")]):t._e()]}},{key:"paid_type",fn:function(e){var r=e.row;return[a("Tag",{directives:[{name:"show",rawName:"v-show",value:"未支付"===r.paid_type,expression:"row.paid_type === '未支付'"}],attrs:{color:"orange",size:"large"}},[t._v(t._s(r.paid_type))]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:"已支付"===r.paid_type,expression:"row.paid_type === '已支付'"}],attrs:{color:"green",size:"large"}},[t._v(t._s(r.paid_type))]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:"全部"===r.paid_type,expression:"row.paid_type === '全部'"}],attrs:{color:"default",size:"large"}},[t._v(t._s(r.paid_type))])]}},{key:"right",fn:function(e){var r=e.row,n=e.index;return[r.refund_price<=0&&r.paid&&null==r.delete_time?a("a",{attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.refund(r)}}},[t._v("退款")]):t._e(),0===r.paid?a("a",{attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.del(r,"删除此条充值记录",n)}}},[t._v("删除")]):t._e()]}}])}),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("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}})],1)}),[],!1,null,"44700707",null);e.default=v.exports},a584:function(t,e,a){"use strict";var r;function n(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var i=(n(r={name:"cards",data:function(){return{}},props:{cardLists:Array}},"data",(function(){return{}})),n(r,"methods",{}),n(r,"created",(function(){})),r),s=(a("5dd9"),a("2877")),o=Object(s.a)(i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:16}},t._l(t.cardLists,(function(e,r){return a("Col",{key:r,staticClass:"ivu-mb",attrs:{xs:24,sm:24,md:24,lg:12,xl:8,xxl:{span:e.col}}},[a("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[a("div",{staticClass:"card_box"},[a("div",{staticClass:"card_box_cir",class:{one:r%5==0,two:r%5==1,three:r%5==2,four:r%5==3,five:r%5==4}},[a("div",{staticClass:"card_box_cir1",class:{one1:r%5==0,two1:r%5==1,three1:r%5==2,four1:r%5==3,five1:r%5==4}},[e.type?a("span",{staticClass:"iconfont",class:e.className}):a("Icon",{attrs:{type:e.className}})],1)]),a("div",{staticClass:"card_box_txt"},[a("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),a("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])],1)})),1)],1)}),[],!1,null,"4e72687f",null);e.a=o.exports},a973:function(t,e,a){},bddf:function(t,e,a){"use strict";var r=a("3cb6");a.n(r).a},cd05:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"a",(function(){return i})),a.d(e,"f",(function(){return s})),a.d(e,"e",(function(){return o})),a.d(e,"h",(function(){return c})),a.d(e,"d",(function(){return l})),a.d(e,"c",(function(){return u})),a.d(e,"k",(function(){return d})),a.d(e,"i",(function(){return f})),a.d(e,"n",(function(){return m})),a.d(e,"j",(function(){return p})),a.d(e,"m",(function(){return h})),a.d(e,"l",(function(){return g})),a.d(e,"g",(function(){return b}));var r=a("b6bd");function n(){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 s(t){return Object(r.a)({url:"finance/finance/commission_list",method:"get",params:t})}function o(t){return Object(r.a)({url:"finance/finance/user_info/".concat(t),method:"get"})}function c(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 u(t){return Object(r.a)({url:"finance/extract/".concat(t,"/edit"),method:"get"})}function d(t,e){return Object(r.a)({url:"finance/extract/refuse/".concat(t),method:"put",data:e})}function f(t){return Object(r.a)({url:"finance/recharge",method:"get",params:t})}function m(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 h(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})}},f57e:function(t,e,a){},fd59:function(t,e,a){}}]);