(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[980],{31199:function(z,U,t){"use strict";var g=t(28991),C=t(81253),B=t(85893),j=t(67294),T=t(31649),W=["fieldProps","min","proFieldProps","max"],l=function(S,m){var h=S.fieldProps,D=S.min,o=S.proFieldProps,O=S.max,i=(0,C.Z)(S,W);return(0,B.jsx)(T.Z,(0,g.Z)({valueType:"digit",fieldProps:(0,g.Z)({min:D,max:O},h),ref:m,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:o},i))};U.Z=j.forwardRef(l)},64317:function(z,U,t){"use strict";var g=t(28991),C=t(81253),B=t(85893),j=t(22270),T=t(67294),W=t(66758),l=t(31649),u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],S=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],m=T.forwardRef(function(i,Q){var X=i.fieldProps,te=i.children,q=i.params,re=i.proFieldProps,G=i.mode,ae=i.valueEnum,F=i.request,_=i.showSearch,K=i.options,k=(0,C.Z)(i,u),N=(0,T.useContext)(W.Z);return(0,B.jsx)(l.Z,(0,g.Z)((0,g.Z)({valueEnum:(0,j.h)(ae),request:F,params:q,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,g.Z)({options:K,mode:G,showSearch:_,getPopupContainer:N.getPopupContainer},X),ref:Q,proFieldProps:re},k),{},{children:te}))}),h=T.forwardRef(function(i,Q){var X=i.fieldProps,te=i.children,q=i.params,re=i.proFieldProps,G=i.mode,ae=i.valueEnum,F=i.request,_=i.options,K=(0,C.Z)(i,S),k=(0,g.Z)({options:_,mode:G||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},X),N=(0,T.useContext)(W.Z);return(0,B.jsx)(l.Z,(0,g.Z)((0,g.Z)({valueEnum:(0,j.h)(ae),request:F,params:q,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,g.Z)({getPopupContainer:N.getPopupContainer},k),ref:Q,proFieldProps:re},K),{},{children:te}))}),D=m,o=h,O=D;O.SearchSelect=o,O.displayName="ProFormComponent",U.Z=O},5966:function(z,U,t){"use strict";var g=t(28991),C=t(81253),B=t(85893),j=t(31649),T=["fieldProps","proFieldProps"],W=["fieldProps","proFieldProps"],l="text",u=function(D){var o=D.fieldProps,O=D.proFieldProps,i=(0,C.Z)(D,T);return(0,B.jsx)(j.Z,(0,g.Z)({valueType:l,fieldProps:o,filedConfig:{valueType:l},proFieldProps:O},i))},S=function(D){var o=D.fieldProps,O=D.proFieldProps,i=(0,C.Z)(D,W);return(0,B.jsx)(j.Z,(0,g.Z)({valueType:"password",fieldProps:o,proFieldProps:O,filedConfig:{valueType:l}},i))},m=u;m.Password=S,m.displayName="ProFormComponent",U.Z=m},63472:function(z){z.exports={card:"card___3dWIJ",anttabs:"anttabs___2_Orv",errorIcon:"errorIcon___1pp9M",anticon:"anticon___1oiIS",errorPopover:"errorPopover___CUFc7",errorListItem:"errorListItem___1hPkI",errorField:"errorField___3rSLf",editable:"editable___3cDnK"}},83341:function(z,U,t){"use strict";t.d(U,{O:function(){return g}});function g(C){C=C||32;for(var B="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz",j=B.length,T="012345678",W=T.length,l="",u=0;u0&&y.data.forEach(function(V){Z.push({stockuint:V.id,text:V.name,value:V.id,label:V.name})}),Ue(Z);case 6:case"end":return R.stop()}},p)}));return function(P){return c.apply(this,arguments)}}(),v=function(){var c=(0,h.Z)((0,u.Z)().mark(function p(P){var y,Z;return(0,u.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,$.getTypeList();case 2:y=R.sent,Z=[],y.data.length>0&&y.data.forEach(function(V){Z.push({typeid:V.id,text:V.name,value:V.id,label:V.name})}),we(Z);case 6:case"end":return R.stop()}},p)}));return function(P){return c.apply(this,arguments)}}();x(),v();function s(){$.GetDicList("BatchingType").then(function(c){var p=c.data,P={};if(c.succeeded){var y=[];p.forEach(function(Z){P[Z.code]={text:Z.remark},y.push({batchingType:Z.code,text:Z.remark,value:Z.code,label:Z.remark})}),Be(P),be(y)}})}s()},[]);var ye=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"key",hideInSearch:!0,hideInTable:!0,render:function(v,s){return(0,r.jsx)("a",{onClick:function(){pe(s),se(!0)},children:v})}},{title:"\u7269\u6599\u540D\u79F0",dataIndex:"name",ellipsis:!0,formItemProps:{rules:[{required:!0,message:"\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}},{title:"\u7269\u6599\u7F16\u7801",dataIndex:"code",ellipsis:!0},{title:"\u5173\u8054\u5916\u952E",dataIndex:"foreignKeyRe"},{title:"\u7269\u6599\u89C4\u683C",dataIndex:"specs"},{title:"\u6210\u672C\u4EF7",dataIndex:"price"},{title:"\u51C0\u6599\u7387(%)",dataIndex:"netrecovery"},{title:"\u7269\u6599\u5C5E\u6027",dataIndex:"aittribute",valueEnum:{0:{text:"\u6210\u54C1"},1:{text:"\u534A\u6210\u54C1"},2:{text:"\u6613\u8017\u54C1"}}},{title:"\u7269\u6599\u7C7B\u522B",dataIndex:"typeID",valueType:"select",fieldProps:{options:Ee}},{title:"\u5E93\u5B58\u5355\u4F4D",dataIndex:"stockUint",valueType:"select",fieldProps:{options:ge}},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date",hideInForm:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(v,s){return[(0,r.jsxs)("a",{onClick:function(){n(!0),H(s)},children:[" ","\u66F4\u65B0"]}),(0,r.jsxs)("a",{onClick:function(){s.status=s.status==0?1:0,$.updateStatus(s).then(function(p){p.data&&A.current.reload()})},children:[" ",s.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary"),(0,r.jsx)(W.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){$.removeProduct([s.id]).then(function(p){p.data?(m.default.success("\u5220\u9664\u6210\u529F"),A.current.reload()):m.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")})},onCancel:function(){},children:(0,r.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,r.jsxs)(O.ZP,{children:[(0,r.jsx)(Q.ZP,{headerTitle:"\u7269\u6599\u5217\u8868",actionRef:A,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,r.jsxs)(j.Z,{type:"primary",onClick:function(){var s={code:(0,Se.O)(4)};H(s),n(!0)},children:[(0,r.jsx)(D.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var x=(0,h.Z)((0,u.Z)().mark(function v(s){var c,p;return(0,u.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return c=[],p=0,y.next=4,$.getpage(s).then(function(Z){c=Z.data.data,p=Z.data.total});case 4:return y.abrupt("return",{data:c,success:!0,total:p});case 5:case"end":return y.stop()}},v)}));return function(v){return x.apply(this,arguments)}}(),columns:ye,rowSelection:{onChange:function(v,s){Pe(s)}}}),(ee==null?void 0:ee.length)>0&&(0,r.jsx)(i.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:ee.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(j.Z,{type:"primary",onClick:(0,h.Z)((0,u.Z)().mark(function x(){var v,s;return(0,u.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,Te(ee);case 2:Pe([]),(v=A.current)===null||v===void 0||(s=v.reloadAndRest)===null||s===void 0||s.call(v);case 4:case"end":return p.stop()}},x)})),children:"\u6279\u91CF\u5220\u9664"})}),(0,r.jsx)(Ce,{dicData:E,uintListData:ge,typeListData:Ee,onFinish:function(){var x=(0,h.Z)((0,u.Z)().mark(function v(s){var c;return(0,u.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(c=!1,H({}),!s.id){P.next=8;break}return P.next=5,je(s);case 5:c=P.sent,P.next=11;break;case 8:return P.next=10,De(s);case 10:c=P.sent;case 11:c&&(n(!1),A.current&&A.current.reload()),A.current.reload();case 13:case"end":return P.stop()}},v)}));return function(v){return x.apply(this,arguments)}}(),onCancel:function(){n(!1),H({})},modalVisible:J,values:oe||{}}),(0,r.jsx)(C.Z,{width:600,visible:ce,onClose:function(){pe(void 0),se(!1)},closable:!1,children:(b==null?void 0:b.name)&&(0,r.jsx)(X.ZP,{column:2,title:b==null?void 0:b.name,request:(0,h.Z)((0,u.Z)().mark(function x(){return(0,u.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",{data:b||{}});case 1:case"end":return s.stop()}},x)})),params:{id:b==null?void 0:b.name},columns:ye})})]})},Le=Ie}}]);