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

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4209],{52953:function(){},82082:function(de,k,t){"use strict";t.r(k),t.d(k,{default:function(){return i}});var O=t(58024),ee=t(91894),q=t(48736),te=t(27049),z=t(98858),F=t(4914),l=t(71194),ne=t(50146),ue=t(47673),N=t(4107),me=t(57663),re=t(71577),v=t(62350),L=t(24565),K=t(39428),Y=t(3182),ae=t(9715),T=t(55843),S=t(2824),p=t(67294),se=t(28790),_=t(16894),le=t(49101),G=t(32059),g=t(48971),b=t(96690),s,n=(s={Page:function(o){return(0,g.WY)((0,b.zr)()+"/api/DiningPlate/Page",{method:"Post",data:o})},Add:function(o){return(0,g.WY)((0,b.zr)()+"/api/DiningPlate/Add",{method:"Post",data:o})},Update:function(o){return(0,g.WY)((0,b.zr)()+"/api/DiningPlate/Update",{method:"Post",data:o})},EnableDisable:function(o){return(0,g.WY)((0,b.zr)()+"/api/DiningPlate/EnableDisable",{method:"Post",data:o})}},(0,G.Z)(s,"EnableDisable",function(o){return(0,g.WY)((0,b.zr)()+"/api/DiningPlate/EnableDisable",{method:"Post",data:o})}),(0,G.Z)(s,"UnbindOccupy",function(o){return(0,g.WY)((0,b.zr)()+"/api/DiningPlate/UnbindOccupy",{method:"Post",data:o})}),(0,G.Z)(s,"Del",function(o){return(0,g.WY)((0,b.zr)()+"/api/DiningPlate/Del?id="+o,{method:"Post",data:o})}),(0,G.Z)(s,"GetWeighOrderByOrderId",function(o){return(0,g.WY)((0,b.vp)()+"/api/WeighOrder/GetWeighOrderByOrderId",{method:"Post",data:o})}),s),a=t(69215),e=t(85893),m=function(){var o=(0,p.useState)(!1),y=(0,S.Z)(o,2),Z=y[0],c=y[1],h=(0,p.useState)(!1),j=(0,S.Z)(h,2),I=j[0],d=j[1],$=T.Z.useForm(),U=(0,S.Z)($,1),D=U[0],x=(0,p.useRef)(),M=(0,p.useState)({}),f=(0,S.Z)(M,2),V=f[0],R=f[1],H=(0,p.useState)({}),w=(0,S.Z)(H,2),C=w[0],oe=w[1],ie=(0,p.useState)([]),J=(0,S.Z)(ie,2),Q=J[0],ye=J[1],he=(0,p.useState)([]),fe=(0,S.Z)(he,2),pe=fe[0],xe=fe[1],Ce=(0,p.useState)([]),ve=(0,S.Z)(Ce,2),ge=ve[0],Ze=ve[1],Ee=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u4E8C\u7EF4\u7801",dataIndex:"qrCode",ellipsis:{showTitle:!1},valueType:"textarea"},{title:"\u82AF\u7247\u7801",dataIndex:"chipCode",ellipsis:{showTitle:!1},valueType:"textarea"},{title:"\u662F\u5426\u6536\u8D39",dataIndex:"isPay",ellipsis:{showTitle:!1},search:!1,valueEnum:{false:{text:"\u514D\u8D39",status:"Processing"},true:{text:"\u6536\u8D39",status:"Success"}}},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u662F\u5426\u7ED1\u5B9A",dataIndex:"isOccupy",valueEnum:{false:{text:"\u672A\u7ED1\u5B9A",status:"Processing"},true:{text:"\u5DF2\u7ED1\u5B9A",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",key:"operation",fixed:"right",width:200,render:function(E,u){return[(0,e.jsx)("a",{onClick:function(){D.setFieldsValue(u),R(u),c(!0)},children:"\u66F4\u65B0"},"config"),(0,e.jsx)("a",{onClick:function(){n.EnableDisable(u).then(function(B){B.data?(a.yw.success("\u6210\u529F"),x.current.reloadAndRest()):a.yw.error(B.errors||"\u5931\u8D25")})},children:u.status==0?"\u505C\u7528":"\u6B63\u5E38"},"config"),(0,e.jsx)(L.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F",onConfirm:(0,Y.Z)((0,K.Z)().mark(function W(){return(0,K.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:n.Del(u.id).then(function(ce){ce.data?(a.yw.success("\u5220\u9664\u6210\u529F"),x.current.reloadAndRest()):a.yw.error(ce.errors||"\u4FEE\u6539\u5931\u8D25")});case 1:case"end":return P.stop()}},W)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,e.jsx)("a",{href:"#",children:"\u5220\u9664"})},"delete"),(0,e.jsx)("a",{disabled:!u.isOccupy,onClick:function(){if(d(!0),!!u.isOccupy){n.GetWeighOrderByOrderId({orderId:u.weighOrderId}).then(function(P){P.statusCode==200&&(oe(P.data),ye(P.data.goodsInfo),xe(P.data.diningPlateInfo))});var B=[];B.push({diningPlateId:u.id,weighOrderId:u.weighOrderId}),Ze(B)}},children:"\u89E3\u7ED1"},"config")]}}],Pe=[{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsName",key:"goodsName"},{title:"\u91CD\u91CF",dataIndex:"goodsWeight",key:"goodsWeight"},{title:"\u4EF7\u683C",dataIndex:"totalAmount",key:"totalAmount"}],Se=[{title:"\u4E8C\u7EF4\u7801",dataIndex:"qrCode",key:"qrCode"},{title:"\u82AF\u7247\u7801",dataIndex:"chipCode",key:"chipCode"}];return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(se.ZP,{header:{title:"",breadcrumb:{}},children:[(0,e.jsx)(_.ZP,{columns:Ee,actionRef:x,rowKey:"id",pagination:{pageSize:10},scroll:{x:1300},toolBarRender:function(){return[(0,e.jsxs)(re.Z,{type:"primary",onClick:function(){R({}),D.setFieldsValue({id:"",qrCode:"",chipCode:""}),c(!0)},children:[(0,e.jsx)(le.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var A=(0,Y.Z)((0,K.Z)().mark(function E(u){var W,B,P;return(0,K.Z)().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return u.status&&(u.status=Number(u.status)),X.next=3,n.Page(u);case 3:return W=X.sent,B=W.data.data,P=W.data.total,X.abrupt("return",{data:B,success:!0,total:P});case 7:case"end":return X.stop()}},E)}));return function(E){return A.apply(this,arguments)}}()}),(0,e.jsx)(ne.Z,{title:V.id?"\u4FEE\u6539":"\u65B0\u589E",width:600,open:Z,onOk:function(){D.submit()},onCancel:function(){c(!1)},children:(0,e.jsxs)(T.Z,{form:D,labelCol:{span:4},wrapperCol:{span:16},style:{maxWidth:600},initialValues:{remember:!0},onFinish:function(E){E.id?n.Update(E).then(function(u){u.data?(a.yw.success("\u4FEE\u6539\u6210\u529F"),c(!1),x.current.reloadAndRest()):a.yw.error(u.errors||"\u4FEE\u6539\u5931\u8D25")}):n.Add(E).then(function(u){u.data?(c(!1),a.yw.success("\u6DFB\u52A0\u6210\u529F"),x.current.reloadAndRest()):a.yw.error(u.errors||"\u6DFB\u52A0\u5931\u8D25")})},onFinishFailed:function(){},autoComplete:"off",children:[(0,e.jsx)(T.Z.Item,{name:"id",label:"id",hidden:!0,children:(0,e.jsx)(N.Z,{})}),(0,e.jsx)(T.Z.Item,{label:"\u4E8C\u7EF4\u7801",name:"qrCode",rules:[{required:!0,message:"\u4E8C\u7EF4\u7801\u4E0D\u80FD\u4E3A\u7A7A"}],children:(0,e.jsx)(N.Z,{})}),(0,e.jsx)(T.Z.Item,{label:"\u82AF\u7247\u7801",name:"chipCode",rules:[{required:!0,message:"\u82AF\u7247\u7801\u4E0D\u80FD\u4E3A\u7A7A"}],children:(0,e.jsx)(N.Z,{})})]})}),(0,e.jsx)(ne.Z,{title:"\u89E3\u7ED1\u9910\u76D8",width:800,open:I,onOk:function(){n.UnbindOccupy(ge).then(function(E){E.data?(a.yw.success("\u89E3\u7ED1\u6210\u529F"),x.current.reloadAndRest(),d(!1)):a.yw.error(E.errors||"\u89E3\u7ED1\u5931\u8D25")})},onCancel:function(){d(!1)},children:(0,e.jsxs)(ee.Z,{bordered:!1,children:[(0,e.jsxs)(F.Z,{title:"\u8BA2\u5355\u4FE1\u606F",style:{marginBottom:32},children:[(0,e.jsx)(F.Z.Item,{label:"\u8BA2\u5355\u7F16\u53F7",children:C.orderNumber}),(0,e.jsx)(F.Z.Item,{label:"OpenId",children:C.createId}),(0,e.jsx)(F.Z.Item,{label:"\u8BA2\u5355\u72B6\u6001",children:C.states==0?"\u9009\u83DC\u4E2D":"\u5DF2\u5B8C\u6210"}),(0,e.jsx)(F.Z.Item,{label:"\u652F\u4ED8\u72B6\u6001",children:C.payStates==0?"\u5F85\u652F\u4ED8":"\u5DF2\u652F\u4ED8"}),(0,e.jsx)(F.Z.Item,{label:"\u603B\u989D",children:C.totalAmount}),(0,e.jsx)(F.Z.Item,{label:"\u521B\u5EFA\u65F6\u95F4",children:C.createAt})]}),(0,e.jsx)(te.Z,{style:{marginBottom:32}}),(0,e.jsx)("div",{children:"\u9910\u76D8\u4FE1\u606F"}),(0,e.jsx)(_.ZP,{style:{marginBottom:24},pagination:!1,search:!1,options:!1,toolBarRender:!1,dataSource:pe,columns:Se,rowKey:"id"}),(0,e.jsx)("div",{children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)(_.ZP,{style:{marginBottom:24},pagination:!1,search:!1,options:!1,toolBarRender:!1,dataSource:Q,columns:Pe,rowKey:"id"})]})})]})})},i=m},4914:function(de,k,t){"use strict";t.d(k,{K:function(){return p},Z:function(){return b}});var O=t(96156),ee=t(28481),q=t(90484),te=t(94184),z=t.n(te),F=t(50344),l=t(67294),ne=t(53124),ue=t(96159),N=t(24308),me=function(n){var a=n.children;return a},re=me,v=t(22122);function L(s){return s!=null}var K=function(n){var a=n.itemPrefixCls,e=n.component,m=n.span,i=n.className,r=n.style,o=n.labelStyle,y=n.contentStyle,Z=n.bordered,c=n.label,h=n.content,j=n.colon,I=e;if(Z){var d;return l.createElement(I,{className:z()((d={},(0,O.Z)(d,"".concat(a,"-item-label"),L(c)),(0,O.Z)(d,"".concat(a,"-item-content"),L(h)),d),i),style:r,colSpan:m},L(c)&&l.createElement("span",{style:o},c),L(h)&&l.createElement("span",{style:y},h))}return l.createElement(I,{className:z()("".concat(a,"-item"),i),style:r,colSpan:m},l.createElement("div",{className:"".concat(a,"-item-container")},(c||c===0)&&l.createElement("span",{className:z()("".concat(a,"-item-label"),(0,O.Z)({},"".concat(a,"-item-no-colon"),!j)),style:o},c),(h||h===0)&&l.createElement("span",{className:z()("".concat(a,"-item-content")),style:y},h)))},Y=K;function ae(s,n,a){var e=n.colon,m=n.prefixCls,i=n.bordered,r=a.component,o=a.type,y=a.showLabel,Z=a.showContent,c=a.labelStyle,h=a.contentStyle;return s.map(function(j,I){var d=j.props,$=d.label,U=d.children,D=d.prefixCls,x=D===void 0?m:D,M=d.className,f=d.style,V=d.labelStyle,R=d.contentStyle,H=d.span,w=H===void 0?1:H,C=j.key;return typeof r=="string"?l.createElement(Y,{key:"".concat(o,"-").concat(C||I),className:M,style:f,labelStyle:(0,v.Z)((0,v.Z)({},c),V),contentStyle:(0,v.Z)((0,v.Z)({},h),R),span:w,colon:e,component:r,itemPrefixCls:x,bordered:i,label:y?$:null,content:Z?U:null}):[l.createElement(Y,{key:"label-".concat(C||I),className:M,style:(0,v.Z)((0,v.Z)((0,v.Z)({},c),f),V),span:1,colon:e,component:r[0],itemPrefixCls:x,bordered:i,label:$}),l.createElement(Y,{key:"content-".concat(C||I),className:M,style:(0,v.Z)((0,v.Z)((0,v.Z)({},h),f),R),span:w*2-1,component:r[1],itemPrefixCls:x,bordered:i,content:U})]})}var T=function(n){var a=l.useContext(p),e=n.prefixCls,m=n.vertical,i=n.row,r=n.index,o=n.bordered;return m?l.createElement(l.Fragment,null,l.createElement("tr",{key:"label-".concat(r),className:"".concat(e,"-row")},ae(i,n,(0,v.Z)({component:"th",type:"label",showLabel:!0},a))),l.createElement("tr",{key:"content-".concat(r),className:"".concat(e,"-row")},ae(i,n,(0,v.Z)({component:"td",type:"content",showContent:!0},a)))):l.createElement("tr",{key:r,className:"".concat(e,"-row")},ae(i,n,(0,v.Z)({component:o?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},a)))},S=T,p=l.createContext({}),se={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function _(s,n){if(typeof s=="number")return s;if((0,q.Z)(s)==="object")for(var a=0;a<N.c4.length;a++){var e=N.c4[a];if(n[e]&&s[e]!==void 0)return s[e]||se[e]}return 3}function le(s,n,a){var e=s;return(n===void 0||n>a)&&(e=(0,ue.Tm)(s,{span:a})),e}function G(s,n){var a=(0,F.Z)(s).filter(function(r){return r}),e=[],m=[],i=n;return a.forEach(function(r,o){var y,Z=(y=r.props)===null||y===void 0?void 0:y.span,c=Z||1;if(o===a.length-1){m.push(le(r,Z,i)),e.push(m);return}c<i?(i-=c,m.push(r)):(m.push(le(r,c,i)),e.push(m),i=n,m=[])}),e}function g(s){var n,a=s.prefixCls,e=s.title,m=s.extra,i=s.column,r=i===void 0?se:i,o=s.colon,y=o===void 0?!0:o,Z=s.bordered,c=s.layout,h=s.children,j=s.className,I=s.style,d=s.size,$=s.labelStyle,U=s.contentStyle,D=l.useContext(ne.E_),x=D.getPrefixCls,M=D.direction,f=x("descriptions",a),V=l.useState({}),R=(0,ee.Z)(V,2),H=R[0],w=R[1],C=_(r,H);l.useEffect(function(){var J=N.ZP.subscribe(function(Q){(0,q.Z)(r)==="object"&&w(Q)});return function(){N.ZP.unsubscribe(J)}},[]);var oe=G(h,C),ie=l.useMemo(function(){return{labelStyle:$,contentStyle:U}},[$,U]);return l.createElement(p.Provider,{value:ie},l.createElement("div",{className:z()(f,(n={},(0,O.Z)(n,"".concat(f,"-").concat(d),d&&d!=="default"),(0,O.Z)(n,"".concat(f,"-bordered"),!!Z),(0,O.Z)(n,"".concat(f,"-rtl"),M==="rtl"),n),j),style:I},(e||m)&&l.createElement("div",{className:"".concat(f,"-header")},e&&l.createElement("div",{className:"".concat(f,"-title")},e),m&&l.createElement("div",{className:"".concat(f,"-extra")},m)),l.createElement("div",{className:"".concat(f,"-view")},l.createElement("table",null,l.createElement("tbody",null,oe.map(function(J,Q){return l.createElement(S,{key:Q,index:Q,colon:y,prefixCls:f,vertical:c==="vertical",bordered:Z,row:J})}))))))}g.Item=re;var b=g},98858:function(de,k,t){"use strict";var O=t(38663),ee=t.n(O),q=t(52953),te=t.n(q)}}]);