"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[145],{35748:function(B,u,e){var s=e(35361),t=e(56929),i=e(50959),E=e(50474),P=e(11527),D=["fieldProps","min","proFieldProps","max"],c=function(n,p){var O=n.fieldProps,h=n.min,_=n.proFieldProps,M=n.max,F=(0,t.Z)(n,D);return(0,P.jsx)(E.Z,(0,s.Z)({valueType:"digit",fieldProps:(0,s.Z)({min:h,max:M},O),ref:p,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:_},F))},r=i.forwardRef(c);u.Z=r},33719:function(B,u,e){e.r(u);var s=e(90228),t=e.n(s),i=e(87999),E=e.n(i),P=e(48305),D=e.n(P),c=e(50959),r=e(49547),o=e(35748),n=e(19014),p=e(50925),O=e(94675),h=e(7485),_=e(11527),M=function(l){var C=p.Z.useForm(),j=D()(C,1),a=j[0],R=l.values;(0,c.useEffect)(function(){a.resetFields(),a.setFieldsValue(R)},[a,l]);var U=(0,h.useIntl)(),T=function(){a.submit()},b=function(){l.onCancel()},I=function(){var f=E()(t()().mark(function A(d){var m;return t()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:m=JSON.parse(JSON.stringify(d)),d.id||(delete m.merchantInfoUpdateParams,m.merchantInfoAddParams=d.merchantInfoUpdateParams),l.onSubmit(m);case 3:case"end":return v.stop()}},A)}));return function(d){return f.apply(this,arguments)}}();return(0,_.jsx)(O.Z,{width:800,title:"\u6BD4\u4F8B\u914D\u7F6E",open:l.open,forceRender:!0,destroyOnClose:!0,onOk:T,onCancel:b,children:(0,_.jsxs)(r.A,{form:a,grid:!0,submitter:!1,layout:"horizontal",onFinish:I,children:[(0,_.jsx)(o.Z,{name:"id",label:"ID",disabled:!0,hidden:!0}),(0,_.jsx)(r.A.Group,{children:(0,_.jsx)(n.Z,{name:"name",label:"\u6BD4\u4F8B\u914D\u7F6E\u540D\u79F0",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u6BD4\u4F8B\u914D\u7F6E\u540D\u79F0"})}),(0,_.jsxs)(r.A.Group,{children:[(0,_.jsx)(o.Z,{name:"electricityRate",label:"\u7535\u8D39\u5206\u6210\u6BD4\u4F8B",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u7535\u8D39\u5206\u6210\u6BD4\u4F8B",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]}),(0,_.jsx)(o.Z,{name:"serviceRate",label:"\u670D\u52A1\u8D39\u5206\u6210\u6BD4\u4F8B",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u670D\u52A1\u8D39\u5206\u6210\u6BD4\u4F8B",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]}),(0,_.jsx)(o.Z,{name:"configType",label:"\u914D\u7F6E\u7C7B\u578B",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u914D\u7F6E\u7C7B\u578B"})]})]})})};u.default=M}}]);
