包含后厨 团餐 门店分支
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 line
14 KiB

  1. (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<A;B++)$+=D.charAt(Math.floor(Math.random()*w));for(var _=0;_<A;_++)$+=K.charAt(Math.floor(Math.random()*I));return $.toUpperCase()}},86357:function(q,L,e){"use strict";e.r(L),e.d(L,{default:function(){return We}});var y=e(71194),A=e(50146),D=e(49111),w=e(19650),K=e(62350),I=e(24565),$=e(47673),B=e(4107),_=e(57338),Y=e(83107),ce=e(57663),F=e(71577),he=e(58024),H=e(91894),Ae=e(32157),N=e(7573),v=e(2824),p=e(39428),n=e(11849),g=e(34792),f=e(48086),a=e(3182),G=e(49101),S=e(67294),Ce=e(28790),je=e(85224),Be=e(16894),Fe=e(12826),Qe=e(77883),Ee=e(21888),Xe=e(62999),be=e(85733),qe=e(43358),ne=e(34041),_e=e(9715),T=e(55843),et=e(16890),t=e(85893),xe=ne.Z.Option,J,tt=function(l){var m=useState(null),o=_slicedToArray(m,2),u=o[0],c=o[1],r=useState(null),ee=_slicedToArray(r,2),Q=ee[0],z=ee[1],X=useState([]),U=_slicedToArray(X,2),E=U[0],ue=U[1],te=useState(null),se=_slicedToArray(te,2),le=se[0],ie=se[1],ae=function(){le?l.handleOk(le):_message.error("\u8BF7\u9009\u62E9\u5E97\u94FA\u5730\u5740")},oe=function(Z){if(Z&&u){u.clearOverlays();var s=E.find(function(P){return P.uid===Z});if(s){ie(s);var x=new BMapGL.Point(s.point.lng,s.point.lat);u.centerAndZoom(x,16);var R=new BMapGL.Marker(x);u.addOverlay(R);var re=new BMapGL.InfoWindow(s.address,{width:200,height:100,title:s.title,message:s.address});R.addEventListener("click",function(){u.openInfoWindow(re,x)})}}},de=function(Z){if(J&&(clearTimeout(J),J=null),u)if(Q===null){var s=new BMapGL.LocalSearch(u,{onSearchComplete:function(R){R&&ue(JSON.parse(JSON.stringify(R._pois)))}});J=setTimeout(function(){s.search(Z)},300),z(s)}else J=setTimeout(function(){Q.search(Z)},300)},k=function(){var Z=new BMapGL.Map("baidu_map_container");Z.enableScrollWheelZoom(!0),Z.setHeading(64.5),Z.setTilt(73);var s=new BMapGL.LocalCity;s.get(function(x){x&&Z.centerAndZoom(new BMapGL.Point(x.center.lng,x.center.lat),12)}),c(Z)};return useEffect(function(){k()},[]),_jsx(_Fragment,{children:_jsxs(_Modal,{width:800,title:"\u9009\u62E9\u5E97\u94FA\u5750\u6807",visible:l.isShowBaiduMap,onOk:ae,onCancel:l.handleCancel,children:[_jsx(_Select,{showSearch:!0,placeholder:"\u8BF7\u8F93\u5165\u5730\u5740",onChange:oe,onSearch:de,defaultActiveFirstOption:!1,showArrow:!1,filterOption:!1,notFoundContent:null,style:{width:"100%",marginBottom:"10px"},size:"large",children:E==null?void 0:E.map(function(b){return _jsxs(xe,{value:b.uid,children:[b.title," \u3010",b.address,"\u3011"]},b.uid)})}),_jsx("div",{id:"baidu_map_container",style:{width:"750px",height:"500px"}})]})})},at=null,Me=function(l){var m=B.Z.TextArea,o=T.Z.useForm(),u=(0,v.Z)(o,1),c=u[0],r=ne.Z.Option,ee=ne.Z.OptGroup,Q=(0,S.useState)(!1),z=(0,v.Z)(Q,2),X=z[0],U=z[1];return(0,t.jsx)(A.Z,{title:l.values.id?"\u7F16\u8F91\u673A\u6784":"\u65B0\u5EFA\u673A\u6784",width:640,visible:l.modalVisible,bodyStyle:{padding:"32px 40px 1px 48px"},footer:null,onCancel:function(){l.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(T.Z,{form:c,layout:"horizontal",preserve:!1,labelCol:{span:4},initialValues:l.values,onFinish:l.onFinish,children:[(0,t.jsx)(T.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(B.Z,{})}),(0,t.jsx)(T.Z.Item,{name:"pid",label:"\u4E0A\u7EA7\u540D\u79F0",rules:[{required:!0}],children:(0,t.jsx)(be.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:l.treeDatas,placeholder:"\u8BF7\u9009\u62E9\u4E0A\u7EA7\u540D\u79F0",treeDefaultExpandAll:!0})}),(0,t.jsx)(T.Z.Item,{name:"name",label:"\u673A\u6784\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,t.jsx)(B.Z,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"})}),(0,t.jsx)(T.Z.Item,{name:"tel",label:"\u7535\u8BDD",rules:[{max:20}],children:(0,t.jsx)(B.Z,{placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD"})}),(0,t.jsx)(T.Z.Item,{name:"sort",label:"\u6392\u5E8F",children:(0,t.jsx)(Ee.Z,{min:1,step:1})}),(0,t.jsx)(T.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,t.jsx)(m,{rows:4,rules:[{max:500}]})}),(0,t.jsxs)(T.Z.Item,{children:[(0,t.jsx)(F.Z,{htmlType:"button",style:{float:"right",left:10},onClick:l.onCancel,children:"\u53D6\u6D88"}),(0,t.jsx)(F.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})]})]})})},De=Me,V=e(20173),we=e(48971),Te=e(83341),Oe=function(){var O=(0,a.Z)((0,p.Z)().mark(function l(m){var o,u;return(0,p.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=f.default.loading("\u6B63\u5728\u6DFB\u52A0"),r.prev=1,r.next=4,(0,V.IH)((0,n.Z)({},m));case 4:if(u=r.sent,u.succeeded){r.next=9;break}return f.default.error(u.errors),o(),r.abrupt("return",!1);case 9:return o(),f.default.success("\u6DFB\u52A0\u6210\u529F"),r.abrupt("return",!0);case 14:return r.prev=14,r.t0=r.catch(1),o(),f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 19:case"end":return r.stop()}},l,null,[[1,14]])}));return function(m){return O.apply(this,arguments)}}(),Pe=function(){var O=(0,a.Z)((0,p.Z)().mark(function l(m){var o,u;return(0,p.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=f.default.loading("\u6B63\u5728\u914D\u7F6E"),r.prev=1,r.next=4,(0,V.eP)((0,n.Z)({},m));case 4:if(u=r.sent,u.succeeded){r.next=9;break}return f.default.error(u.errors),o(),r.abrupt("return",!1);case 9:return o(),f.default.success("\u4FEE\u6539\u6210\u529F"),r.abrupt("return",!0);case 14:return r.prev=14,r.t0=r.catch(1),o(),f.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 19:case"end":return r.stop()}},l,null,[[1,14]])}));return function(m){return O.apply(this,arguments)}}(),Ie=function(){var O=(0,a.Z)((0,p.Z)().mark(function l(m){var o;return(0,p.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(o=f.default.loading("\u6B63\u5728\u5220\u9664"),m){c.next=3;break}return c.abrupt("return",!0);case 3:return c.prev=3,c.next=6,(0,V.mm)({key:m.map(function(r){return r.key})});case 6:return o(),f.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),c.abrupt("return",!0);case 11:return c.prev=11,c.t0=c.catch(3),o(),f.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),c.abrupt("return",!1);case 16:case"end":return c.stop()}},l,null,[[3,11]])}));return function(m){return O.apply(this,arguments)}}(),Re=function(){var l=(0,S.useState)(),m=(0,v.Z)(l,2),o=m[0],u=m[1],c=(0,S.useState)(),r=(0,v.Z)(c,2),ee=r[0],Q=r[1],z=(0,S.useState)({}),X=(0,v.Z)(z,2),U=X[0],E=X[1],ue=(0,S.useState)(),te=(0,v.Z)(ue,2),se=te[0],le=te[1],ie=(0,S.useState)(),ae=(0,v.Z)(ie,2),oe=ae[0],de=ae[1],k=(0,S.useRef)(),b=(0,S.useState)(),Z=(0,v.Z)(b,2),s=Z[0],x=Z[1],R=(0,S.useState)(),re=(0,v.Z)(R,2),P=re[0],Le=re[1],$e=(0,S.useState)(),pe=(0,v.Z)($e,2),fe=pe[0],me=pe[1],Ge=(0,S.useState)(),ve=(0,v.Z)(Ge,2),Ve=ve[0],ze=ve[1],Ue=(0,S.useState)(!1),ge=(0,v.Z)(Ue,2),ke=ge[0],Ke=ge[1],Ye=(0,S.useState)(""),Se=(0,v.Z)(Ye,2),He=Se[0],rt=Se[1],Ze=[{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(d,i){var C=(0,t.jsx)("a",{},"primary");return i.type>=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)}}}]);