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.

p__Company__Vip__index.2e15945e.async.js 15KB

6 months ago
1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[259],{31199:function(re,D,e){var P=e(1413),u=e(45987),s=e(62435),C=e(92767),x=e(86074),W=["fieldProps","min","proFieldProps","max"],f=function(i,Z){var I=i.fieldProps,v=i.min,t=i.proFieldProps,O=i.max,S=(0,u.Z)(i,W);return(0,x.jsx)(C.Z,(0,P.Z)({valueType:"digit",fieldProps:(0,P.Z)({min:v,max:O},I),ref:Z,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:t},S))},R=s.forwardRef(f);D.Z=R},86615:function(re,D,e){var P=e(1413),u=e(45987),s=e(22270),C=e(78045),x=e(62435),W=e(28614),f=e(92767),R=e(86074),M=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],i=x.forwardRef(function(t,O){var S=t.fieldProps,B=t.options,L=t.radioType,p=t.layout,r=t.proFieldProps,j=t.valueEnum,F=(0,u.Z)(t,M);return(0,R.jsx)(f.Z,(0,P.Z)((0,P.Z)({valueType:L==="button"?"radioButton":"radio",ref:O,valueEnum:(0,s.h)(j,void 0)},F),{},{fieldProps:(0,P.Z)({options:B,layout:p},S),proFieldProps:r,filedConfig:{customLightMode:!0}}))}),Z=x.forwardRef(function(t,O){var S=t.fieldProps,B=t.children;return(0,R.jsx)(C.ZP,(0,P.Z)((0,P.Z)({},S),{},{ref:O,children:B}))}),I=(0,W.G)(Z,{valuePropName:"checked",ignoreWidth:!0}),v=I;v.Group=i,v.Button=C.ZP.Button,v.displayName="ProFormComponent",D.Z=v},21134:function(re,D,e){var P=e(1413),u=e(45987),s=e(62435),C=e(92767),x=e(86074),W=["fieldProps","request","params","proFieldProps"],f=function(i,Z){var I=i.fieldProps,v=i.request,t=i.params,O=i.proFieldProps,S=(0,u.Z)(i,W);return(0,x.jsx)(C.Z,(0,P.Z)({valueType:"segmented",fieldProps:I,ref:Z,request:v,params:t,filedConfig:{customLightMode:!0},proFieldProps:O},S))},R=s.forwardRef(f);D.Z=R},5966:function(re,D,e){var P=e(97685),u=e(1413),s=e(45987),C=e(21770),x=e(23323),W=e(55241),f=e(97435),R=e(62435),M=e(92767),i=e(86074),Z=["fieldProps","proFieldProps"],I=["fieldProps","proFieldProps"],v="text",t=function(p){var r=p.fieldProps,j=p.proFieldProps,F=(0,s.Z)(p,Z);return(0,i.jsx)(M.Z,(0,u.Z)({valueType:v,fieldProps:r,filedConfig:{valueType:v},proFieldProps:j},F))},O=function(p){var r=(0,C.Z)(p.open||!1,{value:p.open,onChange:p.onOpenChange}),j=(0,P.Z)(r,2),F=j[0],k=j[1];return(0,i.jsx)(x.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(ee){var U,a=ee.getFieldValue(p.name||[]);return(0,i.jsx)(W.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:[(U=p.statusRender)===null||U===void 0?void 0:U.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 r=p.fieldProps,j=p.proFieldProps,F=(0,s.Z)(p,I),k=(0,R.useState)(!1),q=(0,P.Z)(k,2),ee=q[0],U=q[1];return r!=null&&r.statusRender&&F.name?(0,i.jsx)(O,{name:F.name,statusRender:r==null?void 0:r.statusRender,popoverProps:r==null?void 0:r.popoverProps,strengthText:r==null?void 0:r.strengthText,open:ee,onOpenChange:U,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)(r,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(o){var n;r==null||(n=r.onBlur)===null||n===void 0||n.call(r,o),U(!1)},onClick:function(o){var n;r==null||(n=r.onClick)===null||n===void 0||n.call(r,o),U(!0)}}),proFieldProps:j,filedConfig:{valueType:v}},F))})}):(0,i.jsx)(M.Z,(0,u.Z)({valueType:"password",fieldProps:r,proFieldProps:j,filedConfig:{valueType:v}},F))},B=t;B.Password=S,B.displayName="ProFormComponent",D.Z=B},33431:function(re,D,e){e.r(D),e.d(D,{default:function(){return X}});var P=e(5574),u=e.n(P),s=e(62435),C=e(59530),x=e(28459),W=e(15009),f=e.n(W),R=e(99289),M=e.n(R),i=e(67211),Z=e(25278),I=e(14726),v=e(39680),t=e(86074),O=function(d){var c=d.dispatch,N=d.getId,y=d.openModel,g=(0,s.useRef)(),w=(0,s.useState)([]),$=u()(w,2),z=$[0],ae=$[1],Y=(0,s.useState)(0),G=u()(Y,2),J=G[0],b=G[1],se=(0,s.useState)(1),V=u()(se,2),E=V[0],T=V[1],_=(0,s.useState)(10),ve=u()(_,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(H){N(H)};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:z,columns:[{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)(Z.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F01\u4E1A\u540D\u79F0",value:he,onChange:function(A){xe(A.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(H,A,Ee){return[(0,t.jsx)(I.ZP,{type:"link",onClick:function(){Me(A.id),c({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,t.jsx)(I.ZP,{type:"link",onClick:function(){Me(A.id),c({type:"openModel/getOpenFeeModal",payload:!0})},children:"\u53D8\u66F4\u70B9\u6570"},"1")]}}],rowKey:"id",pagination:{current:E,pageSize:Q,showSizeChanger:!0,total:J,pageSizeOptions:[9,18,27,99],onChange:function(H,A){T(H),Pe(A)},onShowSizeChange:function(H,A){T(H),Pe(A)}},request:M()(f()().mark(function ne(){var H,A=arguments;return f()().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return H=A.length>0&&A[0]!==void 0?A[0]:{},oe.abrupt("return",(0,v.oJ8)({page:E,pagesize:Q,sort:"id",sortby:"desc",keyword:he}).then(function(ye){ae(ye.data.list),b(ye.data.total)}));case 2:case"end":return oe.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),L=e(86615),p=e(1413),r=e(45987),j=e(86190),F=e(66758),k=e(92767),q=["fieldProps","proFieldProps"],ee="dateRange",U=s.forwardRef(function(m,d){var c=m.fieldProps,N=m.proFieldProps,y=(0,r.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:N,filedConfig:{valueType:ee,customLightMode:!0,lightFilterLabelFormatter:function($){return(0,j.c)($,(c==null?void 0:c.format)||"YYYY-MM-DD")}}},y))}),a=U,o=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,N=d.dictModel,y=d.openModel,g=d.id,w=(0,s.useRef)(),$=(0,s.useState)(!1),z=u()($,2),ae=z[0],Y=z[1],G=(0,s.useState)(null),J=u()(G,2),b=J[0],se=J[1];return(0,s.useEffect)(function(){Y(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:w,request:M()(f()().mark(function V(){var E;return f()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(!g){_.next=5;break}return _.next=3,(0,v.H2t)({id:g});case 3:return E=_.sent,_.abrupt("return",E.data);case 5:case"end":return _.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),Y(!1)}},onFinish:function(){var V=M()(f()().mark(function E(T){var _;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:_=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)(L.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)(L.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)(L.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)(L.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)(o.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"},K=function(d){var c=d.dispatch,N=d.dictModel,y=d.openModel,g=d.id,w=(0,s.useRef)(),$=(0,s.useState)(!1),z=u()($,2),ae=z[0],Y=z[1];return(0,s.useEffect)(function(){Y(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:w,submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(J,b){return(0,t.jsxs)(l.Z,{justify:"flex-end",children:[" ",(0,t.jsx)(h.Z,{children:b})]})},onReset:function(){Y(!1)}},onFinish:function(){var G=M()(f()().mark(function J(b){var se;return f()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return b.id=g,E.next=3,(0,v.aut)(b);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()}},J)}));return function(J){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(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",[{label:"\u589E\u52A0",value:1},{label:"\u6263\u51CF",value:2}]);case 1:case"end":return b.stop()}},G)})),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53D8\u66F4\u7C7B\u578B"}]}),(0,t.jsx)(o.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}})(K),fe=function(d){var c=d.dispatch,N=d.openModel,y=(0,s.useState)(0),g=u()(y,2),w=g[0],$=g[1],z=function(Y){$(Y)};return(0,s.useEffect)(function(){N.openModal||$(0)},[N.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(x.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,t.jsx)(S,{getId:z}),(0,t.jsx)(ue,{id:w}),(0,t.jsx)(ce,{id:w})]})})},X=(0,C.connect)(function(m){var d=m.openModel;return{openModel:d}})(fe)},86250:function(re,D,e){e.d(D,{Z:function(){return U}});var P=e(62435),u=e(93967),s=e.n(u),C=e(98423),x=e(98065),W=e(53124),f=e(92030),R=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"],Z=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],I=(a,o)=>{const n=o.wrap===!0?"wrap":o.wrap;return{[`${a}-wrap-${n}`]:n&&M.includes(n)}},v=(a,o)=>{const n={};return Z.forEach(l=>{n[`${a}-align-${l}`]=o.align===l}),n[`${a}-align-stretch`]=!o.align&&!!o.vertical,n},t=(a,o)=>{const n={};return i.forEach(l=>{n[`${a}-justify-${l}`]=o.justify===l}),n};function O(a,o){return s()(Object.assign(Object.assign(Object.assign({},I(a,o)),v(a,o)),t(a,o)))}var S=O;const B=a=>{const{componentCls:o}=a;return{[o]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},L=a=>{const{componentCls:o}=a;return{[o]:{"&-gap-small":{gap:a.flexGapSM},"&-gap-middle":{gap:a.flexGap},"&-gap-large":{gap:a.flexGapLG}}}},p=a=>{const{componentCls:o}=a,n={};return M.forEach(l=>{n[`${o}-wrap-${l}`]={flexWrap:l}}),n},r=a=>{const{componentCls:o}=a,n={};return Z.forEach(l=>{n[`${o}-align-${l}`]={alignItems:l}}),n},j=a=>{const{componentCls:o}=a,n={};return i.forEach(l=>{n[`${o}-justify-${l}`]={justifyContent:l}}),n},F=()=>({});var k=(0,f.I$)("Flex",a=>{const{paddingXS:o,padding:n,paddingLG:l}=a,h=(0,R.TS)(a,{flexGapSM:o,flexGap:n,flexGapLG:l});return[B(h),L(h),p(h),r(h),j(h)]},F,{resetStyle:!1}),q=function(a,o){var n={};for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&o.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++)o.indexOf(l[h])<0&&Object.prototype.propertyIsEnumerable.call(a,l[h])&&(n[l[h]]=a[l[h]]);return n},U=P.forwardRef((a,o)=>{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:K,direction:ce,getPrefixCls:fe}=P.useContext(W.E_),X=fe("flex",n),[m,d,c]=k(X),N=le!=null?le:K==null?void 0:K.vertical,y=s()(h,l,K==null?void 0:K.className,X,d,c,S(X,a),{[`${X}-rtl`]:ce==="rtl",[`${X}-gap-${te}`]:(0,x.n)(te),[`${X}-vertical`]:N}),g=Object.assign(Object.assign({},K==null?void 0:K.style),ie);return de&&(g.flex=de),te&&!(0,x.n)(te)&&(g.gap=te),m(P.createElement(pe,Object.assign({ref:o,className:y,style:g},(0,C.Z)(me,["justify","wrap","align"])),ue))})}}]);