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

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7828],{52953:function(){},69502:function(le,U,t){"use strict";t.r(U),t.d(U,{default:function(){return ae}});var Z=t(71194),J=t(50146),z=t(58024),Q=t(91894),F=t(48736),_=t(27049),l=t(98858),g=t(4914),se=t(57663),M=t(71577),T=t(39428),X=t(3182),i=t(2824),h=t(67294),ee=t(28790),N=t(16894),V=t(48971),te=t(96690),ne={GetWeighOrderPage:function(W){return W.isreport=!0,(0,V.WY)((0,te.vp)()+"/api/WeighOrder/GetWeighOrderPage",{method:"Post",data:W})}},r=t(85893),k=function(){var W=(0,h.useState)(),Y=(0,i.Z)(W,2),re=Y[0],a=Y[1],e=(0,h.useRef)(),n=(0,h.useState)(!1),s=(0,i.Z)(n,2),d=s[0],o=s[1],c=(0,h.useState)(!1),f=(0,i.Z)(c,2),p=f[0],C=f[1],m=(0,h.useState)({}),y=(0,i.Z)(m,2),x=y[0],S=y[1],u=(0,h.useState)([]),P=(0,i.Z)(u,2),j=P[0],D=P[1],B=(0,h.useState)([]),b=(0,i.Z)(B,2),v=b[0],$=b[1];(0,h.useEffect)(function(){},[]);var O=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u8BA2\u5355\u7F16\u53F7",dataIndex:"orderNumber",hideInSearch:!0},{title:"\u8BA2\u5355\u6807\u9898",dataIndex:"subject",hideInSearch:!0},{title:"\u8BA2\u5355\u91D1\u989D",dataIndex:"totalAmount",hideInSearch:!0},{title:"\u72B6\u6001",dataIndex:"states",valueEnum:{0:{text:"\u9009\u83DC\u4E2D",status:"Processing"},1:{text:"\u5DF2\u5B8C\u6210",status:"Success"}}},{title:"\u652F\u4ED8\u72B6\u6001",dataIndex:"payStates",valueEnum:{0:{text:"\u5F85\u652F\u4ED8",status:"Processing"},1:{text:"\u5DF2\u652F\u4ED8",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",ellipsis:{showTitle:!1},valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",width:200,render:function(H,I){return[(0,r.jsx)("a",{onClick:(0,X.Z)((0,T.Z)().mark(function A(){return(0,T.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:S(I),D(I.goodsInfo),$(I.diningPlateInfo),o(!0);case 4:case"end":return R.stop()}},A)})),children:"\u67E5\u770B\u8BE6\u60C5"},I.id)]}}],L=[{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsName",key:"goodsName"},{title:"\u91CD\u91CF",dataIndex:"goodsWeight",key:"goodsWeight"},{title:"\u4EF7\u683C",dataIndex:"totalAmount",key:"totalAmount"}],w=[{title:"\u4E8C\u7EF4\u7801",dataIndex:"qrCode",key:"qrCode"},{title:"\u82AF\u7247\u7801",dataIndex:"chipCode",key:"chipCode"}];return(0,r.jsxs)(ee.ZP,{header:{title:"",breadcrumb:{}},children:[(0,r.jsx)(N.ZP,{actionRef:e,rowKey:"orderFlowId",search:{labelWidth:120},columns:O,request:function(){var E=(0,X.Z)((0,T.Z)().mark(function H(I,A,K){var R;return(0,T.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,ne.GetWeighOrderPage(I);case 2:return R=G.sent,G.abrupt("return",{data:R.data.data,success:!0,total:R.data.total});case 4:case"end":return G.stop()}},H)}));return function(H,I,A){return E.apply(this,arguments)}}()}),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(J.Z,{title:"\u8BE6\u60C5",width:800,open:d,footer:[(0,r.jsx)(M.Z,{onClick:function(){o(!1)},children:"\u5173\u95ED"},"back")],onCancel:function(){o(!1)},children:(0,r.jsxs)(Q.Z,{bordered:!1,children:[(0,r.jsxs)(g.Z,{title:"\u8BA2\u5355\u4FE1\u606F",style:{marginBottom:32},children:[(0,r.jsx)(g.Z.Item,{label:"\u8BA2\u5355\u7F16\u53F7",children:x.orderNumber}),(0,r.jsx)(g.Z.Item,{label:"OpenId",children:x.createId}),(0,r.jsx)(g.Z.Item,{label:"\u603B\u989D",children:x.totalAmount}),(0,r.jsx)(g.Z.Item,{label:"\u8BA2\u5355\u72B6\u6001",children:x.states==0?"\u9009\u83DC\u4E2D":"\u5DF2\u5B8C\u6210"}),(0,r.jsx)(g.Z.Item,{label:"\u652F\u4ED8\u72B6\u6001",children:x.payStates==0?"\u5F85\u652F\u4ED8":"\u5DF2\u652F\u4ED8"}),(0,r.jsx)(g.Z.Item,{label:"\u521B\u5EFA\u65F6\u95F4",children:x.createAt})]}),(0,r.jsx)(_.Z,{style:{marginBottom:32}}),(0,r.jsx)("div",{children:"\u9910\u76D8\u4FE1\u606F"}),(0,r.jsx)(N.ZP,{style:{marginBottom:24},pagination:!1,search:!1,options:!1,toolBarRender:!1,dataSource:v,columns:w,rowKey:"id"}),(0,r.jsx)("div",{children:"\u5546\u54C1\u4FE1\u606F"}),(0,r.jsx)(N.ZP,{style:{marginBottom:24},pagination:!1,search:!1,options:!1,toolBarRender:!1,dataSource:j,columns:L,rowKey:"id"})]})})})]})},ae=k},4914:function(le,U,t){"use strict";t.d(U,{K:function(){return r},Z:function(){return re}});var Z=t(96156),J=t(28481),z=t(90484),Q=t(94184),F=t.n(Q),_=t(50344),l=t(67294),g=t(53124),se=t(96159),M=t(24308),T=function(e){var n=e.children;return n},X=T,i=t(22122);function h(a){return a!=null}var ee=function(e){var n=e.itemPrefixCls,s=e.component,d=e.span,o=e.className,c=e.style,f=e.labelStyle,p=e.contentStyle,C=e.bordered,m=e.label,y=e.content,x=e.colon,S=s;if(C){var u;return l.createElement(S,{className:F()((u={},(0,Z.Z)(u,"".concat(n,"-item-label"),h(m)),(0,Z.Z)(u,"".concat(n,"-item-content"),h(y)),u),o),style:c,colSpan:d},h(m)&&l.createElement("span",{style:f},m),h(y)&&l.createElement("span",{style:p},y))}return l.createElement(S,{className:F()("".concat(n,"-item"),o),style:c,colSpan:d},l.createElement("div",{className:"".concat(n,"-item-container")},(m||m===0)&&l.createElement("span",{className:F()("".concat(n,"-item-label"),(0,Z.Z)({},"".concat(n,"-item-no-colon"),!x)),style:f},m),(y||y===0)&&l.createElement("span",{className:F()("".concat(n,"-item-content")),style:p},y)))},N=ee;function V(a,e,n){var s=e.colon,d=e.prefixCls,o=e.bordered,c=n.component,f=n.type,p=n.showLabel,C=n.showContent,m=n.labelStyle,y=n.contentStyle;return a.map(function(x,S){var u=x.props,P=u.label,j=u.children,D=u.prefixCls,B=D===void 0?d:D,b=u.className,v=u.style,$=u.labelStyle,O=u.contentStyle,L=u.span,w=L===void 0?1:L,E=x.key;return typeof c=="string"?l.createElement(N,{key:"".concat(f,"-").concat(E||S),className:b,style:v,labelStyle:(0,i.Z)((0,i.Z)({},m),$),contentStyle:(0,i.Z)((0,i.Z)({},y),O),span:w,colon:s,component:c,itemPrefixCls:B,bordered:o,label:p?P:null,content:C?j:null}):[l.createElement(N,{key:"label-".concat(E||S),className:b,style:(0,i.Z)((0,i.Z)((0,i.Z)({},m),v),$),span:1,colon:s,component:c[0],itemPrefixCls:B,bordered:o,label:P}),l.createElement(N,{key:"content-".concat(E||S),className:b,style:(0,i.Z)((0,i.Z)((0,i.Z)({},y),v),O),span:w*2-1,component:c[1],itemPrefixCls:B,bordered:o,content:j})]})}var te=function(e){var n=l.useContext(r),s=e.prefixCls,d=e.vertical,o=e.row,c=e.index,f=e.bordered;return d?l.createElement(l.Fragment,null,l.createElement("tr",{key:"label-".concat(c),className:"".concat(s,"-row")},V(o,e,(0,i.Z)({component:"th",type:"label",showLabel:!0},n))),l.createElement("tr",{key:"content-".concat(c),className:"".concat(s,"-row")},V(o,e,(0,i.Z)({component:"td",type:"content",showContent:!0},n)))):l.createElement("tr",{key:c,className:"".concat(s,"-row")},V(o,e,(0,i.Z)({component:f?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},n)))},ne=te,r=l.createContext({}),k={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function ae(a,e){if(typeof a=="number")return a;if((0,z.Z)(a)==="object")for(var n=0;n<M.c4.length;n++){var s=M.c4[n];if(e[s]&&a[s]!==void 0)return a[s]||k[s]}return 3}function q(a,e,n){var s=a;return(e===void 0||e>n)&&(s=(0,se.Tm)(a,{span:n})),s}function W(a,e){var n=(0,_.Z)(a).filter(function(c){return c}),s=[],d=[],o=e;return n.forEach(function(c,f){var p,C=(p=c.props)===null||p===void 0?void 0:p.span,m=C||1;if(f===n.length-1){d.push(q(c,C,o)),s.push(d);return}m<o?(o-=m,d.push(c)):(d.push(q(c,m,o)),s.push(d),o=e,d=[])}),s}function Y(a){var e,n=a.prefixCls,s=a.title,d=a.extra,o=a.column,c=o===void 0?k:o,f=a.colon,p=f===void 0?!0:f,C=a.bordered,m=a.layout,y=a.children,x=a.className,S=a.style,u=a.size,P=a.labelStyle,j=a.contentStyle,D=l.useContext(g.E_),B=D.getPrefixCls,b=D.direction,v=B("descriptions",n),$=l.useState({}),O=(0,J.Z)($,2),L=O[0],w=O[1],E=ae(c,L);l.useEffect(function(){var A=M.ZP.subscribe(function(K){(0,z.Z)(c)==="object"&&w(K)});return function(){M.ZP.unsubscribe(A)}},[]);var H=W(y,E),I=l.useMemo(function(){return{labelStyle:P,contentStyle:j}},[P,j]);return l.createElement(r.Provider,{value:I},l.createElement("div",{className:F()(v,(e={},(0,Z.Z)(e,"".concat(v,"-").concat(u),u&&u!=="default"),(0,Z.Z)(e,"".concat(v,"-bordered"),!!C),(0,Z.Z)(e,"".concat(v,"-rtl"),b==="rtl"),e),x),style:S},(s||d)&&l.createElement("div",{className:"".concat(v,"-header")},s&&l.createElement("div",{className:"".concat(v,"-title")},s),d&&l.createElement("div",{className:"".concat(v,"-extra")},d)),l.createElement("div",{className:"".concat(v,"-view")},l.createElement("table",null,l.createElement("tbody",null,H.map(function(A,K){return l.createElement(ne,{key:K,index:K,colon:p,prefixCls:v,vertical:m==="vertical",bordered:C,row:A})}))))))}Y.Item=X;var re=Y},98858:function(le,U,t){"use strict";var Z=t(38663),J=t.n(Z),z=t(52953),Q=t.n(z)}}]);