Files
coin-manager-new/admin/static/js/49.efbeb6fb0be4b08d2b93.js
2026-01-11 15:51:28 +08:00

1 line
11 KiB
JavaScript

webpackJsonp([49],{Oc39:function(n,e,t){var a=t("ixDo");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("Xatw")("24c8e080",a,!0)},Z5uA:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("s/F+"),l=t.n(a),r=t("yrbl"),i=t.n(r),o=t("vvmr"),s=t.n(o),u=t("Swn3"),c=t("xSh0"),m=t("z6lX"),d={mixins:[u.a],data:function(){return{dialogFormVisible:!1,manualVisible:!1,remark:"",name:"数字货币提现审核",coinAll:"",postData:{},ruleForm:{coinId:"",userId:"",userName:"",mobile:"",status:"",numMin:"",numMax:"",dateRange:""},rules:{title:[]},auditForm:{remark:""},auditRules:{remark:[{required:!0,message:"请输入备注原因",trigger:"blur"}]},manualForm:{txid:"",chainFee:""},manualRules:{txid:[{required:!0,message:"请输入转账流水号",trigger:"blur"}],chainFee:[{required:!0,message:"请输入链上手续费",trigger:"blur"}]}}},computed:s()({},Object(c.b)(["getCoinAll"])),mounted:function(){this.coinAll=this.getCoinAll},methods:{listCallback:function(){var n=this;return i()(l.a.mark(function e(){return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.a.getCoinWithdraw(n.ruleForm,n.listQuery.current,n.listQuery.size);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,n)}))()},handleAudit:function(n){this.dialogFormVisible=!0,this.postData.id=n.id,this.auditForm.remark=""},handleManualWithdraw:function(n){this.manualForm={},this.manualVisible=!0,this.manualForm.id=n.id},submitManual:function(n){var e=this;this.$refs[n].validate(function(n){if(!n)return console.log("error submit!!"),!1;e._manualWithdraw()})},_manualWithdraw:function(){var n=this;return i()(l.a.mark(function e(){return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.a.manualWithdraw(n.manualForm);case 2:setTimeout(function(){n.$notify({type:"success",title:"提示",message:"操作成功!"}),n._getList(),n.manualVisible=!1},2e3);case 3:case"end":return e.stop()}},e,n)}))()},submitAudit:function(n,e){var t=this;"reject"==n?this.$refs[e].validate(function(n){if(!n)return!1;t.postData.remark=t.auditForm.remark,t.postData.status=2,t._withdrawAudit()}):"accept"==n&&(this.postData.status=4,this.$refs[e].resetFields(),this._withdrawAudit())},_withdrawAudit:function(){var n=this;return i()(l.a.mark(function e(){return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.a.checkCoinWithdraw(n.postData);case 2:n.$notify({type:"success",title:"提示",message:"操作成功!"}),n._getList(),n.dialogFormVisible=!1;case 5:case"end":return e.stop()}},e,n)}))()}}},p={render:function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"assets common-main"},[t("el-form",{ref:"financeRechargeForm",staticClass:"search-container",attrs:{inline:!0,model:n.ruleForm,"label-position":"right","label-width":"80px"}},[t("el-form-item",{attrs:{label:"用户名"}},[t("el-input",{attrs:{placeholder:"姓名",clearable:""},model:{value:n.ruleForm.userName,callback:function(e){n.$set(n.ruleForm,"userName",e)},expression:"ruleForm.userName"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"手机号码",span:8}},[t("el-input",{staticClass:"inputnumber",attrs:{type:"number",placeholder:"手机号码",clearable:""},model:{value:n.ruleForm.mobile,callback:function(e){n.$set(n.ruleForm,"mobile",n._n(e))},expression:"ruleForm.mobile"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"币种"}},[t("el-select",{attrs:{placeholder:"币种",clearable:""},model:{value:n.ruleForm.coinId,callback:function(e){n.$set(n.ruleForm,"coinId",e)},expression:"ruleForm.coinId"}},[t("el-option",{attrs:{label:"全部",value:""}}),n._v(" "),n._l(n.coinAll,function(n){return t("el-option",{key:n.id,attrs:{label:n.name,value:n.id}})})],2)],1),n._v(" "),t("el-form-item",{attrs:{label:"状态"}},[t("el-select",{attrs:{placeholder:"状态",clearable:""},model:{value:n.ruleForm.status,callback:function(e){n.$set(n.ruleForm,"status",e)},expression:"ruleForm.status"}},[t("el-option",{attrs:{label:"审核中",value:"0"}}),n._v(" "),t("el-option",{attrs:{label:"转出成功",value:"1"}}),n._v(" "),t("el-option",{attrs:{label:"审核拒绝",value:"2"}}),n._v(" "),t("el-option",{attrs:{label:"撤销",value:"3"}}),n._v(" "),t("el-option",{attrs:{label:"审核通过",value:"4"}}),n._v(" "),t("el-option",{attrs:{label:"打币中",value:"5"}}),n._v(" "),t("el-option",{attrs:{label:"钱包异常,审核中",value:"6"}})],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"提现金额"}},[t("el-col",{attrs:{span:12}},[t("el-input",{staticClass:"inputnumber",attrs:{type:"number",placeholder:"",clearable:""},model:{value:n.ruleForm.startAmount,callback:function(e){n.$set(n.ruleForm,"startAmount",n._n(e))},expression:"ruleForm.startAmount"}})],1),n._v(" "),t("el-col",{staticClass:"line",attrs:{span:2}},[n._v("-")]),n._v(" "),t("el-col",{attrs:{span:10}},[t("el-input",{staticClass:"inputnumber",attrs:{type:"number",placeholder:"",clearable:""},model:{value:n.ruleForm.endAmount,callback:function(e){n.$set(n.ruleForm,"endAmount",n._n(e))},expression:"ruleForm.endAmount"}})],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"时间"}},[t("el-date-picker",{staticClass:"widthauto",attrs:{editable:!1,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",type:"datetimerange","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:""},model:{value:n.ruleForm.dateRange,callback:function(e){n.$set(n.ruleForm,"dateRange",e)},expression:"ruleForm.dateRange"}})],1),n._v(" "),t("el-form-item",{attrs:{label:" "}},[t("el-button",{attrs:{icon:"el-icon-search"},on:{click:function(e){n.submitForm("financeRechargeForm")}}},[n._v("搜索")]),n._v(" "),t("el-button",{attrs:{icon:"el-icon-download",type:"primary",disabled:0==n.listData.length},on:{click:function(e){n.exportExcel("financeRechargeForm","/coinWithdraw/exportList","数字货币提现审核")}}},[n._v("导出\n ")])],1)],1),n._v(" "),t("div",{staticClass:"table"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:n.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:n.listData}},[t("el-table-column",{attrs:{prop:"id",label:"ID",width:"80"}}),n._v(" "),t("el-table-column",{attrs:{prop:"userName",label:"用户名",width:"100"}}),n._v(" "),t("el-table-column",{attrs:{prop:"coinName",label:"币种名称"}}),n._v(" "),t("el-table-column",{attrs:{prop:"num",label:"提现量"}}),n._v(" "),t("el-table-column",{attrs:{prop:"mum",label:"实际提现"}}),n._v(" "),t("el-table-column",{attrs:{prop:"fee",label:"手续费"}}),n._v(" "),t("el-table-column",{attrs:{prop:"address",label:"钱包地址",width:"200"}}),n._v(" "),t("el-table-column",{attrs:{prop:"txid",label:"交易ID",width:"200"}}),n._v(" "),t("el-table-column",{attrs:{prop:"created",label:"申请时间",width:"160"}}),n._v(" "),t("el-table-column",{attrs:{prop:"auditTime",label:"审核时间",width:"160"}}),n._v(" "),t("el-table-column",{attrs:{prop:"remark",label:"审核备注",width:"150"}}),n._v(" "),t("el-table-column",{attrs:{prop:"status",label:"状态",width:"100"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("el-tag",{attrs:{type:n._f("elTagFilter")(e.row.status)}},[n._v("\n "+n._s(n._f("coninWithdrawTypeFilter")(e.row.status))+"\n ")])]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"type",label:"打款类型",width:"80"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(n._f("withdrawType")(e.row.type))+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"step",label:"审核级数",width:"80"}}),n._v(" "),t("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:n._u([{key:"default",fn:function(e){return[0==e.row.status?t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){n.handleAudit(e.row)}}},[n._v("\n 审核\n ")]):n._e(),n._v(" "),4==e.row.status&&2==e.row.type?t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){n.handleManualWithdraw(e.row)}}},[n._v("\n 确认打款\n ")]):n._e()]}}])})],1)],1),n._v(" "),t("el-dialog",{attrs:{width:"600px",title:"审核提示",visible:n.dialogFormVisible},on:{"update:visible":function(e){n.dialogFormVisible=e}}},[t("el-form",{ref:"ruleRef",attrs:{model:n.auditForm,rules:n.auditRules}},[t("el-form-item",{attrs:{label:"审核备注","label-width":"120px",prop:"remark"}},[t("el-input",{model:{value:n.auditForm.remark,callback:function(e){n.$set(n.auditForm,"remark",e)},expression:"auditForm.remark"}})],1),n._v(" "),t("el-form-item",{staticClass:"dialog-footer"},[t("el-button",{on:{click:function(e){n.submitAudit("reject","ruleRef")}}},[n._v("拒绝")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:function(e){n.submitAudit("accept","ruleRef")}}},[n._v("通过")])],1)],1)],1),n._v(" "),t("el-dialog",{attrs:{width:"600px",title:"手动打款信息",visible:n.manualVisible},on:{"update:visible":function(e){n.manualVisible=e}}},[t("el-form",{ref:"manualRef",attrs:{model:n.manualForm,rules:n.manualRules}},[t("el-form-item",{attrs:{label:"转账流水号","label-width":"120px",prop:"txid"}},[t("el-input",{model:{value:n.manualForm.txid,callback:function(e){n.$set(n.manualForm,"txid",e)},expression:"manualForm.txid"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"链上手续费","label-width":"120px",prop:"chainFee"}},[t("el-input",{attrs:{type:"number"},model:{value:n.manualForm.chainFee,callback:function(e){n.$set(n.manualForm,"chainFee",e)},expression:"manualForm.chainFee"}})],1),n._v(" "),t("el-form-item",{staticClass:"dialog-footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(e){n.submitManual("manualRef")}}},[n._v("确认")])],1)],1)],1),n._v(" "),t("el-pagination",{staticClass:"pagination-container",attrs:{background:"",layout:"total,prev, pager, next","current-page":n.listQuery.current,"page-size":n.listQuery.size,total:n.listQuery.total},on:{"update:currentPage":function(e){n.$set(n.listQuery,"current",e)},"current-change":n.handlePageChange}})],1)},staticRenderFns:[]};var b=t("rCDr")(d,p,!1,function(n){t("Oc39")},"data-v-791da080",null);e.default=b.exports},ixDo:function(n,e,t){(n.exports=t("uszS")(!1)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])}});