"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8430],{77930:function(F,f,n){n.r(f);var O=n(90228),d=n.n(O),j=n(87999),i=n.n(j),M=n(26068),u=n.n(M),b=n(67825),v=n.n(b),x=n(35384),E=n(98984),A=n(94675),P=n(50959),T=n(34571),l=n(11527),R=["type","defaultRender","formItemProps","fieldProps"],y=["type","defaultRender","formItemProps","fieldProps"];f.default=function(m){var h=m.values,D=m.setModalVisit,B=m.modalVisit,p=(0,P.useRef)();(0,P.useEffect)(function(){p.current&&p.current.reload()},[h]);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,c){var I=e.type,o=e.defaultRender,r=e.formItemProps,s=e.fieldProps,_=v()(e,R);return(0,l.jsx)(E.Z,u()(u()({},s),{},{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,c){var I=e.type,o=e.defaultRender,r=e.formItemProps,s=e.fieldProps,_=v()(e,y);return(0,l.jsx)(E.Z,u()(u()({},s),{},{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:"\u7528\u6237-\u4F59\u989D\u8BB0\u5F55",open:B,onOk:i()(d()().mark(function a(){return d()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:D(!1);case 1:case"end":return e.stop()}},a)})),onCancel:i()(d()().mark(function a(){return d()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:D(!1);case 1:case"end":return e.stop()}},a)})),children:(0,l.jsx)(x.Z,{rowKey:"id",actionRef:p,search:{labelWidth:120,defaultCollapsed:!1},request:function(){var a=i()(d()().mark(function t(e,c,I){var o,r;return d()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return e.userId=h.id,_.next=3,(0,T.eT)(e);case 3:return o=_.sent,r=o.data,_.abrupt("return",{data:(r==null?void 0:r.records)||[],total:r==null?void 0:r.total});case 6:case"end":return _.stop()}},t)}));return function(t,e,c){return a.apply(this,arguments)}}(),columns:C},"logList")})})}}}]);
