Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

2 rindas
12 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[579],{40335:function(W,I,t){"use strict";t.r(I);var P=t(57338),a=t(25084),r=t(57663),e=t(71577),_=t(13062),p=t(71230),i=t(89032),E=t(15746),y=t(47673),c=t(4107),v=t(57106),L=t(6129),F=t(43358),O=t(34041),S=t(34792),T=t(48086),g=t(3182),x=t(9715),f=t(86835),C=t(2824),de=t(94043),M=t.n(de),h=t(67294),se=t(16894),Y=t(3996),ue=t(9669),oe=t.n(ue),A=t(66050),ie=t(48971),n=t(85893),le=function(){var R=(0,h.useRef)(),_e=f.Z.useForm(),ce=(0,C.Z)(_e,1),k=ce[0],me=(0,h.useState)([]),z=(0,C.Z)(me,2),j=z[0],fe=z[1],he=(0,h.useState)(""),N=(0,C.Z)(he,2),D=N[0],Ee=N[1],Pe=(0,h.useState)(""),w=(0,C.Z)(Pe,2),B=w[0],pe=w[1],ve=(0,h.useState)(1),$=(0,C.Z)(ve,2),Oe=$[0],ge=$[1],Ce=(0,h.useState)(100),H=(0,C.Z)(Ce,2),V=H[0],Le=H[1],Ie=(0,h.useState)(!1),J=(0,C.Z)(Ie,2),Me=J[0],Z=J[1],ye=[{title:"\u6863\u53E3\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"storeId",render:function(d,o){var s=j.find(function(m){return m.id===o.storeId});if(s)return(0,n.jsx)("div",{children:s.store_Name})}},{title:"\u5C5E\u6027",dataIndex:"mode",valueType:"select",valueEnum:{1:{text:"\u56FA\u5B9A",status:"Success"},2:{text:"\u81EA\u7531\u8BBE\u5B9A",status:"Success"}}},{title:"\u91D1\u989D",dataIndex:"price"},{title:"\u72B6\u6001",dataIndex:"status",valueType:"select",valueEnum:{0:{text:"\u6B63\u5E38",status:"Success"},1:{text:"\u7981\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(d,o,s,m){return[(0,n.jsx)("a",{onClick:function(){return Se(o)},children:"\u66F4\u65B0"})]}}],Se=function(d){Z(!0),te(d.remaek),k.setFieldsValue(d)},Te=(0,h.useState)(null),Q=(0,C.Z)(Te,2),G=Q[0],X=Q[1],De=(0,h.useState)(""),q=(0,C.Z)(De,2),ee=q[0],te=q[1],be={},xe={placeholder:"\u8BF7\u8F93\u5165\u5927\u5C4F\u6A2A\u5E45...",MENU_CONF:{fontSize:{fontSizeList:["10px","20px","40px","60px","80px","100px","150px","180px","200px"]},uploadImage:{customUpload:function(d,o){return(0,g.Z)(M().mark(function s(){var m,b,l;return M().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:m=d.name.lastIndexOf("."),b=d.name.substr(m+1),l=null,A.Z.GetCosRequestURL({directory:"kitchen",fileExtension:b,method:"PUT"}).then(function(U){var Ge=U.allUrl,ae=new FileReader;ae.readAsArrayBuffer(d),ae.onload=function(Ue){l=Ue.target.result,oe().put(Ge,l).then(function(re){(re.status==200||re.statusText=="OK")&&(o(U.seeUrl,U.seeUrl,U.seeUrl),T.default.success("\u4E0A\u4F20\u6210\u529F\uFF01"))})}});case 4:case"end":return K.stop()}},s)}))()}}}},Ae=function(){var u=(0,g.Z)(M().mark(function d(){var o,s,m;return M().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(o=ie.m8.location.query.storeId,!o){l.next=6;break}return l.next=4,A.Z.GetAllStore();case 4:s=l.sent,s.isSuccess?(fe(s.data),m=s.data.find(function(ne){return ne.id===o}),m&&(pe(m.companyId),Ee(m.id))):T.default.error(s.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return l.stop()}},d)}));return function(){return u.apply(this,arguments)}}(),Be=function(){var u=(0,g.Z)(M().mark(function d(o){var s,m;return M().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!o.id){l.next=6;break}return o.remaek=ee,l.next=4,A.Z.UpdateGateInfoNew(o,B);case 4:s=l.sent,s.statusCode===200?(T.default.success("\u66F4\u65B0\u6863\u53E3\u6210\u529F\uFF01"),Z(!1),(m=R.current)===null||m===void 0||m.reload()):T.default.error(s.errors||"\u66F4\u65B0\u6863\u53E3\u5931\u8D25");case 6:case"end":return l.stop()}},d)}));return function(o){return u.apply(this,arguments)}}();return(0,h.useEffect)(function(){return function(){G!=null&&(G.destroy(),X(null))}},[G]),(0,h.useEffect)(function(){Ae()},[D]),(0,h.useEffect)(function(){var u;(u=R.current)===null||u===void 0||u.reload()},[B]),(0,n.jsxs)("div",{children:[D?(0,n.jsx)(se.ZP,{columns:ye,actionRef:R,request:(0,g.Z)(M().mark(function u(){var d;return M().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!(D&&B)){s.next=6;break}return s.next=3,A.Z.GetGateListByStorePageNew(D,Oe,V,B);case 3:if(d=s.sent,d.statusCode!==200){s.next=6;break}return s.abrupt("return",{data:d.data.data.data,success:!0,total:d.data.total});case 6:case"end":return s.stop()}},u)})),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",search:!1,options:{setting:{listsHeight:400}},pagination:{pageSize:V,onChange:function(d){return ge(d)}},dateFormatter:"string",headerTitle:"\u6863\u53E3\u7BA1\u7406",toolBarRender:function(){return[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,n.jsx)(O.Z,{style:{width:300},value:D,disabled:!0,children:j.map(function(d){return(0,n.jsx)(Option,{value:d.id,children:d.store_Name},d.id)})})]})]}}):(0,n.jsx)(L.ZP,{status:"404",title:"\u95E8\u5E97ID\u9519\u8BEF",subTitle:"\u8BF7\u68C0\u67E5URL\u4E2D storeId\u662F\u5426\u6B63\u786E"}),(0,n.jsx)(a.Z,{destroyOnClose:!0,width:"100%",title:"\u7F16\u8F91\u6863\u53E3",visible:Me,onClose:function(){return Z(!1)},children:(0,n.jsxs)(f.Z,{name:"basic",onFinish:Be,form:k,labelCol:{span:4},children:[(0,n.jsx)(f.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,n.jsx)(c.Z,{size:"large"})}),(0,n.jsxs)("div",{style:{border:"1px solid #ccc",zIndex:100,marginBottom:"10px"},children:[(0,n.jsx)(Y.o,{editor:G,defaultConfig:be,mode:"default",style:{borderBottom:"1px solid #ccc"}}),(0,n.jsx)(Y.M,{defaultConfig:xe,value:ee,onCreated:X,onChange:function(d){return te(d.getHtml())},mode:"default",style:{height:"700px"}})]}),(0,n.jsxs)(p.Z,{children:[(0,n.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,n.jsx)(f.Z.Item,{label:"\u6863\u53E3\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6863\u53E3\u540D\u79F0\uFF01"}],children:(0,n.jsx)(c.Z,{size:"large"})})}),(0,n.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,n.jsx)(f.Z.Item,{label:"\u5F52\u5C5E\u95E8\u5E97",name:"storeId",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F52\u5C5E\u95E8\u5E97\uFF01"}],children:(0,n.jsx)(O.Z,{size:"large",disabled:!0,children:j.map(function(u){return(0,n.jsx)(O.Z.Option,{value:u.id,children:u.store_Name},u.id)})})})}),(0,n.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,n.jsx)(f.Z.Item,{label:"\u5C5E\u6027",name:"mode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9009\u62E9\u5C5E\u6027\uFF01"}],children:(0,n.jsxs)(O.Z,{size:"large",children:[(0,n.jsx)(O.Z.Option,{value:1,children:"\u56FA\u5B9A\u91D1\u989D"}),(0,n.jsx)(O.Z.Option,{value:2,children:"\u81EA\u7531\u8BBE\u5B9A"})]})})}),(0,n.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,n.jsx)(f.Z.Item,{noStyle:!0,shouldUpdate:function(d,o){return d.mode!==o.mode},children:function(d){var o=d.getFieldValue;return o("mode")=="1"?(0,n.jsx)(f.Z.Item,{label:"\u91D1\u989D",name:"price",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D\uFF01"}],children:(0,n.jsx)(c.Z,{size:"large"})}):null}})}),(0,n.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,n.jsx)(f.Z.Item,{label:"\u72B6\u6001",name:"status",children:(0,n.jsxs)(O.Z,{size:"large",defaultValue:1,children:[(0,n.jsx)(Option,{value:0,children:"\u6B63\u5E38"}),(0,n.jsx)(Option,{value:1,children:"\u7981\u7528"})]})})})]}),(0,n.jsx)(f.Z.Item,{children:(0,n.jsx)(e.Z,{type:"primary",htmlType:"submit",style:{marginTop:"10px",marginLeft:"auto"},children:"\u786E\u5B9A"})})]})})]})};I.default=le},66050:function(W,I,t){"use strict";var P=t(11849),a=t(48971);I.Z={GetAllStore:function(){return(0,a.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,a.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,a.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,a.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,a.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,a.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:_}})},GetGateListByStorePage:function(e,_,p){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,a.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET",headers:{TenantId:i}})},GetGateListByStorePageNew:function(e,_,p){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,a.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET",headers:{TenantId:i}})},GetGateListByStoreList:function(e){return(0,a.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:_}})},UpdateGateInfoNew:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:_}})},PayCardAdd:function(e){return(0,a.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,a.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,_,p){return(0,a.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,a.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,a.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,a.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,a.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,a.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,a.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,a.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,a.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,a.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,P.Z)({},e)})}}},34952:function(W,I,t){"use strict";var P=t(22122),a=t(15105),r=t(67294),e=function(i,E){var y={};for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&E.indexOf(c)<0&&(y[c]=i[c]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,c=Object.getOwnPropertySymbols(i);v<c.length;v++)E.indexOf(c[v])<0&&Object.prototype.propertyIsEnumerable.call(i,c[v])&&(y[c[v]]=i[c[v]]);return y},_={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},p=r.forwardRef(function(i,E){var y=function(g){var x=g.keyCode;x===a.Z.ENTER&&g.preventDefault()},c=function(g){var x=g.keyCode,f=i.onClick;x===a.Z.ENTER&&f&&f()},v=i.style,L=i.noStyle,F=i.disabled,O=e(i,["style","noStyle","disabled"]),S={};return L||(S=(0,P.Z)({},_)),F&&(S.pointerEvents="none"),S=(0,P.Z)((0,P.Z)({},S),v),r.createElement("div",(0,P.Z)({role:"button",tabIndex:0,ref:E},O,{onKeyDown:y,onKeyUp:c,style:S}))});I.Z=p},97435:function(W,I){"use strict";function t(P,a){for(var r=Object.assign({},P),e=0;e<a.length;e+=1){var _=a[e];delete r[_]}return r}I.Z=t}}]);