| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0dae12e4"],{"37fe":function(t,e,n){"use strict";var a=n("38e0"),o=n("00d2"),r=n("a55a"),i=n("8dac"),u=n("87ef"),l=1..toFixed,c=Math.floor,s=function(t,e,n){return 0===e?n:e%2===1?s(t,e-1,n*t):s(t*t,e/2,n)},d=function(t){var e=0,n=t;while(n>=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},f=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!u((function(){l.call({})}));a({target:"Number",proto:!0,forced:f},{toFixed:function(t){var e,n,a,u,l=r(this),f=o(t),m=[0,0,0,0,0,0],b="",h="0",p=function(t,e){var n=-1,a=e;while(++n<6)a+=t*m[n],m[n]=a%1e7,a=c(a/1e7)},v=function(t){var e=6,n=0;while(--e>=0)n+=m[e],m[e]=c(n/t),n=n%t*1e7},g=function(){var t=6,e="";while(--t>=0)if(""!==e||0===t||0!==m[t]){var n=String(m[t]);e=""===e?n:e+i.call("0",7-n.length)+n}return e};if(f<0||f>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(b="-",l=-l),l>1e-21)if(e=d(l*s(2,69,1))-69,n=e<0?l*s(2,-e,1):l/s(2,e,1),n*=4503599627370496,e=52-e,e>0){p(0,n),a=f;while(a>=7)p(1e7,0),a-=7;p(s(10,a,1),0),a=e-1;while(a>=23)v(1<<23),a-=23;v(1<<a),p(1,1),v(2),h=g()}else p(0,n),p(1<<-e,0),h=g()+i.call("0",f);return f>0?(u=h.length,h=b+(u<=f?"0."+i.call("0",f-u)+h:h.slice(0,u-f)+"."+h.slice(u-f))):h=b+h,h}})},a55a:function(t,e,n){var a=n("924e");t.exports=function(t){if("number"!=typeof t&&"Number"!=a(t))throw TypeError("Incorrect invocation");return+t}},c6ac:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"new-app-container layout-vertical"},[n("YMTableSearch",{attrs:{loading:t.loading,"search-form":t.searchForm},on:{onValueChange:t.onValueChange,submit:t.onSubmit}}),n("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)"}}}),n("Dialog",{ref:"dialog"},[n("template",{slot:"content"})],2)],1)},o=[],r=(n("e168"),n("3dd5"),n("374d"),n("37fe"),n("90c8"),n("8d8a"),n("fa87"),n("9d08"),n("9039")),i=n("7e1e"),u={components:{Dialog:r["a"]},data:function(){var t=this,e=[{value:0,label:"申请中"},{value:1,label:"通过"},{value:2,label:"拒绝"}];return{loading:!1,searchForm:[{label:"会员ID",type:"input",prop:"member_id",clearable:!1},{label:"状态",type:"select",prop:"status",clearable:!0,options:e}],columns:[{label:"会员ID",prop:"member_id"},{label:"提现金额",prop:"amount",method:function(t){var e;return null===(e=Number(t.amount))||void 0===e?void 0:e.toFixed(2)}},{label:"手续费",prop:"service_charge",method:function(t){var e;return null===(e=Number(t.service_charge))||void 0===e?void 0:e.toFixed(2)}},{label:"费率",prop:"exchange_rate",method:function(e){return t.formatNumber(e.exchange_rate,2)}},{label:"到账金额",prop:"to_account",html:!0,width:150,method:function(e){var n=e.to_account_usdt||0,a=e.exchange_rate||1,o=n*a;return'\n <div class="amount-display">\n <div class="usd-amount">'.concat(t.formatNumber(n),' USDT</div>\n <div class="cny-amount">').concat(t.formatNumber(o)," RMB</div>\n </div>\n ")}},{label:"提现后余额",prop:"after_balance",method:function(t){var e;return null===(e=Number(t.after_balance))||void 0===e?void 0:e.toFixed(2)}},{label:"钱包地址",prop:"address"},{label:"状态",method:function(t){var n;return null===(n=e.filter((function(e){return e.value===t.status}))[0])||void 0===n?void 0:n.label}},{label:"原因",prop:"remark"},{label:"备注",prop:"admin_note"}],rowsActions:[{key:"note",label:"备注",method:function(e){t.$prompt("请输入备注","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^\S+$/,inputErrorMessage:"请输入备注"}).then((function(n){var a=n.value;Object(i["C"])({id:e.id,admin_note:a}).then((function(){t.onSubmit(),t.$message({type:"success",message:"操作成功"})}))}))}},{key:"no",label:"驳回",vIF:function(t){return 0===t.status},method:function(e){t.setStatus({id:e.id.toString(),status:2})}},{key:"yes",label:"通过",vIF:function(t){return 0===t.status},method:function(e){t.setStatus({id:e.id.toString(),status:1})}}],apis:{list:{url:"withdraw",dataParam:"data.data",resultParam:"data",init:!1}},tableOptions:{},editForm:[],editConfig:{}}},created:function(){},mounted:function(){var t=this;this.onSubmit(),Object(i["j"])("admin/withdraw/setStatus").then((function(e){var n=e.code;0!==n&&(t.rowsActions=[])}))},methods:{formatNumber:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return isNaN(t)?"0.00":Number(t).toFixed(e).replace(/\B(?=(\d{3})+(?!\d))/g,",")},setStatus:function(t){var e=this;this.$confirm("确定".concat(1===t.status?"通过":"驳回","审核?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(i["B"])(t).then((function(){e.onSubmit(),e.$message({type:"success",message:"操作成功"})}))}))},onValueChange:function(t){},onSubmit:function(t){this.$refs.table.getList(t)}}},l=u,c=n("2410"),s=Object(c["a"])(l,a,o,!1,null,null,null);e["default"]=s.exports}}]);
|