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
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",{d