| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d79015d6"],{3402:function(e,t,a){},ba8e:function(e,t,a){"use strict";a("3402")},d065:function(e,t,a){"use strict";a.r(t);a("99af"),a("ac1f"),a("5319");var n=a("7a23"),o=Object(n["withScopeId"])("data-v-831edaf4");Object(n["pushScopeId"])("data-v-831edaf4");var r=Object(n["createTextVNode"])("今日"),c=Object(n["createTextVNode"])("近7日"),i=Object(n["createTextVNode"])("近30天"),d={key:1},s={key:0,class:"ele-text-success"},u={key:1,class:"ele-text-primary"},l={key:2,class:"ele-text-danger"},m={key:3},b={key:0},p={key:1};Object(n["popScopeId"])();var f=o((function(e,t,a,f,O,j){var _=Object(n["resolveComponent"])("a-radio-button"),y=Object(n["resolveComponent"])("a-radio-group"),v=Object(n["resolveComponent"])("calendar-outlined"),h=Object(n["resolveComponent"])("a-range-picker"),g=Object(n["resolveComponent"])("a-space"),k=Object(n["resolveComponent"])("ele-pro-table"),x=Object(n["resolveComponent"])("a-tab-pane"),D=Object(n["resolveComponent"])("a-tooltip"),w=Object(n["resolveComponent"])("a-tabs");return Object(n["openBlock"])(),Object(n["createBlock"])(w,{activeKey:O.activeKey,"onUpdate:activeKey":t[5]||(t[5]=function(e){return O.activeKey=e})},{tabBarExtraContent:o((function(){return[Object(n["createVNode"])(g,{size:"middle",class:"analysis-tabs-extra"},{default:o((function(){return[Object(n["createVNode"])(y,{value:O.whereFormData.time_type,"onUpdate:value":t[1]||(t[1]=function(e){return O.whereFormData.time_type=e}),buttonStyle:"outline",onChange:t[2]||(t[2]=function(e){return j.timeChange(1)})},{default:o((function(){return[Object(n["createVNode"])(_,{value:"day_1"},{default:o((function(){return[r]})),_:1}),Object(n["createVNode"])(_,{style:{"margin-left":"10px"},value:"day_7"},{default:o((function(){return[c]})),_:1}),Object(n["createVNode"])(_,{style:{"margin-left":"10px"},value:"day_30"},{default:o((function(){return[i]})),_:1})]})),_:1},8,["value"]),Object(n["createVNode"])(h,{value:O.datetime,"onUpdate:value":t[3]||(t[3]=function(e){return O.datetime=e}),style:{width:"230px"},onChange:t[4]||(t[4]=function(e){return j.timeChange(2)})},{suffixIcon:o((function(){return[Object(n["createVNode"])(v)]})),_:1},8,["value"])]})),_:1})]})),default:o((function(){return[Object(n["createVNode"])(x,{key:1,tab:"佣金明细"},{default:o((function(){return[Object(n["createVNode"])(k,{method:"post",parseData:j.parseData,ref:"table1","row-key":"id",datasource:O.url1,columns:O.columns1,toolbar:null,where:O.whereFormData},{success_time:o((function(e){var t=e.record;return[Object(n["createTextVNode"])(Object(n["toDisplayString"])(O.toDateString(t.success_time)),1)]})),_:1},8,["parseData","datasource","columns","where"])]})),_:1}),Object(n["createVNode"])(x,{key:2,tab:"提现明细","force-render":""},{default:o((function(){return[Object(n["createVNode"])(k,{method:"post",parseData:j.parseData,ref:"table2","row-key":"id",datasource:O.url2,columns:O.columns2,toolbar:null,where:O.whereFormData},{origin_money:o((function(e){var t=e.record;return[t.memo?(Object(n["openBlock"])(),Object(n["createBlock"])(D,{key:0},{title:o((function(){return[Object(n["createTextVNode"])(Object(n["toDisplayString"])(t.memo),1)]})),default:o((function(){return[Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(t.origin_money)+" 元 ",1)]})),_:2},1024)):(Object(n["openBlock"])(),Object(n["createBlock"])("div",d,Object(n["toDisplayString"])(t.origin_money)+" 元",1))]})),status:o((function(e){var t=e.record;return["20"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])("div",s,"提现成功")):"10"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])("div",u,"提现中")):"30"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])("div",l,"提现失败")):(Object(n["openBlock"])(),Object(n["createBlock"])("div",m,"--"))]})),account_type:o((function(e){var t=e.record;return["bank"==t.account_type?(Object(n["openBlock"])(),Object(n["createBlock"])("div",b," 银行卡("+Object(n["toDisplayString"])("".concat(t.bank_name,"\n\t\t\t\t\t\t\t\t\t\t\t").concat(t.account.replace(/(?:\d+)(.{4})$/,"**** $1")))+") ",1)):(Object(n["openBlock"])(),Object(n["createBlock"])("div",p,Object(n["toDisplayString"])(t.account),1))]})),_:1},8,["parseData","datasource","columns","where"])]})),_:1})]})),_:1},8,["activeKey"])})),O=a("5530"),j=(a("b0c0"),a("4de4"),a("159b"),a("f007")),_=a("2c2a"),y=a("5502"),v={computed:Object(O["a"])({},Object(y["b"])(["userInfo"])),name:"recordLog",components:{CalendarOutlined:j["a"]},data:function(){return{toDateString:_["toDateString"],activeKey:1,whereFormData:{time_type:"day_1"},url1:"/manager/userCenter/getIncomeLog",url2:"/manager/userCenter/getWithdrawLog",datetime:[],columns1:[{title:"结算时间",dataIndex:"success_time",slots:{customRender:"success_time"}},{title:"订单编号",dataIndex:"order_no"},{title:"返佣总额",dataIndex:"partner_total_commission"},{title:"我的佣金",dataIndex:"partner_commission"},{title:"下单时间",dataIndex:"submit_time",customRender:function(e){var t=e.text;return Object(_["toDateString"])(t)}},{title:"卡密",dataIndex:"card",customRender:function(e){var t=e.text;return t.card_no}},{title:"代理人",dataIndex:"agent",customRender:function(e){var t=e.text;return t?t.name:"--"}}],columns2:[{title:"提现单号",dataIndex:"out_trade_no"},{title:"提现金额",dataIndex:"origin_money",slots:{customRender:"origin_money"}},{title:"提现账号",dataIndex:"account",slots:{customRender:"account_type"}},{title:"提现时间",dataIndex:"createtime",customRender:function(e){var t=e.text;return Object(_["toDateString"])(t)}},{title:"提现状态",dataIndex:"status",slots:{customRender:"status"}},{title:"原因说明",dataIndex:"reasons"}]}},created:function(){"agent"==this.userInfo.adminable_type&&(this.columns1=this.columns1.filter((function(e){return"partner_total_commission"!==e.dataIndex})),this.columns1.forEach((function(e){"partner_commission"==e.dataIndex&&(e.dataIndex="agent_commission")})))},methods:{timeChange:function(e){1==e?(this.whereFormData.start_time="",this.whereFormData.end_time=""):2==e&&(this.whereFormData.time_type="day_1",this.whereFormData.start_date=this.datetime[0].format("YYYY-MM-DD"),this.whereFormData.end_date=this.datetime[1].format("YYYY-MM-DD")),this.reloadTable()},reloadTable:function(){var e=this;1==this.activeKey?this.$nextTick((function(){e.$refs.table1.reload({page:1})})):2==this.activeKey&&this.$nextTick((function(){e.$refs.table2.reload({page:1})}))},parseData:function(e){return{code:1==e.code?0:e.code,data:e.data.data,count:e.data.total,msg:e.msg}}}},h=(a("ba8e"),a("6b0d")),g=a.n(h);const k=g()(v,[["render",f],["__scopeId","data-v-831edaf4"]]);t["default"]=k}}]);
|