Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

p__Company__Vip__index.5b365e65.async.js 15KB

il y a 3 mois
1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[259],{31199:function(oe,R,e){var P=e(1413),u=e(45987),s=e(62435),C=e(49994),x=e(86074),L=["fieldProps","min","proFieldProps","max"],f=function(i,I){var B=i.fieldProps,v=i.min,t=i.proFieldProps,O=i.max,S=(0,u.Z)(i,L);return(0,x.jsx)(C.Z,(0,P.Z)({valueType:"digit",fieldProps:(0,P.Z)({min:v,max:O},B),ref:I,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:t},S))},Z=s.forwardRef(f);R.Z=Z},86615:function(oe,R,e){var P=e(1413),u=e(45987),s=e(22270),C=e(78045),x=e(62435),L=e(28614),f=e(49994),Z=e(86074),M=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],i=x.forwardRef(function(t,O){var S=t.fieldProps,b=t.options,U=t.radioType,p=t.layout,o=t.proFieldProps,j=t.valueEnum,F=(0,u.Z)(t,M);return(0,Z.jsx)(f.Z,(0,P.Z)((0,P.Z)({valueType:U==="button"?"radioButton":"radio",ref:O,valueEnum:(0,s.h)(j,void 0)},F),{},{fieldProps:(0,P.Z)({options:b,layout:p},S),proFieldProps:o,filedConfig:{customLightMode:!0}}))}),I=x.forwardRef(function(t,O){var S=t.fieldProps,b=t.children;return(0,Z.jsx)(C.ZP,(0,P.Z)((0,P.Z)({},S),{},{ref:O,children:b}))}),B=(0,L.G)(I,{valuePropName:"checked",ignoreWidth:!0}),v=B;v.Group=i,v.Button=C.ZP.Button,v.displayName="ProFormComponent",R.Z=v},21134:function(oe,R,e){var P=e(1413),u=e(45987),s=e(62435),C=e(49994),x=e(86074),L=["fieldProps","request","params","proFieldProps"],f=function(i,I){var B=i.fieldProps,v=i.request,t=i.params,O=i.proFieldProps,S=(0,u.Z)(i,L);return(0,x.jsx)(C.Z,(0,P.Z)({valueType:"segmented",fieldProps:B,ref:I,request:v,params:t,filedConfig:{customLightMode:!0},proFieldProps:O},S))},Z=s.forwardRef(f);R.Z=Z},5966:function(oe,R,e){var P=e(97685),u=e(1413),s=e(45987),C=e(21770),x=e(23323),L=e(55241),f=e(97435),Z=e(62435),M=e(49994),i=e(86074),I=["fieldProps","proFieldProps"],B=["fieldProps","proFieldProps"],v="text",t=function(p){var o=p.fieldProps,j=p.proFieldProps,F=(0,s.Z)(p,I);return(0,i.jsx)(M.Z,(0,u.Z)({valueType:v,fieldProps:o,filedConfig:{valueType:v},proFieldProps:j},F))},O=function(p){var o=(0,C.Z)(p.open||!1,{value:p.open,onChange:p.onOpenChange}),j=(0,P.Z)(o,2),F=j[0],k=j[1];return(0,i.jsx)(x.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(ee){var K,a=ee.getFieldValue(p.name||[]);return(0,i.jsx)(L.Z,(0,u.Z)((0,u.Z)({getPopupContainer:function(n){return n&&n.parentNode?n.parentNode:n},onOpenChange:function(n){return k(n)},content:(0,i.jsxs)("div",{style:{padding:"4px 0"},children:[(K=p.statusRender)===null||K===void 0?void 0:K.call(p,a),p.strengthText?(0,i.jsx)("div",{style:{marginTop:10},children:(0,i.jsx)("span",{children:p.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},p.popoverProps),{},{open:F,children:p.children}))}})},S=function(p){var o=p.fieldProps,j=p.proFieldProps,F=(0,s.Z)(p,B),k=(0,Z.useState)(!1),q=(0,P.Z)(k,2),ee=q[0],K=q[1];return o!=null&&o.statusRender&&F.name?(0,i.jsx)(O,{name:F.name,statusRender:o==null?void 0:o.statusRender,popoverProps:o==null?void 0:o.popoverProps,strengthText:o==null?void 0:o.strengthText,open:ee,onOpenChange:K,children:(0,i.jsx)("div",{children:(0,i.jsx)(M.Z,(0,u.Z)({valueType:"password",fieldProps:(0,u.Z)((0,u.Z)({},(0,f.Z)(o,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(r){var n;o==null||(n=o.onBlur)===null||n===void 0||n.call(o,r),K(!1)},onClick:function(r){var n;o==null||(n=o.onClick)===null||n===void 0||n.call(o,r),K(!0)}}),proFieldProps:j,filedConfig:{valueType:v}},F))})}):(0,i.jsx)(M.Z,(0,u.Z)({valueType:"password",fieldProps:o,proFieldProps:j,filedConfig:{valueType:v}},F))},b=t;b.Password=S,b.displayName="ProFormComponent",R.Z=b},33431:function(oe,R,e){e.r(R),e.d(R,{default:function(){return X}});var P=e(5574),u=e.n(P),s=e(62435),C=e(59530),x=e(28459),L=e(15009),f=e.n(L),Z=e(99289),M=e.n(Z),i=e(67211),I=e(25278),B=e(14726),v=e(39680),t=e(86074),O=function(d){var c=d.dispatch,w=d.getId,y=d.openModel,g=(0,s.useRef)(),z=(0,s.useState)([]),_=u()(z,2),Y=_[0],ae=_[1],J=(0,s.useState)(0),G=u()(J,2),H=G[0],A=G[1],se=(0,s.useState)(1),V=u()(se,2),E=V[0],T=V[1],N=(0,s.useState)(10),ve=u()(N,2),Q=ve[0],Pe=ve[1],Ce=(0,s.useState)(sessionStorage.getItem("vip_company_info")?JSON.parse(sessionStorage.getItem("vip_company_info")).full_name:""),ge=u()(Ce,2),he=ge[0],xe=ge[1],Me=function(D){w(D)};return(0,s.useEffect)(function(){y.openModal||g.current.reload()},[y.openModal]),(0,s.useEffect)(function(){y.openFeeModal||g.current.reload()},[y.openFeeModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(x.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,t.jsx)(i.Z,{scroll:{x:1300},actionRef:g,dataSource:Y,columns:[{title:"\u7B5B\u9009\u65E5\u671F",dataIndex:"date_range",hidden:!0,width:120,valueType:"dateRange"},{title:"ID",dataIndex:"id",width:80,fixed:"left"},{title:"\u4F01\u4E1A\u540D\u79F0",dataIndex:"full_name",width:300,fixed:"left",valueType:"input",renderFormItem:function(){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(I.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F01\u4E1A\u540D\u79F0",value:he,onChange:function(W){xe(W.target.value)}})})}},{title:"\u89C1\u4E60\u57FA\u5730",dataIndex:"probation_text",search:!1,width:100},{title:"\u77E5\u540D\u4F01\u4E1A",dataIndex:"famous_text",search:!1,width:100},{title:"\u4F1A\u5458\u7C7B\u578B",dataIndex:"member_type_text",search:!1,width:100},{title:"\u4F1A\u5458\u72B6\u6001",dataIndex:"member_status_text",width:100,search:!1},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"start_date",search:!1,width:200},{title:"\u5230\u671F\u65F6\u95F4",dataIndex:"end_date",search:!1,width:200},{title:"\u5269\u4F59\u70B9\u6570",dataIndex:"balance_fee",search:!1,width:100},{title:"\u4E1A\u52A1\u5458",dataIndex:"sales",search:!1,width:200},{title:"\u64CD\u4F5C",width:300,key:"option",valueType:"option",fixed:"right",render:function(D,W,Ee){return[(0,t.jsx)(B.ZP,{type:"link",onClick:function(){Me(W.id),c({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,t.jsx)(B.ZP,{type:"link",onClick:function(){Me(W.id),c({type:"openModel/getOpenFeeModal",payload:!0})},children:"\u53D8\u66F4\u70B9\u6570"},"1")]}}],rowKey:"id",pagination:{current:E,pageSize:Q,showSizeChanger:!0,total:H,pageSizeOptions:[9,18,27,99],onChange:function(D,W){T(D),Pe(W)},onShowSizeChange:function(D,W){T(D),Pe(W)}},request:M()(f()().mark(function ne(){var D,W=arguments;return f()().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return D=W.length>0&&W[0]!==void 0?W[0]:{},re.abrupt("return",(0,v.oJ8)({page:E,pagesize:Q,sort:"id",sortby:"desc",keyword:he,start_date:D.date_range?D.date_range[0]:"",end_date:D.date_range?D.date_range[1]:""}).then(function(ye){ae(ye.data.list),A(ye.data.total)}));case 2:case"end":return re.stop()}},ne)})),onReset:function(){sessionStorage.getItem("vip_company_info")&&sessionStorage.removeItem("vip_company_info"),xe(""),g.current.reload()},headerTitle:"\u4F01\u4E1A\u5217\u8868"})})})},S=(0,C.connect)(function(m){var d=m.dictModel,c=m.openModel;return{dictModel:d,openModel:c}})(O),b=e(97269),U=e(86615),p=e(1413),o=e(45987),j=e(86190),F=e(66758),k=e(49994),q=["fieldProps","proFieldProps"],ee="dateRange",K=s.forwardRef(function(m,d){var c=m.fieldProps,w=m.proFieldProps,y=(0,o.Z)(m,q),g=(0,s.useContext)(F.Z);return(0,t.jsx)(k.Z,(0,p.Z)({ref:d,fieldProps:(0,p.Z)({getPopupContainer:g.getPopupContainer},c),valueType:ee,proFieldProps:w,filedConfig:{valueType:ee,customLightMode:!0,lightFilterLabelFormatter:function(_){return(0,j.c)(_,(c==null?void 0:c.format)||"YYYY-MM-DD")}}},y))}),a=K,r=e(5966),n=e(17788),l=e(86250),h=e(42075),ie=e(68872),de={label:"full_name",value:"id"},te=function(d){var c=d.dispatch,w=d.dictModel,y=d.openModel,g=d.id,z=(0,s.useRef)(),_=(0,s.useState)(!1),Y=u()(_,2),ae=Y[0],J=Y[1],G=(0,s.useState)(null),H=u()(G,2),A=H[0],se=H[1];return(0,s.useEffect)(function(){J(y.openModal)},[y.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(x.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,t.jsx)(n.Z,{open:ae,title:"\u7F16\u8F91VIP",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){c({type:"openModel/getOpenModal",payload:!1})},children:(0,t.jsxs)(b.A,{formRef:z,request:M()(f()().mark(function V(){var E;return f()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(!g){N.next=5;break}return N.next=3,(0,v.H2t)({id:g});case 3:return E=N.sent,N.abrupt("return",E.data);case 5:case"end":return N.stop()}},V)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(E,T){return(0,t.jsxs)(l.Z,{justify:"flex-end",children:[" ",(0,t.jsx)(h.Z,{children:T})]})},onReset:function(){se(null),J(!1)}},onFinish:function(){var V=M()(f()().mark(function E(T){var N;return f()().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return T.id=g,T.start_date=T.dateRange[0],T.end_date=T.dateRange[1],delete T.dateRange,Q.next=6,(0,v.Pgr)(T);case 6:N=Q.sent,ie.ZP.success("\u63D0\u4EA4\u6210\u529F"),c({type:"openModel/getOpenModal",payload:!1});case 9:case"end":return Q.stop()}},E)}));return function(E){return V.apply(this,arguments)}}(),children:[(0,t.jsx)(U.Z.Group,{name:"probation",label:"\u89C1\u4E60\u57FA\u5730",radioType:"button",fieldProps:{buttonStyle:"solid"},options:[{label:"\u662F",value:1},{label:"\u5426",value:2}]}),(0,t.jsx)(U.Z.Group,{name:"famous",label:"\u77E5\u540D\u4F01\u4E1A",radioType:"button",fieldProps:{buttonStyle:"solid"},options:[{label:"\u662F",value:1},{label:"\u5426",value:2}]}),(0,t.jsx)(U.Z.Group,{name:"member_type",label:"\u4F1A\u5458\u7C7B\u578B",radioType:"button",fieldProps:{buttonStyle:"solid"},options:[{label:"\u8BD5\u7528\u7533\u8BF7\u4E2D",value:1},{label:"\u8BD5\u7528\u6B63\u5F0F",value:2},{label:"\u666E\u901A\u7533\u8BF7\u4E2D",value:3},{label:"\u666E\u901A\u6B63\u5F0F",value:4},{label:"VIP\u7533\u8BF7\u4E2D",value:5},{label:"VIP\u6B63\u5F0F",value:6}]}),(0,t.jsx)(U.Z.Group,{name:"member_status",label:"\u4F1A\u5458\u72B6\u6001",radioType:"button",fieldProps:{buttonStyle:"solid"},options:[{label:"\u5F85\u5BA1",value:1},{label:"\u6B63\u5E38",value:2},{label:"\u5230\u671F",value:3},{label:"\u63A8\u8350",value:4}]}),(0,t.jsx)(a,{name:"dateRange",label:"\u4F1A\u5458\u751F\u6548\u65F6\u95F4",placeholder:["\u4F1A\u5458\u751F\u6548\u65F6\u95F4","\u4F1A\u5458\u5931\u6548\u65F6\u95F4"],fieldProps:{format:"YYYY-MM-DD"}}),(0,t.jsx)(r.Z,{name:"sale",label:"\u4E1A\u52A1\u5458",placeholder:"\u8BF7\u8F93\u5165\u4E1A\u52A1\u5458"})]})})})})},ue=(0,C.connect)(function(m){var d=m.dictModel,c=m.openModel;return{dictModel:d,openModel:c}})(te),le=e(31199),pe=e(21134),me={label:"full_name",value:"id"},$=function(d){var c=d.dispatch,w=d.dictModel,y=d.openModel,g=d.id,z=(0,s.useRef)(),_=(0,s.useState)(!1),Y=u()(_,2),ae=Y[0],J=Y[1];return(0,s.useEffect)(function(){J(y.openFeeModal)},[y.openFeeModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(x.ZP,{theme:{token:{colorPrimary:"#4FBE70"},components:{Segmented:{itemSelectedBg:"#19be6e",itemSelectedColor:"#ffffff"}}},children:(0,t.jsx)(n.Z,{open:ae,title:"\u7F16\u8F91VIP",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){c({type:"openModel/getOpenFeeModal",payload:!1})},children:(0,t.jsxs)(b.A,{formRef:z,submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(H,A){return(0,t.jsxs)(l.Z,{justify:"flex-end",children:[" ",(0,t.jsx)(h.Z,{children:A})]})},onReset:function(){J(!1)}},onFinish:function(){var G=M()(f()().mark(function H(A){var se;return f()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return A.id=g,E.next=3,(0,v.aut)(A);case 3:se=E.sent,ie.ZP.success("\u63D0\u4EA4\u6210\u529F"),c({type:"openModel/getOpenFeeModal",payload:!1});case 6:case"end":return E.stop()}},H)}));return function(H){return G.apply(this,arguments)}}(),children:[(0,t.jsx)(le.Z,{label:"\u70B9\u6570\u503C",placeholder:"\u70B9\u6570\u503C",name:"fee",min:0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u70B9\u6570\u503C"}]}),(0,t.jsx)(pe.Z,{name:"change_type",label:"\u53D8\u66F4\u7C7B\u578B",request:M()(f()().mark(function G(){return f()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.abrupt("return",[{label:"\u589E\u52A0",value:1},{label:"\u6263\u51CF",value:2}]);case 1:case"end":return A.stop()}},G)})),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53D8\u66F4\u7C7B\u578B"}]}),(0,t.jsx)(r.Z,{name:"remark",label:"\u5907\u6CE8\u8BF4\u660E",placeholder:"\u5907\u6CE8\u8BF4\u660E",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5907\u6CE8\u8BF4\u660E"}]})]})})})})},ce=(0,C.connect)(function(m){var d=m.dictModel,c=m.openModel;return{dictModel:d,openModel:c}})($),fe=function(d){var c=d.dispatch,w=d.openModel,y=(0,s.useState)(0),g=u()(y,2),z=g[0],_=g[1],Y=function(J){_(J)};return(0,s.useEffect)(function(){w.openModal||_(0)},[w.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(x.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,t.jsx)(S,{getId:Y}),(0,t.jsx)(ue,{id:z}),(0,t.jsx)(ce,{id:z})]})})},X=(0,C.connect)(function(m){var d=m.openModel;return{openModel:d}})(fe)},86250:function(oe,R,e){e.d(R,{Z:function(){return K}});var P=e(62435),u=e(93967),s=e.n(u),C=e(98423),x=e(98065),L=e(53124),f=e(92030),Z=e(45503);const M=["wrap","nowrap","wrap-reverse"],i=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],I=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],B=(a,r)=>{const n=r.wrap===!0?"wrap":r.wrap;return{[`${a}-wrap-${n}`]:n&&M.includes(n)}},v=(a,r)=>{const n={};return I.forEach(l=>{n[`${a}-align-${l}`]=r.align===l}),n[`${a}-align-stretch`]=!r.align&&!!r.vertical,n},t=(a,r)=>{const n={};return i.forEach(l=>{n[`${a}-justify-${l}`]=r.justify===l}),n};function O(a,r){return s()(Object.assign(Object.assign(Object.assign({},B(a,r)),v(a,r)),t(a,r)))}var S=O;const b=a=>{const{componentCls:r}=a;return{[r]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},U=a=>{const{componentCls:r}=a;return{[r]:{"&-gap-small":{gap:a.flexGapSM},"&-gap-middle":{gap:a.flexGap},"&-gap-large":{gap:a.flexGapLG}}}},p=a=>{const{componentCls:r}=a,n={};return M.forEach(l=>{n[`${r}-wrap-${l}`]={flexWrap:l}}),n},o=a=>{const{componentCls:r}=a,n={};return I.forEach(l=>{n[`${r}-align-${l}`]={alignItems:l}}),n},j=a=>{const{componentCls:r}=a,n={};return i.forEach(l=>{n[`${r}-justify-${l}`]={justifyContent:l}}),n},F=()=>({});var k=(0,f.I$)("Flex",a=>{const{paddingXS:r,padding:n,paddingLG:l}=a,h=(0,Z.TS)(a,{flexGapSM:r,flexGap:n,flexGapLG:l});return[b(h),U(h),p(h),o(h),j(h)]},F,{resetStyle:!1}),q=function(a,r){var n={};for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&r.indexOf(l)<0&&(n[l]=a[l]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,l=Object.getOwnPropertySymbols(a);h<l.length;h++)r.indexOf(l[h])<0&&Object.prototype.propertyIsEnumerable.call(a,l[h])&&(n[l[h]]=a[l[h]]);return n},K=P.forwardRef((a,r)=>{const{prefixCls:n,rootClassName:l,className:h,style:ie,flex:de,gap:te,children:ue,vertical:le=!1,component:pe="div"}=a,me=q(a,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:$,direction:ce,getPrefixCls:fe}=P.useContext(L.E_),X=fe("flex",n),[m,d,c]=k(X),w=le!=null?le:$==null?void 0:$.vertical,y=s()(h,l,$==null?void 0:$.className,X,d,c,S(X,a),{[`${X}-rtl`]:ce==="rtl",[`${X}-gap-${te}`]:(0,x.n)(te),[`${X}-vertical`]:w}),g=Object.assign(Object.assign({},$==null?void 0:$.style),ie);return de&&(g.flex=de),te&&!(0,x.n)(te)&&(g.gap=te),m(P.createElement(pe,Object.assign({ref:r,className:y,style:g},(0,C.Z)(me,["justify","wrap","align"])),ue))})}}]);