CRMEB/crmeb/public/admin/js/chunk-a6120454.ea7db80a.js
2022-04-09 14:31:22 +08:00

1 line
17 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a6120454"],{"0436":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Form",{ref:"orderData",staticClass:"tabform",attrs:{"label-width":80,"label-position":"right"}},[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",{staticStyle:{width:"200px"},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",{staticClass:"perW160",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",{staticClass:"perW160",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)},n=[],i={name:"publicSearchFrom",props:{fromList:{type:Array},searchFrom:{type:Object},treeData:{type:Object},isExist:{type:Object}},data:function(){return{date:"全部",withdrawalTxt:"提现状态",paymentTxt:"提现方式"}},computed:{},mounted:function(){},methods:{changeTree:function(){}}},s=i,o=(a("493c"),a("2877")),c=Object(o["a"])(s,r,n,!1,null,"78a76b05",null);e["a"]=c.exports},"31b4":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.FromData?a("div",[a("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:t.FromData.title,"z-index":1,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()},n=[],i=(a("8e6e"),a("ac6a"),a("456d"),a("bd86")),s=a("9860"),o=a.n(s),c=a("6b6c"),l=a("2f62");function u(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 d(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?u(Object(a),!0).forEach((function(e){Object(i["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var m={name:"edit",components:{formCreate:o.a.$form()},computed:d({},Object(l["e"])("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,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)}}}}}}},methods:{couponsType:function(){this.$parent.addType(this.type)},onSubmit:function(t){var e=this,a={};a=t,Object(c["a"])({url:this.FromData.action,method:this.FromData.method,data:a}).then((function(t){e.update&&e.$parent.getList(),e.$Message.success(t.msg),e.modals=!1,setTimeout((function(){e.$emit("submitFail")}),1e3)})).catch((function(t){e.$Message.error(t.msg)}))},cancel:function(){this.type=0}}},f=m,p=(a("bb05"),a("2877")),h=Object(p["a"])(f,r,n,!1,null,"7423233c",null);e["a"]=h.exports},"493c":function(t,e,a){"use strict";var r=a("7304"),n=a.n(r);n.a},"4b54":function(t,e,a){},"4fcb":function(t,e,a){"use strict";var r=a("4b54"),n=a.n(r);n.a},7027:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"i-layout-page-header"},[a("div",{staticClass:"i-layout-page-header"},[a("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.$route.meta.title))])])]),a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[a("Row",{attrs:{gutter:24,type:"flex",justify:"end"}},[a("Col",{staticClass:"ivu-text-left",attrs:{span:"24"}},[a("FormItem",{attrs:{label:"时间选择:"}},[a("RadioGroup",{staticClass:"mr",attrs:{type:"button"},on:{"on-change":function(e){return t.selectChange(t.formValidate.data)}},model:{value:t.formValidate.data,callback:function(e){t.$set(t.formValidate,"data",e)},expression:"formValidate.data"}},t._l(t.fromList.fromTxt,(function(e,r){return a("Radio",{key:r,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),a("DatePicker",{staticStyle:{width:"200px"},attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end",placeholder:"请选择时间"},on:{"on-change":t.onchangeTime}})],1)],1),a("Col",{staticClass:"ivu-text-left",attrs:{span:"24"}},[a("FormItem",{attrs:{label:"支付类型:"}},[a("RadioGroup",{attrs:{type:"button"},on:{"on-change":t.selChange},model:{value:t.formValidate.paid,callback:function(e){t.$set(t.formValidate,"paid",e)},expression:"formValidate.paid"}},[a("Radio",{attrs:{label:""}},[t._v("全部")]),a("Radio",{attrs:{label:"1"}},[t._v("已支付")]),a("Radio",{attrs:{label:"0"}},[t._v("未支付")])],1)],1)],1),a("Col",{staticClass:"ivu-text-left",attrs:{span:"24"}},[a("FormItem",{attrs:{label:"搜索:"}},[a("Input",{staticClass:"mr",staticStyle:{width:"30%",display:"inline-table"},attrs:{search:"","enter-button":"",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",{directives:[{name:"auth",rawName:"v-auth",value:["export-userRecharge"],expression:"['export-userRecharge']"}],staticClass:"mr",attrs:{icon:"ios-share-outline"},on:{click:t.exports}},[t._v("导出")])],1)],1)],1)],1)],1),t.cardLists.length>=0?a("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),a("Card",{attrs:{bordered:!1,"dis-hover":""}},[a("div",[t._v("充值记录列表")]),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:"right",fn:function(e){var r=e.row,n=e.index;return[r.refund_price<=0&&r.paid?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)},n=[],i=(a("8e6e"),a("ac6a"),a("456d"),a("96cf"),a("3b8d")),s=a("bd86"),o=a("a584"),c=a("0436"),l=a("2f62"),u=a("cd05"),d=a("31b4");function m(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 f(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?m(Object(a),!0).forEach((function(e){Object(s["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):m(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var p={name:"recharge",components:{cardsData:o["a"],searchFrom:c["a"],editFrom:d["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:"用户昵称",key:"nickname",minWidth:150},{title:"订单号",key:"order_id",minWidth:150},{title:"支付金额",key:"price",minWidth:110},{title:"是否支付",key:"paid_type",minWidth:110},{title:"充值类型",key:"_recharge_type",minWidth:100},{title:"支付时间",key:"_pay_time",minWidth:120},{title:"操作",slot:"right",fixed:"right",minWidth:100}],tabList:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},timeVal:[]}},computed:f(f({},Object(l["e"])("media",["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(r.delfromData.num,1)})).catch((function(t){r.$Message.error(t.msg)}))},refund:function(t){var e=this;Object(u["l"])(t.id).then(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)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.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(t){this.formValidate.page=1,this.getList(),this.getUserRecharge()},getList:function(){var t=this;this.loading=!0,Object(u["k"])(this.formValidate).then(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(a){var r;return regeneratorRuntime.wrap((function(e){while(1)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)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},getUserRecharge:function(){var t=this;Object(u["r"])({data:this.formValidate.data,paid:this.formValidate.paid,nickname:this.formValidate.nickname}).then(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(a){var r;return regeneratorRuntime.wrap((function(e){while(1)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=this,e=this.formValidate,a={data:e.data,paid:e.paid,nickname:e.nickname};Object(u["g"])(a).then((function(t){location.href=t.data[0]})).catch((function(e){t.$Message.error(e.msg)}))}}},h=p,b=(a("4fcb"),a("2877")),g=Object(b["a"])(h,r,n,!1,null,"1bcda21c",null);e["default"]=g.exports},7304:function(t,e,a){},a584:function(t,e,a){"use strict";var r=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:10}},t._l(t.cardLists,(function(e,r){return a("Col",{key:r,staticClass:"ivu-mb",attrs:{xl:e.col,lg:6,md:12,sm:24,xs:24}},[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}},[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)},n=[],i={name:"cards",data:function(){return{}},props:{cardLists:Array},methods:{},created:function(){}},s=i,o=(a("bdf2"),a("2877")),c=Object(o["a"])(s,r,n,!1,null,"2907c959",null);e["a"]=c.exports},bb05:function(t,e,a){"use strict";var r=a("f557"),n=a.n(r);n.a},bdf2:function(t,e,a){"use strict";var r=a("cc33"),n=a.n(r);n.a},cc33:function(t,e,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,"m",(function(){return d})),a.d(e,"k",(function(){return m})),a.d(e,"r",(function(){return f})),a.d(e,"l",(function(){return p})),a.d(e,"q",(function(){return h})),a.d(e,"p",(function(){return b})),a.d(e,"g",(function(){return g})),a.d(e,"j",(function(){return v})),a.d(e,"o",(function(){return y})),a.d(e,"i",(function(){return x})),a.d(e,"n",(function(){return O}));var r=a("6b6c");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 m(t){return Object(r["a"])({url:"finance/recharge",method:"get",params:t})}function f(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 b(t){return Object(r["a"])({url:"export/userCommission",method:"get",params:t})}function g(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 x(t){return Object(r["a"])({url:"finance/balance/list",method:"get",params:t})}function O(t,e){return Object(r["a"])({url:"finance/balance/set_mark/".concat(t),method:"post",data:e})}},f557:function(t,e,a){}}]);