|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6377,1322],{73382:function(b){b.exports={expend_total_count:"expend_total_count___tKNS_"}},21717:function(b,T,r){"use strict";r.r(T);var A=r(71194),t=r(50146),n=r(66456),e=r(61128),m=r(94233),p=r(51890),E=r(34792),D=r(48086),G=r(3182),l=r(2824),q=r(94043),P=r.n(q),u=r(67294),ee=r(73382),R=r.n(ee),te=r(78009),ae=r(89366),v=r(16894),I=r(66050),h=r(85893),ne=function(){var re=(0,u.useRef)(),de=(0,u.useState)(!1),y=(0,l.Z)(de,2),oe=y[0],M=y[1],ue=(0,u.useState)({functionName:"",record:{},type:0}),B=(0,l.Z)(ue,2),C=B[0],W=B[1],se=(0,u.useState)(1),L=(0,l.Z)(se,2),Re=L[0],ie=L[1],ce=(0,u.useState)(10),x=(0,l.Z)(ce,2),_e=x[0],ve=x[1],me=(0,u.useState)(0),U=(0,l.Z)(me,2),ye=U[0],le=U[1],he=(0,u.useState)(),K=(0,l.Z)(he,2),fe=K[0],Y=K[1],pe=(0,u.useState)(1),Z=(0,l.Z)(pe,2),g=Z[0],j=Z[1],Pe=(0,u.useState)(10),k=(0,l.Z)(Pe,2),O=k[0],Ce=k[1],Se=(0,u.useState)(0),N=(0,l.Z)(Se,2),ge=N[0],F=N[1],Te=(0,u.useState)(0),z=(0,l.Z)(Te,2),Ee=z[0],w=z[1],Ie=(0,u.useState)(0),J=(0,l.Z)(Ie,2),be=J[0],$=J[1],Ge=(0,u.useState)(),H=(0,l.Z)(Ge,2),S=H[0],Q=H[1],V=function(){var s=(0,G.Z)(P().mark(function d(a,i){var o,c;return P().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return o={current:g,pageSize:O,memberInfoId:a.memberInfoId,memberCardId:"",type:i},S&&(o.startTime=S[0],o.endTime=S[1]),f.next=4,I.Z.GetMemberAccountCardConsRecord(o);case 4:c=f.sent,W({functionName:"onFetchAccountConsRecord",record:JSON.parse(JSON.stringify(a)),type:i}),c.statusCode===200?(Y(c.data.data),F(c.data.total),M(!0)):D.default.error(c.errors);case 7:case"end":return f.stop()}},d)}));return function(a,i){return s.apply(this,arguments)}}(),X=function(){var s=(0,G.Z)(P().mark(function d(a,i){var o,c;return P().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return o={current:g,pageSize:O,memberInfoId:a.memberInfoId,memberCardId:a.id,type:i},S&&(o.startTime=S[0],o.endTime=S[1]),f.next=4,I.Z.GetMemberAccountCardConsRecord(o);case 4:c=f.sent,W({functionName:"onFetchCardConsRecord",record:JSON.parse(JSON.stringify(a)),type:i}),c.statusCode===200?(Y(c.data.data),F(c.data.total),M(!0)):D.default.error(c.errors);case 7:case"end":return f.stop()}},d)}));return function(a,i){return s.apply(this,arguments)}}(),Me=[{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)(p.C,{size:64,shape:"square",icon:(0,h.jsx)(ae.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 V(a,-1)},children:"\u8D26\u6237\u6D88\u8D39\u8BB0\u5F55"})]}}],Oe=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 X(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})},Ae=[{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,u.useEffect)(function(){g!==1&&(C.functionName==="onFetchAccountConsRecord"?V(C.record,C.type):C.functionName==="onFetchCardConsRecord"&&X(C.record,C.type))},[g]),(0,h.jsx)(te.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",Ee,"\uFF0C\u6D88\u8D39\u4EBA\u6570",be]})},columns:Me,actionRef:re,expandable:{expandedRowRender:function(d){return Oe(d)}},request:function(){var s=(0,G.Z)(P().mark(function d(a){var i,o;return P().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(a.memberCardNum&&(a.cardNum=a.memberCardNum),!a.dateRange){_.next=9;break}return Q(a.dateRange),_.next=5,I.Z.GetMemberAccountRecordTotal({startTime:a.dateRange[0],endTime:a.dateRange[1]});case 5:i=_.sent,i.statusCode===200&&(w(i.data.expendTotalCount),$(i.data.personTotalcCount)),_.next=12;break;case 9:Q(null),w(0),$(0);case 12:return delete a.dateRange,delete a.memberCardNum,_.next=16,I.Z.GetMemberAccountPageList(a);case 16:return o=_.sent,le(o.data.data),_.abrupt("return",{data:o.data.data,success:!0,total:o.data.total});case 19:case"end":return _.stop()}},d)}));return function(d){return s.apply(this,arguments)}}(),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:_e,onChange:function(d){return ie(d)}},dateFormatter:"string",headerTitle:"\u50A8\u503C\u5361\u8D26\u6237\u7BA1\u7406"}),(0,h.jsx)(t.Z,{width:800,title:"\u6D88\u8D39\u8BB0\u5F55",visible:oe,footer:!1,onCancel:function(){M(!1),j(1)},children:(0,h.jsx)(e.Z,{columns:Ae,dataSource:fe,pagination:{current:g,pageSize:O,total:ge,onChange:function(d,a){j(d),Ce(a)}}})})]})})};T.default=ne},66050:function(b,T,r){"use strict";var A=r(11849),t=r(48971);T.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 m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:m}})},GetGateListByStorePage:function(e,m,p){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,t.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(m,"&PageSize=").concat(p),{method:"GET",headers:{TenantId:E}})},GetGateListByStorePageNew:function(e,m,p){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,t.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(m,"&PageSize=").concat(p),{method:"GET",headers:{TenantId:E}})},GetGateListByStoreList:function(e){return(0,t.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:m}})},UpdateGateInfoNew:function(e){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:m}})},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,m,p){return(0,t.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(m,"&PageSize=").concat(p),{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,A.Z)({},e)})}}}}]);
|