包含后厨 团餐 门店分支
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
15 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4853],{16890:function(X){X.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(X,V,e){"use strict";e.d(V,{O:function(){return C}});function C(A){A=A||32;for(var b="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz",D=b.length,M="012345678",T=M.length,P="",U=0;U<A;U++)P+=b.charAt(Math.floor(Math.random()*D));for(var L=0;L<A;L++)P+=M.charAt(Math.floor(Math.random()*T));return P.toUpperCase()}},86357:function(X,V,e){"use strict";e.r(V),e.d(V,{default:function(){return Ie}});var C=e(71194),A=e(50146),b=e(49111),D=e(19650),M=e(47673),T=e(4107),P=e(57338),U=e(273),L=e(57663),W=e(71577),_=e(58024),ue=e(91894),q=e(32157),se=e(7573),ee=e(62350),le=e(24565),v=e(2824),m=e(39428),z=e(11849),o=e(34792),n=e(48086),Z=e(3182),r=e(49101),h=e(67294),Ae=e(28790),je=e(85224),Be=e(16894),Fe=e(12826),Qe=e(77883),Ee=e(85986),Xe=e(62999),we=e(54680),_e=e(43358),ie=e(34041),qe=e(9715),O=e(55843),et=e(16890),t=e(85893),xe=ie.Z.Option,H,tt=function(i){var g=useState(null),d=_slicedToArray(g,2),u=d[0],c=d[1],a=useState(null),te=_slicedToArray(a,2),N=te[0],Y=te[1],J=useState([]),k=_slicedToArray(J,2),F=k[0],oe=k[1],ae=useState(null),de=_slicedToArray(ae,2),ce=de[0],he=de[1],re=function(){ce?i.handleOk(ce):_message.error("\u8BF7\u9009\u62E9\u5E97\u94FA\u5730\u5740")},fe=function(y){if(y&&u){u.clearOverlays();var s=F.find(function(I){return I.uid===y});if(s){he(s);var w=new BMapGL.Point(s.point.lng,s.point.lat);u.centerAndZoom(w,16);var G=new BMapGL.Marker(w);u.addOverlay(G);var ne=new BMapGL.InfoWindow(s.address,{width:200,height:100,title:s.title,message:s.address});G.addEventListener("click",function(){u.openInfoWindow(ne,w)})}}},pe=function(y){if(H&&(clearTimeout(H),H=null),u)if(N===null){var s=new BMapGL.LocalSearch(u,{onSearchComplete:function(G){G&&oe(JSON.parse(JSON.stringify(G._pois)))}});H=setTimeout(function(){s.search(y)},300),Y(s)}else H=setTimeout(function(){N.search(y)},300)},$=function(){var y=new BMapGL.Map("baidu_map_container");y.enableScrollWheelZoom(!0),y.setHeading(64.5),y.setTilt(73);var s=new BMapGL.LocalCity;s.get(function(w){w&&y.centerAndZoom(new BMapGL.Point(w.center.lng,w.center.lat),12)}),c(y)};return useEffect(function(){$()},[]),_jsx(_Fragment,{children:_jsxs(_Modal,{width:800,title:"\u9009\u62E9\u5E97\u94FA\u5750\u6807",visible:i.isShowBaiduMap,onOk:re,onCancel:i.handleCancel,children:[_jsx(_Select,{showSearch:!0,placeholder:"\u8BF7\u8F93\u5165\u5730\u5740",onChange:fe,onSearch:pe,defaultActiveFirstOption:!1,showArrow:!1,filterOption:!1,notFoundContent:null,style:{width:"100%",marginBottom:"10px"},size:"large",children:F==null?void 0:F.map(function(E){return _jsxs(xe,{value:E.uid,children:[E.title," \u3010",E.address,"\u3011"]},E.uid)})}),_jsx("div",{id:"baidu_map_container",style:{width:"750px",height:"500px"}})]})})},at=null,be=function(i){var g=T.Z.TextArea,d=O.Z.useForm(),u=(0,v.Z)(d,1),c=u[0],a=ie.Z.Option,te=ie.Z.OptGroup,N=(0,h.useState)(!1),Y=(0,v.Z)(N,2),J=Y[0],k=Y[1];return(0,t.jsx)(A.Z,{title:i.values.id?"\u7F16\u8F91\u673A\u6784":"\u65B0\u5EFA\u673A\u6784",width:640,visible:i.modalVisible,maskClosable:!1,bodyStyle:{padding:"32px 40px 1px 48px"},footer:null,onCancel:function(){i.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(O.Z,{form:c,layout:"horizontal",preserve:!1,labelCol:{span:4},initialValues:i.values,onFinish:i.onFinish,children:[(0,t.jsx)(O.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(T.Z,{})}),(0,t.jsx)(O.Z.Item,{name:"pid",label:"\u4E0A\u7EA7\u540D\u79F0",rules:[{required:!1}],children:(0,t.jsx)(we.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:i.treeDatas,placeholder:"\u8BF7\u9009\u62E9\u4E0A\u7EA7\u540D\u79F0",treeDefaultExpandAll:!0})}),(0,t.jsx)(O.Z.Item,{name:"name",label:"\u673A\u6784\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,t.jsx)(T.Z,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"})}),(0,t.jsx)(O.Z.Item,{name:"tel",label:"\u7535\u8BDD",rules:[{max:20}],children:(0,t.jsx)(T.Z,{placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD"})}),(0,t.jsx)(O.Z.Item,{name:"sort",label:"\u6392\u5E8F",children:(0,t.jsx)(Ee.Z,{style:{width:"100%"},min:1,step:1})}),(0,t.jsx)(O.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,t.jsx)(g,{rows:4,rules:[{max:500}]})}),(0,t.jsxs)(O.Z.Item,{children:[(0,t.jsx)(W.Z,{htmlType:"button",style:{float:"right",left:10},onClick:i.onCancel,children:"\u53D6\u6D88"}),(0,t.jsx)(W.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})]})]})})},De=be,K=e(20173),Me=e(83341),Te=function(){var R=(0,Z.Z)((0,m.Z)().mark(function i(g){var d,u;return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return d=n.default.loading("\u6B63\u5728\u6DFB\u52A0"),a.prev=1,a.next=4,(0,K.IH)((0,z.Z)({},g));case 4:if(u=a.sent,u.succeeded){a.next=9;break}return n.default.error(u.errors),d(),a.abrupt("return",!1);case 9:return d(),n.default.success("\u6DFB\u52A0\u6210\u529F"),a.abrupt("return",!0);case 14:return a.prev=14,a.t0=a.catch(1),d(),n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 19:case"end":return a.stop()}},i,null,[[1,14]])}));return function(g){return R.apply(this,arguments)}}(),Oe=function(){var R=(0,Z.Z)((0,m.Z)().mark(function i(g){var d,u;return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return d=n.default.loading("\u6B63\u5728\u914D\u7F6E"),a.prev=1,a.next=4,(0,K.eP)((0,z.Z)({},g));case 4:if(u=a.sent,u.succeeded){a.next=9;break}return n.default.error(u.errors),d(),a.abrupt("return",!1);case 9:return d(),n.default.success("\u4FEE\u6539\u6210\u529F"),a.abrupt("return",!0);case 14:return a.prev=14,a.t0=a.catch(1),d(),n.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 19:case"end":return a.stop()}},i,null,[[1,14]])}));return function(g){return R.apply(this,arguments)}}(),Pe=function(){var R=(0,Z.Z)((0,m.Z)().mark(function i(g){var d;return(0,m.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(d=n.default.loading("\u6B63\u5728\u5220\u9664"),g){c.next=3;break}return c.abrupt("return",!0);case 3:return c.prev=3,c.next=6,(0,K.mm)({key:g.map(function(a){return a.key})});case 6:return d(),n.default.success("\u5220\u9664\u6210\u529F"),c.abrupt("return",!0);case 11:return c.prev=11,c.t0=c.catch(3),d(),n.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),c.abrupt("return",!1);case 16:case"end":return c.stop()}},i,null,[[3,11]])}));return function(g){return R.apply(this,arguments)}}(),Re=function(){var i=(0,h.useState)(),g=(0,v.Z)(i,2),d=g[0],u=g[1],c=(0,h.useState)(),a=(0,v.Z)(c,2),te=a[0],N=a[1],Y=(0,h.useState)({}),J=(0,v.Z)(Y,2),k=J[0],F=J[1],oe=(0,h.useState)(),ae=(0,v.Z)(oe,2),de=ae[0],ce=ae[1],he=(0,h.useState)(),re=(0,v.Z)(he,2),fe=re[0],pe=re[1],$=(0,h.useRef)(),E=(0,h.useState)(),y=(0,v.Z)(E,2),s=y[0],w=y[1],G=(0,h.useState)(),ne=(0,v.Z)(G,2),I=ne[0],Le=ne[1],We=(0,h.useState)(),me=(0,v.Z)(We,2),ve=me[0],$e=me[1],Ge=(0,h.useState)(),ge=(0,v.Z)(Ge,2),Ve=ge[0],Ue=ge[1],ze=(0,h.useState)(!1),Ze=(0,v.Z)(ze,2),Ke=Ze[0],Ye=Ze[1],ke=(0,h.useState)(""),Se=(0,v.Z)(ke,2),He=Se[0],rt=Se[1],ye=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"key",hideInSearch:!0,hideInTable:!0},{title:"\u673A\u6784\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u7535\u8BDD",dataIndex:"tel",hideInSearch:!0},{title:"\u6392\u5E8F",dataIndex:"sort",valueType:"digit",hideInSearch:!0},{title:"\u63CF\u8FF0",dataIndex:"remark",valueType:"textarea",ellipsis:!0,hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"x",valueType:"option",fixed:"right",width:350,render:function(p,l){var j=(0,t.jsx)("a",{},"primary");return[(0,t.jsxs)("a",{onClick:function(){l.pid==0&&(l.pid=null),F(l),u(!0)},children:[" ","\u4FEE\u6539"]},"primary3"),(0,t.jsx)(le.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,Z.Z)((0,m.Z)().mark(function S(){return(0,m.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,(0,K.mm)(l.id).then(function(Q){Q.data?(n.default.success("\u5220\u9664\u6210\u529F"),Ce(),$.current.reload()):n.default.error(Q.errors)});case 2:case"end":return x.stop()}},S)})),onCancel:function(){},children:(0,t.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary11"),j]}}];(0,h.useEffect)(function(){Ce()},[]);function Ce(){(0,K.FM)().then(function(f){$e(f.data)})}var Ne=function(p){console.log(k)},Je=function(p){console.log(p)};return(0,t.jsxs)(Ae.ZP,{host:!0,header:{title:"",breadcrumb:{}},children:[(0,t.jsx)(Be.ZP,{headerTitle:"\u7EC4\u7EC7\u5217\u8868",actionRef:$,rowKey:"id",pagination:{defaultPageSize:10},search:{labelWidth:120},tableRender:function(p,l){return(0,t.jsxs)("div",{style:{display:"flex",width:"100%"},children:[(0,t.jsx)(ue.Z,{title:"\u673A\u6784\u90E8\u95E8",children:(0,t.jsx)(se.Z,{defaultExpandAll:!0,onSelect:function(S){return Ue(S[0])},treeData:ve})}),(0,t.jsx)("div",{style:{flex:1},children:l})]})},toolBarRender:function(){return[(0,t.jsxs)(W.Z,{type:"primary",onClick:function(){var l={code:(0,Me.O)(4)};F(l),u(!0)},children:[(0,t.jsx)(r.Z,{})," \u65B0\u5EFA"]},"primary1")]},params:{Pid:Ve},request:function(){var f=(0,Z.Z)((0,m.Z)().mark(function p(l){var j,S;return(0,m.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return j=[],S=0,x.next=4,(0,K.lM)(l).then(function(Q){j=Q.data.data,S=Q.data.total});case 4:return x.abrupt("return",{data:j,success:!0,total:S});case 5:case"end":return x.stop()}},p)}));return function(p){return f.apply(this,arguments)}}(),columns:ye}),(I==null?void 0:I.length)>0&&(0,t.jsxs)(je.Z,{extra:(0,t.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,t.jsx)("a",{style:{fontWeight:600},children:I.length})," ","\u9879 \xA0\xA0",(0,t.jsxs)("span",{children:["\u670D\u52A1\u8C03\u7528\u6B21\u6570\u603B\u8BA1 ",I.reduce(function(f,p){return f+p.callNo},0)," \u4E07"]})]}),children:[(0,t.jsx)(W.Z,{onClick:(0,Z.Z)((0,m.Z)().mark(function f(){var p,l;return(0,m.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,Pe(I);case 2:Le([]),(p=$.current)===null||p===void 0||(l=p.reloadAndRest)===null||l===void 0||l.call(p);case 4:case"end":return S.stop()}},f)})),children:"\u6279\u91CF\u5220\u9664"}),(0,t.jsx)(W.Z,{type:"primary",children:"\u6279\u91CF\u5BA1\u6279"})]}),d&&(0,t.jsx)(De,{treeDatas:ve,onFinish:function(){var f=(0,Z.Z)((0,m.Z)().mark(function p(l){var j;return(0,m.Z)().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(j=!1,!l.id){B.next=7;break}return B.next=4,Oe(l);case 4:j=B.sent,B.next=10;break;case 7:return B.next=9,Te(l);case 9:j=B.sent;case 10:j&&(u(!1),$.current&&$.current.reload());case 11:case"end":return B.stop()}},p)}));return function(p){return f.apply(this,arguments)}}(),onCancel:function(){u(!1),F({})},modalVisible:d,values:k||{}}),(0,t.jsx)(U.Z,{width:600,visible:fe,onClose:function(){w(void 0),pe(!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,Z.Z)((0,m.Z)().mark(function f(){return(0,m.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",{data:s||{}});case 1:case"end":return l.stop()}},f)})),params:{id:s==null?void 0:s.name},columns:ye})}),(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(){F({}),Ye(!1)},destroyOnClose:!0,children:(0,t.jsxs)(D.Z.Compact,{style:{width:"100%"},children:[(0,t.jsx)(T.Z,{disabled:!0,value:He}),(0,t.jsx)(le.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)(W.Z,{type:"primary",children:"\u751F\u6210"})})]})})]})},Ie=Re},20173:function(X,V,e){"use strict";e.d(V,{lM:function(){return T},IH:function(){return U},mm:function(){return ue},eP:function(){return se},FM:function(){return m}});var C=e(39428),A=e(11849),b=e(3182),D=e(48971),M=e(96690);function T(o,n){return P.apply(this,arguments)}function P(){return P=(0,b.Z)((0,C.Z)().mark(function o(n,Z){return(0,C.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,D.WY)((0,M.w)()+"/api/organize/page",{method:"POST",data:(0,A.Z)({},n)}));case 1:case"end":return h.stop()}},o)})),P.apply(this,arguments)}function U(o){return L.apply(this,arguments)}function L(){return L=(0,b.Z)((0,C.Z)().mark(function o(n){return(0,C.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,D.WY)((0,M.w)()+"/api/organize/addorg",{method:"POST",data:(0,A.Z)({},n)}));case 1:case"end":return r.stop()}},o)})),L.apply(this,arguments)}function W(o){return _.apply(this,arguments)}function _(){return _=_asyncToGenerator(_regeneratorRuntime().mark(function o(n){return _regeneratorRuntime().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",request(getDataBaseUrl()+"\u200B/api\u200B/organize/getorglist",{method:"POST",data:_objectSpread({},n)}));case 1:case"end":return r.stop()}},o)})),_.apply(this,arguments)}function ue(o){return q.apply(this,arguments)}function q(){return q=(0,b.Z)((0,C.Z)().mark(function o(n){return(0,C.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,D.WY)((0,M.w)()+"\u200B/api\u200B/organize/deleteorg?id="+n,{method:"GET"}));case 1:case"end":return r.stop()}},o)})),q.apply(this,arguments)}function se(o){return ee.apply(this,arguments)}function ee(){return ee=(0,b.Z)((0,C.Z)().mark(function o(n){return(0,C.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,D.WY)((0,M.w)()+"\u200B/api\u200B/organize/updateorg",{method:"POST",data:(0,A.Z)({},n)}));case 1:case"end":return r.stop()}},o)})),ee.apply(this,arguments)}function le(o){return v.apply(this,arguments)}function v(){return v=_asyncToGenerator(_regeneratorRuntime().mark(function o(n){return _regeneratorRuntime().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",request(getDataBaseUrl()+"/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},n)}));case 1:case"end":return r.stop()}},o)})),v.apply(this,arguments)}function m(o){return z.apply(this,arguments)}function z(){return z=(0,b.Z)((0,C.Z)().mark(function o(n){return(0,C.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,D.WY)((0,M.w)()+"\u200B/api\u200B/organize/tree",{method:"GET",data:(0,A.Z)({},n)}));case 1:case"end":return r.stop()}},o)})),z.apply(this,arguments)}}}]);