Files
aiot-platform-ui/apps/web-antd/dist/js/index-BGtQL1tk.js
lzh 24c3dbc8f1
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 8s
chore: build and deploy web-antd
2026-03-23 17:20:54 +08:00

2 lines
6.7 KiB
JavaScript

var P=Object.defineProperty,B=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var N=(a,i,r)=>i in a?P(a,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[i]=r,b=(a,i)=>{for(var r in i||(i={}))G.call(i,r)&&N(a,r,i[r]);if(E)for(var r of E(i))O.call(i,r)&&N(a,r,i[r]);return a},R=(a,i)=>B(a,D(i));var u=(a,i,r)=>new Promise((g,p)=>{var k=t=>{try{s(r.next(t))}catch(e){p(e)}},y=t=>{try{s(r.throw(t))}catch(e){p(e)}},s=t=>t.done?g(t.value):Promise.resolve(t.value).then(k,y);s((r=r.apply(a,i)).next())});import"./vxe-table-CF-Re93B.js";import{aq as W,at as x,a9 as f,$ as I,bt as q}from"./bootstrap-DmcuvVZS.js";import{_ as H}from"./dict-tag.vue_vue_type_script_setup_true_lang-D0nJjy4y.js";import{g as K}from"./rangePickerProps-Ce0Q9Y_E.js";import{D as m}from"./dict-enum-CaHgMaDZ.js";import{_ as L}from"./table-action.vue_vue_type_script_setup_true_lang-DLEMWDWC.js";import{e as A,f as v}from"./biz-mall-enum-Bmxc7Ei7.js";import{_ as U}from"./page.vue_vue_type_script_setup_true_lang-D_L6nEGY.js";import{m as $,ab as j,b2 as n,bJ as h,j as T,u as o,ae as _,ad as l,ac as d,bp as c,cT as F,I as M,L as V}from"../jse/index-index-B6J4axeY.js";import{u as Y}from"./use-vxe-grid-DQWlXi-M.js";import{A as C}from"./icons-CieLeI1V.js";import{v as w,b as z}from"./AlertBuilder-CxKfA7Bf.js";import"./index-Dlk9vVoe.js";import"./circle-check-big-CXTM1Gxe.js";import"./x-CGHUyQuD.js";function J(a){return W.get("/trade/brokerage-withdraw/page",{params:a})}function S(a){return W.put(`/trade/brokerage-withdraw/approve?id=${a}`)}function Q(a){return W.put("/trade/brokerage-withdraw/reject",a)}function X(){return[{fieldName:"userId",label:"用户编号",component:"Input",componentProps:{placeholder:"请输入用户编号",allowClear:!0}},{fieldName:"type",label:"提现类型",component:"Select",componentProps:{placeholder:"请选择提现类型",allowClear:!0,options:x(m.BROKERAGE_WITHDRAW_TYPE,"number")}},{fieldName:"userAccount",label:"账号",component:"Input",componentProps:{placeholder:"请输入账号",allowClear:!0}},{fieldName:"userName",label:"真实姓名",component:"Input",componentProps:{placeholder:"请输入真实姓名",allowClear:!0}},{fieldName:"bankName",label:"提现银行",component:"Select",componentProps:{placeholder:"请选择提现银行",allowClear:!0,options:x(m.BROKERAGE_BANK_NAME,"string")}},{fieldName:"status",label:"状态",component:"Select",componentProps:{placeholder:"请选择状态",allowClear:!0,options:x(m.BROKERAGE_WITHDRAW_STATUS,"number")}},{fieldName:"createTime",label:"申请时间",component:"RangePicker",componentProps:R(b({},K()),{allowClear:!0})}]}function Z(){return[{field:"id",title:"编号",minWidth:80},{field:"userId",title:"用户编号",minWidth:80},{field:"userNickname",title:"用户昵称",minWidth:80},{field:"price",title:"提现金额",minWidth:80,formatter:"formatAmount2"},{field:"feePrice",title:"提现手续费",minWidth:80,formatter:"formatAmount2"},{field:"type",title:"提现方式",minWidth:120,cellRender:{name:"CellDict",props:{type:m.BROKERAGE_WITHDRAW_TYPE}}},{title:"提现信息",minWidth:200,slots:{default:"withdraw-info"}},{field:"createTime",title:"申请时间",minWidth:180,formatter:"formatDateTime"},{field:"remark",title:"备注",minWidth:120},{title:"状态",minWidth:200,slots:{default:"status-info"}},{title:"操作",width:150,fixed:"right",slots:{default:"actions"}}]}const ee={key:0,class:"text-left"},te={key:1,class:"text-left"},ae={key:0,class:"text-left"},ie={key:1,class:"text-left"},re={key:0,class:"text-left"},oe={key:1,class:"text-left"},se={key:3,class:"mt-2 text-left"},ne={class:"flex items-start gap-2"},le=["src"],de={class:"text-left"},ce={key:0,class:"mt-1 text-left text-xs text-gray-500"},ue={key:1,class:"mt-1 text-left text-xs text-gray-500"},me={key:2,class:"mt-1 text-left text-xs text-red-500"},Ie=$({name:"BrokerageWithdraw",__name:"index",setup(a){function i(){y.query()}function r(s){return u(this,null,function*(){yield w("确定要审核通过吗?");const t=f.loading({content:"审核通过中 ...",duration:0});try{yield S(s.id),f.success(I("ui.actionMessage.operationSuccess")),i()}finally{t()}})}function g(s){z({component:()=>V(q,{placeholder:"请输入驳回原因",allowClear:!0,rules:[{required:!0,message:"请输入驳回原因"}]}),content:"请输入驳回原因",title:"驳回",modelPropName:"value"}).then(t=>u(null,null,function*(){t&&(yield Q({id:s.id,auditReason:t}),i())}))}function p(s){return u(this,null,function*(){yield w("确定要重新转账吗?");const t=f.loading({content:"审核通过中 ...",duration:0});try{yield S(s.id),f.success(I("ui.actionMessage.operationSuccess")),i()}finally{t()}})}const[k,y]=Y({formOptions:{schema:X()},gridOptions:{columns:Z(),height:"auto",keepSource:!0,cellConfig:{height:90},proxyConfig:{ajax:{query:(e,Se)=>u(null,[e,Se],function*({page:s},t){return yield J(b({pageNo:s.currentPage,pageSize:s.pageSize},t))})}},rowConfig:{keyField:"id",isHover:!0},toolbarConfig:{refresh:!0,search:!0}}});return(s,t)=>(n(),j(o(U),{"auto-content-height":""},{default:h(()=>[T(o(k),{"table-title":"佣金提现列表"},{"withdraw-info":h(({row:e})=>[e.type===o(v).WALLET.type?(n(),l("div",ee," - ")):(n(),l("div",te,[e.userAccount?(n(),l("div",ae," 账号:"+c(e.userAccount),1)):d("",!0),e.userName?(n(),l("div",ie," 真实姓名:"+c(e.userName),1)):d("",!0),e.type===o(v).BANK.type?(n(),l(M,{key:2},[e.bankName?(n(),l("div",re," 银行名称:"+c(e.bankName),1)):d("",!0),e.bankAddress?(n(),l("div",oe," 开户地址:"+c(e.bankAddress),1)):d("",!0)],64)):d("",!0),e.qrCodeUrl?(n(),l("div",se,[_("div",ne,[t[0]||(t[0]=_("span",{class:"flex-shrink-0"},"收款码:",-1)),_("img",{src:e.qrCodeUrl,class:"h-10 w-10 flex-shrink-0"},null,8,le)])])):d("",!0)]))]),"status-info":h(({row:e})=>[_("div",de,[T(o(H),{value:e.status,type:o(m).BROKERAGE_WITHDRAW_STATUS},null,8,["value","type"]),e.auditTime?(n(),l("div",ce," 时间:"+c(o(F)(e.auditTime)),1)):d("",!0),e.auditReason?(n(),l("div",ue," 审核原因:"+c(e.auditReason),1)):d("",!0),e.transferErrorMsg?(n(),l("div",me," 转账失败原因:"+c(e.transferErrorMsg),1)):d("",!0)])]),actions:h(({row:e})=>[T(o(L),{actions:[{label:"通过",type:"link",icon:o(C).EDIT,auth:["trade:brokerage-withdraw:audit"],ifShow:e.status===o(A).AUDITING.status&&!e.payTransferId,onClick:()=>r(e)},{label:"驳回",type:"link",danger:!0,icon:o(C).DELETE,auth:["trade:brokerage-withdraw:audit"],ifShow:e.status===o(A).AUDITING.status&&!e.payTransferId,onClick:()=>g(e)},{label:"重新转账",type:"link",icon:o(C).REFRESH,auth:["trade:brokerage-withdraw:audit"],ifShow:e.status===o(A).WITHDRAW_FAIL.status,onClick:()=>p(e)}]},null,8,["actions"])]),_:1})]),_:1}))}});export{Ie as default};