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