Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

2 righe
23 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8099],{52953:function(){},2772:function(Be,Se,t){"use strict";t.r(Se),t.d(Se,{default:function(){return ft}});var J=t(71194),ce=t(50146),xe=t(14781),Te=t(36138),de=t(62350),ge=t(24565),d=t(57663),re=t(71577),Ve=t(58024),se=t(91894),I=t(2824),u=t(39428),F=t(34792),v=t(48086),E=t(3182),Ae=t(18106),fe=t(36166),m=t(67294),Fe=t(78009),T=t(48971);function Ge(i){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,E.Z)((0,u.Z)().mark(function i(r){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.WY)("/kitchen/api/Store/GetStoreList",{method:"POST",data:r}));case 1:case"end":return a.stop()}},i)})),Ce.apply(this,arguments)}function $e(i){return Ee.apply(this,arguments)}function Ee(){return Ee=(0,E.Z)((0,u.Z)().mark(function i(r){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.WY)("\u200B\u200B/kitchen/api/Store/GetStoreGoods",{method:"POST",data:r}));case 1:case"end":return a.stop()}},i)})),Ee.apply(this,arguments)}function je(i){return Ie.apply(this,arguments)}function Ie(){return Ie=(0,E.Z)((0,u.Z)().mark(function i(r){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.WY)("/kitchen/api/Store/UpdateStoreGood",{method:"put",data:r}));case 1:case"end":return a.stop()}},i)})),Ie.apply(this,arguments)}function c(i){return l.apply(this,arguments)}function l(){return l=(0,E.Z)((0,u.Z)().mark(function i(r){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.WY)("/kitchen/api/goods/stopgoods",{method:"POST",data:r}));case 1:case"end":return a.stop()}},i)})),l.apply(this,arguments)}function o(i){return f.apply(this,arguments)}function f(){return f=(0,E.Z)((0,u.Z)().mark(function i(r){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.WY)("/kitchen/api/Store/UpdateStoreGood",{method:"put",data:r}));case 1:case"end":return a.stop()}},i)})),f.apply(this,arguments)}function P(i){return Z.apply(this,arguments)}function Z(){return Z=(0,E.Z)((0,u.Z)().mark(function i(r){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-good",{method:"POST",data:r}));case 1:case"end":return a.stop()}},i)})),Z.apply(this,arguments)}function S(i){return G.apply(this,arguments)}function G(){return G=_asyncToGenerator(_regeneratorRuntime().mark(function i(r){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/kitchen/api/store-info/del-store-good",{method:"POST",data:r}));case 1:case"end":return a.stop()}},i)})),G.apply(this,arguments)}function N(){return M.apply(this,arguments)}function M(){return M=(0,E.Z)((0,u.Z)().mark(function i(){var r;return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r={current:1,pageSize:1e3,goods_Enable:0},a.abrupt("return",(0,T.WY)("/kitchen/api/goods/goodss",{method:"Post",data:r}));case 2:case"end":return a.stop()}},i)})),M.apply(this,arguments)}function b(i){return(0,T.WY)("/kitchen//api/Store/StoreGoodsAllUpdate",{method:"post",data:i})}function U(i){return(0,T.WY)("/kitchen/api/log/request-log-page",{method:"post",data:i})}function _(i){return $.apply(this,arguments)}function $(){return $=(0,E.Z)((0,u.Z)().mark(function i(r){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.WY)("/kitchen/api/Store/UpdateStoreFoodSaleRule",{method:"post",data:r}));case 1:case"end":return a.stop()}},i)})),$.apply(this,arguments)}var k=t(53779),me=t(77883),X=t(85986),be=t(9715),w=t(55843),L=t(47673),ee=t(4107),pe=t(43358),W=t(34041),e=t(85893),ve=function(r){var x=W.Z.Option,a=W.Z.OptGroup,g=(0,m.useState)([]),j=(0,I.Z)(g,2),Y=j[0],oe=j[1];return(0,m.useEffect)(function(){var z=function(){N().then(function(A){var Q,O,ne=[];(Q=A.data)===null||Q===void 0||(O=Q.data)===null||O===void 0||O.forEach(function(B){ne.push({text:B.name,id:B.id})}),oe(ne)})};z()},[]),(0,e.jsx)(ce.Z,{title:r.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:r.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){r.onCancel()},destroyOnClose:!0,children:(0,e.jsxs)(w.Z,{layout:"vertical",preserve:!1,initialValues:r.values,onFinish:r.onFinish,children:[(0,e.jsx)(w.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(ee.Z,{})}),(0,e.jsx)(w.Z.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:(0,e.jsx)(X.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,e.jsx)(w.Z.Item,{label:"\u4EF7\u683C",name:"vipPrice",rules:[{required:!0}],children:(0,e.jsx)(X.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,e.jsx)(w.Z.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:(0,e.jsxs)(W.Z,{placeholder:"\u72B6\u6001",children:[(0,e.jsx)(x,{value:1,children:"\u4E0B\u67B6"}),(0,e.jsx)(x,{value:0,children:"\u4E0A\u67B6"})]})}),(0,e.jsx)(w.Z.Item,{children:(0,e.jsx)(re.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},le=ve,We=t(57338),we=t(273),Re=t(98858),ue=t(4914),De=t(1614),ze=t(99165),nt=function(r){var x=(0,m.useRef)(),a=(0,m.useState)({}),g=(0,I.Z)(a,2),j=g[0],Y=g[1],oe=(0,m.useState)(!1),z=(0,I.Z)(oe,2),ye=z[0],A=z[1],Q=function(){var H=(0,E.Z)((0,u.Z)().mark(function C(h){return(0,u.Z)().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:Y({ip:h.ip,refererUrl:h.refererUrl,requestUrl:h.requestURL,parameters:h.requestData,returnResult:h.resultData});case 1:case"end":return K.stop()}},C)}));return function(h){return H.apply(this,arguments)}}(),O=new Map;O.set(!0,{text:"\u5F02\u5E38",status:"Error"}),O.set(!1,{text:"\u6B63\u5E38",status:"Success"});var ne=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684key",hideInSearch:!0,hideInTable:!0},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C\u8BF4\u660E",dataIndex:"methodName",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date",hideInForm:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(C,h){return[(0,e.jsx)("a",{onClick:(0,E.Z)((0,u.Z)().mark(function V(){return(0,u.Z)().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.next=2,Q(h);case 2:A(!0);case 3:case"end":return ae.stop()}},V)})),children:"\u8BE6\u60C5"},h.id)]}}],B=(0,T.YB)();return(0,e.jsxs)(Fe.ZP,{children:[(0,e.jsx)(k.ZP,{search:!1,headerTitle:"\u64CD\u4F5C\u65E5\u5FD7",actionRef:x,rowKey:"id",request:function(){var H=(0,E.Z)((0,u.Z)().mark(function C(h){var V,K;return(0,u.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return V=[],K=0,h.value=r.storeId,h.method=["AddStoreGoodAsync","DelStoreGoodAsync","UpdateStoreGoodsAsync"],ie.next=6,U(JSON.stringify(h)).then(function(Ze){V=Ze.data.data,K=Ze.data.total});case 6:return ie.abrupt("return",{data:V,success:!0,total:K});case 7:case"end":return ie.stop()}},C)}));return function(C){return H.apply(this,arguments)}}(),columns:ne,pagination:{defaultPageSize:10}}),(0,e.jsxs)(we.Z,{title:"\u8BE6\u60C5",placement:"right",size:"large",onClose:function(){A(!1)},visible:ye,children:[(0,e.jsxs)(ue.Z,{column:1,children:[(0,e.jsx)(ue.Z.Item,{label:"\u64CD\u4F5CIP",children:(0,e.jsx)(De.ZP,{text:j.ip})}),(0,e.jsx)(ue.Z.Item,{label:"\u53C2\u8003\u5730\u5740",children:(0,e.jsx)(De.ZP,{text:j.refererUrl})}),(0,e.jsx)(ue.Z.Item,{label:"\u8BF7\u6C42\u5730\u5740",children:(0,e.jsx)(De.ZP,{text:j.requestUrl})})]}),(0,e.jsxs)(ue.Z,{children:[(0,e.jsxs)(ue.Z.Item,{label:"\u8BF7\u6C42\u6570\u636E",children:[(0,e.jsx)("a",{onClick:function(){var C=document.createElement("input");C.value=j.parameters,document.body.appendChild(C),C.select(),document.execCommand("Copy"),v.default.success("\u590D\u5236\u6210\u529F"),C.remove()},children:(0,e.jsx)(ze.Z,{})}),(0,e.jsx)("div",{style:{width:"220px",overflow:"scroll",overflowX:"auto"},children:(0,e.jsx)(De.ZP,{text:j.parameters,valueType:"jsonCode"})})]}),(0,e.jsxs)(ue.Z.Item,{label:"\u8FD4\u56DE\u6570\u636E",children:[(0,e.jsx)("a",{onClick:function(){var C=document.createElement("input");C.value=j.returnResult,document.body.appendChild(C),C.select(),document.execCommand("Copy"),v.default.success("\u590D\u5236\u6210\u529F"),C.remove()},children:(0,e.jsx)(ze.Z,{})}),(0,e.jsx)("div",{style:{width:"400px",overflow:"scroll",overflowX:"auto"},children:(0,e.jsx)(De.ZP,{text:j.returnResult,valueType:"jsonCode"})})]})]})]},"1")]})},at=nt,Dt=t(63185),rt=t(9676),Pt=t(14965),st=t(71356),lt=t(30381),he=t.n(lt),ut=function(r){var x=st.Z.RangePicker,a=(0,m.useState)(!1),g=(0,I.Z)(a,2),j=g[0],Y=g[1],oe=(0,m.useState)(!1),z=(0,I.Z)(oe,2),ye=z[0],A=z[1],Q=(0,m.useState)(!1),O=(0,I.Z)(Q,2),ne=O[0],B=O[1];(0,m.useEffect)(function(){var h=[];r.values&&(r.values.startAt&&(r.values.startAt=he()(r.values.startAt)),h.push(r.values.startAt),r.values.endAt&&(r.values.endAt=he()(r.values.endAt)),h.push(r.values.endAt),r.values.ruleAt=h),r.values.ruleType==2?(B(!0),A(!0),r.values.isLong==1?Y(!0):Y(!1)):(B(!1),A(!1),r.values.isLong==1?(Y(!0),A(!0)):(Y(!1),A(!1)))},[r.values]);var H=function(V){V.target.checked?(Y(!0),A(!0)):(Y(!1),A(!1))},C=function(V){V==1?(B(!1),A(!!j)):(B(!0),A(!0))};return(0,e.jsx)(ce.Z,{title:"\u7F16\u8F91\u9500\u552E\u89C4\u5219",width:640,visible:r.ruleModelVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){r.onCancel()},destroyOnClose:!0,children:(0,e.jsxs)(w.Z,{layout:"Horizontal",initialValues:r.values,onFinish:r.onFinish,children:[(0,e.jsx)(w.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(ee.Z,{})}),(0,e.jsx)(w.Z.Item,{name:"ruleType",label:"\u89C4\u5219\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsxs)(W.Z,{style:{width:"100%"},onChange:C,children:[(0,e.jsx)(W.Z.Option,{value:1,children:"\u65F6\u95F4\u8303\u56F4"}),(0,e.jsx)(W.Z.Option,{value:2,children:"\u6BCF\u65E5"})]})}),(0,e.jsx)(w.Z.Item,{name:"ruleAt",label:"\u9500\u552E\u65F6\u95F4",style:{marginLeft:"10px"},children:(0,e.jsx)(x,{showTime:!0,format:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"},disabled:ye})}),(0,e.jsx)(w.Z.Item,{name:"isLong",valuePropName:"checked",label:"\u662F\u5426\u957F\u671F\u6709\u6548",style:{marginLeft:"10px"},children:(0,e.jsx)(rt.Z,{style:{marginLeft:"10px"},onChange:H,disabled:ne,checked:j})}),(0,e.jsx)(w.Z.Item,{name:"saleCount",label:"\u9500\u552E\u6570\u91CF",rules:[{required:!0}],children:(0,e.jsx)(X.Z,{style:{width:"100%"},min:0})}),(0,e.jsx)(w.Z.Item,{style:{marginLeft:"10px"},children:(0,e.jsx)(re.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},ot=ut,it=fe.Z.TabPane,te="message",ct=function(){var i=(0,E.Z)((0,u.Z)().mark(function r(x){return(0,u.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.prev=0,v.default.loading("\u6B63\u5728\u4FEE\u6539",te),v.default.destroy(te),g.next=5,o(JSON.stringify(x)).then(function(j){return v.default.destroy(te),j.data?(v.default.success("\u4FEE\u6539\u6210\u529F"),!0):(v.default.error("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:g.next=11;break;case 7:return g.prev=7,g.t0=g.catch(0),v.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),g.abrupt("return",!1);case 11:case"end":return g.stop()}},r,null,[[0,7]])}));return function(x){return i.apply(this,arguments)}}(),Tt=null,dt=function(r){var x=(0,m.useRef)(),a=(0,m.useState)([]),g=(0,I.Z)(a,2),j=g[0],Y=g[1],oe=(0,m.useState)(0),z=(0,I.Z)(oe,2),ye=z[0],A=z[1],Q=(0,m.useState)(!1),O=(0,I.Z)(Q,2),ne=O[0],B=O[1],H=(0,m.useState)(),C=(0,I.Z)(H,2),h=C[0],V=C[1],K=(0,m.useState)(!1),ae=(0,I.Z)(K,2),ie=ae[0],Ze=ae[1],mt=(0,m.useState)(),He=(0,I.Z)(mt,2),pt=He[0],ke=He[1],vt=(0,m.useState)(!1),Ke=(0,I.Z)(vt,2),ht=Ke[0],Le=Ke[1],yt=(0,m.useState)(),Je=(0,I.Z)(yt,2),Zt=Je[0],Ne=Je[1],St=(0,m.useState)(),Xe=(0,I.Z)(St,2),Ue=Xe[0],xt=Xe[1],q=(0,m.useRef)(),gt=(0,m.useState)(!1),Qe=(0,I.Z)(gt,2),Ct=Qe[0],Et=Qe[1],jt=(0,m.useState)(),qe=(0,I.Z)(jt,2),It=qe[0],Ye=qe[1];(0,m.useEffect)(function(){_e(1)},[]);var bt=function(){var p=(0,E.Z)((0,u.Z)().mark(function y(n){return(0,u.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,n.store_Id=Ue,v.default.loading("\u6B63\u5728\u6DFB\u52A0",te),s.next=5,P(JSON.stringify(n)).then(function(D){return v.default.destroy(te),D.data?(v.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(v.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 5:s.next=11;break;case 7:return s.prev=7,s.t0=s.catch(0),v.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 11:case"end":return s.stop()}},y,null,[[0,7]])}));return function(n){return p.apply(this,arguments)}}(),wt=function(){var p=(0,E.Z)((0,u.Z)().mark(function y(n){return(0,u.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,v.default.loading("\u6B63\u5728\u4FEE\u6539",te),v.default.destroy(te),s.next=5,_(JSON.stringify(n)).then(function(D){return v.default.destroy(te),D.data?(v.default.success("\u4FEE\u6539\u6210\u529F"),!0):(v.default.error("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:s.next=11;break;case 7:return s.prev=7,s.t0=s.catch(0),v.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 11:case"end":return s.stop()}},y,null,[[0,7]])}));return function(n){return p.apply(this,arguments)}}(),_e=function(){var p=(0,E.Z)((0,u.Z)().mark(function y(n){return(0,u.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return B(!0),s.prev=1,s.next=4,Ge({current:n,pageSize:10}).then(function(D){A(1),Y(D.data),B(!1)});case 4:s.next=9;break;case 6:s.prev=6,s.t0=s.catch(1),B(!1);case 9:case"end":return s.stop()}},y,null,[[1,6]])}));return function(n){return p.apply(this,arguments)}}(),Rt=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money"},{title:"\u5546\u54C1\u4F1A\u5458\u4EF7\u683C",dataIndex:"vipPrice",valueType:"money"},{title:"\u662F\u5426\u8BBE\u5907\u5236\u4F5C",dataIndex:"isDevice",valueEnum:{0:{text:"\u5E97\u94FA",status:"Processing"},1:{text:"\u8BBE\u5907",status:"Success"}}},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u4E0A\u67B6",status:"Processing"},1:{text:"\u4E0B\u67B6",status:"Success"}}},{title:"\u4F30\u6E05",dataIndex:"stopSales",valueEnum:{0:{text:"\u9500\u552E",status:"Processing"},1:{text:"\u4F30\u6E05",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(y,n){return[(0,e.jsxs)("a",{onClick:function(){Le(!0),Ne(n)},children:[" ","\u66F4\u65B0"]},"config"),(0,e.jsxs)("a",{onClick:function(){var s=0;n.stopSales==0?s=1:s=0;var D=[{goodsId:n.foodId,storeId:h,StopSales:s}];c(D).then(function(et){et.data&&q.current.reload()})},children:[" ",n.stopSales==0?"\u4F30\u6E05":"\u9500\u552E"]},"primary"),(0,e.jsxs)("a",{onClick:function(){n.status=n.status==0?1:0,je(n).then(function(s){s.data&&q.current.reload()})},children:[" ",n.status==0?"\u505C\u7528":"\u6B63\u5E38"]},"primary"),(0,e.jsxs)("a",{onClick:function(){n.isDevice=n.isDevice==0?1:0,je(n).then(function(s){s.data&&q.current.reload()})},children:[" ",n.isDevice==0?"\u8BBE\u5907\u5236\u4F5C":"\u95E8\u5E97\u5236\u4F5C"]},"primary"),(0,e.jsx)("a",{onClick:function(){T.m8.push({pathname:"/store/storeAddGoodsInfo",query:{isAdd:!1,values:n,storeId:h}})},children:"\u52A0\u8D2D\u5546\u54C1"},"config"),(0,e.jsx)("a",{onClick:function(){Ze(!0),Ye(n.foodId),ke(n.storeFoodSaleRuleDto)},children:"\u9500\u552E\u89C4\u5219"},"config")]}}];return(0,e.jsxs)(Fe.ZP,{children:[(0,e.jsx)(se.Z,{}),(0,e.jsxs)(se.Z,{headStyle:{border:"0px "},title:"\u5E97\u94FA\u5546\u54C1",style:{marginTop:"17px"},children:[(0,e.jsx)(fe.Z,{defaultActiveKey:"1",tabPosition:"left",onChange:function(y){xt(y)},children:j==null?void 0:j.map(function(p){return(0,e.jsx)(it,{tab:p.name,children:(0,e.jsx)(k.ZP,{headerTitle:"",actionRef:q,rowKey:"id",search:!1,toolBarRender:function(){return[(0,e.jsx)(ge.Z,{type:"primary",title:"\u786E\u8BA4\u4F30\u6E05\u95E8\u5E97\u6240\u6709\u5546\u54C1",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){b({StoreId:p.id,UpdateType:0}),q.current.reload()},onCancel:function(){},children:(0,e.jsx)(re.Z,{type:"primary",children:" \u4F30\u6E05"},"primary")},"primary"),(0,e.jsx)(ge.Z,{type:"primary",title:"\u786E\u8BA4\u505C\u7528\u95E8\u5E97\u6240\u6709\u5546\u54C1",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){b({StoreId:p.id,UpdateType:1}),q.current.reload()},onCancel:function(){},children:(0,e.jsx)(re.Z,{type:"primary",children:" \u505C\u7528"},"primary")},"primary"),(0,e.jsx)(ge.Z,{type:"primary",title:"\u786E\u8BA4\u4FEE\u6539\u95E8\u5E97\u6240\u6709\u5546\u54C1\u5236\u4F5C\u72B6\u6001",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){b({StoreId:p.id,UpdateType:2}),q.current.reload()},onCancel:function(){},children:(0,e.jsx)(re.Z,{type:"primary",children:" \u95E8\u5E97\u5236\u4F5C"},"primary")},"primary")]},loading:ne,bordered:!0,columns:Rt,request:function(){var y=(0,E.Z)((0,u.Z)().mark(function n(R){var s,D;return(0,u.Z)().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return s=[],D=0,V(p.id),R.StoreId=p.id,Pe.next=6,$e(R).then(function(tt){var Me,Oe;s=(Me=tt.data)===null||Me===void 0?void 0:Me.data,D=(Oe=tt.data)===null||Oe===void 0?void 0:Oe.total});case 6:return Pe.abrupt("return",{data:s,success:!0,total:D});case 7:case"end":return Pe.stop()}},n)}));return function(n){return y.apply(this,arguments)}}()},p.id)},p.id)})}),(0,e.jsx)(Te.Z,{size:"small",style:{float:"right"},total:ye,onChange:function(y,n){_e(y)},showTotal:function(y,n){return"\u603B\u5171 ".concat(y," \u6761")},defaultPageSize:10,defaultCurrent:1})]}),(0,e.jsx)(le,{onFinish:function(){var p=(0,E.Z)((0,u.Z)().mark(function y(n){var R;return(0,u.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:R=!1,n.id?(n.store_Id=Ue,R=ct(n)):R=bt(n),R&&(Le(!1),Ne(void 0),q.current.reload());case 3:case"end":return D.stop()}},y)}));return function(y){return p.apply(this,arguments)}}(),onCancel:function(){Le(!1),Ne(void 0)},createModalVisible:ht,values:Zt||{}}),(0,e.jsx)(ot,{onFinish:function(){var p=(0,E.Z)((0,u.Z)().mark(function y(n){var R;return(0,u.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:n.storeId=h,n.foodId=It,n.ruleAt!=null?(n.startAt=he()(n.ruleAt[0]).format("YYYY-MM-DD HH:mm:ss"),n.endAt=he()(n.ruleAt[1]).format("YYYY-MM-DD HH:mm:ss")):(n.startAt=he()(new Date(Date.now())).format("YYYY-MM-DD HH:mm:ss"),n.endAt=he()(new Date(Date.now())).format("YYYY-MM-DD HH:mm:ss")),n.isLong=n.isLong?"1":"0",R=wt(n),R&&(Ye(void 0),Ze(!1),ke(void 0),q.current.reload());case 6:case"end":return D.stop()}},y)}));return function(y){return p.apply(this,arguments)}}(),onCancel:function(){Ye(void 0),Ze(!1),ke(void 0)},ruleModelVisible:ie,values:pt||{}}),(0,e.jsx)(ce.Z,{destroyOnClose:!0,width:800,visible:Ct,footer:null,onCancel:function(){Et(!1)},children:(0,e.jsx)(at,{storeId:Ue,actionLogRef:x})})]})},ft=dt},4914:function(Be,Se,t){"use strict";t.d(Se,{K:function(){return T},Z:function(){return Ie}});var J=t(96156),ce=t(28481),xe=t(90484),Te=t(94184),de=t.n(Te),ge=t(50344),d=t(67294),re=t(53124),Ve=t(96159),se=t(24308),I=function(l){var o=l.children;return o},u=I,F=t(22122);function v(c){return c!=null}var E=function(l){var o=l.itemPrefixCls,f=l.component,P=l.span,Z=l.className,S=l.style,G=l.labelStyle,N=l.contentStyle,M=l.bordered,b=l.label,U=l.content,_=l.colon,$=f;return M?d.createElement($,{className:de()((0,J.Z)((0,J.Z)({},"".concat(o,"-item-label"),v(b)),"".concat(o,"-item-content"),v(U)),Z),style:S,colSpan:P},v(b)&&d.createElement("span",{style:G},b),v(U)&&d.createElement("span",{style:N},U)):d.createElement($,{className:de()("".concat(o,"-item"),Z),style:S,colSpan:P},d.createElement("div",{className:"".concat(o,"-item-container")},(b||b===0)&&d.createElement("span",{className:de()("".concat(o,"-item-label"),(0,J.Z)({},"".concat(o,"-item-no-colon"),!_)),style:G},b),(U||U===0)&&d.createElement("span",{className:de()("".concat(o,"-item-content")),style:N},U)))},Ae=E;function fe(c,l,o){var f=l.colon,P=l.prefixCls,Z=l.bordered,S=o.component,G=o.type,N=o.showLabel,M=o.showContent,b=o.labelStyle,U=o.contentStyle;return c.map(function(_,$){var k=_.props,me=k.label,X=k.children,be=k.prefixCls,w=be===void 0?P:be,L=k.className,ee=k.style,pe=k.labelStyle,W=k.contentStyle,e=k.span,ve=e===void 0?1:e,le=_.key;return typeof S=="string"?d.createElement(Ae,{key:"".concat(G,"-").concat(le||$),className:L,style:ee,labelStyle:(0,F.Z)((0,F.Z)({},b),pe),contentStyle:(0,F.Z)((0,F.Z)({},U),W),span:ve,colon:f,component:S,itemPrefixCls:w,bordered:Z,label:N?me:null,content:M?X:null}):[d.createElement(Ae,{key:"label-".concat(le||$),className:L,style:(0,F.Z)((0,F.Z)((0,F.Z)({},b),ee),pe),span:1,colon:f,component:S[0],itemPrefixCls:w,bordered:Z,label:me}),d.createElement(Ae,{key:"content-".concat(le||$),className:L,style:(0,F.Z)((0,F.Z)((0,F.Z)({},U),ee),W),span:ve*2-1,component:S[1],itemPrefixCls:w,bordered:Z,content:X})]})}var m=function(l){var o=d.useContext(T),f=l.prefixCls,P=l.vertical,Z=l.row,S=l.index,G=l.bordered;return P?d.createElement(d.Fragment,null,d.createElement("tr",{key:"label-".concat(S),className:"".concat(f,"-row")},fe(Z,l,(0,F.Z)({component:"th",type:"label",showLabel:!0},o))),d.createElement("tr",{key:"content-".concat(S),className:"".concat(f,"-row")},fe(Z,l,(0,F.Z)({component:"td",type:"content",showContent:!0},o)))):d.createElement("tr",{key:S,className:"".concat(f,"-row")},fe(Z,l,(0,F.Z)({component:G?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},o)))},Fe=m,T=d.createContext({}),Ge={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function Ce(c,l){if(typeof c=="number")return c;if((0,xe.Z)(c)==="object")for(var o=0;o<se.c4.length;o++){var f=se.c4[o];if(l[f]&&c[f]!==void 0)return c[f]||Ge[f]}return 3}function $e(c,l,o){var f=c;return(l===void 0||l>o)&&(f=(0,Ve.Tm)(c,{span:o})),f}function Ee(c,l){var o=(0,ge.Z)(c).filter(function(S){return S}),f=[],P=[],Z=l;return o.forEach(function(S,G){var N,M=(N=S.props)===null||N===void 0?void 0:N.span,b=M||1;if(G===o.length-1){P.push($e(S,M,Z)),f.push(P);return}b<Z?(Z-=b,P.push(S)):(P.push($e(S,b,Z)),f.push(P),Z=l,P=[])}),f}function je(c){var l=c.prefixCls,o=c.title,f=c.extra,P=c.column,Z=P===void 0?Ge:P,S=c.colon,G=S===void 0?!0:S,N=c.bordered,M=c.layout,b=c.children,U=c.className,_=c.style,$=c.size,k=c.labelStyle,me=c.contentStyle,X=d.useContext(re.E_),be=X.getPrefixCls,w=X.direction,L=be("descriptions",l),ee=d.useState({}),pe=(0,ce.Z)(ee,2),W=pe[0],e=pe[1],ve=Ce(Z,W);d.useEffect(function(){var we=se.ZP.subscribe(function(Re){(0,xe.Z)(Z)==="object"&&e(Re)});return function(){se.ZP.unsubscribe(we)}},[]);var le=Ee(b,ve),We=d.useMemo(function(){return{labelStyle:k,contentStyle:me}},[k,me]);return d.createElement(T.Provider,{value:We},d.createElement("div",{className:de()(L,(0,J.Z)((0,J.Z)((0,J.Z)({},"".concat(L,"-").concat($),$&&$!=="default"),"".concat(L,"-bordered"),!!N),"".concat(L,"-rtl"),w==="rtl"),U),style:_},(o||f)&&d.createElement("div",{className:"".concat(L,"-header")},o&&d.createElement("div",{className:"".concat(L,"-title")},o),f&&d.createElement("div",{className:"".concat(L,"-extra")},f)),d.createElement("div",{className:"".concat(L,"-view")},d.createElement("table",null,d.createElement("tbody",null,le.map(function(we,Re){return d.createElement(Fe,{key:Re,index:Re,colon:G,prefixCls:L,vertical:M==="vertical",bordered:N,row:we})}))))))}je.Item=u;var Ie=je},98858:function(Be,Se,t){"use strict";var J=t(38663),ce=t.n(J),xe=t(52953),Te=t.n(xe)}}]);