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