|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4093],{53621:function(Ct,ot,e){"use strict";var K=e(28991),ft=e(22385),bt=e(94199),st=e(96156),kt=e(84305),de=e(88182),m=e(85893),ce=e(68628),h=e(94184),Rt=e.n(h),Pt=e(67294),je=e(47369),z=e.n(je),Ft=function(St){var Nt=St.label,xt=St.tooltip,Tt=St.ellipsis,Dt=St.subTitle,wt=(0,Pt.useContext)(de.ZP.ConfigContext),vt=wt.getPrefixCls;if(!xt&&!Dt)return(0,m.jsx)(m.Fragment,{children:Nt});var ut=vt("pro-core-label-tip"),Ut=typeof xt=="string"||Pt.isValidElement(xt)?{title:xt}:xt,G=(Ut==null?void 0:Ut.icon)||(0,m.jsx)(ce.Z,{});return(0,m.jsxs)("div",{className:ut,onMouseDown:function(C){return C.stopPropagation()},onMouseLeave:function(C){return C.stopPropagation()},onMouseMove:function(C){return C.stopPropagation()},children:[(0,m.jsx)("div",{className:Rt()("".concat(ut,"-title"),(0,st.Z)({},"".concat(ut,"-title-ellipsis"),Tt)),children:Nt}),Dt&&(0,m.jsx)("div",{className:"".concat(ut,"-subtitle"),children:Dt}),xt&&(0,m.jsx)(bt.Z,(0,K.Z)((0,K.Z)({},Ut),{},{children:(0,m.jsx)("span",{className:"".concat(ut,"-icon"),children:G})}))]})};ot.Z=Pt.memo(Ft)},84239:function(Ct){Ct.exports={main:"main___2K5qG",headerList:"headerList___MwLVF",stepDescription:"stepDescription___KxeLE",pageHeader:"pageHeader___1L3IU",moreInfo:"moreInfo___3-nlm",formlable:"formlable___1ZX6u",formlabletxt:"formlabletxt___1jTba"}},6599:function(){},43237:function(){},31666:function(){},61070:function(){},58856:function(){},47369:function(){},52953:function(){},91768:function(Ct,ot,e){"use strict";e.r(ot),e.d(ot,{default:function(){return Ua}});var K=e(47673),ft=e(4107),bt=e(43358),st=e(34041),kt=e(35556),de=e(57748),m=e(6700),ce=e(28790),h=e(67294),Rt=e(62350),Pt=e(24565),je=e(57663),z=e(71577),Ft=e(88983),ue=e(47933),St=e(71153),Nt=e(60331),xt=e(58024),Tt=e(91894),Dt=e(98858),wt=e(4914),vt=e(11849),ut=e(86582),Ut=e(34792),G=e(48086),A=e(2824),C=e(54977),f=e(73171),r=e(28991),t=e(85893),J=e(18106),k=e(25499),y=e(96156),at=e(90484),lt=e(28481),ht=e(84305),W=e(88182),Q=e(81253),Kt=e(6999),gt=e(75302),$=e(8812),Wt=e(53621),$t=e(94184),dt=e.n($t),zt=e(97435),Gt=e(50344),_=e(80334),fe=e(58856),Jt=["tab","children"],te=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function ee(s){return s.filter(function(a){return a})}function Ht(s,a,d){if(s)return s.map(function(S){return(0,r.Z)((0,r.Z)({},S),{},{children:(0,t.jsx)(me,(0,r.Z)((0,r.Z)({},d==null?void 0:d.cardProps),{},{children:S.children}))})});(0,_.ET)(!d,"Tabs.TabPane is deprecated. Please use `items` directly.");var v=(0,Gt.Z)(a).map(function(S){if(h.isValidElement(S)){var l=S.key,D=S.props,E=D||{},T=E.tab,g=E.children,O=(0,Q.Z)(E,Jt),B=(0,r.Z)((0,r.Z)({key:String(l)},O),{},{children:(0,t.jsx)(me,(0,r.Z)((0,r.Z)({},d==null?void 0:d.cardProps),{},{children:g})),label:T});return B}return null});return ee(v)}var Re=function(a){var d=a.key,v=a.tab,S=a.tabKey,l=a.disabled,D=a.destroyInactiveTabPane,E=a.children,T=a.className,g=a.style,O=a.cardProps,B=(0,Q.Z)(a,te),V=(0,h.useContext)(W.ZP.ConfigContext),q=V.getPrefixCls,Zt=q("pro-card-tabpane"),L=dt()(Zt,T);return(0,t.jsx)(k.Z.TabPane,(0,r.Z)((0,r.Z)({tabKey:S,tab:v,className:L,style:g,disabled:l,destroyInactiveTabPane:D},B),{},{children:(0,t.jsx)(me,(0,r.Z)((0,r.Z)({},O),{},{children:E}))}),d)},Fe=Re,ve=e(21770),he=e(6599),pa=function(a){var d=a.actions,v=a.prefixCls;return Array.isArray(d)&&(d==null?void 0:d.length)?(0,t.jsx)("ul",{className:"".concat(v,"-actions"),children:d.map(function(S,l){return(0,t.jsx)("li",{style:{width:"".concat(100/d.length,"%")},children:(0,t.jsx)("span",{children:S})},"action-".concat(l))})}):d?(0,t.jsx)("ul",{className:"".concat(v,"-actions"),children:d}):null},Ca=pa,cn=e(89032),mt=e(15746),un=e(13062),ge=e(71230),fn=e(61070),ba=function(a){var d=a.style,v=a.prefix;return(0,t.jsxs)("div",{className:"".concat(v,"-loading-content"),style:d,children:[(0,t.jsx)(ge.Z,{gutter:8,children:(0,t.jsx)(mt.Z,{span:22,children:(0,t.jsx)("div",{className:"".concat(v,"-loading-block")})})}),(0,t.jsxs)(ge.Z,{gutter:8,children:[(0,t.jsx)(mt.Z,{span:8,children:(0,t.jsx)("div",{className:"".concat(v,"-loading-block")})}),(0,t.jsx)(mt.Z,{span:15,children:(0,t.jsx)("div",{className:"".concat(v,"-loading-block")})})]}),(0,t.jsxs)(ge.Z,{gutter:8,children:[(0,t.jsx)(mt.Z,{span:6,children:(0,t.jsx)("div",{className:"".concat(v,"-loading-block")})}),(0,t.jsx)(mt.Z,{span:18,children:(0,t.jsx)("div",{className:"".concat(v,"-loading-block")})})]}),(0,t.jsxs)(ge.Z,{gutter:8,children:[(0,t.jsx)(mt.Z,{span:13,children:(0,t.jsx)("div",{className:"".concat(v,"-loading-block")})}),(0,t.jsx)(mt.Z,{span:9,children:(0,t.jsx)("div",{className:"".concat(v,"-loading-block")})})]}),(0,t.jsxs)(ge.Z,{gutter:8,children:[(0,t.jsx)(mt.Z,{span:4,children:(0,t.jsx)("div",{className:"".concat(v,"-loading-block")})}),(0,t.jsx)(mt.Z,{span:3,children:(0,t.jsx)("div",{className:"".concat(v,"-loading-block")})}),(0,t.jsx)(mt.Z,{span:16,children:(0,t.jsx)("div",{className:"".concat(v,"-loading-block")})})]})]})},Sa=ba,vn=e(43237),xa=["className","style","bodyStyle","headStyle","title","subTitle","extra","tip","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],Za=gt.ZP.useBreakpoint,Ea=h.forwardRef(function(s,a){var d,v,S,l=s.className,D=s.style,E=s.bodyStyle,T=E===void 0?{}:E,g=s.headStyle,O=g===void 0?{}:g,B=s.title,V=s.subTitle,q=s.extra,Zt=s.tip,L=s.wrap,tt=L===void 0?!1:L,F=s.layout,b=s.loading,x=s.gutter,R=x===void 0?0:x,p=s.tooltip,I=s.split,M=s.headerBordered,ct=M===void 0?!1:M,Et=s.bordered,Ue=Et===void 0?!1:Et,ne=s.children,et=s.size,oe=s.actions,Ae=s.ghost,Pe=Ae===void 0?!1:Ae,Ke=s.hoverable,oa=Ke===void 0?!1:Ke,We=s.direction,pe=s.collapsed,Ce=s.collapsible,le=Ce===void 0?!1:Ce,Ne=s.collapsibleIconRender,be=s.defaultCollapsed,$e=be===void 0?!1:be,Te=s.onCollapse,ze=s.checked,ie=s.onChecked,jt=s.tabs,Se=s.type,Xt=(0,Q.Z)(s,xa),De=(0,h.useContext)(W.ZP.ConfigContext),la=De.getPrefixCls,Be=Za(),Ge=(0,ve.Z)($e,{value:pe,onChange:Te}),xe=(0,lt.Z)(Ge,2),re=xe[0],Je=xe[1],se=["xxl","xl","lg","md","sm","xs"],Le=Ht(jt==null?void 0:jt.items,ne,jt),He=function(w){var U=[0,0],nt=Array.isArray(w)?w:[w,0];return nt.forEach(function(it,rt){if((0,at.Z)(it)==="object")for(var pt=0;pt<se.length;pt+=1){var Vt=se[pt];if(Be[Vt]&&it[Vt]!==void 0){U[rt]=it[Vt];break}}else U[rt]=it||0}),U},Yt=function(w,U){return w?U:{}},Xe=function(w){var U=w;if((0,at.Z)(w)==="object")for(var nt=0;nt<se.length;nt+=1){var it=se[nt];if(Be[it]&&w[it]!==void 0){U=w[it];break}}var rt=Yt(typeof U=="string"&&/\d%|\dpx/i.test(U),{width:U,flexShrink:0});return{span:U,colSpanStyle:rt}},P=la("pro-card"),Ze=He(R),Lt=(0,lt.Z)(Ze,2),Ot=Lt[0],It=Lt[1],Mt=!1,Qt=h.Children.toArray(ne),Ye=Qt.map(function(Y,w){var U;if(Y==null||(U=Y.type)===null||U===void 0?void 0:U.isProCard){var nt;Mt=!0;var it=Y.props.colSpan,rt=Xe(it),pt=rt.span,Vt=rt.colSpanStyle,ia=dt()(["".concat(P,"-col")],(nt={},(0,y.Z)(nt,"".concat(P,"-split-vertical"),I==="vertical"&&w!==Qt.length-1),(0,y.Z)(nt,"".concat(P,"-split-horizontal"),I==="horizontal"&&w!==Qt.length-1),(0,y.Z)(nt,"".concat(P,"-col-").concat(pt),typeof pt=="number"&&pt>=0&&pt<=24),nt));return(0,t.jsx)("div",{style:(0,r.Z)((0,r.Z)((0,r.Z)({},Vt),Yt(Ot>0,{paddingRight:Ot/2,paddingLeft:Ot/2})),Yt(It>0,{paddingTop:It/2,paddingBottom:It/2})),className:ia,children:h.cloneElement(Y)},"pro-card-col-".concat((Y==null?void 0:Y.key)||w))}return Y}),Oe=dt()("".concat(P),l,(d={},(0,y.Z)(d,"".concat(P,"-border"),Ue),(0,y.Z)(d,"".concat(P,"-contain-card"),Mt),(0,y.Z)(d,"".concat(P,"-loading"),b),(0,y.Z)(d,"".concat(P,"-split"),I==="vertical"||I==="horizontal"),(0,y.Z)(d,"".concat(P,"-ghost"),Pe),(0,y.Z)(d,"".concat(P,"-hoverable"),oa),(0,y.Z)(d,"".concat(P,"-size-").concat(et),et),(0,y.Z)(d,"".concat(P,"-type-").concat(Se),Se),(0,y.Z)(d,"".concat(P,"-collapse"),re),(0,y.Z)(d,"".concat(P,"-checked"),ze),d)),Qe=dt()("".concat(P,"-body"),(v={},(0,y.Z)(v,"".concat(P,"-body-center"),F==="center"),(0,y.Z)(v,"".concat(P,"-body-direction-column"),I==="horizontal"||We==="column"),(0,y.Z)(v,"".concat(P,"-body-wrap"),tt&&Mt),v)),_e=(0,r.Z)((0,r.Z)((0,r.Z)({},Yt(Ot>0,{marginRight:-Ot/2,marginLeft:-Ot/2})),Yt(It>0,{marginTop:-It/2,marginBottom:-It/2})),T),Me=h.isValidElement(b)?b:(0,t.jsx)(Sa,{prefix:P,style:T.padding===0||T.padding==="0px"?{padding:24}:void 0}),_t=le&&pe===void 0&&(Ne?Ne({collapsed:re}):(0,t.jsx)($.Z,{rotate:re?void 0:90,className:"".concat(P,"-collapsible-icon")}));return(0,t.jsxs)("div",(0,r.Z)((0,r.Z)({className:Oe,style:D,ref:a,onClick:function(w){var U;ie==null||ie(w),Xt==null||(U=Xt.onClick)===null||U===void 0||U.call(Xt,w)}},(0,zt.Z)(Xt,["prefixCls","colSpan"])),{},{children:[(B||q||_t)&&(0,t.jsxs)("div",{className:dt()("".concat(P,"-header"),(S={},(0,y.Z)(S,"".concat(P,"-header-border"),ct||Se==="inner"),(0,y.Z)(S,"".concat(P,"-header-collapsible"),_t),S)),style:O,onClick:function(){_t&&Je(!re)},children:[(0,t.jsxs)("div",{className:"".concat(P,"-title"),children:[_t,(0,t.jsx)(Wt.Z,{label:B,tooltip:p||Zt,subTitle:V})]}),q&&(0,t.jsx)("div",{className:"".concat(P,"-extra"),children:q})]}),jt?(0,t.jsx)("div",{className:"".concat(P,"-tabs"),children:(0,t.jsx)(k.Z,(0,r.Z)((0,r.Z)({onChange:jt.onChange},jt),{},{items:Le,children:b?Me:ne}))}):(0,t.jsx)("div",{className:Qe,style:_e,children:b?Me:Ye}),(0,t.jsx)(Ca,{actions:oe,prefixCls:P})]}))}),me=Ea,hn=e(31666),ja=function(a){var d=(0,h.useContext)(W.ZP.ConfigContext),v=d.getPrefixCls,S=v("pro-card-divider"),l=a.className,D=a.style,E=D===void 0?{}:D,T=a.type,g=dt()(S,l,(0,y.Z)({},"".concat(S,"-").concat(T),T));return(0,t.jsx)("div",{className:g,style:E})},Ia=ja,Aa=function(a){return(0,t.jsx)(me,(0,r.Z)({bodyStyle:{padding:0}},a))},ye=me;ye.isProCard=!0,ye.Divider=Ia,ye.TabPane=Fe,ye.Group=Aa;var ae=ye,yt=e(50198),Ie=e(39428),aa=e(3182),na=e(48971),Pa=e(96690);function Na(s){return we.apply(this,arguments)}function we(){return we=(0,aa.Z)((0,Ie.Z)().mark(function s(a){return(0,Ie.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,na.WY)((0,Pa.w)()+"/api/warehousetemplate/list?deviceId="+a,{method:"Get"}));case 1:case"end":return v.stop()}},s)})),we.apply(this,arguments)}var Ta=e(84239),Bt=e.n(Ta),gn=e(77576),Da=e(59314),mn=e(77883),Ba=e(21888),La=ft.Z.TextArea,Oa=function(a){var d=function(D,E,T){console.log("id",E),console.log("props.optiondata",a.optiondata),console.log("props.fromdata",a.fromdata),a.fromdata.forEach(function(g){T?g.id==T&&g.optiondata.forEach(function(O){O.technologyactionId==E&&(console.log("e.target.value",D.target.value),O.actionValue=D.target.value)}):(console.log("\u8FDB\u6765\u4E86"),console.log(a.index),g.optiondata.forEach(function(O){O.technologyactionId==E&&g.index==a.index&&(console.log("e.target.value",D.target.value),O.actionValue=D.target.value)}))}),console.log(a.fromdata),a.onSaveClick(a.fromdata)},v=function(D,E,T){a.fromdata.forEach(function(g){T?g.id==T&&g.optiondata.forEach(function(O){O.technologyactionId==E&&(console.log("e.target.value",D),O.actionValue=D)}):g.optiondata.forEach(function(O,B){O.technologyactionId==E&&g.index==a.index&&(console.log("e.target.value",D),O.actionValue=D)})}),console.log(a.fromdata),a.onSaveClick(a.fromdata)},S=function(D,E,T){console.log(D),console.log(E),a.optiondata.forEach(function(g){g.technologyactionId==E&&(g.actionValue=D.label)}),a.onSaveClick(a.fromdata)};return(0,t.jsx)("div",{children:a.propsdata.length>0?a.propsdata.map(function(l,D){var E=a.optiondata.find(function(B){return B.id==l.technologyactionId&&B.actionName==l.actionName}).actionValue;if(l.actionType=="text")return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{style:{width:"100%",height:"40px"},children:[(0,t.jsx)("span",{className:Bt().formlable,style:{display:"block",float:"left",backgroundColor:"#dcf4ff",marginBottom:5},children:l.actionName}),(0,t.jsx)("span",{style:{display:"block",float:"left",marginBottom:5,width:"60%"},children:(0,t.jsx)(ft.Z,{defaultValue:E,style:{width:"100%"},onChange:function(V){d(V,l.id,l.goddteid)}},l.id)})]})});if(l.actionType=="digit")return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{style:{width:"100%",height:"40px"},children:[(0,t.jsx)("span",{className:Bt().formlable,style:{display:"block",float:"left",backgroundColor:"#dcf4ff",marginBottom:5},children:l.actionName}),(0,t.jsx)("span",{style:{display:"block",float:"left",marginBottom:5,width:"60%"},children:(0,t.jsx)(Ba.Z,{defaultValue:E,style:{width:"100%"},onChange:function(V){v(V,l.id,l.goddteid)}},l.id)})]})});if(l.actionType=="textarea")return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{style:{width:"100%",height:"40px"},children:[(0,t.jsx)("span",{className:Bt().formlable,style:{display:"block",float:"left",backgroundColor:"#dcf4ff",marginBottom:5},children:l.actionName}),(0,t.jsx)("span",{style:{display:"block",float:"left",marginBottom:5,width:"60%"},children:(0,t.jsx)(La,{defaultValue:E,style:{width:"100%"},onChange:function(V){d(V,l.id,l.goddteid)}},l.id)})]})});if(l.actionType=="switch")return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{style:{width:"100%",height:"40px"},children:[(0,t.jsx)("span",{className:Bt().formlable,style:{display:"block",float:"left",backgroundColor:"#dcf4ff",marginBottom:5},children:l.actionName}),(0,t.jsx)("span",{style:{display:"block",float:"left",marginBottom:5,width:"60%"},children:(0,t.jsx)(Da.Z,{defaultValue:E,onChange:function(V){d(V,l.id,l.goddteid)}},l.id)})]})});if(l.actionType=="select"){var T=[];l.actionValue&&l.actionValue.length>0&&(T=JSON.parse(l.actionValue));var g=T.map(function(B,V){return{value:V,label:B.actionValueName}});if(l.technologyType==1){var O=a.batchingdata.map(function(B){return{value:B.id,label:B.name}});g=O}return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{style:{width:"100%",height:"40px"},children:[(0,t.jsx)("span",{className:Bt().formlable,style:{display:"block",float:"left",backgroundColor:"#dcf4ff",marginBottom:5},children:l.actionName}),(0,t.jsx)("span",{style:{display:"block",float:"left",marginBottom:5,width:"60%"},children:(0,t.jsx)(st.Z,{defaultValue:E,labelInValue:!0,options:g,style:{width:"100%"},onChange:function(V){S(V,l.id,l.goddteid)}},l.id)})]})})}}):""})},Ma=Oa,yn=e(71194),pn=ft.Z.TextArea,Cn=function(a){var d=useState(!1),v=_slicedToArray(d,2),S=v[0],l=v[1],D=useState([]),E=_slicedToArray(D,2),T=E[0],g=E[1],O=useState([]),B=_slicedToArray(O,2),V=B[0],q=B[1],Zt=useRef(),L=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(x,R){return _jsx("a",{onClick:function(){},children:x})}},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea",ellipsis:!0,search:!1}];useEffect(function(){if(console.log("\u6DB2\u6001\u6599",a.optiondata),a.fromdata[0].optiondata.length>0){var b=[];a.fromdata[0].optiondata.forEach(function(x){b.push({id:x.technologyactionId,name:x.actionName})}),q(b.map(function(x){return x.id})),g(b)}g([]),q([])},[a.modalVisible]);var tt=function(x,R){console.log("id",R),console.log("props.optiondata",a.optiondata),console.log("props.fromdata",a.fromdata),a.fromdata.forEach(function(p){p.optiondata.forEach(function(I){I.technologyactionId==R&&p.index==a.index&&(console.log("e.target.value",x.target.value),I.actionValue=x.target.value)})}),console.log(a.fromdata),a.onSaveClick(a.fromdata)},F=function(){l(!0)};return _jsxs("div",{children:[a.optiondata.length>0?a.optiondata.map(function(b,x){return _jsxs(_Fragment,{children:[_jsx("div",{className:style.formlable,style:{display:"block",float:"left"},children:b.actionName}),_jsx("div",{style:{display:"block",float:"left"},children:_jsx(_Input,{defaultValue:b.actionValue,style:{width:240},onChange:function(p){tt(p,b.technologyactionId)}},b.technologyactionId)})]})}):"",_jsx(_Button,{type:"dashed",style:{width:100,marginLeft:140,marginTop:10},block:!0,onClick:F,children:"\u6DFB\u52A0"}),_jsx(_Modal,{title:"\u7269\u6599\u5217\u8868",width:640,visible:S,bodyStyle:{padding:"32px 40px 1px 48px"},focusTriggerAfterClose:!1,onCancel:function(){l(!1),g([])},onOk:function(){l(!1)},maskClosable:!1,children:_jsx(ProTable,{headerTitle:"\u7269\u6599\u5217\u8868",rowKey:"id",actionRef:Zt,search:{labelWidth:120},columns:L,request:function(x){var R="",p=[],I=a.batchingdata.filter(function(M){return M.typeName==a.typeName});return p.length>0&&(g(p),q(p.map(function(M){return M.id}))),{data:I,success:!0,total:I.length}},rowSelection:{selectedRowKeys:V,onSelect:function(x,R){var p=_toConsumableArray(V),I=[],M=p.findIndex(function(ct){return ct===x.id});R?(M<0&&p.push(x.id),I.push({id:x.id,name:x.name})):M>-1&&p.splice(M,1),q(p)},onSelectAll:function(x,R,p){var I=_toConsumableArray(V);x?R.forEach(function(M){if(!!M){var ct=I.findIndex(function(Et){return Et===M.id});ct<0&&I.push(M.id)}}):p.forEach(function(M){var ct=I.findIndex(function(Et){return Et===M.id});ct>-1&&I.splice(ct,1)}),q(I)},onChange:function(x,R){R.forEach(function(p){a.optiondata.findIndex(function(I){return I.technologyactionId==p.id})==-1&&a.optiondata.push({actionName:p.name,actionValue:"",technologyactionId:p.id})}),g(R)}}})})]})},bn=null,Va=function(a){var d=(0,h.useState)([]),v=(0,A.Z)(d,2),S=v[0],l=v[1],D=(0,h.useState)(1),E=(0,A.Z)(D,2),T=E[0],g=E[1];(0,h.useEffect)(function(){console.log("\u589E\u52A0\u7F16\u8F91\u72B6\u6001\u503C",a.technologyattralldata),console.log("props.fromdata",a.goodstechnologydata),a.fromdata.length==0?l([]):a.UpdataStatus=="update"&&(a.fromdata.forEach(function(L){L.index=L.sort}),l(a.fromdata))},[a.fromdata]);var O=function(tt,F){if(a.devideId=="0")G.default.error("\u8BF7\u9009\u62E9\u8BBE\u5907\u540E\u5728\u65B0\u589E");else{var b=T;console.log("fromdata",S),g(T+1);var x=(0,ut.Z)(S),R=S.length;if(S.length==0)b=1;else{var p=S.reduce(function(I,M){return I.sort>M.sort?I:M});console.log("\u6700\u5927\u5E8F\u53F7\uFF1A",p.sort),b=p.sort+1}x.push({index:R+1,id:"",stepName:"",chnologyId:"",actionJson:"",sort:b,goodsId:"",goodsAttributeId:"",optiondata:[],propsdata:[],isBatch:!0,typeName:"",disabled:!1}),l(x),a.onUpdataStatus("add")}},B=function(tt){console.log(tt),console.log(S);var F=S.filter(function(b){return b.sort!=tt});F.forEach(function(b,x){b.sort=x+1}),l(F),console.log(F),F.length==0?g(1):g(T-1),a.onUpdataStatus("view"),a.onSaveClick(F)},V=function(tt,F,b){console.log(S),console.log(b);var x=a.technologyattralldata.filter(function(p){return p.technologyId==tt}),R=S.map(function(p){if(p.index==b){x.length>0?p.isBatch=!0:p.isBatch=!1,p.typeName=F.label,p.stepName=F.label,p.chnologyId=F.value;var I=[];x.forEach(function(M,ct){I.push({actionName:M.actionName,actionValue:"",technologyactionId:M.id,index:ct})}),p.propsdata=x,p.optiondata=I}return p});l(R),console.log("from",R)},q=function(tt){a.onSaveClick(tt)},Zt=function(){a.onUpdataStatus("view"),l([]),g(1),a.onSaveClick([])};return(0,t.jsxs)("div",{children:[S.length>0?S.map(function(L,tt){return(0,t.jsxs)(ae,{boxShadow:!0,title:"\u5DE5\u5E8F\u53F7"+L.sort,bordered:!0,bodyStyle:{padding:15,display:"flex"},headStyle:{padding:"0px 24px"},style:{marginBlockEnd:8},extra:(0,t.jsx)(f.Z,{onClick:function(){B(L.sort)}}),children:[(0,t.jsx)("div",{style:{float:"left",width:"20%"},children:(0,t.jsx)(st.Z,{name:"chnologyId",style:{width:"100%"},value:L.chnologyId,disabled:L.disabled,options:a.goodstechnologydata,onChange:function(){var F=(0,aa.Z)((0,Ie.Z)().mark(function b(x,R){return(0,Ie.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:V(x,R,L.index);case 1:case"end":return I.stop()}},b)}));return function(b,x){return F.apply(this,arguments)}}()},L.sort)}),(0,t.jsx)("div",{style:{float:"left",width:"78%"},children:(0,t.jsx)(Ma,{propsdata:L.propsdata,fromdata:S,batchingdata:a.batchingdata,onSaveClick:q,optiondata:L.optiondata,index:L.index})})]})}):"",(0,t.jsx)(z.Z,{type:"dashed",block:!0,onClick:O,ghost:!0,style:{background:"#FA541C"},children:"\u6DFB\u52A0\u5DE5\u827A"}),(0,t.jsx)(z.Z,{block:!0,onClick:Zt,children:"\u91CD\u7F6E"})]})},ka=Va,Ra=function(a){var d=(0,h.useState)(""),v=(0,A.Z)(d,2),S=v[0],l=v[1],D=(0,h.useState)([]),E=(0,A.Z)(D,2),T=E[0],g=E[1],O=(0,h.useState)([]),B=(0,A.Z)(O,2),V=B[0],q=B[1],Zt=(0,h.useState)([]),L=(0,A.Z)(Zt,2),tt=L[0],F=L[1],b=(0,h.useState)([]),x=(0,A.Z)(b,2),R=x[0],p=x[1],I=(0,h.useState)([]),M=(0,A.Z)(I,2),ct=M[0],Et=M[1],Ue=(0,h.useState)({}),ne=(0,A.Z)(Ue,2),et=ne[0],oe=ne[1],Ae=(0,h.useState)([]),Pe=(0,A.Z)(Ae,2),Ke=Pe[0],oa=Pe[1],We=(0,h.useState)([]),pe=(0,A.Z)(We,2),Ce=pe[0],le=pe[1],Ne=(0,h.useState)(1),be=(0,A.Z)(Ne,2),$e=be[0],Te=be[1],ze=(0,h.useState)([]),ie=(0,A.Z)(ze,2),jt=ie[0],Se=ie[1],Xt=(0,h.useState)([]),De=(0,A.Z)(Xt,2),la=De[0],Be=De[1],Ge=(0,h.useState)([]),xe=(0,A.Z)(Ge,2),re=xe[0],Je=xe[1],se=(0,h.useState)("block"),Le=(0,A.Z)(se,2),He=Le[0],Yt=Le[1],Xe=(0,h.useState)([]),P=(0,A.Z)(Xe,2),Ze=P[0],Lt=P[1],Ot=(0,h.useState)("view"),It=(0,A.Z)(Ot,2),Mt=It[0],Qt=It[1],Ye=(0,h.useState)(!1),Oe=(0,A.Z)(Ye,2),Qe=Oe[0],_e=Oe[1],Me=(0,h.useState)("0"),_t=(0,A.Z)(Me,2),Y=_t[0],w=_t[1],U=(0,h.useState)(""),nt=(0,A.Z)(U,2),it=nt[0],rt=nt[1],pt=(0,h.useState)(""),Vt=(0,A.Z)(pt,2),ia=Vt[0],In=Vt[1],Ka=(0,h.useState)("add"),ra=(0,A.Z)(Ka,2),An=ra[0],sa=ra[1],Wa=(0,h.useState)([]),da=(0,A.Z)(Wa,2),qe=da[0],$a=da[1],za=(0,h.useState)("none"),ca=(0,A.Z)(za,2),Ga=ca[0],ta=ca[1],Ja=(0,h.useState)(""),ua=(0,A.Z)(Ja,2),Ha=ua[0],fa=ua[1],Xa=(0,h.useState)(""),va=(0,A.Z)(Xa,2),Ya=va[0],Ve=va[1];(0,h.useEffect)(function(){Qa()},[]);var Qa=function(){a.goodsid!=null&&(0,yt.wR)(a.goodsid).then(function(n){if(n.succeeded){n.data.goodsAttributeList.length==0?Yt("none"):n.data.goodsAttributeList.forEach(function(i){i.defalutvalue=[],i.goodsAttributeValueList.forEach(function(c){i.attributeName=="\u9ED8\u8BA4\u5C5E\u6027"?(c.check=!0,l(c.attributeValue),i.defalutvalue.push(c.goodsAttributeValuId)):c.check=!1})}),console.log("\u5546\u54C1\u5C5E\u6027",n.data),oe(n.data);var o=[{key:"1",label:"\u5546\u54C1\u540D\u79F0",children:n.data.name},{key:"2",label:"\u5546\u54C1\u4EF7\u683C",children:n.data.price},{key:"3",label:"\u5546\u54C1\u7C7B\u578B",children:n.data.goodsTypeName},{key:"4",label:"\u5546\u54C1\u5355\u4F4D",children:n.data.goodsUintName}];q(o)}else G.default.error("\u67E5\u8BE2\u5546\u54C1\u4FE1\u606F\u5931\u8D25")}),(0,yt.uz)(a.goodsid).then(function(n){if(n.data.length>0){le(n.data);var o=n.data.reduce(function(i,c){return i.sort>c.sort?i:c});console.log("\u6700\u5927\u5E8F\u53F7\uFF1A",o.sort),Te(o.sort)}}),(0,yt.Ds)().then(function(n){Se(n.data)}),(0,yt.bn)().then(function(n){if(Be(n.data),n.data.length>0){var o=n.data.map(function(i){return{value:i.id,label:i.deviceName}});Je(o)}})},_a=function(n){for(var o=n.target,i=o.name,c=o.value,N="",H=(0,ut.Z)(T),j=0;j<et.goodsAttributeList.length;j++)i==="radiogroup"+j&&(H[j]=c);et.goodsAttributeList.forEach(function(u){for(var X=function(ya){var ea;qt=(ea=u.goodsAttributeValueList.find(function(dn){return dn.goodsAttributeValuId==H[ya]}))===null||ea===void 0?void 0:ea.attributeValue,qt&&(N=N+qt,ya<H.length-1&&(N=N+"-"))},At=0;At<H.length;At++){var qt;X(At)}u.goodsAttributeValueList.forEach(function(Ee){c==Ee.goodsAttributeValuId&&(Ee.check=!0,u.defalutvalue=c)})}),console.log("goodsinfo",et),l(N),g(H)},qa=function(n,o,i){if(sa("update"),Mt!="add"){rt(o.deviceId),rt(o.deviceId),w(o.deviceId),ha(o.deviceId,"edit",o);var c=[],N=et.goodsAttributeList.map(function(u){return u.goodsAttributeValueList.forEach(function(X){var At=o.goodsAttributeId.split(","),qt=At.find(function(Ee){return Ee==X.goodsAttributeValuId});qt&&(X.check=!0,u.defalutvalue=X.goodsAttributeValuId,c.push(X.goodsAttributeValuId))}),u}),H=(0,vt.Z)((0,vt.Z)({},et),{},{goodsAttributeList:N}),j=H;g(c),console.log("checkvalue",c),g(c),oe(j),Qt("update")}else G.default.error("\u8BF7\u4FDD\u5B58\u5F53\u524D\u6570\u636E\u540E\u5728\u7F16\u8F91")},tn=function(n,o){var i=[];n.data.forEach(function(c){var N={},H=[],j=o==null?void 0:o.filter(function(u){return u.technologyId==c.chnologyId});N.stepName=c.stepName,N.id=c.id,N.chnologyId=c.chnologyId,N.sort=c.sort,N.actionJson=c.actionJson,N.optiondata=JSON.parse(c.actionJson),j==null||j.forEach(function(u){var X={id:u.id,actionName:u.actionName,actionType:u.actionType,actionValue:u.actionValue,goodstechnologyId:u.technologyId,technologyType:u.technologyType,sort:u.sort,goddteid:c.id};H.push(X)}),N.propsdata=H,N.technologyType=c.technologyType,N.typeName=c.stepName,i.push(N)}),Lt(i)},ha=function(n,o,i){var c=[];i&&(ga(i.deviceId),fa(i.warehousrTemplateId),Ve(i.warehousrTemplateId)),(0,yt.t5)(n).then(function(N){if(N.data.length>0){var H,j=[];c=(H=N.data)===null||H===void 0?void 0:H.map(function(u){return u.technologyActionInfo.length>0&&u.technologyActionInfo.forEach(function(X){j.push(X)}),{value:u.id,label:u.name}}),Et(j),F(c)}else Et([]),F([]);o=="edit"&&tn(i,j)})},en=function(n,o,i){(0,yt.Io)(o.id).then(function(c){c.data?(G.default.success("\u5220\u9664\u6210\u529F"),ke()):G.default.error("\u5220\u9664\u5931\u8D25")})},an=function(n,o,i,c){if(tt.length>0&&F([]),Ze.length>0&&Lt([]),it==o&&(rt(""),ta("none"),Ve()),T.find(function(u){return i.includes(u)})){var N=et.goodsAttributeList.map(function(u){return u.goodsAttributeValueList.forEach(function(X){X.check=!1,u.defalutvalue="",g([])}),u}),H=(0,vt.Z)((0,vt.Z)({},et),{},{goodsAttributeList:N}),j=H;oe(j),g([])}(0,yt.MP)({devideId:o,goodsId:a.goodsid,goodsAttributeId:i}).then(function(u){u.data?(G.default.success("\u5220\u9664\u6210\u529F"),le([]),ke()):G.default.error("\u5220\u9664\u5931\u8D25")})},ke=function(){(0,yt.uz)(a.goodsid).then(function(n){if(n.data.length>0){le(n.data);var o=n.data.reduce(function(c,N){return c.sort>N.sort?c:N});Te(o.sort);var i={attributes:[]};p(i)}else p([]),le([])})},ga=function(n){ta("block"),Na(n).then(function(o){$a(o.data)})},nn=function(n){Ve(""),n?(rt(n),w(n),ha(n,"",null),ga(n)):(ta("none"),rt(""),w(""))},on=function(n){Qt(n)},ln=function(n){Lt(n)},rn=function(){var n=!0,o=[],i="\u6CA1\u6709\u8981\u4FDD\u5B58\u7684\u6570\u636E\u6216\u6570\u636E\u683C\u5F0F\u4E0D\u6B63\u786E";if(Ze.forEach(function(j){var u={};u.deviceId=Y,u.id=j.id,u.stepName=j.stepName,u.chnologyId=j.chnologyId,u.technologyType=j.technologyType,Mt!="add"&&(u.sort=j.sort),j.optiondata.length==0?n=!1:u.actionJson=JSON.stringify(j.optiondata),j.optiondata.forEach(function(X){var At=j.propsdata.find(function(qt){return qt.id==X.technologyactionId});At?(At.actionType=="select"&&X.actionValue==""&&(n=!1),At.actionType=="digit"&&(X.actionValue===""||X.actionValue===null)&&(n=!1)):X.actionValue===""&&(n=!1)}),u.goodsId=a.goodsid,u.warehousrTemplateId=Ha,u.goodsAttributeId=T.join(","),j.chnologyId==""&&(n=!1),(u.warehousrTemplateId==null||u.warehousrTemplateId=="")&&(n=!1,i="\u8BF7\u9009\u62E9\u4ED3\u4F4D\u6A21\u677F"),(u.goodsAttributeId==null||u.goodsAttributeId=="")&&(n=!1,i="\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027"),o.push(u)}),o.length>0&&n){Mt=="add"?(0,yt.XB)(o).then(function(j){j.data?(G.default.success("\u4FDD\u5B58\u6210\u529F"),Lt([]),ke()):G.default.error("\u4FDD\u5B58\u5931\u8D25")}):(0,yt.uR)(o).then(function(j){j.data?(G.default.success("\u4FDD\u5B58\u6210\u529F"),Lt([]),ke()):G.default.error("\u4FDD\u5B58\u5931\u8D25")});var c=et.goodsAttributeList.map(function(j){return j.goodsAttributeValueList.forEach(function(u){u.check=!1,j.defalutvalue=""}),j}),N=(0,vt.Z)((0,vt.Z)({},et),{},{goodsAttributeList:c}),H=N;oe(H),g([]),Qt("view"),_e(!1),sa("add")}else G.default.error(i)},ma=function(n){console.log(n),G.default.error("\u53D6\u6D88\u5220\u9664")},sn=function(n){fa(n),Ve(n)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(Tt.Z,{bodyStyle:{padding:15},children:[(0,t.jsx)("div",{style:{fontSize:16,marginBottom:5,color:"#1890ff",fontWeight:600},children:"\u5546\u54C1\u4FE1\u606F"}),(0,t.jsx)("div",{style:{float:"left"},children:(0,t.jsx)("img",{style:{width:100,height:100},src:et.imgUrl})}),(0,t.jsx)(wt.Z,{style:{float:"left",width:"71%",marginLeft:"10px"},labelStyle:{fontSize:16,fontWeight:600},children:V.map(function(Z,n){return(0,t.jsx)(wt.Z.Item,{label:Z.label,children:Z.children},n)})})]}),(0,t.jsxs)(Tt.Z,{bodyStyle:{padding:15},style:{display:He},children:[(0,t.jsx)("div",{style:{fontSize:16,marginBottom:5,color:"#1890ff",fontWeight:600},children:"\u5546\u54C1\u5C5E\u6027"}),et.goodsAttributeList==null?"":et.goodsAttributeList.map(function(Z,n){return(0,t.jsx)("div",{style:{marginLeft:10},children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{style:{marginRight:10},children:[" ",(0,t.jsx)(Nt.Z,{color:"blue",style:{fontSize:14,fontWeight:600},children:Z.attributeName}),"\uFF1A"]}),(0,t.jsx)("span",{children:(0,t.jsx)(ue.ZP.Group,{name:"radiogroup"+n,buttonStyle:"solid",onChange:_a,value:Z.defalutvalue,children:Z.goodsAttributeValueList.map(function(o,i){return(0,t.jsx)(ue.ZP.Button,{name:i,defaultChecked:o.check,checked:o.check,value:o.goodsAttributeValuId,style:{marginRight:22,marginTop:10},children:o.attributeValue},i)})})})]})})})]}),(0,t.jsx)(Tt.Z,{bodyStyle:{padding:15},children:(0,t.jsxs)("div",{style:{fontSize:16,marginBottom:5,color:"#1890ff",fontWeight:600},children:[(0,t.jsxs)("span",{style:{float:"left"},children:["\u9009\u62E9\u8BBE\u5907\uFF1A",(0,t.jsx)(st.Z,{showSearch:!0,allowClear:!0,style:{width:200,marginRight:10},value:it,placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907",optionFilterProp:"children",filterOption:function(n,o){var i;return((i=o==null?void 0:o.label)!==null&&i!==void 0?i:"").includes(n)},filterSort:function(n,o){var i,c;return((i=n==null?void 0:n.label)!==null&&i!==void 0?i:"").toLowerCase().localeCompare(((c=o==null?void 0:o.label)!==null&&c!==void 0?c:"").toLowerCase())},onChange:nn,options:re})]}),(0,t.jsxs)("span",{style:{float:"left",width:"30%",display:Ga},children:["\u9009\u62E9\u4ED3\u4F4D\u6A21\u677F\uFF1A",(0,t.jsx)(st.Z,{style:{width:"50%"},value:Ya,allowClear:!0,showSearch:!0,filterOption:function(n,o){var i;return((i=o==null?void 0:o.label)!==null&&i!==void 0?i:"").includes(n)},filterSort:function(n,o){var i,c;return((i=n==null?void 0:n.label)!==null&&i!==void 0?i:"").toLowerCase().localeCompare(((c=o==null?void 0:o.label)!==null&&c!==void 0?c:"").toLowerCase())},onChange:sn,children:qe==null?void 0:qe.map(function(Z,n){return(0,t.jsx)(st.Z.Option,{index:n,value:Z.id,children:Z.templateName},Z.id)})})]})]})}),(0,t.jsxs)(Tt.Z,{bodyStyle:{padding:15},children:[(0,t.jsx)("div",{style:{fontSize:16,marginBottom:5,color:"#1890ff",fontWeight:600},children:"\u5DE5\u827A\u8BBE\u8BA1"}),(0,t.jsxs)(ae,{split:"vertical",children:[(0,t.jsxs)(ae,{title:"\u7F16\u8F91\u5DE5\u827A",type:"inner",colSpan:"33%",bodyStyle:{padding:5},headerBordered:!0,headStyle:{paddingLeft:"5%"},extra:[(0,t.jsx)(z.Z,{type:"primary",ghost:!0,onClick:function(){rn()},children:"\u4FDD\u5B58\u5DE5\u827A"})],children:[(0,t.jsx)("div",{style:{textAlign:"center",marginBottom:10,color:"brown"},children:S}),(0,t.jsx)(ka,{devideId:Y,disabled:Qe,fromdata:Ze,maxsort:$e,UpdataStatus:Mt,onUpdataStatus:on,onSaveClick:ln,goodstechnologydata:tt,technologyattralldata:ct,batchingdata:jt})]}),(0,t.jsx)(ae,{title:"\u67E5\u770B\u5DE5\u827A",type:"inner",headStyle:{paddingLeft:"45%"},bodyStyle:{padding:5,width:"1072px","overflow-x":"scroll"},headerBordered:!0,children:(0,t.jsx)("div",{style:{width:"max-content"},children:Ce==null?"":Ce.map(function(Z,n){return(0,t.jsx)(ae,{wrap:!0,gutter:16,boxShadow:!0,title:Z.deviceName,bodyStyle:{padding:0,"overflow-x":"scrol"},headStyle:{padding:"0px 0px",backgroundColor:"burlywood",paddingLeft:"40%",height:45},extra:[(0,t.jsx)(C.Z,{style:{marginRight:10},onClick:function(i){qa(i,Z)}}),(0,t.jsx)(Pt.Z,{title:"\u786E\u8BA4\u5220\u9664\u5417?",description:"\u786E\u8BA4\u5220\u9664\u5417",onConfirm:function(i){an(i,Z.deviceId,Z.goodsAttributeId)},onCancel:ma,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,t.jsx)(f.Z,{style:{marginRight:6}})})],style:{marginBlockEnd:8,width:453,float:"left",marginRight:"10px"},children:Z.data.map(function(o){var i=JSON.parse(o.actionJson);return(0,t.jsx)(ae,{type:"inner",hoverable:!0,layout:"center",title:"\u5DE5\u5E8F\u53F7"+o.sort,bordered:!0,bodyStyle:{padding:5},headStyle:{padding:"0px 5px",border:"none",backgroundColor:"#e8f0fd"},extra:[(0,t.jsx)(Pt.Z,{title:"\u786E\u8BA4\u5220\u9664\u5417?",description:"\u786E\u8BA4\u5220\u9664\u5417",onConfirm:function(N){en(N,o,i)},onCancel:ma,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,t.jsx)(f.Z,{})})],style:{boxShadow:"5px 8px 24px 5px rgba(208, 216, 243, 0.6)"},children:(0,t.jsxs)("div",{style:{lineHeight:"200px",height:"100%",width:"100%"},children:[(0,t.jsx)("div",{className:Bt().formlable,style:{float:"left",width:"25%",backgroundColor:"#4eaaf5",color:"white"},children:o.stepName}),(0,t.jsx)("div",{style:{float:"left",marginBottom:"5px",width:"70%"},children:i.map(function(c){return(0,t.jsxs)("div",{style:{float:"left",marginBottom:"5px",width:"100%"},children:[(0,t.jsx)("div",{className:Bt().formlable,style:{display:"block",float:"left",backgroundColor:"#dcf4ff"},children:c.actionName}),(0,t.jsxs)("div",{className:Bt().formlabletxt,style:{display:"block",float:"left"},children:[" ",c.actionValue]})]})})})]})})})})})})})]})]})]})},Fa=Ra,Sn=e(9669),xn=de.Z.Step,Zn=st.Z.Option,En=st.Z.OptGroup,jn=ft.Z.TextArea,wa=function(a){var d;return(0,h.useEffect)(function(){},[]),(0,t.jsx)(ce.ZP,{host:!0,header:{title:[(0,t.jsxs)("a",{onClick:function(){na.m8.push({pathname:"/database/goods/newgoods"})},children:[(0,t.jsx)(m.Z,{}),"\u8FD4\u56DE"]},"back")],breadcrumb:{}},title:"\u5546\u54C1\u5DE5\u827A",children:(0,t.jsx)(Fa,{goodsid:(d=a.location.query.values)===null||d===void 0?void 0:d.id})})},Ua=wa},15746:function(Ct,ot,e){"use strict";var K=e(21584);ot.Z=K.Z},89032:function(Ct,ot,e){"use strict";var K=e(38663),ft=e.n(K),bt=e(6999)},4914:function(Ct,ot,e){"use strict";e.d(ot,{K:function(){return Dt},Z:function(){return A}});var K=e(96156),ft=e(28481),bt=e(90484),st=e(94184),kt=e.n(st),de=e(50344),m=e(67294),ce=e(53124),h=e(96159),Rt=e(24308),Pt=function(f){var r=f.children;return r},je=Pt,z=e(22122);function Ft(C){return C!=null}var ue=function(f){var r=f.itemPrefixCls,t=f.component,J=f.span,k=f.className,y=f.style,at=f.labelStyle,lt=f.contentStyle,ht=f.bordered,W=f.label,Q=f.content,Kt=f.colon,gt=t;if(ht){var $;return m.createElement(gt,{className:kt()(($={},(0,K.Z)($,"".concat(r,"-item-label"),Ft(W)),(0,K.Z)($,"".concat(r,"-item-content"),Ft(Q)),$),k),style:y,colSpan:J},Ft(W)&&m.createElement("span",{style:at},W),Ft(Q)&&m.createElement("span",{style:lt},Q))}return m.createElement(gt,{className:kt()("".concat(r,"-item"),k),style:y,colSpan:J},m.createElement("div",{className:"".concat(r,"-item-container")},(W||W===0)&&m.createElement("span",{className:kt()("".concat(r,"-item-label"),(0,K.Z)({},"".concat(r,"-item-no-colon"),!Kt)),style:at},W),(Q||Q===0)&&m.createElement("span",{className:kt()("".concat(r,"-item-content")),style:lt},Q)))},St=ue;function Nt(C,f,r){var t=f.colon,J=f.prefixCls,k=f.bordered,y=r.component,at=r.type,lt=r.showLabel,ht=r.showContent,W=r.labelStyle,Q=r.contentStyle;return C.map(function(Kt,gt){var $=Kt.props,Wt=$.label,$t=$.children,dt=$.prefixCls,zt=dt===void 0?J:dt,Gt=$.className,_=$.style,fe=$.labelStyle,Jt=$.contentStyle,te=$.span,ee=te===void 0?1:te,Ht=Kt.key;return typeof y=="string"?m.createElement(St,{key:"".concat(at,"-").concat(Ht||gt),className:Gt,style:_,labelStyle:(0,z.Z)((0,z.Z)({},W),fe),contentStyle:(0,z.Z)((0,z.Z)({},Q),Jt),span:ee,colon:t,component:y,itemPrefixCls:zt,bordered:k,label:lt?Wt:null,content:ht?$t:null}):[m.createElement(St,{key:"label-".concat(Ht||gt),className:Gt,style:(0,z.Z)((0,z.Z)((0,z.Z)({},W),_),fe),span:1,colon:t,component:y[0],itemPrefixCls:zt,bordered:k,label:Wt}),m.createElement(St,{key:"content-".concat(Ht||gt),className:Gt,style:(0,z.Z)((0,z.Z)((0,z.Z)({},Q),_),Jt),span:ee*2-1,component:y[1],itemPrefixCls:zt,bordered:k,content:$t})]})}var xt=function(f){var r=m.useContext(Dt),t=f.prefixCls,J=f.vertical,k=f.row,y=f.index,at=f.bordered;return J?m.createElement(m.Fragment,null,m.createElement("tr",{key:"label-".concat(y),className:"".concat(t,"-row")},Nt(k,f,(0,z.Z)({component:"th",type:"label",showLabel:!0},r))),m.createElement("tr",{key:"content-".concat(y),className:"".concat(t,"-row")},Nt(k,f,(0,z.Z)({component:"td",type:"content",showContent:!0},r)))):m.createElement("tr",{key:y,className:"".concat(t,"-row")},Nt(k,f,(0,z.Z)({component:at?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},r)))},Tt=xt,Dt=m.createContext({}),wt={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function vt(C,f){if(typeof C=="number")return C;if((0,bt.Z)(C)==="object")for(var r=0;r<Rt.c4.length;r++){var t=Rt.c4[r];if(f[t]&&C[t]!==void 0)return C[t]||wt[t]}return 3}function ut(C,f,r){var t=C;return(f===void 0||f>r)&&(t=(0,h.Tm)(C,{span:r})),t}function Ut(C,f){var r=(0,de.Z)(C).filter(function(y){return y}),t=[],J=[],k=f;return r.forEach(function(y,at){var lt,ht=(lt=y.props)===null||lt===void 0?void 0:lt.span,W=ht||1;if(at===r.length-1){J.push(ut(y,ht,k)),t.push(J);return}W<k?(k-=W,J.push(y)):(J.push(ut(y,W,k)),t.push(J),k=f,J=[])}),t}function G(C){var f,r=C.prefixCls,t=C.title,J=C.extra,k=C.column,y=k===void 0?wt:k,at=C.colon,lt=at===void 0?!0:at,ht=C.bordered,W=C.layout,Q=C.children,Kt=C.className,gt=C.style,$=C.size,Wt=C.labelStyle,$t=C.contentStyle,dt=m.useContext(ce.E_),zt=dt.getPrefixCls,Gt=dt.direction,_=zt("descriptions",r),fe=m.useState({}),Jt=(0,ft.Z)(fe,2),te=Jt[0],ee=Jt[1],Ht=vt(y,te);m.useEffect(function(){var ve=Rt.ZP.subscribe(function(he){(0,bt.Z)(y)==="object"&&ee(he)});return function(){Rt.ZP.unsubscribe(ve)}},[]);var Re=Ut(Q,Ht),Fe=m.useMemo(function(){return{labelStyle:Wt,contentStyle:$t}},[Wt,$t]);return m.createElement(Dt.Provider,{value:Fe},m.createElement("div",{className:kt()(_,(f={},(0,K.Z)(f,"".concat(_,"-").concat($),$&&$!=="default"),(0,K.Z)(f,"".concat(_,"-bordered"),!!ht),(0,K.Z)(f,"".concat(_,"-rtl"),Gt==="rtl"),f),Kt),style:gt},(t||J)&&m.createElement("div",{className:"".concat(_,"-header")},t&&m.createElement("div",{className:"".concat(_,"-title")},t),J&&m.createElement("div",{className:"".concat(_,"-extra")},J)),m.createElement("div",{className:"".concat(_,"-view")},m.createElement("table",null,m.createElement("tbody",null,Re.map(function(ve,he){return m.createElement(Tt,{key:he,index:he,colon:lt,prefixCls:_,vertical:W==="vertical",bordered:ht,row:ve})}))))))}G.Item=je;var A=G},98858:function(Ct,ot,e){"use strict";var K=e(38663),ft=e.n(K),bt=e(52953),st=e.n(bt)},71230:function(Ct,ot,e){"use strict";var K=e(92820);ot.Z=K.Z},13062:function(Ct,ot,e){"use strict";var K=e(38663),ft=e.n(K),bt=e(6999)}}]);
|