(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2580],{64317:function(Le,me,n){"use strict";var $=n(28991),Y=n(81253),se=n(85893),Se=n(22270),j=n(67294),ge=n(66758),_=n(31649),c=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],g=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],we=j.forwardRef(function(o,ye){var f=o.fieldProps,s=o.children,r=o.params,oe=o.proFieldProps,ie=o.mode,de=o.valueEnum,ce=o.request,te=o.showSearch,A=o.options,I=(0,Y.Z)(o,c),he=(0,j.useContext)(ge.Z);return(0,se.jsx)(_.Z,(0,$.Z)((0,$.Z)({valueEnum:(0,Se.h)(de),request:ce,params:r,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,$.Z)({options:A,mode:ie,showSearch:te,getPopupContainer:he.getPopupContainer},f),ref:ye,proFieldProps:oe},I),{},{children:s}))}),xe=j.forwardRef(function(o,ye){var f=o.fieldProps,s=o.children,r=o.params,oe=o.proFieldProps,ie=o.mode,de=o.valueEnum,ce=o.request,te=o.options,A=(0,Y.Z)(o,g),I=(0,$.Z)({options:te,mode:ie||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},f),he=(0,j.useContext)(ge.Z);return(0,se.jsx)(_.Z,(0,$.Z)((0,$.Z)({valueEnum:(0,Se.h)(de),request:ce,params:r,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,$.Z)({getPopupContainer:he.getPopupContainer},I),ref:ye,proFieldProps:oe},A),{},{children:s}))}),Ae=we,ee=xe,fe=Ae;fe.SearchSelect=ee,fe.displayName="ProFormComponent",me.Z=fe},32213:function(Le,me,n){"use strict";n.r(me),n.d(me,{default:function(){return lt}});var $=n(71194),Y=n(50146),se=n(11849),Se=n(43358),j=n(34041),ge=n(57663),_=n(71577),c=n(39428),g=n(3182),we=n(62350),xe=n(24565),Ae=n(43185),ee=n(93009),fe=n(34792),o=n(48086),ye=n(9715),f=n(55843),s=n(2824),r=n(67294),oe=n(28790),ie=n(85224),de=n(49101),ce=n(84391),te=n(16894),A=n(48971),I=n(96690);function he(h){return Ze.apply(this,arguments)}function Ze(){return Ze=(0,g.Z)((0,c.Z)().mark(function h(a){return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,A.WY)((0,I.w)()+"/api/technology/page",{method:"POST",data:a}));case 1:case"end":return u.stop()}},h)})),Ze.apply(this,arguments)}function Ne(){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,g.Z)((0,c.Z)().mark(function h(){return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",(0,A.WY)((0,I.w)()+"/api/product/list",{method:"Get"}));case 1:case"end":return m.stop()}},h)})),Ce.apply(this,arguments)}function We(h){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,g.Z)((0,c.Z)().mark(function h(a){return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,A.WY)((0,I.w)()+"/api/devicevesion/getdevicevesion?productId="+a,{method:"Get"}));case 1:case"end":return u.stop()}},h)})),Fe.apply(this,arguments)}function Ke(h){return Te.apply(this,arguments)}function Te(){return Te=(0,g.Z)((0,c.Z)().mark(function h(a){return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,A.WY)((0,I.w)()+"/api/technology/delete?id="+a,{method:"Get"}));case 1:case"end":return u.stop()}},h)})),Te.apply(this,arguments)}function $e(h){return Ee.apply(this,arguments)}function Ee(){return Ee=(0,g.Z)((0,c.Z)().mark(function h(a){return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,A.WY)((0,I.w)()+"/api/systemconfig/GeneratePostPolicy",{method:"POST",data:a}));case 1:case"end":return u.stop()}},h)})),Ee.apply(this,arguments)}function Tt(h){return je.apply(this,arguments)}function je(){return je=_asyncToGenerator(_regeneratorRuntime().mark(function h(a){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request(getDataBaseUrl()+"/api/goods/goodstemplateexport",{method:"POST",data:a}));case 1:case"end":return u.stop()}},h)})),je.apply(this,arguments)}function Ye(h){return Ie.apply(this,arguments)}function Ie(){return Ie=(0,g.Z)((0,c.Z)().mark(function h(a){return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,A.WY)((0,I.w)()+"/api/technology/UpdateRecodeRemark",{method:"POST",data:a}));case 1:case"end":return u.stop()}},h)})),Ie.apply(this,arguments)}var Et=n(47673),ne=n(4107),Je=n(64317),ze=n(76615),e=n(85893),He=function(a){var m=f.Z.useForm(),u=(0,s.Z)(m,1),re=u[0],y=r.useRef(null),ae=(0,r.useState)("text"),P=(0,s.Z)(ae,2),R=P[0],D=P[1],k=(0,r.useState)("Form"),O=(0,s.Z)(k,2),L=O[0],Z=O[1],J=(0,r.useState)([]),B=(0,s.Z)(J,2),z=B[0],H=B[1],N=(0,r.useState)(!1),M=(0,s.Z)(N,2),C=M[0],b=M[1],ue=(0,r.useState)(!1),W=(0,s.Z)(ue,2),V=W[0],G=W[1];(0,r.useEffect)(function(){var v;if((v=y.current)===null||v===void 0||v.setFieldsValue(a.values),a.createModalVisible)if(a.values.actionType==null){var S;(S=y.current)===null||S===void 0||S.setFieldsValue({actionType:"text"}),a.values.actionType="text",D("text"),Z("Form"),H([])}else{var E;if((E=y.current)===null||E===void 0||E.setFieldsValue({actionType:a.values.actionType}),D(a.values.actionType),a.values.actionType=="select"){Z("ModalForm");var K=[];if(a.values.technologyType==0)for(var X=JSON.parse(a.values.actionValue),w=0;w0&&(0,e.jsx)(ie.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:C.length})," ","\u9879 \xA0\xA0"]}),children:(0,e.jsx)(_.Z,{onClick:(0,g.Z)((0,c.Z)().mark(function i(){var t,l;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,handleRemove(C);case 2:b([]),(t=y.current)===null||t===void 0||(l=t.reloadAndRest)===null||l===void 0||l.call(t);case 4:case"end":return d.stop()}},i)})),children:"\u5220\u9664"})}),(0,e.jsxs)(Y.Z,{title:"\u4E0A\u4F20\u5DE5\u827A\u6A21\u7248",open:V,footer:null,maskClosable:!1,width:400,destroyOnClose:!0,onCancel:function(){Z(),Re(""),q(""),G(!1)},children:[(0,e.jsxs)("div",{style:{marginBottom:10},children:[(0,e.jsx)("span",{style:{marginRight:10},children:"\u9009\u62E9\u4EA7\u54C1"}),(0,e.jsx)(j.Z,{style:{width:"80%"},onChange:xt,children:R==null?void 0:R.map(function(i,t){return(0,e.jsx)(j.Z.Option,{index:t,value:i.id,children:i.label},i.id)})})]}),(0,e.jsxs)("div",{style:{marginBottom:10},children:[(0,e.jsx)("span",{style:{marginRight:10},children:"\u9009\u62E9\u7248\u672C"}),(0,e.jsx)(j.Z,{style:{width:"80%"},onChange:Zt,children:L==null?void 0:L.map(function(i,t){return(0,e.jsx)(j.Z.Option,{index:t,value:i.id,children:i.label},i.id)})})]}),(0,e.jsx)(ee.Z,(0,se.Z)((0,se.Z)({},yt),{},{maxCount:1,children:(0,e.jsx)(_.Z,{icon:(0,e.jsx)(ce.Z,{}),style:{marginLeft:"48%"},children:"\u5BFC\u5165\u5DE5\u827A\u6A21\u7248"})}))]}),(0,e.jsx)(at,{onFinish:function(){var i=(0,g.Z)((0,c.Z)().mark(function t(l){var p;return(0,c.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:p=Ft(l),p&&(be(!1),Ve(void 0)),y.current.reload();case 3:case"end":return x.stop()}},t)}));return function(t){return i.apply(this,arguments)}}(),onCancel:function(){be(!1),Ve(void 0)},remarkModalOpen:vt,values:mt||{}}),(0,e.jsx)(et,{createModalVisible:u,dataSource:z,onCancel:Ct})]})},lt=ut}}]);