Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

2 řádky
20 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9842,1322],{91629:function(kt,re,s){"use strict";s.r(re),s.d(re,{default:function(){return vt}});var Mt=s(71194),ae=s(50146),Pt=s(57663),ne=s(71577),Dt=s(49111),ue=s(19650),Ot=s(71153),se=s(60331),Lt=s(34792),c=s(48086),m=s(39428),j=s(3182),A=s(2824),Nt=s(63185),Ve=s(9676),$e=s(49101),g=s(67294),Ge=s(78009),H=s(16894),le=s(11849),Vt=s(88983),G=s(47933),$t=s(14965),ze=s(91774),Gt=s(9715),f=s(55843),zt=s(47673),b=s(4107),Wt=s(43358),z=s(34041),t=s(85893),We=function(r){var i=z.Z.Option,p=z.Z.OptGroup,v=(0,g.useState)(),x=(0,A.Z)(v,2),Z=x[0],C=x[1],M=function(){var B=(0,j.Z)((0,m.Z)().mark(function F(){return(0,m.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:case"end":return P.stop()}},F)}));return function(){return B.apply(this,arguments)}}();(0,g.useEffect)(function(){var B=function(){var F=(0,j.Z)((0,m.Z)().mark(function S(P){return(0,m.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:case"end":return $.stop()}},S)}));return function(P){return F.apply(this,arguments)}}();B()},[]);var K={labelCol:{sm:{span:4}},wrapperCol:{}},T={wrapperCol:{sm:{offset:1}}},V=function(F){};return(0,t.jsx)(ae.Z,{title:r.values.id?"\u7F16\u8F91\u4F1A\u5458\u4FE1\u606F":"\u65B0\u5EFA\u4F1A\u5458\u4FE1\u606F",width:700,maskClosable:!1,visible:r.createModalVisible,footer:null,onCancel:function(){r.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(f.Z,(0,le.Z)((0,le.Z)({},K),{},{layout:"Horizontal",preserve:!1,initialValues:r.values,onFinish:r.onFinish,children:[(0,t.jsx)(f.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(b.Z,{})}),(0,t.jsx)(f.Z.Item,{name:"platformType",hidden:!0,children:(0,t.jsx)(b.Z,{})}),(0,t.jsx)(f.Z.Item,{name:"memberInfo_Id",hidden:!0,children:(0,t.jsx)(b.Z,{})}),(0,t.jsx)(f.Z.Item,{name:"nickName",label:"\u4F1A\u5458\u6635\u79F0",rules:[{required:!0,max:200}],children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F1A\u5458\u6635\u79F0"})}),(0,t.jsx)(f.Z.Item,{name:"phone",label:"\u7535\u8BDD\u53F7\u7801",rules:[{required:!0,pattern:"^1[0-9]{10}$",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u7535\u8BDD\u53F7\u7801"}],children:(0,t.jsx)(b.Z,{placeholder:"",disabled:r.platformType==0})}),(0,t.jsx)(f.Z.Item,{noStyle:!0,shouldUpdate:function(F,S){return F.platformType!==S.platformType},children:function(F){var S=F.getFieldValue;return S("id")?null:(0,t.jsx)(f.Z.Item,{name:"platformType",disabled:!0,label:"\u5E73\u53F0",rules:[{required:!0}],children:(0,t.jsxs)(z.Z,{style:{width:120},children:[(0,t.jsx)(i,{value:"1",disabled:!0,children:"\u5FAE\u4FE1"}),(0,t.jsx)(i,{value:"2",disabled:!0,children:"\u652F\u4ED8\u5B9D"}),(0,t.jsx)(i,{value:"3",children:"POS"}),(0,t.jsx)(i,{value:"4",children:"\u50A8\u503C\u5361"})]})})}}),(0,t.jsx)(f.Z.Item,{name:"headImgUrl",label:"\u5934\u50CF",rules:[{max:500}],children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F1A\u5458\u6635\u79F0"})}),(0,t.jsxs)(f.Z.Item,{style:{height:32},children:[(0,t.jsx)(f.Z.Item,{rules:[{required:!0}],name:"birthday",label:"\u51FA\u751F\u65E5\u671F",style:{float:"left",marginLeft:40},children:(0,t.jsx)(ze.Z,{})}),(0,t.jsx)(f.Z.Item,{name:"sex",label:"\u6027\u522B",style:{float:"left",marginLeft:110},children:(0,t.jsxs)(G.ZP.Group,{children:[(0,t.jsx)(G.ZP,{value:0,children:"\u672A\u77E5"}),(0,t.jsx)(G.ZP,{value:1,children:"\u7537"}),(0,t.jsx)(G.ZP,{value:2,children:"\u5973"})]})})]}),(0,t.jsxs)(f.Z.Item,{label:"\u5B9E\u540D\u8BA4\u8BC1",style:{height:32},children:[(0,t.jsx)(f.Z.Item,{name:"realName",style:{float:"left",width:"145px"},children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D"})}),(0,t.jsx)(f.Z.Item,{name:"cardNum",style:{float:"left",marginLeft:10,width:"300px"},children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7\u7801"})})]}),(0,t.jsx)(f.Z.Item,{name:"country",label:"\u56FD\u5BB6",children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u56FD\u5BB6"})}),(0,t.jsxs)(f.Z.Item,{label:"\u5730\u533A",style:{height:32},children:[(0,t.jsx)(f.Z.Item,{name:"province",style:{float:"left"},children:(0,t.jsx)(b.Z,{style:{width:"150px"},placeholder:"\u8BF7\u8F93\u5165\u7701"})}),(0,t.jsx)(f.Z.Item,{name:"city",style:{float:"left",marginLeft:10},children:(0,t.jsx)(b.Z,{style:{width:"150px"},placeholder:"\u8BF7\u8F93\u5165\u5E02"})}),(0,t.jsx)(f.Z.Item,{name:"county",style:{float:"left",marginLeft:10},children:(0,t.jsx)(b.Z,{style:{width:"150px"},placeholder:"\u8BF7\u8F93\u5165\u53BF(\u533A)"})})]}),(0,t.jsx)(f.Z.Item,{name:"address",label:"\u8BE6\u7EC6\u5730\u5740",children:(0,t.jsx)(b.Z,{placeholder:""})}),(0,t.jsx)(f.Z.Item,{name:"level_Id",label:"\u7B49\u7EA7",children:(0,t.jsx)(b.Z,{placeholder:""})}),(0,t.jsx)(f.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0}],children:(0,t.jsxs)(z.Z,{placeholder:"\u72B6\u6001",children:[(0,t.jsx)(i,{value:0,children:"\u542F\u7528"}),(0,t.jsx)(i,{value:1,children:"\u505C\u7528"})]})}),(0,t.jsx)(f.Z.Item,{children:(0,t.jsx)(ne.Z,{disabled:r.isLook,type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})})]}))})},Ye=We,Yt=s(57338),Ke=s(273),R=s(48971);function Kt(e){return request("/kitchen/api/member/customer-page-query",{method:"post",data:e})}function Je(e){return(0,R.WY)("\u200B/kitchen/api\u200B/member\u200B/member-page-query",{method:"post",data:e})}function Qe(e){return(0,R.WY)("/kitchen/api/member/member-status",{method:"put",data:e})}function He(e,r){return(0,R.WY)("/kitchen/api/member/member-tag-and-info/".concat(e,"/").concat(r),{method:"get"})}function Xe(e){return(0,R.WY)("/kitchen/api/member/member-info",{method:"put",data:e})}function qe(e){return(0,R.WY)("/kitchen/api/member/member",{method:"post",data:e})}function _e(e){return(0,R.WY)("/kitchen/api/member/member-tag",{method:"put",data:e})}function Jt(e){return request("/kitchen/api/member/syncmember/".concat(e),{method:"post"})}function et(e){return(0,R.WY)("/kitchen/api/member/platform-member-list/".concat(e),{method:"get"})}function tt(e){return(0,R.WY)("/kitchen/api/member/member-integral-record-page",{method:"post",data:e})}var rt=function(r){var i=(0,g.useRef)(),p=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684key",hideInSearch:!0,hideInTable:!0},{title:"\u53D8\u66F4\u524D",dataIndex:"beforeChange",valueType:"textarea",search:!1},{title:"\u53D8\u66F4\u7C7B\u578B",dataIndex:"type",valueEnum:{1:{text:"\u589E\u52A0",status:"Success"},2:{text:"\u51CF\u5C11",status:"Error"}}},{title:"\u53D8\u66F4\u79EF\u5206",dataIndex:"integral",valueType:"textarea",search:!1},{title:"\u53D8\u66F4\u540E",dataIndex:"afterChange",valueType:"textarea",search:!1},{title:"\u53D8\u66F4\u65F6\u95F4",dataIndex:"createAt",valueType:"dateTime"}];return(0,t.jsx)(Ke.Z,{title:"\u79EF\u5206\u8BB0\u5F55",onClose:function(){r.onClose()},width:720,visible:r.integralRecordVisible,placement:"right",destroyOnClose:!0,children:(0,t.jsx)(H.ZP,{actionRef:i,rowKey:"id",request:function(){var v=(0,j.Z)((0,m.Z)().mark(function x(Z){var C,M;return(0,m.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return C=[],M=0,Z.memberId=r.memberId,T.next=5,tt(JSON.stringify(Z)).then(function(V){C=V.data.data,M=V.data.total});case 5:return T.abrupt("return",{data:C,success:!0,total:M});case 6:case"end":return T.stop()}},x)}));return function(x){return v.apply(this,arguments)}}(),columns:p,pagination:{defaultPageSize:10}})})},at=rt,nt=s(30381),ie=s.n(nt),k=s(48764).Buffer;const oe="3.7.5",ut=oe,st=typeof atob=="function",lt=typeof btoa=="function",D=typeof k=="function",de=typeof TextDecoder=="function"?new TextDecoder:void 0,ce=typeof TextEncoder=="function"?new TextEncoder:void 0,it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",L=Array.prototype.slice.call(it),W=(e=>{let r={};return e.forEach((i,p)=>r[i]=p),r})(L),ot=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,h=String.fromCharCode.bind(String),fe=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),me=e=>e.replace(/=/g,"").replace(/[+\/]/g,r=>r=="+"?"-":"_"),he=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),pe=e=>{let r,i,p,v,x="";const Z=e.length%3;for(let C=0;C<e.length;){if((i=e.charCodeAt(C++))>255||(p=e.charCodeAt(C++))>255||(v=e.charCodeAt(C++))>255)throw new TypeError("invalid character found");r=i<<16|p<<8|v,x+=L[r>>18&63]+L[r>>12&63]+L[r>>6&63]+L[r&63]}return Z?x.slice(0,Z-3)+"===".substring(Z):x},X=lt?e=>btoa(e):D?e=>k.from(e,"binary").toString("base64"):pe,q=D?e=>k.from(e).toString("base64"):e=>{const r=4096;let i=[];for(let p=0,v=e.length;p<v;p+=r)i.push(h.apply(null,e.subarray(p,p+r)));return X(i.join(""))},Y=(e,r=!1)=>r?me(q(e)):q(e),dt=e=>{if(e.length<2){var r=e.charCodeAt(0);return r<128?e:r<2048?h(192|r>>>6)+h(128|r&63):h(224|r>>>12&15)+h(128|r>>>6&63)+h(128|r&63)}else{var r=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return h(240|r>>>18&7)+h(128|r>>>12&63)+h(128|r>>>6&63)+h(128|r&63)}},ct=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,xe=e=>e.replace(ct,dt),ye=D?e=>k.from(e,"utf8").toString("base64"):ce?e=>q(ce.encode(e)):e=>X(xe(e)),O=(e,r=!1)=>r?me(ye(e)):ye(e),ve=e=>O(e,!0),ft=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,mt=e=>{switch(e.length){case 4:var r=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=r-65536;return h((i>>>10)+55296)+h((i&1023)+56320);case 3:return h((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return h((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},ge=e=>e.replace(ft,mt),be=e=>{if(e=e.replace(/\s+/g,""),!ot.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let r,i="",p,v;for(let x=0;x<e.length;)r=W[e.charAt(x++)]<<18|W[e.charAt(x++)]<<12|(p=W[e.charAt(x++)])<<6|(v=W[e.charAt(x++)]),i+=p===64?h(r>>16&255):v===64?h(r>>16&255,r>>8&255):h(r>>16&255,r>>8&255,r&255);return i},_=st?e=>atob(he(e)):D?e=>k.from(e,"base64").toString("binary"):be,Ze=D?e=>fe(k.from(e,"base64")):e=>fe(_(e).split("").map(r=>r.charCodeAt(0))),Ie=e=>Ze(je(e)),ht=D?e=>k.from(e,"base64").toString("utf8"):de?e=>de.decode(Ze(e)):e=>ge(_(e)),je=e=>he(e.replace(/[-_]/g,r=>r=="-"?"+":"/")),N=e=>ht(je(e)),pt=e=>{if(typeof e!="string")return!1;const r=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(r)||!/[^\s0-9a-zA-Z\-_]/.test(r)},Ce=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Fe=function(){const e=(r,i)=>Object.defineProperty(String.prototype,r,Ce(i));e("fromBase64",function(){return N(this)}),e("toBase64",function(r){return O(this,r)}),e("toBase64URI",function(){return O(this,!0)}),e("toBase64URL",function(){return O(this,!0)}),e("toUint8Array",function(){return Ie(this)})},Ae=function(){const e=(r,i)=>Object.defineProperty(Uint8Array.prototype,r,Ce(i));e("toBase64",function(r){return Y(this,r)}),e("toBase64URI",function(){return Y(this,!0)}),e("toBase64URL",function(){return Y(this,!0)})},Ht={version:oe,VERSION:ut,atob:_,atobPolyfill:be,btoa:X,btoaPolyfill:pe,fromBase64:N,toBase64:O,encode:O,encodeURI:ve,encodeURL:ve,utob:xe,btou:ge,decode:N,isValid:pt,fromUint8Array:Y,toUint8Array:Ie,extendString:Fe,extendUint8Array:Ae,extendBuiltins:()=>{Fe(),Ae()}};var xt=Ve.Z.Group,Xt=null,qt=null,I="message",Be=function(r){var i=N(r);if(i.includes("BPA_BASE64"))return!0},Se=function(r){return N(r).replace("BPA_BASE64","")},yt=function(){var r=(0,g.useRef)(),i=(0,g.useRef)(),p=(0,g.useState)(!1),v=(0,A.Z)(p,2),x=v[0],Z=v[1],C=(0,g.useState)(!1),M=(0,A.Z)(C,2),K=M[0],T=M[1],V=(0,g.useState)([]),B=(0,A.Z)(V,2),F=B[0],S=B[1],P=(0,g.useState)([]),ee=(0,A.Z)(P,2),$=ee[0],Te=ee[1],gt=(0,g.useState)(),Ee=(0,A.Z)(gt,2),w=Ee[0],U=Ee[1],bt=(0,g.useState)(!1),Re=(0,A.Z)(bt,2),Zt=Re[0],J=Re[1],It=(0,g.useState)([]),we=(0,A.Z)(It,2),jt=we[0],Ct=we[1],Ft=g.useState(),Ue=(0,A.Z)(Ft,2),ke=Ue[0],Me=Ue[1],At=(0,g.useState)(!1),Pe=(0,A.Z)(At,2),Bt=Pe[0],te=Pe[1],De=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,et(n).then(function(u){S(u.data)});case 2:case"end":return a.stop()}},l)}));return function(n){return o.apply(this,arguments)}}(),St=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c.default.loading("\u6B63\u5728\u6DFB\u52A0...",I),a.prev=1,a.next=4,qe(JSON.stringify(n)).then(function(u){c.default.destroy(I),u.data?c.default.success("\u6DFB\u52A0\u6210\u529F"):c.default.error("\u6DFB\u52A0\u5931\u8D25")});case 4:return r.current.reload(),a.abrupt("return",!0);case 8:return a.prev=8,a.t0=a.catch(1),c.default.destroy(I),c.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 13:case"end":return a.stop()}},l,null,[[1,8]])}));return function(n){return o.apply(this,arguments)}}(),Tt=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c.default.loading("\u6B63\u5728\u4FEE\u6539...",I),a.prev=1,a.next=4,Xe(JSON.stringify(n)).then(function(u){c.default.destroy(I),u.data?c.default.success("\u4FEE\u6539\u6210\u529F"):c.default.error("\u4FEE\u6539\u5931\u8D25"+u.errors==null?"":u.errors)});case 4:return r.current.reload(),a.abrupt("return",!0);case 8:return a.prev=8,a.t0=a.catch(1),c.default.destroy(I),c.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 13:case"end":return a.stop()}},l,null,[[1,8]])}));return function(n){return o.apply(this,arguments)}}(),Oe=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c.default.loading("\u6B63\u5728\u4FEE\u6539...",I),a.prev=1,a.next=4,Qe(JSON.stringify(n)).then(function(u){c.default.destroy(I),u.data?(De(n.Id),c.default.success("\u4FEE\u6539\u6210\u529F")):c.default.error("\u4FEE\u6539\u5931\u8D25"+u.errors==null?"":u.errors)});case 4:return r.current.reload(),a.abrupt("return",!0);case 8:return a.prev=8,a.t0=a.catch(1),c.default.destroy(I),c.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 13:case"end":return a.stop()}},l,null,[[1,8]])}));return function(n){return o.apply(this,arguments)}}(),Et=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n,d){return(0,m.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return c.default.loading("\u6B63\u5728\u4FEE\u6539...",I),u.prev=1,u.next=4,_e(JSON.stringify({platformType:n,memberInfo_Id:d,tags:ke})).then(function(y){c.default.destroy(I),y.data?c.default.success("\u4FEE\u6539\u6210\u529F"):c.default.error("\u4FEE\u6539\u5931\u8D25"+y.errors==null?"":y.errors)});case 4:return r.current.reload(),u.abrupt("return",!0);case 8:return u.prev=8,u.t0=u.catch(1),c.default.destroy(I),c.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),u.abrupt("return",!1);case 13:case"end":return u.stop()}},l,null,[[1,8]])}));return function(n,d){return o.apply(this,arguments)}}(),Le=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n,d){return(0,m.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,He(n,d).then(function(y){if(y.data){var E=[],Ne=[];y.data.forEach(function(Q){Q.memberTagInfoId!=null&&Ne.push(Q.id),E.push({label:Q.name,value:Q.id})}),Ct(E),Me(Ne)}});case 2:case"end":return u.stop()}},l)}));return function(n,d){return o.apply(this,arguments)}}(),Rt=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5934\u50CF",dataIndex:"headImgUrl",search:!1,hideInForm:!0,render:function(l,n){return(0,t.jsx)("img",{src:n.headImgUrl,style:{width:"45px",height:"45px"}})}},{title:"\u6635\u79F0",dataIndex:"nickName",valueType:"textarea",hideInForm:!0,render:function(l,n){return(0,t.jsx)("a",{children:Be(n.nickName)?Se(n.nickName):n.nickName})}},{title:"\u7535\u8BDD",dataIndex:"phone",valueType:"textarea",hideInForm:!0},{title:"\u6027\u522B",dataIndex:"sex",search:!1,valueEnum:{0:{text:"\u672A\u77E5"},1:{text:"\u7537"},2:{text:"\u5973"}}},{title:"\u7B49\u7EA7",dataIndex:"level",search:!1,valueType:"textarea"},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u542F\u7528",status:"Success"},1:{text:"\u7981\u7528",status:"error"}}},{title:"\u6807\u7B7E",dataIndex:"memberTag",search:!1,width:450,render:function(l,n){return(0,t.jsx)(ue.Z,{children:n.memberTag.map(function(d){var a=d.id,u=d.name;return(0,t.jsx)(se.Z,{color:"#87d068",children:u},a)})})}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",search:!1,valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(l,n){var d=[(0,t.jsx)("a",{type:"primary",onClick:function(){Z(!0),U(function(){return n.birthday=ie()(n.birthday),te(!0),n})},children:"\u8BE6\u60C5"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){Z(!0),U(function(){return n.birthday=ie()(n.birthday),te(!1),n})},children:"\u66F4\u65B0"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){var u={Id:n.id,platformType:0,status:n.status==0?1:0};Oe(u)},children:n.status==0?"\u7981\u7528 ":"\u542F\u7528"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){Le(n.id,0),J(!0),U(function(){return n})},children:"\u6807\u7B7E\u7BA1\u7406"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){U(n),T(!0)},children:"\u79EF\u5206\u8BB0\u5F55"},"primary")];return d}}],wt=function(l,n){l?(S(n.platformMemberInfos),Te([n.id])):Te([])},Ut=function(l){return(0,t.jsx)(H.ZP,{rowKey:"id",actionRef:i,columns:[{title:"\u5E73\u53F0",dataIndex:"platformType",key:"platformType",valueEnum:{1:{text:"\u5FAE\u4FE1"},2:{text:"\u652F\u4ED8\u5B9D"},3:{text:"POS"},4:{text:"\u50A8\u503C\u5361"}}},{title:"\u5934\u50CF",dataIndex:"headImgUrl",valueType:"textarea",search:!1,hideInForm:!0,render:function(d,a){return(0,t.jsx)("img",{src:a.headImgUrl,style:{width:"45px",height:"45px"}})}},{title:"\u6635\u79F0",dataIndex:"nickName",valueType:"textarea",hideInForm:!0,render:function(d,a){return(0,t.jsx)("a",{children:Be(a.nickName)?Se(a.nickName):a.nickName})}},{title:"\u6027\u522B",dataIndex:"sex",search:!1,valueEnum:{0:{text:"\u672A\u77E5"},1:{text:"\u7537"},2:{text:"\u5973"}}},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u542F\u7528",status:"Success"},1:{text:"\u7981\u7528",status:"error"}}},{title:"\u6807\u7B7E",dataIndex:"memberTag",key:"memberTag",width:450,render:function(d,a){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(ue.Z,{children:a.memberTag.map(function(u){var y=u.id,E=u.name;return(0,t.jsx)(se.Z,{color:"#87d068",children:E},y)})})})}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,a){var u=[(0,t.jsx)("a",{type:"primary",onClick:function(){var E={Id:a.memberInfo_Id,platformType:a.platformType,status:a.status==0?1:0};Oe(E)},children:a.status==0?"\u7981\u7528 ":"\u542F\u7528"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){Le(a.memberInfo_Id,a.platformType),J(!0),U(function(){return a}),De(a.memberInfo_Id)},children:"\u6807\u7B7E\u7BA1\u7406"},"primary")];return u}}],headerTitle:!1,search:!1,options:!1,dataSource:F,pagination:!1})};return(0,t.jsxs)(Ge.ZP,{children:[(0,t.jsx)(H.ZP,{headerTitle:"\u4F1A\u5458\u4FE1\u606F",actionRef:r,onExpand:wt,expandedRowKeys:$,rowKey:"id",toolBarRender:function(){return[(0,t.jsxs)(ne.Z,{type:"primary",onClick:function(){te(!1),U({}),Z(!0)},children:[(0,t.jsx)($e.Z,{})," \u6DFB\u52A0\u4F1A\u5458"]},"primary")]},expandable:{expandedRowRender:Ut},request:function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){var d,a;return(0,m.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return d=[],a=0,y.next=4,Je(n).then(function(E){d=E.data.data,a=E.data.total});case 4:return y.abrupt("return",{data:d,success:!0,total:a});case 5:case"end":return y.stop()}},l)}));return function(l){return o.apply(this,arguments)}}(),columns:Rt}),(0,t.jsx)(Ye,{isLook:Bt,onFinish:function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){var d;return(0,m.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:n.birthday=n.birthday._i,d=!1,n.MemberInfo_Id=n.id,n.id?d=Tt(n):d=St(n),d&&(Z(!1),r.current&&r.current.reload());case 5:case"end":return u.stop()}},l)}));return function(l){return o.apply(this,arguments)}}(),onCancel:function(){U(void 0),Z(!1)},createModalVisible:x,values:w||{}}),(0,t.jsx)(ae.Z,{title:"\u4F1A\u5458\u6807\u7B7E",visible:Zt,onOk:function(){Et(w.platformType,w.platformType==0?w.id:w.memberInfo_Id)&&J(!1)},onCancel:function(){U([]),J(!1)},children:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(xt,{options:jt,value:ke,onChange:function(l){Me(l)}})})}),(0,t.jsx)(at,{onClose:function(){T(!1)},memberId:w==null?void 0:w.id,integralRecordVisible:K})]})},vt=yt}}]);