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

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[190],{39829:function(b,x,r){r.r(x),r.d(x,{default:function(){return V}});var v=r(97857),f=r.n(v),g=r(15009),o=r.n(g),D=r(99289),h=r.n(D),S=r(35312);function T(C,p){return j.apply(this,arguments)}function j(){return j=h()(o()().mark(function C(p,e){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,S.request)("/api/admin/money/audit",f()({method:"POST",headers:{"Content-Type":"application/json"},data:p},e||{})));case 1:case"end":return t.stop()}},C)})),j.apply(this,arguments)}function E(C,p){return F.apply(this,arguments)}function F(){return F=h()(o()().mark(function C(p,e){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,S.request)("/api/admin/money/list",f()({method:"POST",headers:{"Content-Type":"application/json"},data:p},e||{})));case 1:case"end":return t.stop()}},C)})),F.apply(this,arguments)}var w=r(58125),G=r(90930),B=r(67539),R=r(71230),L=r(7134),Z=r(86250),I=r(86738),A=r(14726),O=r(67294),M=r(52043),c=r(85893),N=function(){var p=(0,S.useParams)(),e=p.code,a=(0,O.useRef)();(0,O.useEffect)(function(){var n;(n=a.current)===null||n===void 0||n.reload()},[e]);var t=[{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"user",valueType:"textarea",renderText:function(l,d){var u,i,s;if(d.user)return(0,c.jsxs)(R.Z,{children:[(0,c.jsx)(L.C,{src:(u=d.user)===null||u===void 0?void 0:u.avatar}),(0,c.jsxs)("p",{style:{fontSize:12,marginLeft:10},children:["id:",d.user.id,(0,c.jsx)("br",{}),((i=d.user)===null||i===void 0?void 0:i.nickname)||((s=d.user)===null||s===void 0?void 0:s.mobile)]})]})}},{title:"\u91D1\u989D\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"cent",valueType:"textarea",renderText:function(l){return(0,w.D)(l)}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name"},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount"},{title:"\u8BA2\u5355\u53F7",dataIndex:"orderId"},{title:"\u8F6C\u8D26\u65F6\u95F4",dataIndex:"transDate"},{title:"\u72B6\u6001",dataIndex:"status",renderText:function(l){var d=(0,M.X)(),u=d.find(function(i){return i.value===l+""});return u?u.label:"\u672A\u77E5"}},{title:"\u63D0\u73B0\u7533\u8BF7\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(l){return(0,c.jsx)(Z.Z,{gap:"small",wrap:!0,children:l.status===0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(I.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:h()(o()().mark(function d(){var u;return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,T({id:l.id,status:-2,reason:""});case 2:(u=a.current)===null||u===void 0||u.reload();case 3:case"end":return s.stop()}},d)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)(A.ZP,{children:"\u62D2\u7EDD"})}),(0,c.jsx)(I.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:h()(o()().mark(function d(){var u;return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,T({id:l.id,status:1,reason:""});case 2:(u=a.current)===null||u===void 0||u.reload();case 3:case"end":return s.stop()}},d)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)(A.ZP,{type:"primary",children:"\u901A\u8FC7"})})]})})}}];return(0,c.jsx)(G._z,{children:(0,c.jsx)(B.Z,{search:!1,actionRef:a,request:function(){var n=h()(o()().mark(function l(d){var u,i,s;return o()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,E(f()(f()({},d),{},{appCode:e}));case 2:return s=y.sent,y.abrupt("return",{data:(u=s.data)===null||u===void 0?void 0:u.data,total:(i=s.data)===null||i===void 0?void 0:i.total,success:!0});c