"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8446],{34927:function(j,m,e){var o=e(35361),p=e(56929),c=e(89558),E=e(47186),F=e(50959),v=e(50756),O=e(20734),D=e(11527),_=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],B=F.forwardRef(function(n,a){var d=n.fieldProps,i=n.options,M=n.radioType,l=n.layout,f=n.proFieldProps,P=n.valueEnum,R=(0,p.Z)(n,_);return(0,D.jsx)(O.Z,(0,o.Z)((0,o.Z)({valueType:M==="button"?"radioButton":"radio",ref:a,valueEnum:(0,c.h)(P,void 0)},R),{},{fieldProps:(0,o.Z)({options:i,layout:l},d),proFieldProps:f,filedConfig:{customLightMode:!0}}))}),s=F.forwardRef(function(n,a){var d=n.fieldProps,i=n.children;return(0,D.jsx)(E.ZP,(0,o.Z)((0,o.Z)({},d),{},{ref:a,children:i}))}),C=(0,v.G)(s,{valuePropName:"checked",ignoreWidth:!0}),u=C;u.Group=B,u.Button=E.ZP.Button,u.displayName="ProFormComponent",m.Z=u},4871:function(j,m,e){e.r(m);var o=e(90228),p=e.n(o),c=e(87999),E=e.n(c),F=e(48305),v=e.n(F),O=e(5e4),D=e(49547),_=e(19014),B=e(34927),s=e(50959),C=e(2733),u=e(11527);m.default=function(n){var a=n.values,d=n.modalOpenState,i=n.onModalOpenState,M=n.onSubmit,l=(0,s.useRef)(),f=(0,s.useState)([]),P=v()(f,2),R=P[0],I=P[1],x=function(r){console.log(r)};(0,s.useEffect)(function(){var t;(t=l.current)===null||t===void 0||t.setFieldsValue(a)},[a]);var T=function(){var t=E()(p()().mark(function r(A){var b;return p()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,M(A);case 2:(b=l.current)===null||b===void 0||b.resetFields();case 3:case"end":return h.stop()}},r)}));return function(A){return t.apply(this,arguments)}}();return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(O.Y,{title:"\u4E70\u6869\u9001\u8F66\u6D3B\u52A8",formRef:l,submitter:{searchConfig:{resetText:"\u91CD\u7F6E"},resetButtonProps:{onClick:function(){var r;(r=l.current)===null||r===void 0||r.resetFields()}}},initialValues:a,onFinish:T,open:d,onOpenChange:i,children:(0,u.jsxs)(D.A.Group,{children:[(0,u.jsx)(_.Z,{width:"md",name:"userName",label:"\u7528\u6237\u540D",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]}),(0,u.jsx)(_.Z,{width:"md",name:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"},{pattern:/^1[3-9]\d{9}$/,message:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u624B\u673A\u53F7"}]}),(0,u.jsx)(B.Z.Group,{label:"\u65F6\u95F4",name:"freezeDate",rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}],options:[{label:"6\u6708",value:"6"},{label:"12\u6708",value:"12"},{label:"24\u6708",value:"24"},{label:"36\u6708",value:"36"},{label:"48\u6708",value:"48"},{label:"60\u6708",value:"60"}]}),(0,u.jsx)(_.Z,{width:"md",name:["userInformation","carModel"],label:"\u8F66\u8F86\u578B\u53F7",placeholder:"\u8BF7\u8F93\u5165\u8F66\u8F86\u578B\u53F7"}),(0,u.jsx)(_.Z,{width:"md",name:["userInformation","ownerName"],label:"\u8F66\u4E3B\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165\u8F66\u4E3B\u59D3\u540D"}),(0,u.jsx)(_.Z,{width:"md",name:["userInformation","licensePlateNumber"],label:"\u8F66\u724C\u53F7\u7801",placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7\u7801"}),(0,u.jsx)(_.Z,{width:"md",name:["userInformation","chassisNumber"],label:"\u8F66\u67B6\u53F7\u7801",placeholder:"\u8BF7\u8F93\u5165\u8F66\u67B6\u53F7\u7801"}),(0,u.jsx)(_.Z,{width:"md",name:["userInformation","repaymentCardNumber"],label:"\u8FD8\u6B3E\u5361\u53F7",placeholder:"\u8BF7\u8F93\u5165\u8FD8\u6B3E\u5361\u53F7"}),(0,u.jsx)(_.Z,{width:"md",name:["userInformation","bankName"],label:"\u94F6\u884C\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u94F6\u884C\u540D\u79F0"}),(0,u.jsx)(_.Z,{width:"md",name:["userInformation","repaymentDate"],label:"\u8FD8\u6B3E\u65E5\u671F",placeholder:"\u8BF7\u8F93\u5165\u8FD8\u6B3E\u65E5\u671F"})]})})})}}}]);
