(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4853],{16890:function(q){q.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(q,L,e){"use strict";e.d(L,{O:function(){return y}});function y(A){A=A||32;for(var D="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz",w=D.length,K="012345678",I=K.length,$="",B=0;B=2&&(C=[(0,t.jsx)("a",{onClick:function(){we.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"),C]}}];(0,S.useEffect)(function(){function h(){(0,V.FM)().then(function(d){me(d.data)})}h()},[]);var Ne=function(d){console.log(U)},Je=function(d){console.log(d)};return(0,t.jsxs)(Ce.ZP,{host:!0,header:{title:"",breadcrumb:{}},children:[(0,t.jsx)(Be.ZP,{headerTitle:"\u7EC4\u7EC7\u5217\u8868",actionRef:k,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)(N.Z,{defaultExpandAll:!0,onSelect:function(j){return ze(j[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 C,j;return(0,p.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return C=[],j=0,W.next=4,(0,V.lM)(i).then(function(ye){C=ye.data.data,j=ye.data.total});case 4:return W.abrupt("return",{data:C,success:!0,total:j});case 5:case"end":return W.stop()}},d)}));return function(d){return h.apply(this,arguments)}}(),columns:Ze}),(P==null?void 0:P.length)>0&&(0,t.jsxs)(je.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(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,Ie(P);case 2:Le([]),(d=k.current)===null||d===void 0||(i=d.reloadAndRest)===null||i===void 0||i.call(d);case 4:case"end":return j.stop()}},h)})),children:"\u6279\u91CF\u5220\u9664"}),(0,t.jsx)(F.Z,{type:"primary",children:"\u6279\u91CF\u5BA1\u6279"})]}),o&&(0,t.jsx)(De,{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 C;return(0,p.Z)().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(C=!1,!i.id){M.next=7;break}return M.next=4,Pe(i);case 4:C=M.sent,M.next=10;break;case 7:return M.next=9,Oe(i);case 9:C=M.sent;case 10:C&&(u(!1),k.current&&((0,V.FM)().then(function(W){me(W.data)}),k.current.reload()));case 11:case"end":return M.stop()}},d)}));return function(d){return h.apply(this,arguments)}}(),onCancel:function(){u(!1),E({})},modalVisible:o,values:U||{}}),(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:ke,bodyStyle:{padding:"32px 40px 40px 48px"},footer:null,onCancel:function(){E({}),Ke(!1)},destroyOnClose:!0,children:(0,t.jsxs)(w.Z.Compact,{style:{width:"100%"},children:[(0,t.jsx)(B.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:Ne,onCancel:Je,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,t.jsx)(F.Z,{type:"primary",children:"\u751F\u6210"})})]})})]})},We=Re},20173:function(q,L,e){"use strict";e.d(L,{lM:function(){return K},IH:function(){return $},mm:function(){return ce},eP:function(){return he},FM:function(){return v}});var y=e(39428),A=e(11849),D=e(3182),w=e(48971);function K(n,g){return I.apply(this,arguments)}function I(){return I=(0,D.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,w.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 B.apply(this,arguments)}function B(){return B=(0,D.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,w.WY)("/saasbase/api/organize/addorg",{method:"POST",data:(0,A.Z)({},g)}));case 1:case"end":return a.stop()}},n)})),B.apply(this,arguments)}function _(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,D.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,w.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,D.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,w.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 N.apply(this,arguments)}function N(){return N=_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)})),N.apply(this,arguments)}function v(n){return p.apply(this,arguments)}function p(){return p=(0,D.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,w.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)}}}]);