(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2580],{64317:function(we,he,n){"use strict";var W=n(28991),Q=n(81253),ne=n(85893),ye=n(22270),T=n(67294),v=n(66758),E=n(31649),Pe=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],ue=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],je=T.forwardRef(function(s,me){var S=s.fieldProps,l=s.children,u=s.params,le=s.proFieldProps,re=s.mode,oe=s.valueEnum,se=s.request,q=s.showSearch,O=s.options,R=(0,Q.Z)(s,Pe),ie=(0,T.useContext)(v.Z);return(0,ne.jsx)(E.Z,(0,W.Z)((0,W.Z)({valueEnum:(0,ye.h)(oe),request:se,params:u,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,W.Z)({options:O,mode:re,showSearch:q,getPopupContainer:ie.getPopupContainer},S),ref:me,proFieldProps:le},R),{},{children:l}))}),Se=T.forwardRef(function(s,me){var S=s.fieldProps,l=s.children,u=s.params,le=s.proFieldProps,re=s.mode,oe=s.valueEnum,se=s.request,q=s.options,O=(0,Q.Z)(s,ue),R=(0,W.Z)({options:q,mode:re||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},S),ie=(0,T.useContext)(v.Z);return(0,ne.jsx)(E.Z,(0,W.Z)((0,W.Z)({valueEnum:(0,ye.h)(oe),request:se,params:u,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,W.Z)({getPopupContainer:ie.getPopupContainer},R),ref:me,proFieldProps:le},O),{},{children:l}))}),Ie=je,X=Se,pe=Ie;pe.SearchSelect=X,pe.displayName="ProFormComponent",he.Z=pe},19488:function(we,he,n){"use strict";n.r(he),n.d(he,{default:function(){return Xe}});var W=n(71194),Q=n(50146),ne=n(11849),ye=n(43358),T=n(34041),v=n(39428),E=n(3182),Pe=n(57663),ue=n(71577),je=n(62350),Se=n(24565),Ie=n(43185),X=n(93009),pe=n(34792),s=n(48086),me=n(9715),S=n(55843),l=n(2824),u=n(67294),le=n(28790),re=n(85224),oe=n(49101),se=n(84391),q=n(16894),O=n(48971),R=n(96690);function ie(d){return ge.apply(this,arguments)}function ge(){return ge=(0,E.Z)((0,v.Z)().mark(function d(a){return(0,v.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,O.WY)((0,R.w)()+"/api/technology/page",{method:"POST",data:a}));case 1:case"end":return r.stop()}},d)})),ge.apply(this,arguments)}function Me(){return xe.apply(this,arguments)}function xe(){return xe=(0,E.Z)((0,v.Z)().mark(function d(){return(0,v.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,O.WY)((0,R.w)()+"/api/product/list",{method:"Get"}));case 1:case"end":return h.stop()}},d)})),xe.apply(this,arguments)}function Oe(d){return Ze.apply(this,arguments)}function Ze(){return Ze=(0,E.Z)((0,v.Z)().mark(function d(a){return(0,v.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,O.WY)((0,R.w)()+"/api/devicevesion/getdevicevesion?productId="+a,{method:"Get"}));case 1:case"end":return r.stop()}},d)})),Ze.apply(this,arguments)}function Ge(d){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,E.Z)((0,v.Z)().mark(function d(a){return(0,v.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,O.WY)((0,R.w)()+"/api/technology/delete?id="+a,{method:"Get"}));case 1:case"end":return r.stop()}},d)})),Ce.apply(this,arguments)}function Le(d){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,E.Z)((0,v.Z)().mark(function d(a){return(0,v.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,O.WY)((0,R.w)()+"/api/systemconfig/GeneratePostPolicy",{method:"POST",data:a}));case 1:case"end":return r.stop()}},d)})),Fe.apply(this,arguments)}function ct(d){return Te.apply(this,arguments)}function Te(){return Te=_asyncToGenerator(_regeneratorRuntime().mark(function d(a){return _regeneratorRuntime().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",request(getDataBaseUrl()+"/api/goods/goodstemplateexport",{method:"POST",data:a}));case 1:case"end":return r.stop()}},d)})),Te.apply(this,arguments)}var dt=n(47673),fe=n(4107),Ue=n(64317),Ne=n(76615),e=n(85893),$e=function(a){var h=S.Z.useForm(),r=(0,l.Z)(h,1),ee=r[0],y=u.useRef(null),_=(0,u.useState)("text"),P=(0,l.Z)(_,2),j=P[0],D=P[1],G=(0,u.useState)("Form"),b=(0,l.Z)(G,2),L=b[0],g=b[1],K=(0,u.useState)([]),B=(0,l.Z)(K,2),Y=B[0],k=B[1],U=(0,u.useState)(!1),w=(0,l.Z)(U,2),x=w[0],I=w[1],te=(0,u.useState)(!1),N=(0,l.Z)(te,2),V=N[0],M=N[1];(0,u.useEffect)(function(){var c;if((c=y.current)===null||c===void 0||c.setFieldsValue(a.values),a.createModalVisible)if(a.values.actionType==null){var p;(p=y.current)===null||p===void 0||p.setFieldsValue({actionType:"text"}),a.values.actionType="text",D("text"),g("Form"),k([])}else{var F;if((F=y.current)===null||F===void 0||F.setFieldsValue({actionType:a.values.actionType}),D(a.values.actionType),a.values.actionType=="select"){g("ModalForm");var $=[];if(a.values.technologyType==0)for(var z=JSON.parse(a.values.actionValue),A=0;A0&&(0,e.jsx)(re.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:x.length})," ","\u9879 \xA0\xA0"]}),children:(0,e.jsx)(ue.Z,{onClick:(0,E.Z)((0,v.Z)().mark(function i(){var t,o;return(0,v.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,handleRemove(x);case 2:I([]),(t=y.current)===null||t===void 0||(o=t.reloadAndRest)===null||o===void 0||o.call(t);case 4:case"end":return f.stop()}},i)})),children:"\u5220\u9664"})}),(0,e.jsxs)(Q.Z,{title:"\u4E0A\u4F20\u5DE5\u827A\u6A21\u7248",open:V,footer:null,maskClosable:!1,destroyOnClose:!0,onCancel:function(){g(),Ee(""),H(""),M(!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)(T.Z,{style:{width:"60%"},onChange:ot,children:j==null?void 0:j.map(function(i,t){return(0,e.jsx)(T.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)(T.Z,{style:{width:"60%"},onChange:st,children:L==null?void 0:L.map(function(i,t){return(0,e.jsx)(T.Z.Option,{index:t,value:i.id,children:i.label},i.id)})})]}),(0,e.jsx)(X.Z,(0,ne.Z)((0,ne.Z)({},ut),{},{maxCount:1,children:(0,e.jsx)(ue.Z,{icon:(0,e.jsx)(se.Z,{}),style:{marginLeft:"48%"},children:"\u5BFC\u5165\u5DE5\u827A\u6A21\u7248"})}))]}),(0,e.jsx)(Je,{createModalVisible:r,dataSource:Y,onCancel:it})]})},Xe=Qe}}]);