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,O,t){t.r(O),t.d(O,{default:function(){return k}});var g=t(97857),y=t.n(g),j=t(15009),v=t.n(j),B=t(99289),S=t.n(B),x=t(35312);function d(N,$){return u.apply(this,arguments)}function u(){return u=S()(v()().mark(function N($,a){return v()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,x.request)("/api/admin/money/audit",y()({method:"POST",headers:{"Content-Type":"application/json"},data:$},a||{})));case 1:case"end":return o.stop()}},N)})),u.apply(this,arguments)}function b(N,$){return m.apply(this,arguments)}function m(){return m=S()(v()().mark(function N($,a){return v()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,x.request)("/api/admin/money/list",y()({method:"POST",headers:{"Content-Type":"application/json"},data:$},a||{})));case 1:case"end":return o.stop()}},N)})),m.apply(this,arguments)}var E=t(58125),A=t(90930),D=t(67539),Y=t(66309),z=t(86250),L=t(86738),Z=t(14726),H=t(67294),W=t(52043),Q=t(38171),I=t(85893),J=function(){var $=(0,x.useParams)(),a=$.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(f,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(f,e){if(e.user)return(0,I.jsx)(Q.Z,{data:e.user})}},{title:"\u91D1\u989D\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"cent",valueType:"textarea",renderText:function(f){return(0,E.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,W.XY)(),r=e.find(function(n){return n.value===f+""}),c=r?r.label:"\u672A\u77E5";return(0,I.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(f){return(0,I.jsx)(z.Z,{gap:"small",wrap:!0,children:f.status===0&&(0,I.jsxs)(I.Fragment,{children:[(0,I.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:S()(v()().mark(function e(){var r;return v()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,d({id:f.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,I.jsx)(Z.ZP,{children:"\u62D2\u7EDD"})}),(0,I.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:S()(v()().mark(function e(){var r;return v()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,d({id:f.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,I.jsx)(Z.ZP,{type:"primary",children:"\u901A\u8FC7"})})]})})}}];return(0,I.jsx)(A._z,{children:(0,I.jsx)(D.Z,{actionRef:s,request:function(){var l=S()(v()().mark(function f(e){var r,c,n;return v()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,b(y()(y()({},e),{},{appCode:a}));case 2:return n=p.sent,p.abrupt("return",{d