包含后厨 团餐 门店分支
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
20 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2319],{50727:function(je,fe,t){"use strict";var Ae=t(9715),se=t(55843),Be=t(57663),Ze=t(71577),a=t(96156),Ie=t(28481),O=t(81253),E=t(55507),B=t(92137),p=t(28991),d=t(85893),pe=t(49101),ye=t(97462),Ce=t(952),Me=t(78775),ve=t(26369),Ee=t(22270),be=t(48171),Oe=t(60249),he=t(21770),_e=t(88306),Q=t(8880),A=t(67294),c=t(77153),we=["onTableChange","maxLength","formItemProps","recordCreatorProps","rowKey","controlled","defaultValue","onChange","editableFormRef"],Re=["record","position","creatorButtonText","newRecordType","parentKey","style"],me=A.createContext(void 0);function N(e){var V=e.children,k=e.record,ue=e.position,ee=e.newRecordType,te=e.parentKey,X=(0,A.useContext)(me);return A.cloneElement(V,(0,p.Z)((0,p.Z)({},V.props),{},{onClick:function(){var re=(0,B.Z)((0,E.Z)().mark(function de(ne){var le,q,H,J;return(0,E.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,(le=(q=V.props).onClick)===null||le===void 0?void 0:le.call(q,ne);case 2:if(J=P.sent,J!==!1){P.next=5;break}return P.abrupt("return");case 5:X==null||(H=X.current)===null||H===void 0||H.addEditRecord(k,{position:ue,newRecordType:ee,parentKey:te});case 6:case"end":return P.stop()}},de)}));function L(de){return re.apply(this,arguments)}return L}()}))}function Y(e){var V,k,ue=(0,Me.YB)(),ee=e.onTableChange,te=e.maxLength,X=e.formItemProps,re=e.recordCreatorProps,L=e.rowKey,de=e.controlled,ne=e.defaultValue,le=e.onChange,q=e.editableFormRef,H=(0,O.Z)(e,we),J=(0,ve.Z)(e.value),ie=(0,A.useRef)(),P=(0,A.useRef)();(0,A.useImperativeHandle)(H.actionRef,function(){return ie.current});var y=(0,he.Z)(function(){return e.value||ne||[]},{value:e.value,onChange:e.onChange}),h=(0,Ie.Z)(y,2),l=h[0],n=h[1],K=A.useMemo(function(){return typeof L=="function"?L:function(Z,i){return Z[L]||i}},[L]),F=function(i){if(typeof i=="number"&&!e.name){if(i>=l.length)return i;var u=l&&l[i];return K==null?void 0:K(u,i)}if((typeof i=="string"||i>=l.length)&&e.name){var s=l.findIndex(function(m,w){var C;return(K==null||(C=K(m,w))===null||C===void 0?void 0:C.toString())===(i==null?void 0:i.toString())});return s}return i};(0,A.useImperativeHandle)(q,function(){var Z=function(s){var m,w;if(s==null)throw new Error("rowIndex is required");var C=F(s),W=[e.name,(m=C==null?void 0:C.toString())!==null&&m!==void 0?m:""].flat(1).filter(Boolean);return(w=P.current)===null||w===void 0?void 0:w.getFieldValue(W)},i=function(){var s,m=[e.name].flat(1).filter(Boolean);if(Array.isArray(m)&&m.length===0){var w,C=(w=P.current)===null||w===void 0?void 0:w.getFieldsValue();return Array.isArray(C)?C:Object.keys(C).map(function(W){return C[W]})}return(s=P.current)===null||s===void 0?void 0:s.getFieldValue(m)};return(0,p.Z)((0,p.Z)({},P.current),{},{getRowData:Z,getRowsData:i,setRowData:function(s,m){var w,C,W,ce;if(s==null)throw new Error("rowIndex is required");var oe=F(s),De=[e.name,(w=oe==null?void 0:oe.toString())!==null&&w!==void 0?w:""].flat(1).filter(Boolean),Te=((C=P.current)===null||C===void 0||(W=C.getFieldsValue)===null||W===void 0?void 0:W.call(C))||{},Pe=(0,Q.Z)(Te,De,(0,p.Z)((0,p.Z)({},Z(s)),m||{}));return(ce=P.current)===null||ce===void 0?void 0:ce.setFieldsValue(Pe)}})}),(0,A.useEffect)(function(){!e.controlled||l.forEach(function(Z,i){var u;(u=P.current)===null||u===void 0||u.setFieldsValue((0,a.Z)({},K(Z,i),Z))},{})},[l,e.controlled]),(0,A.useEffect)(function(){if(e.name){var Z;P.current=e==null||(Z=e.editable)===null||Z===void 0?void 0:Z.form}},[(V=e.editable)===null||V===void 0?void 0:V.form,e.name]);var $=re||{},G=$.record,U=$.position,z=$.creatorButtonText,ae=$.newRecordType,I=$.parentKey,x=$.style,S=(0,O.Z)($,Re),j=U==="top",g=(0,A.useMemo)(function(){return te&&te<=(l==null?void 0:l.length)?!1:re!==!1&&(0,d.jsx)(N,{record:(0,Ee.h)(G,l==null?void 0:l.length,l)||{},position:U,parentKey:(0,Ee.h)(I,l==null?void 0:l.length,l),newRecordType:ae,children:(0,d.jsx)(Ze.Z,(0,p.Z)((0,p.Z)({type:"dashed",style:(0,p.Z)({display:"block",margin:"10px 0",width:"100%"},x),icon:(0,d.jsx)(pe.Z,{})},S),{},{children:z||ue.getMessage("editableTable.action.add","\u6DFB\u52A0\u4E00\u884C\u6570\u636E")}))})},[re,te,l==null?void 0:l.length]),M=(0,A.useMemo)(function(){return g?j?{components:{header:{wrapper:function(i){var u,s=i.className,m=i.children;return(0,d.jsxs)("thead",{className:s,children:[m,(0,d.jsxs)("tr",{style:{position:"relative"},children:[(0,d.jsx)("td",{colSpan:0,style:{visibility:"hidden"},children:g}),(0,d.jsx)("td",{style:{position:"absolute",left:0,width:"100%"},colSpan:(u=H.columns)===null||u===void 0?void 0:u.length,children:g})]})]})}}}}:{tableViewRender:function(i,u){var s,m;return(0,d.jsxs)(d.Fragment,{children:[(s=(m=e.tableViewRender)===null||m===void 0?void 0:m.call(e,i,u))!==null&&s!==void 0?s:u,g]})}}:{}},[j,g]),R=(0,p.Z)({},e.editable),T=(0,be.J)(function(Z,i){var u,s,m;if((u=e.editable)===null||u===void 0||(s=u.onValuesChange)===null||s===void 0||s.call(u,Z,i),(m=e.onValuesChange)===null||m===void 0||m.call(e,i,Z),e.controlled){var w;e==null||(w=e.onChange)===null||w===void 0||w.call(e,i)}});return((e==null?void 0:e.onValuesChange)||((k=e.editable)===null||k===void 0?void 0:k.onValuesChange)||e.controlled&&(e==null?void 0:e.onChange))&&(R.onValuesChange=T),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(me.Provider,{value:ie,children:(0,d.jsx)(c.Z,(0,p.Z)((0,p.Z)((0,p.Z)({search:!1,options:!1,pagination:!1,rowKey:L,revalidateOnFocus:!1},H),M),{},{tableLayout:"fixed",actionRef:ie,onChange:ee,editable:(0,p.Z)((0,p.Z)({},R),{},{formProps:(0,p.Z)({formRef:P},R.formProps)}),dataSource:l,onDataSourceChange:function(i){if(n(i),e.name&&U==="top"){var u,s=(0,Q.Z)({},[e.name].flat(1).filter(Boolean),i);(u=P.current)===null||u===void 0||u.setFieldsValue(s)}}}))}),e.name?(0,d.jsx)(ye.Z,{name:[e.name],children:function(i){var u,s,m=(0,_e.Z)(i,[e.name].flat(1)),w=m==null?void 0:m.find(function(C,W){return!(0,Oe.Z)(C,J==null?void 0:J[W])});return w&&J&&(e==null||(u=e.editable)===null||u===void 0||(s=u.onValuesChange)===null||s===void 0||s.call(u,w,m)),null}}):null]})}function ge(e){var V=Ce.ZP.useFormInstance();return e.name?(0,d.jsx)(se.Z.Item,(0,p.Z)((0,p.Z)({style:{maxWidth:"100%"}},e==null?void 0:e.formItemProps),{},{name:e.name,children:(0,d.jsx)(Y,(0,p.Z)((0,p.Z)({},e),{},{editable:(0,p.Z)((0,p.Z)({},e.editable),{},{form:V})}))})):(0,d.jsx)(Y,(0,p.Z)({},e))}ge.RecordCreator=N,fe.Z=ge},1085:function(je,fe,t){"use strict";t.r(fe),t.d(fe,{default:function(){return P}});var Ae=t(57663),se=t(71577),Be=t(62350),Ze=t(24565),a=t(39428),Ie=t(34792),O=t(48086),E=t(3182),B=t(2824),p=t(49101),d=t(67294),pe=t(28790),ye=t(85224),Ce=t(16894),Me=t(71194),ve=t(50146),Ee=t(77883),be=t(85986),Oe=t(47673),he=t(4107),_e=t(9715),Q=t(55843),A=t(50727),c=t(85893),we=function(h){var l=(0,d.useState)([]),n=(0,B.Z)(l,2),K=n[0],F=n[1],$=(0,d.useState)([]),G=(0,B.Z)($,2),U=G[0],z=G[1],ae=Q.Z.useForm(),I=(0,B.Z)(ae,1),x=I[0],S=[{title:"\u540D\u79F0",dataIndex:"attributeValue",formItemProps:function(M,R){var T=R.rowIndex;return{rules:T>1?[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]:[]}},width:"25%"},{title:"\u6392\u5E8F",dataIndex:"sort",valueType:"digit",width:"15%"},{title:"\u64CD\u4F5C",valueType:"option",width:"15%",render:function(){return null}}],j=function(){x.validateFields().then(function(M){M.goodsAttributeValueList=K,h.onFinish(M)})};return(0,c.jsxs)(ve.Z,{title:h.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:h.createModalVisible,bodyStyle:{padding:"32px 40px 1px 48px"},okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:j,onCancel:function(){h.onCancel()},destroyOnClose:!0,children:[(0,c.jsxs)(Q.Z,{labelCol:{span:4},layout:"horizontal",form:x,children:[(0,c.jsx)(Q.Z.Item,{name:"id",hidden:!0,children:(0,c.jsx)(he.Z,{})}),(0,c.jsx)(Q.Z.Item,{name:"attributeName",label:"\u5C5E\u6027\u540D\u79F0",rules:[{required:!0,max:50}],children:(0,c.jsx)(he.Z,{})}),(0,c.jsx)(Q.Z.Item,{name:"sort",label:"\u6392\u5E8F",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6392\u5E8F\u53F7"}],children:(0,c.jsx)(be.Z,{style:{width:"100%"}})})]}),(0,c.jsx)(A.Z,{headerTitle:(0,c.jsxs)("span",{style:{fontSize:14},children:[(0,c.jsx)("span",{style:{color:"red",marginRight:3},children:"*"}),"\u5C5E\u6027\u503C\u8BBE\u7F6E"]}),columns:S,rowKey:"id",request:(0,E.Z)((0,a.Z)().mark(function g(){var M,R;return(0,a.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:M=[],R=0;case 2:case"end":return Z.stop()}},g)})),value:K,onChange:F,recordCreatorProps:{newRecordType:"dataSource",record:function(){return{id:Date.now()}}},editable:{type:"multiple",editableKeys:U,actionRender:function(M,R,T){return[T.delete,T.Button]},onValuesChange:function(M,R){F(R)},onDelete:function(){var g=(0,E.Z)((0,a.Z)().mark(function R(T,Z){return(0,a.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:console.log(T),console.log(Z);case 2:case"end":return u.stop()}},R)}));function M(R,T){return g.apply(this,arguments)}return M}(),onChange:z}})]})},Re=we,me=t(11849),N=t(48971),Y=t(96690);function ge(y){return e.apply(this,arguments)}function e(){return e=(0,E.Z)((0,a.Z)().mark(function y(h){return(0,a.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,N.WY)((0,Y.w)()+"/api/goodsattribute/getgoodsattributepage",{method:"POST",data:h}));case 1:case"end":return n.stop()}},y)})),e.apply(this,arguments)}function V(y){return k.apply(this,arguments)}function k(){return k=(0,E.Z)((0,a.Z)().mark(function y(h){return(0,a.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,N.WY)((0,Y.w)()+"/api/goodsattribute/addgoodsattribute",{method:"POST",data:h}));case 1:case"end":return n.stop()}},y)})),k.apply(this,arguments)}function ue(y){return ee.apply(this,arguments)}function ee(){return ee=(0,E.Z)((0,a.Z)().mark(function y(h){return(0,a.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,N.WY)((0,Y.w)()+"/api/goodsattribute/deletegoodsattribute",{method:"POST",data:h}));case 1:case"end":return n.stop()}},y)})),ee.apply(this,arguments)}function te(y){return X.apply(this,arguments)}function X(){return X=(0,E.Z)((0,a.Z)().mark(function y(h){return(0,a.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,N.WY)((0,Y.w)()+"/api/goodsattribute/getgoodsattributevalue?goodsAttributeId="+h,{method:"GET"}));case 1:case"end":return n.stop()}},y)})),X.apply(this,arguments)}function re(y){return L.apply(this,arguments)}function L(){return L=(0,E.Z)((0,a.Z)().mark(function y(h){return(0,a.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,N.WY)((0,Y.w)()+"/api/goodsattribute/addgoodsattributevalue",{method:"POST",data:h}));case 1:case"end":return n.stop()}},y)})),L.apply(this,arguments)}function de(y){return ne.apply(this,arguments)}function ne(){return ne=(0,E.Z)((0,a.Z)().mark(function y(h){return(0,a.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,N.WY)((0,Y.w)()+"/api/goodsattribute/deletegoodsattributevalue?id="+h,{method:"GET"}));case 1:case"end":return n.stop()}},y)})),ne.apply(this,arguments)}function le(y){return q.apply(this,arguments)}function q(){return q=(0,E.Z)((0,a.Z)().mark(function y(h){return(0,a.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,N.WY)((0,Y.w)()+"\u200B/api\u200B/goodstype/tree",{method:"GET",data:(0,me.Z)({},h)}));case 1:case"end":return n.stop()}},y)})),q.apply(this,arguments)}var H=function(h){var l=(0,d.useState)([]),n=(0,B.Z)(l,2),K=n[0],F=n[1],$=(0,d.useState)([]),G=(0,B.Z)($,2),U=G[0],z=G[1],ae=[{title:"\u540D\u79F0",dataIndex:"attributeValue",formItemProps:function(x,S){var j=S.rowIndex;return{rules:j>1?[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]:[]}},width:"25%"},{title:"\u5916\u952E",dataIndex:"waiKey",width:"15%"},{title:"\u6392\u5E8F",dataIndex:"sort",valueType:"digit",width:"15%"},{title:"\u64CD\u4F5C",valueType:"option",width:"15%",render:function(){return null}}];return(0,d.useEffect)((0,E.Z)((0,a.Z)().mark(function I(){return(0,a.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:case"end":return S.stop()}},I)})),[]),(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(ve.Z,{title:"\u6DFB\u52A0\u5C5E\u6027\u503C",width:840,visible:h.createattrModalVisible,bodyStyle:{padding:"32px 40px 1px 48px"},footer:null,onCancel:function(){h.onCancel()},destroyOnClose:!0,children:(0,c.jsx)(A.Z,{headerTitle:"\u5C5E\u6027\u5217\u8868",columns:ae,rowKey:"id",request:(0,E.Z)((0,a.Z)().mark(function I(){var x,S;return(0,a.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return x=[],S=0,g.next=4,te(h.attributeid).then(function(M){x=M.data,S=M.data.length,z(M.data),F(M.data.map(function(R){return R.id}))});case 4:return g.abrupt("return",{data:x,success:!0,total:S});case 5:case"end":return g.stop()}},I)})),value:U,onChange:z,recordCreatorProps:{newRecordType:"dataSource",record:function(){return{id:Date.now()}}},toolBarRender:function(){return[(0,c.jsx)(se.Z,{type:"primary",onClick:function(){h.onFinish(U),console.log(U)},children:"\u4FDD\u5B58\u6570\u636E"},"save")]},editable:{type:"multiple",editableKeys:K,actionRender:function(x,S,j){return[j.delete,j.Button]},onValuesChange:function(x,S){z(S)},onDelete:function(){var I=(0,E.Z)((0,a.Z)().mark(function S(j,g){return(0,a.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return console.log(j),console.log(g),R.next=4,de(j).then(function(T){});case 4:case"end":return R.stop()}},S)}));function x(S,j){return I.apply(this,arguments)}return x}(),onChange:F}})})})},J=H,ie=function(h){var l=(0,d.useState)(!1),n=(0,B.Z)(l,2),K=n[0],F=n[1],$=(0,d.useState)(!1),G=(0,B.Z)($,2),U=G[0],z=G[1],ae=(0,d.useState)([]),I=(0,B.Z)(ae,2),x=I[0],S=I[1],j=(0,d.useState)(""),g=(0,B.Z)(j,2),M=g[0],R=g[1],T=(0,d.useRef)(),Z=(0,d.useState)(),i=(0,B.Z)(Z,2),u=i[0],s=i[1],m=(0,d.useState)([]),w=(0,B.Z)(m,2),C=w[0],W=w[1],ce=(0,d.useState)(),oe=(0,B.Z)(ce,2),De=oe[0],Te=oe[1];(0,d.useEffect)(function(){Pe()},[]);function Pe(){le().then(function(D){Te(D.data)})}var Ke=function(){var D=(0,E.Z)((0,a.Z)().mark(function f(o){var v;return(0,a.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(v=O.default.loading("\u6B63\u5728\u5220\u9664"),o){r.next=3;break}return r.abrupt("return",!0);case 3:return r.next=5,ue(o.map(function(b){return b.id})).then(function(b){b.succeeded?(O.default.success("\u5220\u9664\u6210\u529F"),T.current.reload()):O.default.error(b.errors)});case 5:return v(),r.abrupt("return",!0);case 7:case"end":return r.stop()}},f)}));return function(o){return D.apply(this,arguments)}}(),Fe=function(){var D=(0,E.Z)((0,a.Z)().mark(function f(o){var v;return(0,a.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return v=O.default.loading("\u6B63\u5728\u6DFB\u52A0"),r.prev=1,r.next=4,V(JSON.stringify(o)).then(function(b){b.succeeded?(O.default.success("\u6DFB\u52A0\u6210\u529F"),T.current.reload()):O.default.error(b.errors)});case 4:return v(),r.abrupt("return",!0);case 8:return r.prev=8,r.t0=r.catch(1),v(),O.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 13:case"end":return r.stop()}},f,null,[[1,8]])}));return function(o){return D.apply(this,arguments)}}(),$e=function(){var D=(0,E.Z)((0,a.Z)().mark(function f(o){var v;return(0,a.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return v=O.default.loading("\u6B63\u5728\u4FEE\u6539"),r.prev=1,r.next=4,V({id:o.id,AttributeName:o.attributeName,goodsTypeId:o.goodsTypeId,Sort:o.sort}).then(function(b){b.succeeded?(O.default.success("\u4FEE\u6539\u6210\u529F"),T.current.reload()):O.default.error(b.errors)});case 4:return v(),r.abrupt("return",!0);case 8:return r.prev=8,r.t0=r.catch(1),v(),O.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 13:case"end":return r.stop()}},f,null,[[1,8]])}));return function(o){return D.apply(this,arguments)}}(),Ve=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",render:function(f,o){return(0,c.jsx)("a",{onClick:function(){s(o),setShowDetail(!0)},children:f})}},{title:"\u5C5E\u6027\u540D\u79F0",dataIndex:"attributeName",valueType:"textarea",ellipsis:!0},{title:"\u6392\u5E8F",dataIndex:"sort",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(f,o){return[(0,c.jsx)("a",{onClick:function(){F(!0),s(o)},children:"\u66F4\u65B0"},"config"),(0,c.jsx)(Ze.Z,{type:"primary",title:"\u5220\u9664\u5C5E\u6027\u540E\u4F1A\u5C06\u5C5E\u6027\u7684\u503C\u4E00\u8D77\u5220\u9664\uFF0C\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,E.Z)((0,a.Z)().mark(function v(){return(0,a.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ue([o.id]).then(function(b){b.succeeded?(O.default.success("\u5220\u9664\u6210\u529F"),T.current.reload()):O.default.error(b.errors)});case 2:case"end":return r.stop()}},v)})),onCancel:function(){},children:(0,c.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,c.jsxs)(pe.ZP,{host:!0,header:{title:"",breadcrumb:{}},children:[(0,c.jsx)(Ce.ZP,{headerTitle:"\u67E5\u8BE2\u8868\u683C",actionRef:T,rowKey:"id",pagination:{defaultPageSize:10},search:{labelWidth:120},toolBarRender:function(){return[(0,c.jsxs)(se.Z,{type:"primary",onClick:function(){F(!0)},children:[(0,c.jsx)(p.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var D=(0,E.Z)((0,a.Z)().mark(function f(o){var v,_;return(0,a.Z)().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return v=[],_=0,b.next=4,ge(o).then(function(xe){v=xe.data.data,v.forEach(function(Se){Se.goodsTypeId!=null&&(Se.goodsTypeId=Se.goodsTypeId.split(","))}),_=xe.data.total});case 4:return b.abrupt("return",{data:v,success:!0,total:_});case 5:case"end":return b.stop()}},f)}));return function(f){return D.apply(this,arguments)}}(),columns:Ve,rowSelection:{onChange:function(f,o){W(o)}}}),(C==null?void 0:C.length)>0&&(0,c.jsx)(ye.Z,{extra:(0,c.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,c.jsx)("a",{style:{fontWeight:600},children:C.length})," ","\u9879 \xA0\xA0"]}),children:(0,c.jsx)(se.Z,{onClick:(0,E.Z)((0,a.Z)().mark(function D(){var f,o;return(0,a.Z)().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,Ke(C);case 2:W([]),(f=T.current)===null||f===void 0||(o=f.reloadAndRest)===null||o===void 0||o.call(f);case 4:case"end":return _.stop()}},D)})),children:"\u5220\u9664"})}),(0,c.jsx)(Re,{treeDatas:De,onFinish:function(){var D=(0,E.Z)((0,a.Z)().mark(function f(o){var v;return(0,a.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(console.log(o),v=!1,!o.id){r.next=8;break}return r.next=5,$e(o);case 5:v=r.sent,r.next=11;break;case 8:return r.next=10,Fe(o);case 10:v=r.sent;case 11:v&&(F(!1),s(void 0),T.current&&T.current.reload());case 12:case"end":return r.stop()}},f)}));return function(f){return D.apply(this,arguments)}}(),onCancel:function(){F(!1),s(void 0)},createModalVisible:K,values:u||{}}),(0,c.jsx)(J,{onFinish:function(){var D=(0,E.Z)((0,a.Z)().mark(function f(o){var v;return(0,a.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return console.log("value",o),console.log("props.currentRow",h.currentRow),o.goodsTypeId=h.currentRow.id,v=o.map(function(b){return b.GoodsAttributeId=u.id,b}),r.next=6,re(v).then(function(b){b.data?(O.default.success("\u4FDD\u5B58\u6210\u529F"),z(!1),T.current.reload()):O.default.error("\u4FDD\u5B58\u5931\u8D25")});case 6:case"end":return r.stop()}},f)}));return function(f){return D.apply(this,arguments)}}(),onCancel:function(){var D=(0,E.Z)((0,a.Z)().mark(function f(o){return(0,a.Z)().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:R(void 0),z(!1),s(void 0);case 3:case"end":return _.stop()}},f)}));return function(f){return D.apply(this,arguments)}}(),attributeid:M,createattrModalVisible:U})]})},P=ie}}]);