2 lines
6.8 KiB
JavaScript
2 lines
6.8 KiB
JavaScript
|
import{ag as e,b6 as a,bN as t,r as l,bW as o,c as r,e as s,N as n,w as p,al as i,an as c,O as d,l as u,t as _,m as g,bS as b,g as m,R as h,bY as y,bZ as v,bu as f}from"./index.DMuoDWpw.js";import{_ as w}from"./index.D46A469w.js";import{E as D}from"./el-text.BNx45kFL.js";import{getServicePayoutList as F,setServicePayoutConfirmConversion as k,setServicePayoutOverrule as R}from"./deposit.DMB3rnDP.js";import"./el-col.COx331AE.js";const L={key:0,class:"operate"},j={__name:"withdrawal-list",setup(j){let x=[{label:"服务商",value:"service"},{label:"商户",value:"merchant"}];const T=e({columns:[{prop:"id",label:"ID",width:80,align:"center"},{prop:"owner_type",label:"类型",align:"center",slot:"owner_type_slot"},{prop:"login_name",label:"用户名称",align:"center"},{prop:"withdraw_no",label:"提现单号",align:"center"},{prop:"amount",label:"提现金额",align:"center"},{prop:"fee",label:"手续费",align:"center"},{prop:"account_info",label:"收款账号信息",align:"center",slot:"account_info_slot"},{prop:"created_at",label:"申请时间",align:"center"},{prop:"process_time",label:"处理时间",align:"center"},{prop:"processed_at",label:"处理人",align:"center"},{prop:"status",label:"状态",align:"center",slot:"status_slot"},{prop:"remark",label:"备注",align:"center"},{prop:"operate",label:"操作",width:260,align:"center",slot:"operate",fixed:"right"}],tableData:[],searchFields:[{label:"用户类型",prop:"owner_type",type:"select",value:"",options:x},{label:"用户名称",prop:"login_name",type:"input",value:""},{label:"提现单号",prop:"withdraw_no",type:"input",value:""},{label:"提现卡号类型",prop:"account_type",type:"select",options:[{label:"银行卡",value:1},{label:"USDT-TRC20",value:2},{label:"USDT-ERC20",value:3}]},{label:"卡号/收款地址",prop:"card_no",type:"input",value:""},{label:"开户名/标识",prop:"account_name",type:"input",value:""},{label:"开户行",prop:"bank_name",type:"input",value:""},{label:"开户地址",prop:"bank_address",type:"input",value:""},{label:"状态",prop:"status",type:"select",options:[{label:"待处理",value:0},{label:"已完成",value:1},{label:"已驳回",value:2}]},{prop:"created_at",label:"申请时间",type:"date",dateType:"datetimerange",value:[]},{prop:"process_at",label:"处理时间",type:"date",dateType:"datetimerange",value:[]}],total:0,page:1,per_page:10,loading:!1,reasonList:[],reasonObj:{},btnLoading:!1,showAddDialog:!1,providerList:[],showRechargeDialog:!1,rechargeFrom:{title:"提现审批",fields:[{label:"用户名称",prop:"login_name",type:"input",value:"",disabled:!0},{label:"手续费",prop:"fee",type:"input",value:"",disabled:!0},{label:"提现金额",prop:"amount",type:"input",value:"",disabled:!0},{label:"提款账号",prop:"account_info",type:"input",value:"",disabled:!0},{label:"支付密码",prop:"pay_password",type:"password",value:""},{label:"谷歌验证码",prop:"google_code",type:"input",value:""}],rules:{pay_password:[{required:!0,message:"请输入支付密码",trigger:"blur"}],google_code:[{required:!0,message:"请输入谷歌验证码",trigger:"blur"}]},values:{id:"",pay_password:"",google_code:"",login_name:"",fee:"",amount:"",account_info:"",status:""}}}),U=e=>{let a="";return x.some(t=>{if(t.value==e)return a=t.label,!0}),a},C=()=>{T.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),S()};a(()=>{S()});const S=()=>{var e,a;T.loading=!0;let l={per_page:T.per_page,page:T.page},o=function(e){const a={};return e.forEach(e=>{e.prop&&void 0!==e.value&&(a[e.prop]=e.value)}),a}(T.searchFields);(null==(e=o.created_at)?void 0:e.length)>0&&(o.created_at_start=o.created_at[0]?t(o.created_at[0]):"",o.created_at_end=o.created_at[1]?t(o.created_at[1]):""),(null==(a=o.process_at)?void 0:a.length)>0&&(o.process_time_start=o.process_at[0]?t(o.process_at[0]):"",o.process_time_end=o.process_at[1]?t(o.process_at[1]):""),delete o.created_at,delete o.process_at,F(Object.assign(l,o)).then(e=>{T.tableData=e.data,T.total=e.total,T.loading=!1}).catch(()=>{T.loading=!1})},E=(e,a)=>{T.showRechargeDialog=!0,T.rechargeFrom.
|