(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b3299"],{"26cb":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"new-app-container layout-vertical"},[a("YMTableSearch",{attrs:{loading:e.loading,"search-form":e.searchForm},on:{onValueChange:e.onValueChange,submit:e.onSubmit}}),a("YMTable",{ref:"table",attrs:{"table-key":1,index:!0,selection:!1,"table-options":e.tableOptions,"edit-form":e.editForm,"edit-config":e.editConfig,columns:e.columns,"rows-actions":e.rowsActions,"show-summary":!1,apis:e.apis,"custom-style":{height:"calc(100vh - 150px)"}}}),a("Dialog",{ref:"dialog"},[a("template",{slot:"content"})],2)],1)},o=[],l=a("9039"),i=a("7e1e"),r={components:{Dialog:l["a"]},data:function(){var e=this;return{loading:!1,visibleBasicDrawer:!1,renderContent:"",searchForm:[{label:"会员ID",type:"input",prop:"member_id",clearable:!1},{label:"日期",type:"date",prop:"date",clearable:!1},{label:"会员账号",type:"input",prop:"username",clearable:!1},{label:"会员昵称",type:"input",prop:"first_name",clearable:!0}],columns:[{label:"日期",prop:"date"},{label:"会员ID",prop:"member_id",width:120},{label:"会员昵称",popover:!0,width:140,props:["first_name"],options:[{label:"会员ID",value:["member_id"]},{label:"会员昵称",value:["member.first_name"]},{label:"异常信息",vShow:function(e){return!(null===e||void 0===e||!e.user_admin_note)},value:["user_admin_note"]}]},{label:"投注额",prop:"betting_amount"},{label:"有效投注额",prop:"effective_betting_amount"},{label:"笔笔返",prop:"amount"},{label:"返水比例",method:function(e){return 100*e.rebate_ratio+"%"}},{label:"状态",prop:"status",method:function(e){return 0===e.status?"待结算":1===e.status?"已结算":"--"}},{label:"返拥时间",prop:"grant_time"},{label:"审核人",prop:"audited_by"}],rowsActions:[{key:"rebate",label:"发放佣金",vIF:function(e){return 0===e.status},method:function(t){e.$confirm("确定发放佣金?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(i["bb"])({id:t.id}).then((function(){e.onSubmit(),e.$message({type:"success",message:"操作成功"})}))}))}}],apis:{list:{url:"rebate",dataParam:"data.data",resultParam:"data",init:!1},add:{url:"",cover:!0,coverMethod:function(e,t){return e.year+"、"+t[0].label}},edit:{url:"",cover:!0,coverMethod:function(e,t){return e.year+"、"+t[0].label}}},tableOptions:{},editForm:[],editConfig:{addTip:"注：备注",editTip:"注：备注"}}},created:function(){},mounted:function(){this.onSubmit()},methods:{handleSubmit:function(e){console.log("提交数据:",e)},handleClickDrawer:function(e){},onValueChange:function(e){},onSubmit:function(e){this.$refs.table.getList(e)}}},u=r,s=a("2877"),c=Object(s["a"])(u,n,o,!1,null,null,null);t["default"]=c.exports}}]);