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

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9610],{28931:function(S){S.exports={table_search_item:"table_search_item___1X2J-",edit_image_item:"edit_image_item___3d_ei",edit_image_prev:"edit_image_prev___2Ve3Y"}},76089:function(S,h,e){"use strict";e.r(h);var O=e(71194),d=e(50146),o=e(47673),_=e(4107),s=e(57663),C=e(71577),ie=e(58024),x=e(91894),ue=e(43358),Z=e(34041),E=e(39428),_e=e(34792),f=e(48086),A=e(3182),le=e(62350),F=e(24565),de=e(9715),p=e(55843),P=e(2824),K=e(16894),b=e(28790),z=e(49101),m=e(67294),D=e(73999),Y=e(28931),G=e.n(Y),t=e(85893),$=function(){var v=(0,m.useRef)(),V=(0,m.useState)(!1),W=(0,P.Z)(V,2),N=W[0],M=W[1],J=p.Z.useForm(),X=(0,P.Z)(J,1),B=X[0],H=(0,m.useState)([]),R=(0,P.Z)(H,2),T=R[0],Q=R[1],k=(0,m.useState)(1),I=(0,P.Z)(k,2),ce=I[0],me=I[1],w=(0,m.useState)(10),L=(0,P.Z)(w,2),Ee=L[0],fe=L[1],q=(0,m.useState)(0),U=(0,P.Z)(q,2),pe=U[0],Pe=U[1],ee=(0,m.useState)(""),j=(0,P.Z)(ee,2),g=j[0],y=j[1],te=[{title:"\u9875\u9762\u540D\u79F0",dataIndex:"pageName",ellipsis:!0},{title:"\u9875\u9762\u8DEF\u5F84",dataIndex:"pageRoute",ellipsis:!0},{title:"\u5F52\u5C5E\u573A\u666F",dataIndex:"storeId",ellipsis:!0,render:function(u,r){var n=T.find(function(c){return c.id===r.storeId});if(n)return(0,t.jsx)("div",{children:n.name})}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",fixed:"right",width:150,render:function(u,r){return[(0,t.jsx)("a",{onClick:function(){B.setFieldsValue(r),M(!0)},children:"\u66F4\u65B0"}),(0,t.jsx)(F.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u9875\u9762\u5417\uFF1F",onConfirm:function(){return ne(r)},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,t.jsx)("a",{href:"#",children:"\u5220\u9664"})})]}}],ae=function(){M(!0),B.resetFields()},re=function(){var a=(0,A.Z)((0,E.Z)().mark(function u(r){var n,c;return(0,E.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!r.id){i.next=7;break}return i.next=3,D.Z.MiniPageUpdate(r);case 3:n=i.sent,n.statusCode===200?(f.default.success("\u4FEE\u6539\u6210\u529F"),M(!1),v.current.reloadAndRest()):f.default.error(n.errors),i.next=11;break;case 7:return i.next=9,D.Z.MiniPageAdd(r);case 9:c=i.sent,c.statusCode===200?(f.default.success("\u6DFB\u52A0\u6210\u529F"),M(!1),v.current.reloadAndRest()):f.default.error(c.errors);case 11:case"end":return i.stop()}},u)}));return function(r){return a.apply(this,arguments)}}(),ne=function(){var a=(0,A.Z)((0,E.Z)().mark(function u(r){var n;return(0,E.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,D.Z.MiniPageDelete(r.id);case 2:n=l.sent,n.statusCode===200?(f.default.success("\u5220\u9664\u6210\u529F"),v.current.reloadAndRest()):f.default.error(n.errors);case 4:case"end":return l.stop()}},u)}));return function(r){return a.apply(this,arguments)}}(),se=function(){var a=(0,A.Z)((0,E.Z)().mark(function u(){var r,n;return(0,E.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,D.Z.GetAllStore();case 2:r=l.sent,r.statusCode==200?(Q(r.data),y((n=r.data[0])===null||n===void 0?void 0:n.id)):f.default.error(r.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 4:case"end":return l.stop()}},u)}));return function(){return a.apply(this,arguments)}}();return(0,m.useEffect)(function(){se()},[]),(0,m.useEffect)(function(){v.current.reloadAndRest()},[g]),(0,t.jsxs)(b.ZP,{header:{title:"",breadcrumb:{}},children:[(0,t.jsx)(x.Z,{style:{marginBottom:"10px"},children:(0,t.jsxs)("div",{className:G().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F52\u5C5E\u573A\u666F\uFF1A"}),(0,t.jsx)(Z.Z,{style:{width:300},value:g,onChange:function(u){y(u)},children:T.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.name},a.id)})})]})}),(0,t.jsx)(K.ZP,{columns:te,actionRef:v,pagination:{pageSize:10},scroll:{x:1300},cardBordered:!0,editable:{type:"multiple"},request:function(){var a=(0,A.Z)((0,E.Z)().mark(function u(r){var n,c;return(0,E.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(g){i.next=2;break}return i.abrupt("return");case 2:return n={current:r.current,pageSize:r.pageSize,storeId:g},i.next=5,D.Z.MiniPageList(n);case 5:return c=i.sent,i.abrupt("return",{data:c.data.items,success:!0,total:c.data.totalCount});case 7:case"end":return i.stop()}},u)}));return function(u){return a.apply(this,arguments)}}(),rowKey:"id",search:!1,dateFormatter:"string",headerTitle:"\u9875\u9762\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsx)(C.Z,{icon:(0,t.jsx)(z.Z,{}),type:"primary",onClick:ae,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(d.Z,{title:"\u7F16\u8F91\u9875\u9762",maskClosable:!1,footer:!1,visible:N,onOk:function(){return M(!1)},onCancel:function(){return M(!1)},bodyStyle:{padding:"32px 40px 1px 48px"},children:(0,t.jsxs)(p.Z,{name:"basic",form:B,onFinish:re,children:[(0,t.jsx)(p.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(p.Z.Item,{label:"\u5F52\u5C5E\u573A\u666F",name:"storeId",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u95E8\u5E97\uFF01"}],children:(0,t.jsx)(Z.Z,{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",style:{width:"100%"},children:T.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.name},a.id)})})}),(0,t.jsx)(p.Z.Item,{label:"\u9875\u9762\u540D\u79F0",name:"pageName",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9875\u9762\u540D\u79F0\uFF01"}],children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(p.Z.Item,{label:"\u9875\u9762\u8DEF\u5F84",name:"pageRoute",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9875\u9762\u8DEF\u5F84\uFF01"}],children:(0,t.jsx)(_.Z,{})}),(0,t.jsxs)(p.Z.Item,{children:[(0,t.jsx)(C.Z,{type:"primary",htmlType:"submit",style:{float:"right",left:10},children:"\u786E\u8BA4"}),(0,t.jsx)(C.Z,{htmlType:"button",style:{float:"right"},onClick:function(){return M(!1)},children:"\u53D6\u6D88"})]})]})})]})};h.default=$},73999:function(S,h,e){"use strict";var O=e(11849),d=e(48971),o=e(96690);h.Z={GetAllStore:function(){return(0,d.WY)((0,o.zr)()+"/api/shop/alllist",{method:"GET"})},GetCosRequestURL:function(s){return(0,d.WY)((0,o.zr)()+"/api/SysService/GetPresignUploadUrl",{method:"POST",data:s})},MiniPageList:function(s){return(0,d.WY)((0,o.zr)()+"/api/AppletService/page",{method:"POST",data:(0,O.Z)({},s)})},MiniPageAdd:function(s){return(0,d.WY)((0,o.zr)()+"/api/AppletService/add",{method:"POST",data:(0,O.Z)({},s)})},MiniPageUpdate:function(s){return(0,d.WY)((0,o.zr)()+"/api/AppletService/update",{method:"POST",data:(0,O.Z)({},s)})},MiniPageDelete:function(s){return(0,d.WY)((0,o.zr)()+"/api/AppletService/del",{method:"POST",data:{id:s}})},MinimaterialListByStore:function(s){return(0,d.WY)((0,o.zr)()+"/api/AppletService/MiniStoreMaterial",{method:"POST",data:s})},AddMinimaterial:function(s){return(0,d.WY)((0,o.zr)()+"/api/AppletService/MaterialAdd",{method:"POST",data:s})},UpdateMiniMaterial:function(s){return(0,d.WY)((0,o.zr)()+"/api/AppletService/MaterialUpdate",{method:"POST",data:s})},DeleteMiniMaterial:function(s){return(0,d.WY)((0,o.zr)()+"/api/AppletService/MaterialDel",{method:"POST",data:{id:s}})}}}}]);