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.
2 lines
14 KiB
2 lines
14 KiB
5 months ago
|
"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\
|