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

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[190],{40110:function(k,R,t){var v=t(1413),C=t(67294),B=t(509),f=t(91146),U=function(T,c){return C.createElement(f.Z,(0,v.Z)((0,v.Z)({},T),{},{ref:c,icon:B.Z}))},S=C.forwardRef(U);R.Z=S},39829:function(k,R,t){t.r(R),t.d(R,{default:function(){return q}});var v=t(97857),C=t.n(v),B=t(15009),f=t.n(B),U=t(99289),S=t.n(U),y=t(35312);function T(X,Z){return c.apply(this,arguments)}function c(){return c=S()(f()().mark(function X(Z,l){return f()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,y.request)("/api/admin/money/audit",C()({method:"POST",headers:{"Content-Type":"application/json"},data:Z},l||{})));case 1:case"end":return r.stop()}},X)})),c.apply(this,arguments)}function L(X,Z){return A.apply(this,arguments)}function A(){return A=S()(f()().mark(function X(Z,l){return f()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,y.request)("/api/admin/money/list",C()({method:"POST",headers:{"Content-Type":"application/json"},data:Z},l||{})));case 1:case"end":return r.stop()}},X)})),A.apply(this,arguments)}var W=t(58125),M=t(90930),w=t(67539),H=t(66309),K=t(86250),z=t(86738),x=t(14726),b=t(67294),I=t(52043),P=t(42767),g=t(85893),i=function(){var Z=(0,y.useParams)(),l=Z.code,u=(0,b.useRef)();(0,b.useEffect)(function(){var o;(o=u.current)===null||o===void 0||o.reload()},[l]);var r=[{title:"id",dataIndex:"id",valueType:"textarea",copyable:!0,hideInSearch:!0,renderText:function(p,e){return(0,I.m0)(e.createdAt||0)+(0,I.RQ)(e.id||0,6)}},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"user",valueType:"textarea",width:150,renderText:function(p,e){if(e.user)return(0,g.jsx)(P.Z,{data:e.user})}},{title:"\u91D1\u989D\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"cent",valueType:"textarea",renderText:function(p){return(0,W.D)(p)}},{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(p){var e=(0,I.XY)(),a=e.find(function(n){return n.value===p+""}),s=a?a.label:"\u672A\u77E5";return(0,g.jsx)(H.Z,{color:a==null?void 0:a.color,children:s})}},{title:"\u72B6\u6001",dataIndex:"status",hideInTable:!0,valueType:"select",fieldProps:{options:(0,I.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(p){return(0,g.jsx)(K.Z,{gap:"small",wrap:!0,children:p.status===0&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(z.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:S()(f()().mark(function e(){var a;return f()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,T({id:p.id,status:-2,reason:""});case 2:(a=u.current)===null||a===void 0||a.reload();case 3:case"end":return n.stop()}},e)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,g.jsx)(x.ZP,{children:"\u62D2\u7EDD"})}),(0,g.jsx)(z.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:S()(f()().mark(function e(){var a;return f()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,T({id:p.id,status:1,reason:""});case 2:(a=u.current)===null||a===void 0||a.reload();case 3:case"end":return n.stop()}},e)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,g.jsx)(x.ZP,{type:"primary",children:"\u901A\u8FC7"})})]})})}}];return(0,g.jsx)(M._z,{children:(0,g.jsx)(w.Z,{actionRef:u,request:function(){var o=S()(f()().mark(fu