"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1008],{8303:function(F,v,n){n.r(v);var O=n(90228),_=n.n(O),j=n(87999),i=n.n(j),M=n(26068),u=n.n(M),b=n(67825),E=n.n(b),x=n(35384),P=n(98984),A=n(94675),I=n(50959),T=n(34571),l=n(11527),R=["type","defaultRender","formItemProps","fieldProps"],y=["type","defaultRender","formItemProps","fieldProps"];v.default=function(m){var p=m.values,h=m.setModalVisit,B=m.modalVisit,c=(0,I.useRef)();(0,I.useEffect)(function(){c.current&&c.current.reload()},[p]);var C=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u7528\u6237\u4FE1\u606F",dataIndex:"userId",valueType:"text",search:!1,render:function(t,e){return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{children:["\u7528\u6237ID\uFF1A",e==null?void 0:e.userId]}),(0,l.jsxs)("div",{children:["\u7528\u6237\u6635\u79F0\uFF1A",e==null?void 0:e.nickName]}),(0,l.jsxs)("div",{children:["\u624B\u673A\u53F7\uFF1A",e==null?void 0:e.phone]})]})}},{title:"\u8BB0\u5F55\u540D\u79F0",dataIndex:"recordName",valueType:"text"},{title:"\u5F53\u524D\u4F59\u989D",dataIndex:"curBalance",valueType:"text",search:!1},{title:"\u53D8\u52A8\u91D1\u989D",dataIndex:"amount",valueType:"text",search:!1},{title:"\u8D60\u9001\u91D1\u989D",dataIndex:"giveAmount",valueType:"text",search:!1},{title:"\u6765\u6E90\u7C7B\u578B",dataIndex:"sourceType",valueType:"text",render:function(t,e){return t==11?"\u7528\u6237\u8D2D\u4E70":t==12?"\u7528\u6237\u9000\u6B3E":t==13?"\u540E\u53F0\u4E0B\u53D1":t==14?"\u540E\u53F0\u9000\u5361":t==21?"\u8BA2\u5355\u652F\u4ED8":t==22?"\u8BA2\u5355\u9000\u6B3E":t},renderFormItem:function(t,e,f){var D=e.type,s=e.defaultRender,r=e.formItemProps,o=e.fieldProps,a=E()(e,R);return(0,l.jsx)(P.Z,u()(u()({},o),{},{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u6765\u6E90\u7C7B\u578B",style:{width:"100%"},filterOption:!1,fieldNames:{label:"name",value:"id"},options:[{name:"\u7528\u6237\u8D2D\u4E70",id:11},{name:"\u7528\u6237\u9000\u6B3E",id:12},{name:"\u540E\u53F0\u4E0B\u53D1",id:13},{name:"\u540E\u53F0\u9000\u5361",id:14},{name:"\u8BA2\u5355\u652F\u4ED8",id:21},{name:"\u8BA2\u5355\u9000\u6B3E",id:22}]}))}},{title:"\u573A\u666F",dataIndex:"scene",valueType:"text",render:function(t,e){return t==1?"\u4F59\u989D":t==2?"\u8BA2\u5355":t},renderFormItem:function(t,e,f){var D=e.type,s=e.defaultRender,r=e.formItemProps,o=e.fieldProps,a=E()(e,y);return(0,l.jsx)(P.Z,u()(u()({},o),{},{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u573A\u666F",style:{width:"100%"},filterOption:!1,fieldNames:{label:"name",value:"id"},options:[{name:"\u4F59\u989D",id:1},{name:"\u8BA2\u5355",id:2}]}))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",valueType:"text",search:!1}];return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(A.Z,{width:1200,title:"\u7535\u5361-\u4F59\u989D\u8BB0\u5F55",open:B,onOk:i()(_()().mark(function d(){return _()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:h(!1);case 1:case"end":return e.stop()}},d)})),onCancel:i()(_()().mark(function d(){return _()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:h(!1);case 1:case"end":return e.stop()}},d)})),children:(0,l.jsx)(x.Z,{rowKey:"id",actionRef:c,search:{labelWidth:120,defaultCollapsed:!1},request:function(){var d=i()(_()().mark(function t(e,f,D){var s,r;return _()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e.userId=p.userId,e.cardId=p.cardId,a.next=4,(0,T.s5)(e);case 4:return s=a.sent,r=s.data,a.abrupt("return",{data:(r==null?void 0:r.records)||[],total:r==null?void 0:r.total});case 7:case"end":return a.stop()}},t)}));return function(t,e,f){return d.apply(this,arguments)}}(),columns:C},"logList")})})}}}]);
