(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6442],{97742:function(ee){ee.exports={store_config_container:"store_config_container___2LSwE",choose_store_state:"choose_store_state___36VpX",add_row_content:"add_row_content___LoP14",add_row_btn:"add_row_btn___3o2fm"}},83341:function(ee,V,t){"use strict";t.d(V,{O:function(){return g}});function g(F){F=F||32;for(var M="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz",S=M.length,H="012345678",R=H.length,k="",O=0;O=2&&(x=(0,e.jsx)("a",{onClick:function(){Fe.m8.push({pathname:"/sys/storemanage",query:{isAdd:!1,values:i.id}})},children:"\u5E97\u94FA\u7BA1\u7406"},"primary2")),[(0,e.jsxs)("a",{onClick:function(){w(i),u(!0)},children:[" ","\u4FEE\u6539"]},"primary3"),x]}}];return(0,p.useEffect)(function(){function v(){(0,K.FM)().then(function(h){ve(h.data)})}v()},[]),(0,e.jsxs)(se.ZP,{children:[(0,e.jsx)(l.ZP,{headerTitle:"\u7EC4\u7EC7\u5217\u8868",actionRef:Y,rowKey:"id",search:{labelWidth:120},tableRender:function(h,i){return(0,e.jsxs)("div",{style:{display:"flex",width:"100%"},children:[(0,e.jsx)(R.Z,{title:"\u673A\u6784\u90E8\u95E8",children:(0,e.jsx)(O.Z,{defaultExpandAll:!0,onSelect:function(E){return Re(E[0])},treeData:me})}),(0,e.jsx)("div",{style:{flex:1},children:i})]})},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){var i={code:(0,Ae.O)(4)};w(i),u(!0)},children:[(0,e.jsx)(pe.Z,{})," \u65B0\u5EFA"]},"primary1")]},params:{Pid:Pe},request:function(){var v=(0,A.Z)((0,c.Z)().mark(function h(i){var x,E;return(0,c.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return x=[],E=0,G.next=4,(0,K.lM)(i).then(function(ge){x=ge.data.data,E=ge.data.total});case 4:return G.abrupt("return",{data:x,success:!0,total:E});case 5:case"end":return G.stop()}},h)}));return function(h){return v.apply(this,arguments)}}(),columns:ye}),(P==null?void 0:P.length)>0&&(0,e.jsxs)(N.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:P.length})," ","\u9879 \xA0\xA0",(0,e.jsxs)("span",{children:["\u670D\u52A1\u8C03\u7528\u6B21\u6570\u603B\u8BA1 ",P.reduce(function(v,h){return v+h.callNo},0)," \u4E07"]})]}),children:[(0,e.jsx)(S.Z,{onClick:(0,A.Z)((0,c.Z)().mark(function v(){var h,i;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,De(P);case 2:Oe([]),(h=Y.current)===null||h===void 0||(i=h.reloadAndRest)===null||i===void 0||i.call(h);case 4:case"end":return E.stop()}},v)})),children:"\u6279\u91CF\u5220\u9664"}),(0,e.jsx)(S.Z,{type:"primary",children:"\u6279\u91CF\u5BA1\u6279"})]}),d&&(0,e.jsx)(Ee,{treeDatas:[{key:"0",parentId:"0",title:"\u9876\u7EA7",value:"0",children:me}],onFinish:function(){var v=(0,A.Z)((0,c.Z)().mark(function h(i){var x;return(0,c.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(x=!1,!i.id){D.next=7;break}return D.next=4,be(i);case 4:x=D.sent,D.next=10;break;case 7:return D.next=9,Be(i);case 9:x=D.sent;case 10:x&&(u(!1),Y.current&&((0,K.FM)().then(function(G){ve(G.data)}),Y.current.reload()));case 11:case"end":return D.stop()}},h)}));return function(h){return v.apply(this,arguments)}}(),onCancel:function(){u(!1),w({})},modalVisible:d,values:q||{}}),(0,e.jsx)(F.Z,{width:600,visible:ce,onClose:function(){b(void 0),he(!1)},closable:!1,children:(s==null?void 0:s.name)&&(0,e.jsx)(f.ZP,{column:2,title:s==null?void 0:s.name,request:(0,A.Z)((0,c.Z)().mark(function v(){return(0,c.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",{data:s||{}});case 1:case"end":return i.stop()}},v)})),params:{id:s==null?void 0:s.name},columns:ye})})]})},we=Me},3408:function(ee,V,t){"use strict";t.d(V,{lM:function(){return H},IH:function(){return k},mm:function(){return te},eP:function(){return j},FM:function(){return se}});var g=t(39428),F=t(11849),M=t(3182),S=t(48971);function H(l,f){return R.apply(this,arguments)}function R(){return R=(0,M.Z)((0,g.Z)().mark(function l(f,L){return(0,g.Z)().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,F.Z)({},f)}));case 1:case"end":return z.stop()}},l)})),R.apply(this,arguments)}function k(l){return O.apply(this,arguments)}function O(){return O=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),O.apply(this,arguments)}function Z(l){return c.apply(this,arguments)}function c(){return c=_asyncToGenerator(_regeneratorRuntime().mark(function l(f){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},f)}));case 1:case"end":return a.stop()}},l)})),c.apply(this,arguments)}function te(l){return re.apply(this,arguments)}function re(){return re=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),re.apply(this,arguments)}function j(l){return A.apply(this,arguments)}function A(){return A=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),A.apply(this,arguments)}function pe(l){return p.apply(this,arguments)}function p(){return p=_asyncToGenerator(_regeneratorRuntime().mark(function l(f){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},f)}));case 1:case"end":return a.stop()}},l)})),p.apply(this,arguments)}function se(l){return N.apply(this,arguments)}function N(){return N=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),N.apply(this,arguments)}}}]);