You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
15 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[190],{39829:function(K,j,t){t.r(j),t.d(j,{default:function(){return k}});var f=t(97857),S=t.n(f),I=t(15009),g=t.n(I),F=t(99289),p=t.n(F),C=t(35312);function u(A,T){return h.apply(this,arguments)}function h(){return h=p()(g()().mark(function A(T,a){return g()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,C.request)("/api/admin/money/audit",S()({method:"POST",headers:{"Content-Type":"application/json"},data:T},a||{})));case 1:case"end":return o.stop()}},A)})),h.apply(this,arguments)}function $(A,T){return v.apply(this,arguments)}function v(){return v=p()(g()().mark(function A(T,a){return g()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,C.request)("/api/admin/money/list",S()({method:"POST",headers:{"Content-Type":"application/json"},data:T},a||{})));case 1:case"end":return o.stop()}},A)})),v.apply(this,arguments)}var O=t(58125),R=t(90930),M=t(67539),Y=t(66309),z=t(86250),L=t(86738),Z=t(14726),H=t(67294),W=t(52043),Q=t(38171),b=t(85893),J=function(){var T=(0,C.useParams)(),a=T.code,s=(0,H.useRef)();(0,H.useEffect)(function(){var l;(l=s.current)===null||l===void 0||l.reload()},[a]);var o=[{title:"id",dataIndex:"id",valueType:"textarea",copyable:!0,hideInSearch:!0,renderText:function(d,e){return(0,W.m0)(e.createdAt||0)+(0,W.RQ)(e.id||0,6)}},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"user",valueType:"textarea",width:150,renderText:function(d,e){if(e.user)return(0,b.jsx)(Q.Z,{data:e.user})}},{title:"\u91D1\u989D\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"cent",valueType:"textarea",renderText:function(d){return(0,O.D)(d)}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount",hideInSearch:!0},{title:"\u8BA2\u5355\u53F7",dataIndex:"orderId",hideInSearch:!0,ellipsis:!0},{title:"\u8F6C\u8D26\u65F6\u95F4",dataIndex:"transDate",hideInSearch:!0},{title:"\u72B6\u6001",dataIndex:"status",hideInSearch:!0,renderText:function(d){var e=(0,W.XY)(),r=e.find(function(n){return n.value===d+""}),c=r?r.label:"\u672A\u77E5";return(0,b.jsx)(Y.Z,{color:r==null?void 0:r.color,children:c})}},{title:"\u72B6\u6001",dataIndex:"status",hideInTable:!0,valueType:"select",fieldProps:{options:(0,W.XY)()}},{title:"\u5907\u6CE8",dataIndex:"reason",hideInSearch:!0},{title:"\u7533\u8BF7\u65F6\u95F4",dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(d){return(0,b.jsx)(z.Z,{gap:"small",wrap:!0,children:d.status===0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(L.Z,{title:"\u62D2\u7EDD\u63D0\u73B0\u7533\u8BF7",description:"\u62D2\u7EDD\u540E\uFF0C\u72B6\u6001\u65E0\u6CD5\u4FEE\u6539\u6210\u5BA1\u6279\u901A\u8FC7\uFF0C\u786E\u5B9A\u62D2\u7EDD\u5417?",onConfirm:p()(g()().mark(function e(){var r;return g()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,u({id:d.id,status:-2,reason:""});case 2:(r=s.current)===null||r===void 0||r.reload();case 3:case"end":return n.stop()}},e)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,b.jsx)(Z.ZP,{children:"\u62D2\u7EDD"})}),(0,b.jsx)(L.Z,{title:"\u901A\u8FC7\u63D0\u73B0\u7533\u8BF7",description:"\u901A\u8FC7\u540E\u7CFB\u7EDF\u5C06\u81EA\u52A8\u8F6C\u8D26\uFF0C\u65E0\u6CD5\u64A4\u56DE\uFF0C\u786E\u5B9A\u901A\u8FC7\u5417?",onConfirm:p()(g()().mark(function e(){var r;return g()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,u({id:d.id,status:1,reason:""});case 2:(r=s.current)===null||r===void 0||r.reload();case 3:case"end":return n.stop()}},e)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,b.jsx)(Z.ZP,{type:"primary",children:"\u901A\u8FC7"})})]})})}}];return(0,b.jsx)(R._z,{children:(0,b.jsx)(M.Z,{actionRef:s,request:function(){var l=p()(g()().mark(function d(e){var r,c,n;return g()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,$(S()(S()({},e),{},{appCode:a}));case 2:return n=m.sent,m.abrupt("return",{data:(r=n.data)===null||r===void 0?void 0:r.data,total:(c=n.data)===null||c===void 0?void 0:c.total,success:!0});case 4:case"end":return m.stop()}},d)}));return function(d){return l.apply(this,arguments)}}(),columns:o})})},k=J},38171:function(K,j,t){var f=t(55241),S=t(2487),I=t(71230),g=t(7134),F=t(67294),p=t(52043),C=t(58125),u=t(85893),h=function(v){var O=(0,p.E7)(v.data.env);return(0,u.jsx)(f.Z,{content:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("p",{children:[(0,u.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,C.P)(v.data.income),"\u5143"]}),(0,u.jsxs)("p",{children:[(0,u.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,C.D)(v.data.realMoney),"\u5143"]}),O.length>0&&(0,u.jsx)(S.Z,{size:"small",header:(0,u.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:O,renderItem:function(M){return(0,u.jsx)(S.Z.Item,{children:M})}})]}),children:(0,u.jsxs)(I.Z,{children:[(0,u.jsx)(g.C,{src:v.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,u.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:O.length>0?"red":""},children:["id:",v.data.id,(0,u.jsx)("br",{}),v.data.nickname||v.data.mobile]})]})})};j.Z=h},52043:function(K,j,t){t.d(j,{E7:function(){return S},FG:function(){return f},RQ:function(){return F},XY:function(){return I},m0:function(){return g}});var f=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"}]},S=function(C){var u=[];if(!C)return u;for(var h=C>>1,$=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],v=0,O=$;v<O.length;v++){var R=O[v];h&1&&u.push(R),h>>=1}return u},I=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},g=function(C){var u=new Date(C),h=u.getFullYear().toString().padStart(4,"0"),$=(u.getMonth()+1).toString().padStart(2,"0"),v=u.getDate().toString().padStart(2,"0");return h+$+v},F=function(C,u){var h=C.toString();return h.padStart(u,"0")}},58125:function(K,j,t){t.d(j,{D:function(){return S},P:function(){return f}});var f=function(g){return g?parseFloat((g/1e5).toFixed(2)):0},S=function(g){return g?parseFloat((g/100).toFixed(2)):0}},86250:function(K,j,t){t.d(j,{Z:function(){return T}});var f=t(67294),S=t(93967),I=t.n(S),g=t(98423),F=t(98065),p=t(53124),C=t(91945),u=t(45503);const h=["wrap","nowrap","wrap-reverse"],$=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],v=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],O=(a,s)=>{const o=s.wrap===!0?"wrap":s.wrap;return{[`${a}-wrap-${o}`]:o&&h.includes(o)}},R=(a,s)=>{const o={};return v.forEach(l=>{o[`${a}-align-${l}`]=s.align===l}),o[`${a}-align-stretch`]=!s.align&&!!s.vertical,o},M=(a,s)=>{const o={};return $.forEach(l=>{o[`${a}-justify-${l}`]=s.justify===l}),o};function Y(a,s){return I()(Object.assign(Object.assign(Object.assign({},O(a,s)),R(a,s)),M(a,s)))}var z=Y;const L=a=>{const{componentCls:s}=a;return{[s]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Z=a=>{const{componentCls:s}=a;return{[s]:{"&-gap-small":{gap:a.flexGapSM},"&-gap-middle":{gap:a.flexGap},"&-gap-large":{gap:a.flexGapLG}}}},H=a=>{const{componentCls:s}=a,o={};return h.forEach(l=>{o[`${s}-wrap-${l}`]={flexWrap:l}}),o},W=a=>{const{componentCls:s}=a,o={};return v.forEach(l=>{o[`${s}-align-${l}`]={alignItems:l}}),o},Q=a=>{const{componentCls:s}=a,o={};return $.forEach(l=>{o[`${s}-justify-${l}`]={justifyContent:l}}),o},b=()=>({});var J=(0,C.I$)("Flex",a=>{const{paddingXS:s,padding:o,paddingLG:l}=a,d=(0,u.TS)(a,{flexGapSM:s,flexGap:o,flexGapLG:l});return[L(d),Z(d),H(d),W(d),Q(d)]},b,{resetStyle:!1}),k=function(a,s){var o={};for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&s.indexOf(l)<0&&(o[l]=a[l]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,l=Object.getOwnPropertySymbols(a);d<l.length;d++)s.indexOf(l[d])<0&&Object.prototype.propertyIsEnumerable.call(a,l[d])&&(o[l[d]]=a[l[d]]);return o},T=f.forwardRef((a,s)=>{const{prefixCls:o,rootClassName:l,className:d,style:e,flex:r,gap:c,children:n,vertical:i=!1,component:m="div"}=a,x=k(a,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:y,direction:B,getPrefixCls:U}=f.useContext(p.E_),E=U("flex",o),[G,N,q]=J(E),_=i!=null?i:y==null?void 0:y.vertical,D=I()(d,l,y==null?void 0:y.className,E,N,q,z(E,a),{[`${E}-rtl`]:B==="rtl",[`${E}-gap-${c}`]:(0,F.n)(c),[`${E}-vertical`]:_}),V=Object.assign(Object.assign({},y==null?void 0:y.style),e);return r&&(V.flex=r),c&&!(0,F.n)(c)&&(V.gap=c),G(f.createElement(m,Object.assign({ref:s,className:D,style:V},(0,g.Z)(x,["justify","wrap","align"])),n))})},66309:function(K,j,t){t.d(j,{Z:function(){return d}});var f=t(67294),S=t(93967),I=t.n(S),g=t(98423),F=t(98787),p=t(69760),C=t(96159),u=t(45353),h=t(53124),$=t(54548),v=t(10274),O=t(14747),R=t(45503),M=t(91945);const Y=e=>{const{paddingXXS:r,lineWidth:c,tagPaddingHorizontal:n,componentCls:i,calc:m}=e,x=m(n).sub(c).equal(),y=m(r).sub(c).equal();return{[i]:Object.assign(Object.assign({},(0,O.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:x,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,$.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:y,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:x}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},z=e=>{const{lineWidth:r,fontSizeIcon:c,calc:n}=e,i=e.fontSizeSM;return(0,R.TS)(e,{tagFontSize:i,tagLineHeight:(0,$.bf)(n(e.lineHeightSM).mul(i).equal()),tagIconSize:n(c).sub(n(r).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},L=e=>({defaultBg:new v.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var Z=(0,M.I$)("Tag",e=>{const r=z(e);return Y(r)},L),H=function(e,r){var c={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(c[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(c[n[i]]=e[n[i]]);return c},Q=f.forwardRef((e,r)=>{const{prefixCls:c,style:n,className:i,checked:m,onChange:x,onClick:y}=e,B=H(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:U,tag:E}=f.useContext(h.E_),G=ee=>{x==null||x(!m),y==null||y(ee)},N=U("tag",c),[q,_,D]=Z(N),V=I()(N,`${N}-checkable`,{[`${N}-checkable-checked`]:m},E==null?void 0:E.className,i,_,D);return q(f.createElement("span",Object.assign({},B,{ref:r,style:Object.assign(Object.assign({},n),E==null?void 0:E.style),className:V,onClick:G})))}),b=t(98719);const J=e=>(0,b.Z)(e,(r,c)=>{let{textColor:n,lightBorderColor:i,lightColor:m,darkColor:x}=c;return{[`${e.componentCls}${e.componentCls}-${r}`]:{color:n,background:m,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:x,borderColor:x},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var k=(0,M.bk)(["Tag","preset"],e=>{const r=z(e);return J(r)},L);function A(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const T=(e,r,c)=>{const n=A(c);return{[`${e.componentCls}${e.componentCls}-${r}`]:{color:e[`color${c}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var a=(0,M.bk)(["Tag","status"],e=>{const r=z(e);return[T(r,"success","Success"),T(r,"processing","Info"),T(r,"error","Error"),T(r,"warning","Warning")]},L),s=function(e,r){var c={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(c[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(c[n[i]]=e[n[i]]);return c};const l=f.forwardRef((e,r)=>{const{prefixCls:c,className:n,rootClassName:i,style:m,children:x,icon:y,color:B,onClose:U,bordered:E=!0,visible:G}=e,N=s(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:q,direction:_,tag:D}=f.useContext(h.E_),[V,ee]=f.useState(!0),ie=(0,g.Z)(N,["closeIcon","closable"]);f.useEffect(()=>{G!==void 0&&ee(G)},[G]);const re=(0,F.o2)(B),ae=(0,F.yT)(B),te=re||ae,ue=Object.assign(Object.assign({backgroundColor:B&&!te?B:void 0},D==null?void 0:D.style),m),P=q("tag",c),[de,fe,ge]=Z(P),ve=I()(P,D==null?void 0:D.className,{[`${P}-${B}`]:te,[`${P}-has-color`]:B&&!te,[`${P}-hidden`]:!V,[`${P}-rtl`]:_==="rtl",[`${P}-borderless`]:!E},n,i,fe,ge),le=X=>{X.stopPropagation(),U==null||U(X),!X.defaultPrevented&&ee(!1)},[,me]=(0,p.Z)((0,p.w)(e),(0,p.w)(D),{closable:!1,closeIconRender:X=>{const Ce=f.createElement("span",{className:`${P}-close-icon`,onClick:le},X);return(0,C.wm)(X,Ce,w=>({onClick:ce=>{var ne;(ne=w==null?void 0:w.onClick)===null||ne===void 0||ne.call(w,ce),le(ce)},className:I()(w==null?void 0:w.className,`${P}-close-icon`)}))}}),pe=typeof N.onClick=="function"||x&&x.type==="a",oe=y||null,he=oe?f.createElement(f.Fragment,null,oe,x&&f.createElement("span",null,x)):x,se=f.createElement("span",Object.assign({},ie,{ref:r,className:ve,style:ue}),he,me,re&&f.createElement(k,{key:"preset",prefixCls:P}),ae&&f.createElement(a,{key:"status",prefixCls:P}));return de(pe?f.createElement(u.Z,{component:"Tag"},se):se)});l.CheckableTag=Q;var d=l}}]);