"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5829],{85751:function(T,i,_){_.r(i);var p=_(26068),u=_.n(p),O=_(15558),M=_.n(O),P=_(48305),m=_.n(P),j=_(94675),A=_(953),r=_(50159),E=_(50959),f=_(75201),v=_(59806),n=_(11527);i.default=function(l){var B=l.modalOpenState,C=l.onModalOpenState,x=l.onSubmit,b=(0,E.useState)([]),D=m()(b,2),a=D[0],s=D[1],h=(0,E.useState)(!1),c=m()(h,2),g=c[0],S=c[1],U={onRemove:function(e){var t=a.indexOf(e),d=a.slice();d.splice(t,1),s(d)},beforeUpload:function(e){return s([].concat(M()(a),[e])),!1},fileList:a},L=function(){var e=new FormData;a.forEach(function(t){e.append("file",t)}),x(e),s([])};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(j.Z,{title:"\u5BFC\u5165\u63D0\u73B0\u7ED3\u679C",open:B,onCancel:function(){C(!1)},onOk:L,footer:function(e,t){var d=t.OkBtn,R=t.CancelBtn;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(R,{}),(0,n.jsx)(d,{})]})},children:(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)(A.Z,u()(u()({className:"mr-6"},U),{},{children:(0,n.jsx)(r.ZP,{icon:(0,n.jsx)(f.Z,{}),children:"\u9009\u62E9\u6587\u4EF6"})})),(0,n.jsx)(r.ZP,{icon:(0,n.jsx)(v.Z,{}),onClick:function(){window.open("https://guangdongxingdong.oss-cn-beijing.aliyuncs.com/template/%E4%BD%93%E7%8E%B0%E8%AE%B0%E5%BD%95%E6%A8%A1%E6%9D%BF.xlsx")},children:"\u4E0B\u8F7D\u6A21\u677F"})]})})})}}}]);
