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