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
14 KiB

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