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

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9478],{92762:function(R){R.exports={expend_total_count:"expend_total_count___6jxTX"}},45006:function(R,T,t){"use strict";t.r(T),t.d(T,{default:function(){return re}});var Ze=t(71194),w=t(50146),Me=t(66456),k=t(10363),Pe=t(94233),q=t(51890),f=t(39428),Ge=t(34792),A=t(48086),x=t(3182),i=t(2824),n=t(67294),_=t(92762),Z=t.n(_),ee=t(28790),te=t(89366),M=t(16894),p=t(48971),v={GetMemberAccountPageList:function(d){return(0,p.WY)("/groupmeal/api/MemberInfoService/GetMemberAccountPageList",{method:"POST",data:d})},GetMemberAccountCardConsRecord:function(d){return(0,p.WY)("/groupmeal/api/StoredValueCard/GetMemberAccountAmountPage",{method:"POST",data:d})},GetMemberPageQuery:function(d){return(0,p.WY)("\u200B/groupmeal/api/StoredValueCard/GetMemberPageQuery",{method:"post",data:d})},CreateMemberInfo:function(d){return(0,p.WY)("/groupmeal/api/StoredValueCard/AddMember",{method:"post",data:d})},GetMemberTagAndInfo:function(d,I){return(0,p.WY)("/groupmeal/api/StoredValueCard/GetMemberTagAndInfo?memberInfoId=".concat(d,"&PlatformType=").concat(I),{method:"get"})},GetPlatformMemberList:function(d){return(0,p.WY)("/groupmeal/api/StoredValueCard/GetPlatformMemberList?memberId=".concat(d),{method:"get"})}},l=t(85893),ae=function(){var d=(0,n.useRef)(),I=(0,n.useState)(!1),P=(0,i.Z)(I,2),ne=P[0],b=P[1],ue=(0,n.useState)({functionName:"",record:{},type:0}),G=(0,i.Z)(ue,2),S=G[0],N=G[1],se=(0,n.useState)(1),j=(0,i.Z)(se,2),Ne=j[0],oe=j[1],de=(0,n.useState)(10),D=(0,i.Z)(de,2),ce=D[0],je=D[1],ie=(0,n.useState)(0),F=(0,i.Z)(ie,2),De=F[0],le=F[1],me=(0,n.useState)(),B=(0,i.Z)(me,2),fe=B[0],O=B[1],pe=(0,n.useState)(1),z=(0,i.Z)(pe,2),h=z[0],E=z[1],Ce=(0,n.useState)(10),L=(0,i.Z)(Ce,2),y=L[0],Se=L[1],ge=(0,n.useState)(0),W=(0,i.Z)(ge,2),he=W[0],Y=W[1],ve=(0,n.useState)(0),V=(0,i.Z)(ve,2),xe=V[0],J=V[1],Ie=(0,n.useState)(0),Q=(0,i.Z)(Ie,2),be=Q[0],U=Q[1],ye=(0,n.useState)(),$=(0,i.Z)(ye,2),g=$[0],K=$[1],H=function(){var u=(0,x.Z)((0,f.Z)().mark(function a(e,s){var r,o;return(0,f.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return r={current:h,pageSize:y,memberInfoId:e.memberInfoId,memberCardId:"",type:s},g&&(r.startTime=g[0],r.endTime=g[1]),m.next=4,v.GetMemberAccountCardConsRecord(r);case 4:o=m.sent,N({functionName:"onFetchAccountConsRecord",record:JSON.parse(JSON.stringify(e)),type:s}),o.statusCode===200?(O(o.data.data),Y(o.data.total),b(!0)):A.default.error(o.errors);case 7:case"end":return m.stop()}},a)}));return function(e,s){return u.apply(this,arguments)}}(),X=function(){var u=(0,x.Z)((0,f.Z)().mark(function a(e,s){var r,o;return(0,f.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return r={current:h,pageSize:y,memberInfoId:e.memberInfoId,memberCardId:e.id,type:s},g&&(r.startTime=g[0],r.endTime=g[1]),m.next=4,v.GetMemberAccountCardConsRecord(r);case 4:o=m.sent,N({functionName:"onFetchCardConsRecord",record:JSON.parse(JSON.stringify(e)),type:s}),o.statusCode===200?(O(o.data.data),Y(o.data.total),b(!0)):A.default.error(o.errors);case 7:case"end":return m.stop()}},a)}));return function(e,s){return u.apply(this,arguments)}}(),Re=[{title:"\u8D77\u6B62\u65F6\u95F4",dataIndex:"dateRange",hideInTable:!0,valueType:"dateRange",hideInSearch:!0},{title:"\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,hideInSearch:!0,align:"center",render:function(a,e){return(0,l.jsx)(q.C,{size:64,shape:"square",icon:(0,l.jsx)(te.Z,{}),src:e.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(a,e){return[(0,l.jsx)("a",{onClick:function(){return H(e,-1)},children:"\u8D26\u6237\u6D88\u8D39\u8BB0\u5F55"})]}}],Te=function(a){var e=[{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(r,o){return[(0,l.jsx)("a",{onClick:function(){return X(o,-1)},children:"\u4F1A\u5458\u5361\u6D88\u8D39\u8BB0\u5F55"})]}}];return(0,l.jsx)(M.ZP,{toolBarRender:!1,search:!1,rowKey:"id",columns:e,dataSource:a.cards,pagination:!1})},Ae=[{title:"\u65F6\u95F4",dataIndex:"createAt",width:200},{title:"\u7C7B\u578B",dataIndex:"type",ellipsis:!0,render:function(a,e){return(0,l.jsx)("div",{children:e.type=="-1"?"\u6D88\u8D39":"\u5145\u503C"})}}];return(0,n.useEffect)(function(){h!==1&&(S.functionName==="onFetchAccountConsRecord"?H(S.record,S.type):S.functionName==="onFetchCardConsRecord"&&X(S.record,S.type))},[h]),(0,l.jsx)(ee.ZP,{header:{title:"",breadcrumb:{}},children:(0,l.jsxs)("div",{className:Z().member_card_container,children:[(0,l.jsx)(M.ZP,{title:function(){return(0,l.jsxs)("div",{className:Z().expend_total_count,children:["\u6D88\u8D39\u6B21\u6570",xe,"\uFF0C\u6D88\u8D39\u4EBA\u6570",be]})},columns:Re,actionRef:d,expandable:{expandedRowRender:function(a){return Te(a)}},request:function(){var u=(0,x.Z)((0,f.Z)().mark(function a(e){var s,r;return(0,f.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(e.memberCardNum&&(e.cardNum=e.memberCardNum),!e.dateRange){c.next=9;break}return K(e.dateRange),c.next=5,v.GetMemberAccountRecordTotal({startTime:e.dateRange[0],endTime:e.dateRange[1]});case 5:s=c.sent,s.statusCode===200&&(J(s.data.expendTotalCount),U(s.data.personTotalcCount)),c.next=12;break;case 9:K(null),J(0),U(0);case 12:return delete e.dateRange,delete e.memberCardNum,c.next=16,v.GetMemberAccountPageList(e);case 16:return r=c.sent,le(r.data.data),c.abrupt("return",{data:r.data.data,success:!0,total:r.data.total});case 19:case"end":return c.stop()}},a)}));return function(a){return u.apply(this,arguments)}}(),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:ce,onChange:function(a){return oe(a)}},dateFormatter:"string",headerTitle:"\u50A8\u503C\u5361\u8D26\u6237\u7BA1\u7406"}),(0,l.jsx)(w.Z,{width:800,title:"\u6D88\u8D39\u8BB0\u5F55",visible:ne,footer:!1,onCancel:function(){b(!1),E(1)},children:(0,l.jsx)(k.Z,{columns:Ae,dataSource:fe,pagination:{current:h,pageSize:y,total:he,onChange:function(a,e){E(a),Se(e)}}})})]})})},re=ae}}]);