chunk-2065894b.f76b3f19.js 5.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2065894b"],{"408a":function(t,e,n){var a=n("c6b6");t.exports=function(t){if("number"!=typeof t&&"Number"!=a(t))throw TypeError("Incorrect invocation");return+t}},b680:function(t,e,n){"use strict";var a=n("23e7"),o=n("a691"),i=n("408a"),r=n("1148"),s=n("d039"),l=1..toFixed,u=Math.floor,c=function(t,e,n){return 0===e?n:e%2===1?c(t,e-1,n*t):c(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},p=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){l.call({})}));a({target:"Number",proto:!0,forced:p},{toFixed:function(t){var e,n,a,s,l=i(this),p=o(t),m=[0,0,0,0,0,0],f="",b="0",h=function(t,e){var n=-1,a=e;while(++n<6)a+=t*m[n],m[n]=a%1e7,a=u(a/1e7)},v=function(t){var e=6,n=0;while(--e>=0)n+=m[e],m[e]=u(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+r.call("0",7-n.length)+n}return e};if(p<0||p>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(f="-",l=-l),l>1e-21)if(e=d(l*c(2,69,1))-69,n=e<0?l*c(2,-e,1):l/c(2,e,1),n*=4503599627370496,e=52-e,e>0){h(0,n),a=p;while(a>=7)h(1e7,0),a-=7;h(c(10,a,1),0),a=e-1;while(a>=23)v(1<<23),a-=23;v(1<<a),h(1,1),v(2),b=g()}else h(0,n),h(1<<-e,0),b=g()+r.call("0",p);return p>0?(s=b.length,b=f+(s<=p?"0."+r.call("0",p-s)+b:b.slice(0,s-p)+"."+b.slice(s-p))):b=f+b,b}})},bb8f: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:!0,"table-options":t.tableOptions,"edit-form":t.editForm,"edit-config":t.editConfig,columns:t.columns,"actions-width":120,"rows-actions":t.rowsActions,"show-summary":!1,apis:t.apis,alertTip:t.alertTip,"custom-style":{height:"calc(100vh - 170px)"}},on:{onResponse:t.onResponse}}),n("Dialog",{ref:"dialog"},[n("template",{slot:"content"})],2)],1)},o=[],i=n("5530"),r=(n("99af"),n("4de4"),n("a9e3"),n("b680"),n("d3b7"),n("9039")),s=n("7e1e"),l={components:{Dialog:r["a"]},data:function(){var t=this,e=[{value:0,label:"待处理"},{value:1,label:"处理中"},{value:2,label:"成功"},{value:3,label:"失败"}];return{loading:!1,alertTip:"",searchForm:[{label:"会员ID",type:"input",prop:"member_id",clearable:!1},{label:"状态",type:"select",prop:"status",clearable:!0,options:e}],columns:[{label:"会员昵称",popover:!0,width:140,prop:["user_info.first_name"],tagType:function(t){return 1===(null===t||void 0===t?void 0:t.user_info.status)?"danger":""},options:[{label:"会员ID",value:["user_info.member_id"]},{label:"用户名称",value:["user_info.username"]}]},{label:"订单号",prop:"order_no"},{label:"提现金额",prop:"amount",method:function(t){var e;return null===(e=Number(t.amount))||void 0===e?void 0:e.toFixed(2)}},{label:"银行卡",width:"180px",html:!0,method:function(t){return"".concat(null===t||void 0===t?void 0:t.account,"(").concat(null===t||void 0===t?void 0:t.bank_name,")<br/>账户:").concat(null===t||void 0===t?void 0:t.card_no," ")}},{label:"手续费",prop:"fee",method:function(t){var e;return null===(e=Number(t.fee))||void 0===e?void 0:e.toFixed(2)}},{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"},{label:"申请时间",prop:"created_at"}],rowsActions:[{key:"no",label:"驳回",vIF:function(t){return 0===t.status&&2===t.type},method:function(e){t.getStatus({ids:[e.id],status:3})}},{key:"yes",label:"通过",vIF:function(t){return 0===t.status&&2===t.type},method:function(e){t.getStatus({ids:[e.id],status:1})}},{key:"note",label:"备注",method:function(e){t.$prompt("请输入备注","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^\S+$/,inputErrorMessage:"请输入备注"}).then((function(n){var a=n.value;Object(s["L"])({id:e.id,admin_note:a}).then((function(){t.onSubmit(),t.$message({type:"success",message:"操作成功"})}))}))}}],apis:{list:{url:"withdraw/rmb",dataParam:"data.data",resultParam:"data",init:!1},pass:{url:"paymentOrder/audit",method:"post",params:["ids"],status:["status"],statusValue:1},reject:{url:"paymentOrder/audit",method:"post",params:["ids"],status:["status"],statusValue:3,remark:["remark"]}},tableOptions:{reject:{show:!0},pass:{show:!1}},editForm:[],editConfig:{}}},created:function(){},mounted:function(){this.onSubmit()},methods:{onResponse:function(t){this.alertTip="总金额:".concat(t.total_amount,"(RMB);已处理:").concat(t.total_success,"(RMB);失败金额:").concat(t.total_fail,"(RMB)")},getStatus:function(t){var e=this;3===t.status?this.$prompt("请输入原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^\S+$/,inputErrorMessage:"请输入原因"}).then((function(n){var a=n.value;Object(s["a"])(Object(i["a"])(Object(i["a"])({},t),{},{remark:a})).then((function(){e.onSubmit(),e.$message({type:"success",message:"操作成功"})}))})):this.$confirm("确定通过审核?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(s["a"])(t).then((function(){e.onSubmit(),e.$message({type:"success",message:"操作成功"})}))}))},onValueChange:function(t){},onSubmit:function(t){this.$refs.table.getList(t)}}},u=l,c=n("2877"),d=Object(c["a"])(u,a,o,!1,null,null,null);e["default"]=d.exports}}]);