| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ce753"],{6014:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"new-app-container layout-vertical"},[a("YMTableSearch",{attrs:{loading:t.loading,"search-form":t.searchForm},on:{onValueChange:t.onValueChange,submit:t.onSubmit}}),a("YMTable",{ref:"table",attrs:{"table-key":1,index:!0,selection:!1,"table-options":t.tableOptions,"edit-form":t.editForm,"edit-config":t.editConfig,columns:t.columns,"rows-actions":t.rowsActions,"show-summary":!1,apis:t.apis,"custom-style":{height:"calc(100vh - 170px)"}}}),a("Dialog",{ref:"dialog"},[a("template",{slot:"content"})],2)],1)},o=[],l=(a("99af"),a("a9e3"),a("9039")),i=a("7e1e"),r={components:{Dialog:l["a"]},data:function(){var t=this;return{loading:!1,visibleBasicDrawer:!1,renderContent:"",searchForm:[{label:"会员ID",type:"input",prop:"member_id",clearable:!1},{label:"会员名称",type:"input",prop:"username",clearable:!1},{label:"日期",type:"month",format:"yyyy年MM月",prop:"date",clearable:!1}],columns:[{label:"月份",prop:"date"},{label:"会员",html:!0,width:200,method:function(t){var e,a,n;return"".concat(null===t||void 0===t||null===(e=t.user)||void 0===e?void 0:e.member_id,"(").concat(null===t||void 0===t||null===(a=t.user)||void 0===a?void 0:a.first_name,")<br/>@").concat(null===t||void 0===t||null===(n=t.user)||void 0===n?void 0:n.username," ")}},{label:"充值金额",prop:"recharge_amount"},{label:"提现金额",prop:"withdrawal_amount"},{label:"公司盈亏",method:function(t){return Number(t.recharge_amount)+Number(t.withdrawal_amount)}},{label:"汇率",prop:"backflow_ratio",method:function(t){return 100*t.backflow_ratio+"%"}},{label:"回水金额",prop:"amount"},{label:"状态",prop:"status",method:function(t){return 0===t.status?"未回水":"已回水"}},{label:"返拥时间",prop:"grant_time"}],rowsActions:[{key:"rebate",label:"发放佣金",vIF:function(t){return 0===t.status},method:function(e){t.$confirm("确定发放佣金?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(i["b"])({id:e.id}).then((function(){t.onSubmit(),t.$message({type:"success",message:"操作成功"})}))}))}}],apis:{list:{url:"backflow",dataParam:"data.data",resultParam:"data",init:!1}},tableOptions:{},editForm:[],editConfig:{}}},created:function(){},mounted:function(){this.onSubmit()},methods:{handleSubmit:function(t){console.log("提交数据:",t)},handleClickDrawer:function(t){},onValueChange:function(t){},onSubmit:function(t){this.$refs.table.getList(t)}}},u=r,c=a("2877"),s=Object(c["a"])(u,n,o,!1,null,null,null);e["default"]=s.exports}}]);
|