2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7178,5829],{85751:function(le,R,t){t.r(R);var c=t(26068),T=t.n(c),Y=t(15558),F=t.n(Y),z=t(48305),f=t.n(z),w=t(94675),O=t(953),L=t(50159),A=t(50959),W=t(75201),k=t(59806),m=t(11527);R.default=function(y){var U=y.modalOpenState,$=y.onModalOpenState,K=y.onSubmit,H=(0,A.useState)([]),V=f()(H,2),j=V[0],N=V[1],q=(0,A.useState)(!1),X=f()(q,2),s=X[0],Z=X[1],ee={onRemove:function(E){var D=j.indexOf(E),e=j.slice();e.splice(D,1),N(e)},beforeUpload:function(E){return N([].concat(F()(j),[E])),!1},fileList:j},ne=function(){var E=new FormData;j.forEach(function(D){E.append("file",D)}),K(E),N([])};return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(w.Z,{title:"\u5BFC\u5165\u63D0\u73B0\u7ED3\u679C",open:U,onCancel:function(){$(!1)},onOk:ne,footer:function(E,D){var e=D.OkBtn,l=D.CancelBtn;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(l,{}),(0,m.jsx)(e,{})]})},children:(0,m.jsxs)("div",{className:"flex",children:[(0,m.jsx)(O.Z,T()(T()({className:"mr-6"},ee),{},{children:(0,m.jsx)(L.ZP,{icon:(0,m.jsx)(W.Z,{}),children:"\u9009\u62E9\u6587\u4EF6"})})),(0,m.jsx)(L.ZP,{icon:(0,m.jsx)(k.Z,{}),onClick:function(){window.open("https://guangdongxingdong.oss-cn-beijing.aliyuncs.com/template/%E4%BD%93%E7%8E%B0%E8%AE%B0%E5%BD%95%E6%A8%A1%E6%9D%BF.xlsx")},children:"\u4E0B\u8F7D\u6A21\u677F"})]})})})}},51212:function(le,R,t){t.r(R);var c=t(26068),T=t.n(c),Y=t(67825),F=t.n(Y),z=t(90228),f=t.n(z),w=t(87999),O=t.n(w),L=t(48305),A=t.n(L),W=t(19869),k=t(52495),m=t(92694),y=t(50959),U=t(7485),$=t(47698),K=t(98984),H=t(12400),V=t(50159),j=t(16030),N=t(35384),q=t(75201),X=t(85751),s=t(11527),Z=["type","defaultRender","formItemProps","fieldProps"],ee=["type","defaultRender","formItemProps","fieldProps"],ne=function(){var E=(0,y.useRef)(),D=(0,y.useState)(!1),e=A()(D,2),l=e[0],i=e[1],a=(0,y.useState)([]),r=A()(a,2),C=r[0],p=r[1],M=(0,y.useState)(null),b=A()(M,2),G=b[0],x=b[1],Q=(0,U.useAccess)(),S=function(){var v=O()(f()().mark(function o(n){var _,h,g;return f()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,(0,k.rb)({userName:n});case 2:_=P.sent,h=_.success,g=_.data,g.records.map(function(u){u.userName=u.userName+" "+u.phone}),p(g.records);case 7:case"end":return P.stop()}},o)}));return function(n){return v.apply(this,arguments)}}(),I=function(){var v=O()(f()().mark(function o(n){var _,h;return f()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,(0,W.l_)(n);case 3:h=d.sent,$.ZP.success("\u5BFC\u5165\u6210\u529F"),(_=E.current)===null||_===void 0||_.reload(),i(!1),d.next=11;break;case 9:d.prev=9,d.t0=d.catch(0);case 11:case"end":return d.stop()}},o,null,[[0,9]])}));return function(n){return v.apply(this,arguments)}}(),te=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u7528\u6237\u4FE1\u606F",dataIndex:"userId",valueType:"text",render:function(o,n){return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{children:["\u7528\u6237ID:",n==null?void 0:n.userId]}),(0,s.jsxs)("div",{children:["\u7528\u6237\u540D\uFF1A",n==null?void 0:n.userName]}),(0,s.jsxs)("div",{children:["\u624B\u673A\u53F7\uFF1A",n==null?void 0:n.phone]}),(0,s.jsxs)("div",{children:["\u7B49\u7EA7\uFF1A",n==null?void 0:n.level]})]})},renderFormItem:function(o,n,_){var h=n.type,g=n.defaultRender,d=n.formItemProps,P=n.fieldProps,u=F()(n,Z);return(0,s.jsx)(K.Z,T()(T()({},P),{},{allowClear:!0,showSearch:!0,placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",style:{width:"100%"},filterOption:!1,onSearch:function(re){re&&S(re)},fieldNames:{label:"userName",value:"id"},options:C}))}},{title:"\u8BA2\u5355\u53F7",dataIndex:"orderNo",valueType:"text",search:!1},{title:"\u63D0\u53D6\u79EF\u5206",dataIndex:"points",valueType:"text",search:!1},{title:"\u624B\u7EED\u8D39",dataIndex:"commission",valueType:"text",search:!1},{title:"\u5230\u8D26\u79EF\u5206",dataIndex:"inToAccountPoints",valueType:"text",search:!1},{title:"\u57FA\u7840\u6536\u76CA",dataIndex:"points1",valueType:"text",search:!1},{title:"\u72B6\u6001",dataIndex:"status",valueType:"text",render:function(o,n){var _=n.status==0?"orange":n.status==1?"green":n.status==-1?"red":"";return(0,s.jsx)(H.Z,{color:_,children:n.status==0?"\u7533\u8BF7\u4E2D":n.status==1?"\u63D0\u73B0\u6210\u529F":n.status==-1?"\u5931\u8D25":""})},renderFormItem:function(o,n,_){var h=n.type,g=n.defaultRender,d=n.formItemProps,P=n.fieldProps,u=F()(n,ee),ae=[{label:"\u7533\u8BF7\u4E2D",value:0},{label:"\u63D0\u73B0\u6210\u529F",value:1},{label:"\u5931\u8D25",value:-1}];return(0,s.jsx)(K.Z,T()(T()({},P),{},{allowClear:!0,style:{width:"100%"},filterOption:!1,fieldNames:{label:"label",value:"value"},options:ae}))}},{title:"\u63D0\u73B0\u4FE1\u606F",dataIndex:"type",valueType:"text",search:!1,render:function(o,n){var _=n.type==1?"cyan":n.type==2?"red":"";return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(H.Z,{color:_,children:n.type==1?"\u4E2A\u4EBA":n.type==2?"\u4F01\u4E1A":""}),n.name]}),(0,s.jsxs)("div",{hidden:n.type==2,children:["\u8EAB\u4EFD\u8BC1\u53F7\uFF1A",n.idCard]}),(0,s.jsxs)("div",{children:["\u94F6\u884C\u5361\u53F7\uFF1A",n.bankCard]}),(0,s.jsxs)("div",{children:["\u5F00\u6237\u652F\u884C\uFF1A",n.subbranchName]}),(0,s.jsxs)("div",{hidden:n.type==1,children:["\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7\uFF1A",n.taxNo]})]})}},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"completeTime",valueType:"text",search:!1},{title:"\u5904\u7406\u7ED3\u679C",dataIndex:"handleMessage",valueType:"text",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",valueType:"dateRange",search:{transform:function(o){return{createTimeBegin:o[0],createTimeEnd:o[1]}}},render:function(o,n){return n==null?void 0:n.createTime}}];return(0,s.jsx)(j._z,{children:(0,s.jsxs)("div",{style:{width:"100%",float:"right"},children:[(0,s.jsx)(X.default,{modalOpenState:l,onModalOpenState:i,onSubmit:I}),(0,s.jsx)(N.Z,{actionRef:E,rowKey:"id",search:{labelWidth:120,defaultCollapsed:!1},toolBarRender:function(){return[(0,s.jsx)(V.ZP,{hidden:!Q.hasPerms("/api/userspoints/points/extract/export"),type:"primary",onClick:O()(f()().mark(function o(){var n;return f()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,(0,W.hT)(G);case 2:n=h.sent,(0,m.u1)(n,"\u63D0\u73B0\u8BB0\u5F55");case 4:case"end":return h.stop()}},o)})),children:"\u5BFC\u51FA\u63D0\u73B0\u7533\u8BF7"}),(0,s.jsx)(V.ZP,{hidden:!Q.hasPerms("/api/userspoints/importUsersPointsExtract"),icon:(0,s.jsx)(q.Z,{}),onClick:O()(f()().mark(function o(){return f()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:i(!0);case 1:case"end":return _.stop()}},o)})),children:"\u5BFC\u5165\u63D0\u73B0\u7ED3\u679C"})]},request:function(){var v=O()(f()().mark(function o(n,_,h){var g,d;return f()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return x(n),u.next=3,(0,W.eq)(n);case 3:return g=u.sent,d=g.data,u.abrupt("return",{data:(d==null?void 0:d.records)||[],total:d==null?void 0:d.total});case 6:case"end":return u.stop()}},o)}));return function(o,n,_){return v.apply(this,arguments)}}(),columns:te},"logList")]})})};R.default=ne},12400:function(le,R,t){t.d(R,{Z:function(){return D}});var c=t(50959),T=t(20819),Y=t(82187),F=t.n(Y),z=t(67806),f=t(80599),w=t(72585),O=t(76144),L=t(601),A=t(99978),W=t(54531),k=t(56352),m=t(79349);const y=e=>{const{paddingXXS:l,lineWidth:i,tagPaddingHorizontal:a,componentCls:r,calc:C}=e,p=C(a).sub(i).equal(),M=C(l).sub(i).equal();return{[r]:Object.assign(Object.assign({},(0,W.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:p,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,L.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:M,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:p}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},U=e=>{const{lineWidth:l,fontSizeIcon:i,calc:a}=e,r=e.fontSizeSM;return(0,k.TS)(e,{tagFontSize:r,tagLineHeight:(0,L.bf)(a(e.lineHeightSM).mul(r).equal()),tagIconSize:a(i).sub(a(l).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},$=e=>({defaultBg:new A.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var K=(0,m.I$)("Tag",e=>{const l=U(e);return y(l)},$),H=function(e,l){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&l.indexOf(a)<0&&(i[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)l.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(i[a[r]]=e[a[r]]);return i},j=c.forwardRef((e,l)=>{const{prefixCls:i,style:a,className:r,checked:C,onChange:p,onClick:M}=e,b=H(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:G,tag:x}=c.useContext(O.E_),Q=n=>{p==null||p(!C),M==null||M(n)},S=G("tag",i),[I,te,v]=K(S),o=F()(S,`${S}-checkable`,{[`${S}-checkable-checked`]:C},x==null?void 0:x.className,r,te,v);return I(c.createElement("span",Object.assign({},b,{ref:l,style:Object.assign(Object.assign({},a),x==null?void 0:x.style),className:o,onClick:Q})))}),N=t(33653);const q=e=>(0,N.Z)(e,(l,i)=>{let{textColor:a,lightBorderColor:r,lightColor:C,darkColor:p}=i;return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:a,background:C,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:p,borderColor:p},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var X=(0,m.bk)(["Tag","preset"],e=>{const l=U(e);return q(l)},$);function s(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Z=(e,l,i)=>{const a=s(i);return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:e[`color${i}`],background:e[`color${a}Bg`],borderColor:e[`color${a}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ee=(0,m.bk)(["Tag","status"],e=>{const l=U(e);return[Z(l,"success","Success"),Z(l,"processing","Info"),Z(l,"error","Error"),Z(l,"warning","Warning")]},$),ne=function(e,l){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&l.indexOf(a)<0&&(i[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)l.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(i[a[r]]=e[a[r]]);return i};const B=(e,l)=>{const{prefixCls:i,className:a,rootClassName:r,style:C,children:p,icon:M,color:b,onClose:G,closeIcon:x,closable:Q,bordered:S=!0}=e,I=ne(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:te,direction:v,tag:o}=c.useContext(O.E_),[n,_]=c.useState(!0);c.useEffect(()=>{"visible"in I&&_(I.visible)},[I.visible]);const h=(0,z.o2)(b),g=(0,z.yT)(b),d=h||g,P=Object.assign(Object.assign({backgroundColor:b&&!d?b:void 0},o==null?void 0:o.style),C),u=te("tag",i),[ae,re,de]=K(u),ue=F()(u,o==null?void 0:o.className,{[`${u}-${b}`]:d,[`${u}-has-color`]:b&&!d,[`${u}-hidden`]:!n,[`${u}-rtl`]:v==="rtl",[`${u}-borderless`]:!S},a,r,re,de),oe=J=>{J.stopPropagation(),G==null||G(J),!J.defaultPrevented&&_(!1)},[,_e]=(0,f.Z)(Q,x,J=>J===null?c.createElement(T.Z,{className:`${u}-close-icon`,onClick:oe}):c.createElement("span",{className:`${u}-close-icon`,onClick:oe},J),null,!1),ce=typeof I.onClick=="function"||p&&p.type==="a",se=M||null,me=se?c.createElement(c.Fragment,null,se,p&&c.createElement("span",null,p)):p,ie=c.createElement("span",Object.assign({},I,{ref:l,className:ue,style:P}),me,_e,h&&c.createElement(X,{key:"preset",prefixCls:u}),g&&c.createElement(ee,{key:"status",prefixCls:u}));return ae(ce?c.createElement(w.Z,{component:"Tag"},ie):ie)},E=c.forwardRef(B);E.CheckableTag=j;var D=E}}]);
|