|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6264],{5966:function(ne,V,r){"use strict";var k=r(28991),B=r(81253),G=r(85893),U=r(88300),z=["fieldProps","proFieldProps"],H=["fieldProps","proFieldProps"],l="text",d=function(T){var i=T.fieldProps,X=T.proFieldProps,J=(0,B.Z)(T,z);return(0,G.jsx)(U.Z,(0,k.Z)({valueType:l,fieldProps:i,filedConfig:{valueType:l},proFieldProps:X},J))},Q=function(T){var i=T.fieldProps,X=T.proFieldProps,J=(0,B.Z)(T,H);return(0,G.jsx)(U.Z,(0,k.Z)({valueType:"password",fieldProps:i,proFieldProps:X,filedConfig:{valueType:l}},J))},f=d;f.Password=Q,f.displayName="ProFormComponent",V.Z=f},68253:function(ne){ne.exports={card:"card___2Ik6n",anttabs:"anttabs___33d_r",errorIcon:"errorIcon___2zMXo",anticon:"anticon___3_5SY",errorPopover:"errorPopover___3FRQH",errorListItem:"errorListItem___-b-3Y",errorField:"errorField___3GCmP",editable:"editable___33Tfk"}},83341:function(ne,V,r){"use strict";r.d(V,{O:function(){return k}});function k(B){B=B||32;for(var G="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz",U=G.length,z="012345678",H=z.length,l="",d=0;d<B;d++)l+=G.charAt(Math.floor(Math.random()*U));for(var Q=0;Q<B;Q++)l+=z.charAt(Math.floor(Math.random()*H));return l.toUpperCase()}},93926:function(ne,V,r){"use strict";r.r(V),r.d(V,{default:function(){return rt}});var k=r(57338),B=r(83107),G=r(57663),U=r(71577),z=r(62350),H=r(24565),l=r(2824),d=r(39428),Q=r(34792),f=r(48086),F=r(3182),T=r(49101),i=r(67294),X=r(28790),J=r(85224),Me=r(16894),Oe=r(12826),nt=r(71194),Ke=r(50146),st=r(49111),Le=r(19650),ut=r(47673),Ee=r(4107),it=r(48736),Re=r(27049),ot=r(13062),ve=r(71230),lt=r(89032),I=r(15746),Ye=r(952),q=r(5966),W=r(28991),ge=r(81253),t=r(85893),we=r(22270),Be=r(66758),ye=r(88300),$e=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],Ve=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],Ge=i.forwardRef(function(s,a){var o=s.fieldProps,C=s.children,n=s.params,y=s.proFieldProps,R=s.mode,O=s.valueEnum,w=s.request,$=s.showSearch,A=s.options,N=(0,ge.Z)(s,$e),K=(0,i.useContext)(Be.Z);return(0,t.jsx)(ye.Z,(0,W.Z)((0,W.Z)({valueEnum:(0,we.h)(O),request:w,params:n,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,W.Z)({options:A,mode:R,showSearch:$,getPopupContainer:K.getPopupContainer},o),ref:a,proFieldProps:y},N),{},{children:C}))}),Ne=i.forwardRef(function(s,a){var o=s.fieldProps,C=s.children,n=s.params,y=s.proFieldProps,R=s.mode,O=s.valueEnum,w=s.request,$=s.options,A=(0,ge.Z)(s,Ve),N=(0,W.Z)({options:$,mode:R||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},o),K=(0,i.useContext)(Be.Z);return(0,t.jsx)(ye.Z,(0,W.Z)((0,W.Z)({valueEnum:(0,we.h)(O),request:w,params:n,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,W.Z)({getPopupContainer:K.getPopupContainer},N),ref:a,proFieldProps:y},A),{},{children:C}))}),ke=Ge,ze=Ne,Ze=ke;Ze.SearchSelect=ze,Ze.displayName="ProFormComponent";var se=Ze,He=["fieldProps","min","proFieldProps","max"],Qe=function(a,o){var C=a.fieldProps,n=a.min,y=a.proFieldProps,R=a.max,O=(0,ge.Z)(a,He);return(0,t.jsx)(ye.Z,(0,W.Z)({valueType:"digit",fieldProps:(0,W.Z)({min:n,max:R},C),ref:o,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:y},O))},Pe=i.forwardRef(Qe),dt=r(68253),_=r(11849),S=r(48971),L={getTypeList:function(a,o){return(0,S.WY)("/saasbase/api/batching/getbatchingtypelist",{method:"GET",params:(0,_.Z)({},a)})},GetDicList:function(a){return(0,S.WY)("/saasbase/api/dictdata/getdiclist?typeCode="+a,{method:"Get"})},getUintList:function(a,o){return(0,S.WY)("/saasbase/api/batching/getbatchinguintList",{method:"GET",params:(0,_.Z)({},a)})},addbatchinguint:function(a,o){return(0,S.WY)("/saasbase/api/batching/addbatchinguint",{method:"POST",data:(0,_.Z)({},a)})},addbatchingtype:function(a,o){return(0,S.WY)("/saasbase/api/batching/addbatchingtype",{method:"POST",data:(0,_.Z)({},a)})},add:function(a,o){return(0,S.WY)("/saasbase/api/batching/add",{method:"POST",data:(0,_.Z)({},a)})},update:function(a,o){return(0,S.WY)("/saasbase/api/batching/update",{method:"Post",data:a})},removeProduct:function(a){return(0,S.WY)("/saasbase/api/batching/delete",{method:"Post",data:a})},getpage:function(a,o){return(0,S.WY)("/saasbase/api/batching/getpage",{method:"Post",data:a})},getproductdetailed:function(a,o){return(0,S.WY)("/saasbase/api/product-code-server/product-list",{method:"Post",data:a})},updateStatus:function(a){return(0,S.WY)("/saasbase/api/batching/updatebatchingstatus",{method:"Post",data:a})},BatchList:function(a){return(0,S.WY)("/saasbase/api/product/product-code/".concat(a),{method:"get"})}},E={name:"\u7269\u6599\u540D\u79F0",stockUint:"\u5E93\u5B58\u5355\u4F4D",specs:"\u7269\u6599\u89C4\u683C",code:"\u7269\u6599\u7F16\u7801",aittribute:"\u7269\u6599\u5C5E\u6027",typeID:"\u7269\u6599\u7C7B\u522B",status:"\u7269\u6599\u72B6\u6001",price:"\u6210\u672C\u4EF7",netrecovery:"\u51C0\u6599\u7387(%)",OutstockUint:"\u51FA\u5E93\u5355\u4F4D",proportion:"\u6362\u7B97\u6BD4\u4F8B(%)",foreignKeyRe:"\u5173\u8054\u5916\u952E"},Ue=[],Xe=function(a){var o=a.modalVisible,C=a.onCancel,n=(0,i.useRef)(),y=(0,i.useState)(function(){return Ue.map(function(P){return P.id})}),R=(0,l.Z)(y,2),O=R[0],w=R[1],$=(0,i.useState)(),A=(0,l.Z)($,2),N=A[0],K=A[1],M=(0,i.useState)(function(){return Ue}),ue=(0,l.Z)(M,2),xe=ue[0],b=ue[1],ie=(0,i.useState)([]),oe=(0,l.Z)(ie,2),le=oe[0],Fe=oe[1],Se=(0,i.useState)([]),de=(0,l.Z)(Se,2),ee=de[0],We=de[1],Ce=(0,i.useState)(""),ce=(0,l.Z)(Ce,2),te=ce[0],Y=ce[1],pe=(0,i.useState)(""),me=(0,l.Z)(pe,2),ae=me[0],re=me[1],be=(0,i.useRef)(null),je=(0,i.useRef)(null),fe=function(){a.values.membersList!=null&&(w(a.values.membersList.map(function(v){return v.id})),b(a.values.membersList))};(0,i.useEffect)(function(){fe(),console.log("props.typeListData",a.typeListData),Fe(a.typeListData),We(a.uintListData)},[o,a.typeListData,a.uintListData]);var De=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"key",hideInSearch:!0,hideInTable:!0},{title:"\u6761\u7801",dataIndex:"code",width:"30%",formItemProps:{rules:[{required:!0,whitespace:!0,message:"\u7269\u6599\u7F16\u7801"},{max:8,whitespace:!0,message:"\u6700\u957F\u4E3A 8 \u4F4D"},{min:4,whitespace:!0,message:"\u6700\u5C0F\u4E3A 4 \u4F4D"}]}},{title:"\u5305\u88C5\u5355\u4F4D",key:"packUnit",dataIndex:"packUnit",valueType:"select",fieldProps:{options:a.uintListData},formItemProps:{rules:[{required:!0,whitespace:!0,message:"\u5305\u88C5\u5355\u4F4D"}]}},{title:"\u6BD4\u4F8B",dataIndex:"proportion",valueType:"digit",formItemProps:{rules:[{required:!0,whitespace:!0,message:"\u6362\u7B97\u6BD4\u4F8B"}]}},{title:"\u64CD\u4F5C",valueType:"option",width:250}],Te=function(v){Y(v.target.value)},Ie=function(v){re(v.target.value)},he=function(v){v.preventDefault(),Y("");var x={name:te};L.addbatchingtype(x).then(function(j){j.succeeded?(f.default.success("\u6DFB\u52A0\u6210\u529F"),a.initTypeList()):f.default.error(j.errors)})},Ae=function(v){v.preventDefault(),re("");var x={name:ae};L.addbatchinguint(x).then(function(j){j.succeeded?(a.initUintList(),f.default.success("\u6DFB\u52A0\u6210\u529F")):f.default.error(j.errors)})};return(0,t.jsx)(Ke.Z,{destroyOnClose:!0,title:a.values.id?"\u7F16\u8F91\u7269\u6599":"\u65B0\u5EFA\u7269\u6599",width:1e3,visible:o,onCancel:function(){return C()},footer:null,maskClosable:!1,children:(0,t.jsxs)(Ye.ZP,{layout:"horizontal",hideRequiredMark:!0,formRef:n,initialValues:a.values,onFinish:a.onFinish,children:[(0,t.jsxs)(ve.Z,{gutter:16,children:[(0,t.jsx)(I.Z,{lg:8,md:12,sm:24,children:(0,t.jsx)(q.Z,{label:E.code,name:"code",rules:[{required:!0,max:50}],placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u7F16\u7801",onChange:function(v){K(v.target.value)}})}),(0,t.jsxs)(I.Z,{lg:8,md:12,sm:24,children:[(0,t.jsx)(q.Z,{name:"id",hidden:!0}),(0,t.jsx)(q.Z,{label:E.name,name:"name",rules:[{required:!0,max:50}],placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u540D\u79F0"})]}),(0,t.jsx)(I.Z,{lg:8,md:12,sm:24,children:(0,t.jsx)(q.Z,{label:E.specs,name:"specs",rules:[{required:!0,max:500}],placeholder:"\u8BF7\u8F93\u5165\u89C4\u683C\u578B\u53F7"})})]}),(0,t.jsxs)(ve.Z,{gutter:16,children:[(0,t.jsx)(I.Z,{lg:8,md:12,sm:24,children:(0,t.jsx)(se,{label:E.aittribute,name:"aittribute",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6599\u5C5E\u6027"}],options:[{value:"0",label:"\u6210\u54C1"},{value:"1",label:"\u534A\u6210\u54C1"},{value:"2",label:"\u6613\u8017\u54C1"}],placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u5C5E\u6027"})}),(0,t.jsx)(I.Z,{lg:8,md:12,sm:24,children:(0,t.jsx)(Pe,{label:E.price,name:"price",placeholder:"\u8BF7\u8F93\u5165\u6210\u672C\u4EF7",min:1})}),(0,t.jsx)(I.Z,{lg:8,md:12,sm:24,children:(0,t.jsx)(Pe,{label:E.netrecovery,name:"netrecovery",min:1,max:100,placeholder:"\u8BF7\u8F93\u5165\u51C0\u6599\u7387"})})]}),(0,t.jsxs)(ve.Z,{gutter:16,children:[(0,t.jsx)(I.Z,{lg:8,md:12,sm:24,children:(0,t.jsx)(se,{label:E.typeID,name:"typeID",style:{width:235},placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u7C7B\u522B",fieldProps:{dropdownRender:function(v){return(0,t.jsxs)(t.Fragment,{children:[v,(0,t.jsx)(Re.Z,{style:{margin:"8px 0"}}),(0,t.jsxs)(Le.Z,{style:{padding:"0 8px 4px"},children:[(0,t.jsx)(Ee.Z,{placeholder:"\u8BF7\u8F93\u5165\u7269\u6599\u7C7B\u522B",ref:be,value:te,onChange:Te,onKeyDown:function(j){return j.stopPropagation()}}),(0,t.jsx)(U.Z,{type:"text",icon:(0,t.jsx)(T.Z,{}),onClick:he,children:"\u6DFB\u52A0"})]})]})}},options:le})}),(0,t.jsx)(I.Z,{lg:8,md:12,sm:24,children:(0,t.jsx)(se,{label:E.stockUint,name:"stockUint",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5355\u4F4D"}],style:{width:235},placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u5355\u4F4D",fieldProps:{dropdownRender:function(v){return(0,t.jsxs)(t.Fragment,{children:[v,(0,t.jsx)(Re.Z,{style:{margin:"8px 0"}}),(0,t.jsxs)(Le.Z,{style:{padding:"0 8px 4px"},children:[(0,t.jsx)(Ee.Z,{placeholder:"\u8BF7\u8F93\u5165\u7269\u6599\u5355\u4F4D",ref:je,value:ae,onChange:Ie,onKeyDown:function(j){return j.stopPropagation()}}),(0,t.jsx)(U.Z,{type:"text",icon:(0,t.jsx)(T.Z,{}),onClick:Ae,children:"\u6DFB\u52A0"})]})]})}},options:ee})}),(0,t.jsx)(I.Z,{lg:8,md:12,sm:24,children:(0,t.jsx)(se,{label:E.OutstockUint,name:"outstockUint",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u51FA\u5E93\u5355\u4F4D"}],request:(0,F.Z)((0,d.Z)().mark(function P(){return(0,d.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",ee);case 1:case"end":return x.stop()}},P)})),placeholder:"\u8BF7\u9009\u62E9\u51FA\u5E93\u5355\u4F4D"})}),(0,t.jsx)(I.Z,{lg:8,md:12,sm:24,children:(0,t.jsx)(Pe,{label:E.proportion,name:"proportion",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u5165\u5E93\u6362\u7B97\u6BD4\u4F8B"}],placeholder:"\u8BF7\u8F93\u5165\u6362\u7B97\u6BD4\u4F8B"})}),(0,t.jsx)(I.Z,{lg:8,md:12,sm:24,children:(0,t.jsx)(q.Z,{label:E.foreignKeyRe,name:"foreignKeyRe",placeholder:"\u8BF7\u8F93\u5165\u5173\u8054\u5916\u952E"})})]})]})})},Je=Xe,qe=r(83341),_e=function(){var s=(0,F.Z)((0,d.Z)().mark(function a(o){return(0,d.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,L.add(o).then(function(y){y.data?f.default.success("\u6DFB\u52A0\u6210\u529F"):f.default.error(e.error)});case 3:return n.abrupt("return",!0);case 6:return n.prev=6,n.t0=n.catch(0),f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),n.abrupt("return",!1);case 10:case"end":return n.stop()}},a,null,[[0,6]])}));return function(o){return s.apply(this,arguments)}}(),et=function(){var s=(0,F.Z)((0,d.Z)().mark(function a(o){return(0,d.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,L.update(o).then(function(y){y.data?f.default.success("\u4FEE\u6539\u6210\u529F"):f.default.error(e.error)});case 3:return n.abrupt("return",!0);case 6:return n.prev=6,n.t0=n.catch(0),f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),n.abrupt("return",!1);case 10:case"end":return n.stop()}},a,null,[[0,6]])}));return function(o){return s.apply(this,arguments)}}(),tt=function(){var s=(0,F.Z)((0,d.Z)().mark(function a(o){return(0,d.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(o){n.next=2;break}return n.abrupt("return",!0);case 2:return n.prev=2,n.next=5,L.removeProduct(o.map(function(y){return y.id})).then(function(y){if(y.data)return f.default.success("\u5220\u9664\u6210\u529F"),!0;f.default.error(e.error)});case 5:return n.abrupt("return",!0);case 8:return n.prev=8,n.t0=n.catch(2),f.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),n.abrupt("return",!1);case 12:case"end":return n.stop()}},a,null,[[2,8]])}));return function(o){return s.apply(this,arguments)}}(),at=function(){var a=(0,i.useState)(),o=(0,l.Z)(a,2),C=o[0],n=o[1],y=(0,i.useState)({}),R=(0,l.Z)(y,2),O=R[0],w=R[1],$=(0,i.useState)(),A=(0,l.Z)($,2),N=A[0],K=A[1],M=(0,i.useRef)(),ue=(0,i.useState)(),xe=(0,l.Z)(ue,2),b=xe[0],ie=xe[1],oe=(0,i.useState)([]),le=(0,l.Z)(oe,2),Fe=le[0],Se=le[1],de=(0,i.useState)([]),ee=(0,l.Z)(de,2),We=ee[0],Ce=ee[1],ce=(0,i.useState)(),te=(0,l.Z)(ce,2),Y=te[0],pe=te[1],me=(0,i.useState)(),ae=(0,l.Z)(me,2),re=ae[0],be=ae[1],je=(0,i.useState)(),fe=(0,l.Z)(je,2),De=fe[0],Te=fe[1],Ie=(0,i.useState)(""),he=(0,l.Z)(Ie,2),Ae=he[0],P=he[1];(0,i.useEffect)(function(){v(),x();function g(){L.GetDicList("BatchingType").then(function(c){var u=c.data,p={};if(c.succeeded){var m=[];u.forEach(function(h){p[h.code]={text:h.remark},m.push({batchingType:h.code,text:h.remark,value:h.code,label:h.remark})}),Ce(p),Se(m)}})}g()},[]);var v=function(){var g=(0,F.Z)((0,d.Z)().mark(function c(u){var p,m;return(0,d.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,L.getUintList();case 2:p=Z.sent,m=[],p.data.length>0&&p.data.forEach(function(D){m.push({stockuint:D.id,text:D.name,value:D.id,label:D.name})}),be(m);case 6:case"end":return Z.stop()}},c)}));return function(u){return g.apply(this,arguments)}}(),x=function(){var g=(0,F.Z)((0,d.Z)().mark(function c(u){var p,m;return(0,d.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,L.getTypeList();case 2:p=Z.sent,m=[],p.data.length>0&&p.data.forEach(function(D){m.push({typeid:D.id,text:D.name,value:D.id,label:D.name})}),Te(m);case 6:case"end":return Z.stop()}},c)}));return function(u){return g.apply(this,arguments)}}(),j=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"key",hideInSearch:!0,hideInTable:!0,render:function(c,u){return(0,t.jsx)("a",{onClick:function(){ie(u),K(!0)},children:c})}},{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:De}},{title:"\u5E93\u5B58\u5355\u4F4D",dataIndex:"stockUint",valueType:"select",fieldProps:{options:re}},{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",fixed:"right",width:350,render:function(c,u){return[(0,t.jsxs)("a",{onClick:function(){n(!0),w(u)},children:[" ","\u66F4\u65B0"]}),(0,t.jsxs)("a",{onClick:function(){var m={id:u.id,status:u.status==0?1:0};L.updateStatus(m).then(function(h){h.succeeded?(f.default.success("\u64CD\u4F5C\u6210\u529F"),M.current.reload()):f.default.error(e.error)})},children:[" ",u.status==0?"\u7981\u7528":"\u542F\u7528"]},"primary"),(0,t.jsx)(H.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){L.removeProduct([u.id]).then(function(m){m.succeeded?(f.default.success("\u5220\u9664\u6210\u529F"),M.current.reload()):f.default.error(e.error)})},onCancel:function(){},children:(0,t.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,t.jsxs)(X.ZP,{ost:!0,header:{title:"",breadcrumb:{}},children:[(0,t.jsx)(Me.ZP,{headerTitle:"\u7269\u6599\u5217\u8868",actionRef:M,rowKey:"id",pagination:{defaultPageSize:10},search:{labelWidth:120},toolBarRender:function(){return[(0,t.jsxs)(U.Z,{type:"primary",onClick:function(){var u={code:(0,qe.O)(4)};w(u),n(!0)},children:[(0,t.jsx)(T.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var g=(0,F.Z)((0,d.Z)().mark(function c(u){var p,m;return(0,d.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return p=[],m=0,Z.next=4,L.getpage(u).then(function(D){p=D.data.data,m=D.data.total});case 4:return Z.abrupt("return",{data:p,success:!0,total:m});case 5:case"end":return Z.stop()}},c)}));return function(c){return g.apply(this,arguments)}}(),columns:j,rowSelection:{onChange:function(c,u){pe(u)}}}),(Y==null?void 0:Y.length)>0&&(0,t.jsx)(J.Z,{extra:(0,t.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,t.jsx)("a",{style:{fontWeight:600},children:Y.length})," ","\u9879 \xA0\xA0"]}),children:(0,t.jsx)(U.Z,{type:"primary",onClick:(0,F.Z)((0,d.Z)().mark(function g(){var c,u;return(0,d.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,tt(Y);case 2:pe([]),(c=M.current)===null||c===void 0||(u=c.reloadAndRest)===null||u===void 0||u.call(c);case 4:case"end":return m.stop()}},g)})),children:"\u6279\u91CF\u5220\u9664"})}),(0,t.jsx)(Je,{dicData:Fe,uintListData:re,typeListData:De,initUintList:v,initTypeList:x,onFinish:function(){var g=(0,F.Z)((0,d.Z)().mark(function c(u){var p;return(0,d.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(p=!1,console.log("value",u),w({}),!u.id){h.next=9;break}return h.next=6,et(u);case 6:p=h.sent,h.next=12;break;case 9:return h.next=11,_e(u);case 11:p=h.sent;case 12:p&&(n(!1),M.current&&M.current.reload()),M.current.reload();case 14:case"end":return h.stop()}},c)}));return function(c){return g.apply(this,arguments)}}(),onCancel:function(){n(!1),w({})},modalVisible:C,values:O||{}}),(0,t.jsx)(B.Z,{width:600,visible:N,onClose:function(){ie(void 0),K(!1)},closable:!1,children:(b==null?void 0:b.name)&&(0,t.jsx)(Oe.ZP,{column:2,title:b==null?void 0:b.name,request:(0,F.Z)((0,d.Z)().mark(function g(){return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",{data:b||{}});case 1:case"end":return u.stop()}},g)})),params:{id:b==null?void 0:b.name},columns:j})})]})},rt=at}}]);
|