Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

2 рядки
9.2 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6377,7975,1322],{73382:function(I){I.exports={expend_total_count:"expend_total_count___tKNS_"}},21717:function(I,E,r){"use strict";r.r(E);var O=r(71194),t=r(50146),n=r(66456),e=r(15711),_=r(94233),C=r(51890),f=r(39428),Oe=r(34792),A=r(48086),b=r(3182),l=r(2824),s=r(67294),X=r(73382),R=r.n(X),q=r(78009),ee=r(89366),v=r(16894),T=r(66050),h=r(85893),te=function(){var ae=(0,s.useRef)(),ne=(0,s.useState)(!1),y=(0,l.Z)(ne,2),re=y[0],G=y[1],de=(0,s.useState)({functionName:"",record:{},type:0}),D=(0,l.Z)(de,2),P=D[0],W=D[1],oe=(0,s.useState)(1),B=(0,l.Z)(oe,2),Re=B[0],se=B[1],ue=(0,s.useState)(10),L=(0,l.Z)(ue,2),ie=L[0],ve=L[1],ce=(0,s.useState)(0),x=(0,l.Z)(ce,2),ye=x[0],me=x[1],_e=(0,s.useState)(),U=(0,l.Z)(_e,2),le=U[0],Z=U[1],he=(0,s.useState)(1),K=(0,l.Z)(he,2),g=K[0],N=K[1],pe=(0,s.useState)(10),Y=(0,l.Z)(pe,2),M=Y[0],fe=Y[1],Ce=(0,s.useState)(0),j=(0,l.Z)(Ce,2),Pe=j[0],k=j[1],Se=(0,s.useState)(0),F=(0,l.Z)(Se,2),ge=F[0],z=F[1],Ee=(0,s.useState)(0),w=(0,l.Z)(Ee,2),Te=w[0],J=w[1],Ie=(0,s.useState)(),$=(0,l.Z)(Ie,2),S=$[0],H=$[1],Q=function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a,i){var o,c;return(0,f.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return o={current:g,pageSize:M,memberInfoId:a.memberInfoId,memberCardId:"",type:i},S&&(o.startTime=S[0],o.endTime=S[1]),p.next=4,T.Z.GetMemberAccountCardConsRecord(o);case 4:c=p.sent,W({functionName:"onFetchAccountConsRecord",record:JSON.parse(JSON.stringify(a)),type:i}),c.statusCode===200?(Z(c.data.data),k(c.data.total),G(!0)):A.default.error(c.errors);case 7:case"end":return p.stop()}},d)}));return function(a,i){return u.apply(this,arguments)}}(),V=function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a,i){var o,c;return(0,f.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return o={current:g,pageSize:M,memberInfoId:a.memberInfoId,memberCardId:a.id,type:i},S&&(o.startTime=S[0],o.endTime=S[1]),p.next=4,T.Z.GetMemberAccountCardConsRecord(o);case 4:c=p.sent,W({functionName:"onFetchCardConsRecord",record:JSON.parse(JSON.stringify(a)),type:i}),c.statusCode===200?(Z(c.data.data),k(c.data.total),G(!0)):A.default.error(c.errors);case 7:case"end":return p.stop()}},d)}));return function(a,i){return u.apply(this,arguments)}}(),be=[{title:"\u8D77\u6B62\u65F6\u95F4",dataIndex:"dateRange",hideInTable:!0,valueType:"dateRange"},{title:"\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,hideInSearch:!0,align:"center",render:function(d,a){return(0,h.jsx)(C.C,{size:64,shape:"square",icon:(0,h.jsx)(ee.Z,{}),src:a.headImgUrl})}},{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u5361\u53F7",dataIndex:"memberCardNum",ellipsis:!0},{title:"\u8054\u7CFB\u65B9\u5F0F",dataIndex:"memberPhone",ellipsis:!0,hideInSearch:!0},{title:"\u4F59\u989D",dataIndex:"money",hideInSearch:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(d,a){return[(0,h.jsx)("a",{onClick:function(){return Q(a,-1)},children:"\u8D26\u6237\u6D88\u8D39\u8BB0\u5F55"})]}}],Ge=function(d){var a=[{title:"\u5361\u53F7",dataIndex:"cardNum",key:"cardNum"},{title:"\u72B6\u6001",dataIndex:"state",valueType:"select",valueEnum:{0:{text:"\u7981\u7528",status:"Error"},1:{text:"\u6B63\u5E38",status:"Success"},2:{text:"\u6302\u5931",status:"Error"},3:{text:"\u4F5C\u5E9F",status:"Error"}}},{title:"\u7C7B\u578B",dataIndex:"type",valueType:"select",valueEnum:{1:{text:"\u4EBA\u8138",status:"Success"},2:{text:"\u5B9E\u4F53\u5361",status:"Success"},3:{text:"\u6307\u7EB9",status:"Success"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(o,c){return[(0,h.jsx)("a",{onClick:function(){return V(c,-1)},children:"\u4F1A\u5458\u5361\u6D88\u8D39\u8BB0\u5F55"})]}}];return(0,h.jsx)(v.ZP,{toolBarRender:!1,search:!1,rowKey:"id",columns:a,dataSource:d.cards,pagination:!1})},Me=[{title:"\u65F6\u95F4",dataIndex:"createAt",width:200},{title:"\u7C7B\u578B",dataIndex:"type",ellipsis:!0,render:function(d,a){return(0,h.jsx)("div",{children:a.type=="-1"?"\u6D88\u8D39":"\u5145\u503C"})}}];return(0,s.useEffect)(function(){g!==1&&(P.functionName==="onFetchAccountConsRecord"?Q(P.record,P.type):P.functionName==="onFetchCardConsRecord"&&V(P.record,P.type))},[g]),(0,h.jsx)(q.ZP,{children:(0,h.jsxs)("div",{className:R().member_card_container,children:[(0,h.jsx)(v.ZP,{title:function(){return(0,h.jsxs)("div",{className:R().expend_total_count,children:["\u6D88\u8D39\u6B21\u6570",ge,"\uFF0C\u6D88\u8D39\u4EBA\u6570",Te]})},columns:be,actionRef:ae,expandable:{expandedRowRender:function(d){return Ge(d)}},request:function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a){var i,o;return(0,f.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(a.memberCardNum&&(a.cardNum=a.memberCardNum),!a.dateRange){m.next=9;break}return H(a.dateRange),m.next=5,T.Z.GetMemberAccountRecordTotal({startTime:a.dateRange[0],endTime:a.dateRange[1]});case 5:i=m.sent,i.statusCode===200&&(z(i.data.expendTotalCount),J(i.data.personTotalcCount)),m.next=12;break;case 9:H(null),z(0),J(0);case 12:return delete a.dateRange,delete a.memberCardNum,m.next=16,T.Z.GetMemberAccountPageList(a);case 16:return o=m.sent,me(o.data.data),m.abrupt("return",{data:o.data.data,success:!0,total:o.data.total});case 19:case"end":return m.stop()}},d)}));return function(d){return u.apply(this,arguments)}}(),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:ie,onChange:function(d){return se(d)}},dateFormatter:"string",headerTitle:"\u50A8\u503C\u5361\u8D26\u6237\u7BA1\u7406"}),(0,h.jsx)(t.Z,{width:800,title:"\u6D88\u8D39\u8BB0\u5F55",visible:re,footer:!1,onCancel:function(){G(!1),N(1)},children:(0,h.jsx)(e.Z,{columns:Me,dataSource:le,pagination:{current:g,pageSize:M,total:Pe,onChange:function(d,a){N(d),fe(a)}}})})]})})};E.default=te},66050:function(I,E,r){"use strict";var O=r(11849),t=r(48971);E.Z={GetAllStore:function(){return(0,t.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,t.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,t.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,t.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,t.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,t.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:_}})},GetGateListByStorePage:function(e,_,C){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,t.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:f}})},GetGateListByStorePageNew:function(e,_,C){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,t.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:f}})},GetGateListByStoreList:function(e){return(0,t.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,t.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,t.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:_}})},PayCardAdd:function(e){return(0,t.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,t.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,_,C){return(0,t.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(C),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,t.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,t.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,t.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,t.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,t.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,t.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,t.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,t.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,t.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,O.Z)({},e)})}}}}]);