mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-16 14:22:48 +00:00
1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5e204c5f"],{"0436":function(t,e,a){"use strict";var n={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(){}}};a("53ca"),a=a("2877"),a=Object(a.a)(n,(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,n){return a("Row",{key:n,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(n,r){return a("Radio",{key:r,attrs:{label:n.text}},[t._v(t._s(n.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)}),[],!1,null,"0c50e0aa",null);e.a=a.exports},"2ec3":function(t,e,a){},"31b4":function(t,e,a){"use strict";var n=a("f3f3"),r=a("9860"),i=(r=a.n(r),a("6b6c")),s=a("2f62");r={name:"edit",components:{formCreate:r.a.$form()},computed:Object(n.a)({},Object(s.e)("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,default:!0}},data:function(){return{modals:!1,type:0,loading:!1,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;this.loading||(this.loading=!0,Object(i.a)({url:this.FromData.action,method:this.FromData.method,data:t}).then((function(t){e.update&&e.$parent.getList(),e.$Message.success(t.msg),e.modals=!1,setTimeout((function(){e.$emit("submitFail"),e.loading=!1}),1e3)})).catch((function(t){e.loading=!1,e.$Message.error(t.msg)})))},cancel:function(){this.type=0}}},a("9646"),n=a("2877"),s=Object(n.a)(r,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return t.FromData?e("div",[e("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?e("div",{staticClass:"radio acea-row row-middle"},[e("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),e("Radio-group",{on:{"on-change":t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("Radio",{attrs:{label:0}},[t._v("通用券")]),e("Radio",{attrs:{label:1}},[t._v("品类券")]),e("Radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(t.FromData.rules),handleIcon:"false"},on:{submit:t.onSubmit}})],2)],1):t._e()}),[],!1,null,"5cc97a38",null);e.a=s.exports},"509a":function(t,e,a){},"53ca":function(t,e,a){"use strict";var n=a("509a");a.n(n).a},"6f93":function(t,e,a){"use strict";var n=a("cc79");a.n(n).a},7027:function(t,e,a){"use strict";a.r(e);var n=a("c964"),r=a("f3f3"),i=(a("96cf"),a("a434"),a("a15b"),a("a584")),s=a("0436"),o=a("2f62"),c=a("cd05"),l=a("31b4");i={name:"recharge",components:{cardsData:i.a,searchFrom:s.a,editFrom:l.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||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:Object(r.a)(Object(r.a)({},Object(o.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 n=this,r={title:e,num:a,url:"finance/recharge/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(r).then((function(t){n.$Message.success(t.msg),n.tabList.splice(r.num,1),n.getList()})).catch((function(t){n.$Message.error(t.msg)}))},refund:function(t){var e=this;Object(c.l)(t.id).then(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1===a.data.status)return t.abrupt("return",e.$authLapse(a.data));t.next=2;break;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(c.k)(this.formValidate).then(function(){var e=Object(n.a)(regeneratorRuntime.mark((function e(a){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a.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()},getUserRecharge:function(){var t=this;Object(c.r)({data:this.formValidate.data,paid:this.formValidate.paid,nickname:this.formValidate.nickname}).then(function(){var e=Object(n.a)(regeneratorRuntime.mark((function e(a){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a.data,t.cardLists=n;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;e={data:e.data,paid:e.paid,nickname:e.nickname};Object(c.g)(e).then((function(t){location.href=t.data[0]})).catch((function(e){t.$Message.error(e.msg)}))}}},a("6f93"),s=a("2877"),l=Object(s.a)(i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{staticClass:"ivu-mb-16",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,n){return a("Radio",{key:n,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),0<=t.cardLists.length?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 n=e.row,r=e.index;return[n.refund_price<=0&&n.paid&&"system"!=n.recharge_type?a("a",{attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.refund(n)}}},[t._v("退款")]):t._e(),0===n.paid?a("a",{attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.del(n,"此条充值记录",r)}}},[t._v("删除")]):t._e(),0<n.refund_price?a("span",{staticClass:"refund"},[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,"06bd48e5",null);e.default=l.exports},7443:function(t,e,a){"use strict";var n=a("b627");a.n(n).a},9646:function(t,e,a){"use strict";var n=a("2ec3");a.n(n).a},a584:function(t,e,a){"use strict";var n={name:"cards",data:function(){return{}},props:{cardLists:Array},methods:{},created:function(){}};a("7443"),a=a("2877"),a=Object(a.a)(n,(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,n){return a("Col",{key:n,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:n%5==0,two:n%5==1,three:n%5==2,four:n%5==3,five:n%5==4}},[a("div",{staticClass:"card_box_cir1",class:{one1:n%5==0,two1:n%5==1,three1:n%5==2,four1:n%5==3,five1:n%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)}),[],!1,null,"e3e38522",null);e.a=a.exports},b627:function(t,e,a){},cc79:function(t,e,a){},cd05:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),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 h})),a.d(e,"q",(function(){return p})),a.d(e,"p",(function(){return g})),a.d(e,"g",(function(){return b})),a.d(e,"j",(function(){return v})),a.d(e,"o",(function(){return x})),a.d(e,"i",(function(){return y})),a.d(e,"n",(function(){return _}));var n=a("6b6c");function r(){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 s(t){return Object(n.a)({url:"finance/finance/commission_list",method:"get",params:t})}function o(t){return Object(n.a)({url:"finance/finance/user_info/".concat(t),method:"get"})}function c(t,e){return Object(n.a)({url:"finance/finance/extract_list/".concat(t),method:"get",params:e})}function l(t){return Object(n.a)({url:"finance/extract",method:"get",params:t})}function u(t){return Object(n.a)({url:"finance/extract/".concat(t,"/edit"),method:"get"})}function d(t,e){return Object(n.a)({url:"finance/extract/refuse/".concat(t),method:"put",data:e})}function m(t){return Object(n.a)({url:"finance/recharge",method:"get",params:t})}function f(t){return Object(n.a)({url:"finance/recharge/user_recharge",method:"get",params:t})}function h(t){return Object(n.a)({url:"finance/recharge/".concat(t,"/refund_edit"),method:"get"})}function p(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 b(t){return Object(n.a)({url:"export/userRecharge",method:"get",params:t})}function v(t){return Object(n.a)({url:"statistic/flow/get_list",method:"get",params:t})}function x(t,e){return Object(n.a)({url:"statistic/flow/set_mark/".concat(t),method:"post",data:e})}function y(t){return Object(n.a)({url:"finance/balance/list",method:"get",params:t})}function _(t,e){return Object(n.a)({url:"finance/balance/set_mark/".concat(t),method:"post",data:e})}}}]); |