(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[853],{16890:function(_){_.exports={store_config_container:"store_config_container___150vV",choose_store_state:"choose_store_state___2S_W0",add_row_content:"add_row_content___2pWgT",add_row_btn:"add_row_btn___ofAQ3"}},83341:function(_,W,e){"use strict";e.d(W,{O:function(){return y}});function y(A){A=A||32;for(var M="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz",D=M.length,N="012345678",I=N.length,$="",j=0;j=2&&(B=[(0,t.jsx)("a",{onClick:function(){De.m8.push({pathname:"/sys/storemanage",query:{isAdd:!1,values:i.id}})},children:"\u5E97\u94FA\u7BA1\u7406"},"primary2")]),[(0,t.jsxs)("a",{onClick:function(){E(i),u(!0)},children:[" ","\u4FEE\u6539"]},"primary3"),B]}}];(0,S.useEffect)(function(){function h(){(0,V.FM)().then(function(d){me(d.data)})}h()},[]);var ke=function(d){console.log(K)},Je=function(d){console.log(d)};return(0,t.jsxs)(Be.ZP,{host:!0,header:{title:"",breadcrumb:{}},children:[(0,t.jsx)(je.ZP,{headerTitle:"\u7EC4\u7EC7\u5217\u8868",actionRef:U,rowKey:"id",pagination:{defaultPageSize:10},search:{labelWidth:120},tableRender:function(d,i){return(0,t.jsxs)("div",{style:{display:"flex",width:"100%"},children:[(0,t.jsx)(H.Z,{title:"\u673A\u6784\u90E8\u95E8",children:(0,t.jsx)(k.Z,{defaultExpandAll:!0,onSelect:function(C){return ze(C[0])},treeData:fe})}),(0,t.jsx)("div",{style:{flex:1},children:i})]})},toolBarRender:function(){return[(0,t.jsxs)(F.Z,{type:"primary",onClick:function(){var i={code:(0,Te.O)(4)};E(i),u(!0)},children:[(0,t.jsx)(G.Z,{})," \u65B0\u5EFA"]},"primary1")]},params:{Pid:Ve},request:function(){var h=(0,a.Z)((0,p.Z)().mark(function d(i){var B,C;return(0,p.Z)().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return B=[],C=0,L.next=4,(0,V.lM)(i).then(function(ye){B=ye.data.data,C=ye.data.total});case 4:return L.abrupt("return",{data:B,success:!0,total:C});case 5:case"end":return L.stop()}},d)}));return function(d){return h.apply(this,arguments)}}(),columns:Ze}),(P==null?void 0:P.length)>0&&(0,t.jsxs)(Ce.Z,{extra:(0,t.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,t.jsx)("a",{style:{fontWeight:600},children:P.length})," ","\u9879 \xA0\xA0",(0,t.jsxs)("span",{children:["\u670D\u52A1\u8C03\u7528\u6B21\u6570\u603B\u8BA1 ",P.reduce(function(h,d){return h+d.callNo},0)," \u4E07"]})]}),children:[(0,t.jsx)(F.Z,{onClick:(0,a.Z)((0,p.Z)().mark(function h(){var d,i;return(0,p.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,Ie(P);case 2:We([]),(d=U.current)===null||d===void 0||(i=d.reloadAndRest)===null||i===void 0||i.call(d);case 4:case"end":return C.stop()}},h)})),children:"\u6279\u91CF\u5220\u9664"}),(0,t.jsx)(F.Z,{type:"primary",children:"\u6279\u91CF\u5BA1\u6279"})]}),o&&(0,t.jsx)(Me,{treeDatas:[{key:"0",parentId:"0",title:"\u9876\u7EA7",value:"0",children:fe}],onFinish:function(){var h=(0,a.Z)((0,p.Z)().mark(function d(i){var B;return(0,p.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(B=!1,!i.id){w.next=7;break}return w.next=4,Pe(i);case 4:B=w.sent,w.next=10;break;case 7:return w.next=9,Oe(i);case 9:B=w.sent;case 10:B&&(u(!1),U.current&&((0,V.FM)().then(function(L){me(L.data)}),U.current.reload()));case 11:case"end":return w.stop()}},d)}));return function(d){return h.apply(this,arguments)}}(),onCancel:function(){u(!1),E({})},modalVisible:o,values:K||{}}),(0,t.jsx)(Y.Z,{width:600,visible:oe,onClose:function(){x(void 0),de(!1)},closable:!1,children:(s==null?void 0:s.name)&&(0,t.jsx)(Fe.ZP,{column:2,title:s==null?void 0:s.name,request:(0,a.Z)((0,p.Z)().mark(function h(){return(0,p.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()}},h)})),params:{id:s==null?void 0:s.name},columns:Ze})}),(0,t.jsx)(A.Z,{title:"\u67E5\u770B\u6388\u6743\u7801",width:640,visible:Ue,bodyStyle:{padding:"32px 40px 40px 48px"},footer:null,onCancel:function(){E({}),Ne(!1)},destroyOnClose:!0,children:(0,t.jsxs)(D.Z.Compact,{style:{width:"100%"},children:[(0,t.jsx)(j.Z,{disabled:!0,value:He}),(0,t.jsx)(I.Z,{title:"\u786E\u8BA4\u662F\u5426\u65B0\u7684\u6388\u6743\u7801?\u65B0\u7684\u6388\u6743\u7801\u751F\u6210\u540E\u4E4B\u524D\u7684\u6388\u6743\u7801\u4F1A\u65E0\u6548\uFF0C\u8BF7\u53CA\u65F6\u901A\u77E5\u7B2C\u4E09\u65B9",description:"\u786E\u8BA4\u662F\u5426\u65B0\u7684\u6388\u6743\u7801?\u65B0\u7684\u6388\u6743\u7801\u751F\u6210\u540E\u4E4B\u524D\u7684\u6388\u6743\u7801\u4F1A\u65E0\u6548\uFF0C\u8BF7\u53CA\u65F6\u901A\u77E5\u7B2C\u4E09\u65B9",onConfirm:ke,onCancel:Je,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,t.jsx)(F.Z,{type:"primary",children:"\u751F\u6210"})})]})})]})},Le=Re},20173:function(_,W,e){"use strict";e.d(W,{lM:function(){return N},IH:function(){return $},mm:function(){return ce},eP:function(){return he},FM:function(){return v}});var y=e(39428),A=e(11849),M=e(3182),D=e(48971);function N(n,g){return I.apply(this,arguments)}function I(){return I=(0,M.Z)((0,y.Z)().mark(function n(g,f){return(0,y.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",(0,D.WY)("/saasbase/api/organize/page",{method:"POST",data:(0,A.Z)({},g)}));case 1:case"end":return G.stop()}},n)})),I.apply(this,arguments)}function $(n){return j.apply(this,arguments)}function j(){return j=(0,M.Z)((0,y.Z)().mark(function n(g){return(0,y.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,D.WY)("/saasbase/api/organize/addorg",{method:"POST",data:(0,A.Z)({},g)}));case 1:case"end":return a.stop()}},n)})),j.apply(this,arguments)}function q(n){return Y.apply(this,arguments)}function Y(){return Y=_asyncToGenerator(_regeneratorRuntime().mark(function n(g){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("\u200B/kitchen/api\u200B/organize/getorglist",{method:"POST",data:_objectSpread({},g)}));case 1:case"end":return a.stop()}},n)})),Y.apply(this,arguments)}function ce(n){return F.apply(this,arguments)}function F(){return F=(0,M.Z)((0,y.Z)().mark(function n(g){return(0,y.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,D.WY)("\u200B/kitchen/api\u200B/organize/deleteorg",{method:"POST",data:(0,A.Z)({},g)}));case 1:case"end":return a.stop()}},n)})),F.apply(this,arguments)}function he(n){return H.apply(this,arguments)}function H(){return H=(0,M.Z)((0,y.Z)().mark(function n(g){return(0,y.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,D.WY)("\u200B/saasbase/api\u200B/organize/updateorg",{method:"POST",data:(0,A.Z)({},g)}));case 1:case"end":return a.stop()}},n)})),H.apply(this,arguments)}function Ae(n){return k.apply(this,arguments)}function k(){return k=_asyncToGenerator(_regeneratorRuntime().mark(function n(g){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/saasbase/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},g)}));case 1:case"end":return a.stop()}},n)})),k.apply(this,arguments)}function v(n){return p.apply(this,arguments)}function p(){return p=(0,M.Z)((0,y.Z)().mark(function n(g){return(0,y.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,D.WY)("\u200B/saasbase/api\u200B/organize/tree",{method:"GET",data:(0,A.Z)({},g)}));case 1:case"end":return a.stop()}},n)})),p.apply(this,arguments)}}}]);