PageSourceSearch

https://kuajing-help.com/p__Admin__CouponManager__index.e68051a1.async.js

js kuajing-help.com collected 2026-09-24 14:46:38 UTC 21,651 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4589],{36019:(function(z,E,e){var d=e(98477),r=e(18211),g=e(48930),m=e(92661),x=e(37953),p=e(66250),f=e(89492),c=e(15621),_=["options","fieldProps","proFieldProps","valueEnum"],a=x.forwardRef(function(s,C){var j=s.options,P=s.fieldProps,M=s.proFieldProps,o=s.valueEnum,t=(0,r.A)(s,_);return(0,c.jsx)(f.A,(0,d.A)({ref:C,valueType:"checkbox",valueEnum:(0,g._)(o,void 0),fieldProps:(0,d.A)({options:j},P),lightProps:(0,d.A)({labelFormatter:function(){return(0,c.jsx)(f.A,(0,d.A)({ref:C,valueType:"checkbox",mode:"read",valueEnum:(0,g._)(o,void 0),filedConfig:{customLightMode:!0},fieldProps:(0,d.A)({options:j},P),proFieldProps:M},t))}},t.lightProps),proFieldProps:M},t))}),h=x.forwardRef(function(s,C){var j=s.fieldProps,P=s.children;return(0,c.jsx)(m.A,(0,d.A)((0,d.A)({ref:C},j),{},{children:P}))}),u=(0,p.F)(h,{valuePropName:"checked"}),i=u;i.Group=a,E.A=i}),15181:(function(z,E,e){var d=e(98477),r=e(18211),g=e(37953),m=e(54713),x=e(89492),p=e(15621),f=["fieldProps","proFieldProps"],c="dateTime",_=g.forwardRef(function(a,h){var u=a.fieldProps,i=a.proFieldProps,s=(0,r.A)(a,f),C=(0,g.useContext)(m.A);return(0,p.jsx)(x.A,(0,d.A)({ref:h,fieldProps:(0,d.A)({getPopupContainer:C.getPopupContainer},u),valueType:c,proFieldProps:i,filedConfig:{valueType:c,customLightMode:!0}},s))});E.A=_}),78451:(function(z,E,e){var d=e(98477),r=e(18211),g=e(37953),m=e(89492),x=e(15621),p=["fieldProps","min","proFieldProps","max"],f=function(a,h){var u=a.fieldProps,i=a.min,s=a.proFieldProps,C=a.max,j=(0,r.A)(a,p);return(0,x.jsx)(m.A,(0,d.A)({valueType:"digit",fieldProps:(0,d.A)({min:i,max:C},u),ref:h,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:s},j))},c=g.forwardRef(f);E.A=c}),31441:(function(z,E,e){var d=e(98477),r=e(18211),g=e(48930),m=e(21181),x=e(37953),p=e(66250),f=e(89492),c=e(15621),_=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],a=x.forwardRef(function(s,C){var j=s.fieldProps,P=s.options,M=s.radioType,o=s.layout,t=s.proFieldProps,S=s.valueEnum,R=(0,r.A)(s,_);return(0,c.jsx)(f.A,(0,d.A)((0,d.A)({valueType:M==="button"?"radioButton":"radio",ref:C,valueEnum:(0,g._)(S,void 0)},R),{},{fieldProps:(0,d.A)({options:P,layout:o},j),proFieldProps:t,filedConfig:{customLightMode:!0}}))}),h=x.forwardRef(function(s,C){var j=s.fieldProps,P=s.children;return(0,c.jsx)(m.A,(0,d.A)((0,d.A)({},j),{},{ref:C,children:P}))}),u=(0,p.F)(h,{valuePropName:"checked",ignoreWidth:!0}),i=u;i.Group=a,i.Button=m.A.Button,i.displayName="ProFormComponent",E.A=i}),41638:(function(z,E,e){var d=e(73159),r=e(98477),g=e(18211),m=e(74979),x=e(1920),p=e(2118),f=e(34346),c=e(37953),_=e(89492),a=e(15621),h=["fieldProps","proFieldProps"],u=["fieldProps","proFieldProps"],i="text",s=function(o){var t=o.fieldProps,S=o.proFieldProps,R=(0,g.A)(o,h);return(0,a.jsx)(_.A,(0,r.A)({valueType:i,fieldProps:t,filedConfig:{valueType:i},proFieldProps:S},R))},C=function(o){var t=(0,m.A)(o.open||!1,{value:o.open,onChange:o.onOpenChange}),S=(0,d.A)(t,2),R=S[0],$=S[1];return(0,a.jsx)(x.A.Item,{shouldUpdate:!0,noStyle:!0,children:function(ne){var N,k=ne.getFieldValue(o.name||[]);return(0,a.jsx)(p.A,(0,r.A)((0,r.A)({getPopupContainer:function(y){return y&&y.parentNode?y.parentNode:y},onOpenChange:function(y){return $(y)},content:(0,a.jsxs)("div",{style:{padding:"4px 0"},children:[(N=o.statusRender)===null||N===void 0?void 0:N.call(o,k),o.strengthText?(0,a.jsx)("div",{style:{marginTop:10},children:(0,a.jsx)("span",{children:o.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},o.popoverProps),{},{open:R,children:o.children}))}})},j=function(o){var t=o.fieldProps,S=o.proFieldProps,R=(0,g.A)(o,u),$=(0,c.useState)(!1),W=(0,d.A)($,2),ne=W[0],N=W[1];return t!=null&&t.statusRender&&R.name?(0,a.jsx)(C,{name:R.name,statusRender:t==null?void 0:t.statusRender,popoverProps:t==null?void 0:t.popoverProps,strengthText:t==null?void 0:t.strengthText,open:ne,onOpenChange:N,children:(0,a.jsx)("div",{children:(0,a.jsx)(_.A,(0,r.A)({valueType:"password",fieldProps:(0,r.A)((0,r.A)({}
1,(0,f.A)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(Y){var y;t==null||(y=t.onBlur)===null||y===void 0||y.call(t,Y),N(!1)},onClick:function(Y){var y;t==null||(y=t.onClick)===null||y===void 0||y.call(t,Y),N(!0)}}),proFieldProps:S,filedConfig:{valueType:i}},R))})}):(0,a.jsx)(_.A,(0,r.A)({valueType:"password",fieldProps:t,proFieldProps:S,filedConfig:{valueType:i}},R))},P=s;P.Password=j,P.displayName="ProFormComponent",E.A=P}),65912:(function(z,E,e){var d=e(98477),r=e(18211),g=e(37953),m=e(89492),x=e(15621),p=["fieldProps","proFieldProps"],f=function(_,a){var h=_.fieldProps,u=_.proFieldProps,i=(0,r.A)(_,p);return(0,x.jsx)(m.A,(0,d.A)({ref:a,valueType:"textarea",fieldProps:h,proFieldProps:u},i))};E.A=g.forwardRef(f)}),48618:(function(z,E,e){e.d(E,{h:function(){return _}});var d=e(45843),r=e(30807),g=e(61793),m=e(89903),x=e(15774),p=e(15621);function f(a){var h=a.toolbar,u=a.loading,i=a.total,s=i===void 0?0:i,C=a.page,j=C===void 0?1:C,P=a.pageSize,M=P===void 0?20:P,o=a.onPageChange,t=a.showPagination,S=t===void 0?!0:t,R=a.children,$=!u&&!s;return(0,p.jsxs)("div",{className:x.A.page,children:[h&&(0,p.jsx)("div",{className:x.A.toolbar,children:h}),(0,p.jsxs)(g.A,{spinning:!!u,children:[R,$&&(0,p.jsx)(d.A,{description:"\u6682\u65E0\u6570\u636E"})]}),S&&s>0&&(0,p.jsx)(r.A,{simple:!0,current:j,pageSize:M,total:s,onChange:o})]})}var c={Processing:"processing",Error:"error",Success:"success",Default:"default",Warning:"warning"};function _(a){var h=a.valueEnum,u=a.value,i=h==null?void 0:h[u];return i?(0,p.jsx)(m.A,{color:c[i.status]||"default",children:i.text}):(0,p.jsx)("span",{children:"-"})}E.A=f}),98614:(function(z,E,e){e.d(E,{A:function(){return a}});var d=e(37810),r=e.n(d),g=e(26572),m=e.n(g),x=e(37953),p={warp:"warp___YwEJM",title:"title___DMVwk",content:"content___Q1eqL"},f=e(15621),c=["children","title","style","titleStyle","className","contentClassName","contentStyle"],_=function(u){var i=u.children,s=u.title,C=u.style,j=u.titleStyle,P=u.className,M=u.contentClassName,o=u.contentStyle,t=m()(u,c);return(0,f.jsxs)("div",r()(r()({className:p.warp+" "+P,style:C},t),{},{children:[s&&(0,f.jsx)("div",{style:j,className:p.title,children:s}),(0,f.jsx)("div",{className:p.content+" "+M,style:o,children:i})]}))},a=_}),98314:(function(z,E,e){var d=e(37810),r=e.n(d),g=e(26572),m=e.n(g),x=e(52089),p=e(74094),f=e(2122),c=e.n(f),_=e(37953),a=e(15621),h=["copyText","successMsg"];E.A=(function(u){var i=u.copyText,s=u.successMsg,C=m()(u,h),j=(0,_.useMemo)(function(){return"id_".concat(i,"_").concat(Math.random().toString().substring(2,10))},[]);return(0,_.useEffect)(function(){var P=document.getElementById(j);if(P){var M=new(c())(P,{});M.on("success",function(o){p.Ay.success(s||"\u5E97\u94FAID\u5DF2\u590D\u5236\u5230\u526A\u5207\u677F")}),M.on("error",function(o){console.error(o)})}},[i]),(0,a.jsx)(x.A,r()({id:j,"data-clipboard-text":i,children:"\u590D\u5236",type:"link",size:"small",onClick:function(M){M.stopPropagation(),M.preventDefault()}},C))}),e.dn(E.A)}),79056:(function(z,E,e){e.r(E),e.d(E,{default:function(){return Ee}});var d=e(37810),r=e.n(d),g=e(55472),m=e.n(g),x=e(98614),p=e(98314),f=e(2400),c=e(78451),_=e(31441),a=e(41638),h=e(36019),u=e(15181),i=e(65912),s=e(56231),C=e(24189),j=e(7408),P=e(66437),M=e(77772),o=e(74094),t=e(27209),S=e(66018),R=e(4813),$=e(52089),W=e(37953),ne=e(62027),N=(0,ne.B)([{value:"NEW",label:"\u672A\u4F7F\u7528"},{value:"USED",label:"\u5DF2\u4F7F\u7528"},{value:"EXPIRED",label:"\u8FC7\u671F"},{value:"CLOSED",label:"\u5DF2\u5931\u6548"}]),k=e(15687),Y=e(3524),y=e(48618),v=e(15774),ce=e(60343),Ce=e(9182),ge=e.n(Ce);function ve(T){return(0,ce.request)("/api/v1/admin/platform/searchCoupon",{method:"POST",data:T})}function _e(T){return(0,ce.request)("/api/v1/admin/platform/closeCoupon",{method:"POST",data:{coupon:T}})}function Pe(T,b){return(0,ce.request)("/api/v1/admin/platform/generateCoupon?discount="+T.discount*100,{method:"POST",data:r()(r()({},T),{},{discount:T.discount*100,condition:b})})}function Ae(T){var b={};return Object.keys(T).forEach(function(Q){/^condition_/.test(Q)&&T[Q]&&(b[Q.replace(/^condition_/,"")]=T[Q],delete T[Q])}),b.expiredTime&&(b.expiredTime=ge()(b.expiredTime).valueOf()),b}var n=e(15621),je={MALL:"\u6309\u5E97\u94FA\u8D2D\u4E70",PACKAGE:"\u6309\u5957\u9910\u8D2D\u4E70",GENERAL:"\u901A\u7528"};function Me(){var T=(0,W.useState)(!1),b=m()(T,2),Q=b[0],ae=b[1],te=(0,W.useState)(""),pe=m()(te,2),q=pe[0],oe=pe[1],re=(0,W.useState)(1),ee=m()(re,2),se=ee[0],J=ee[1],X=(0,W.useState)(20),F=m()(X,1),H=F[0],le=(0,W.useState)(""),ie=m()(le,2),de=ie[0],me=ie[1],ue=(0,W.useState)({page:1,pageSize:20}),B=m()(ue,2),l=B[0],L=B[1],O=(0,P.Ay)(ve,{manual:!0}),G=O.data,K=O.run,I=O.loading,Fe=(0,P.Ay)(_e,{manual:!0,onFinally:function(){K(r()({},l))}}),ye=Fe.run;(0,M.A)(function(){K({page:1,pageSize:20})});
1var he=function(D,V){oe(""),ae(!0),Pe(D,V).then(function(w){w.success?(o.Ay.success("\u751F\u6210\u4F18\u60E0\u7801\u6210\u529F"),oe(w.data)):o.Ay.error(w.msg)}).catch(function(w){o.Ay.error(w.message||"\u63A5\u53E3\u8C03\u7528\u5931\u8D25")}).finally(function(){return ae(!1)})},Le=function(D){var V=Ae(D);if(D.discount<=50){S.A.confirm({title:"\u4F4E\u6298\u6263\u63D0\u9192",content:"\u5F53\u524D\u6298\u6263\u4E3A ".concat(D.discount,"%\uFF0C\u6298\u6263\u8FC7\u4F4E\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4ECD\u8981\u751F\u6210\uFF1F"),okText:"\u786E\u8BA4\u751F\u6210",cancelText:"\u53D6\u6D88",onOk:function(){he(D,V)}});return}he(D,V)},xe=function(){var D={coupon:de,page:1,pageSize:H};L(D),J(1),K(D)},Se=function(D){try{var V=JSON.parse(D);return Object.entries(V).map(function(w){var fe=m()(w,2),Z=fe[0],U=fe[1];return(0,n.jsxs)("div",{children:[Z==="packageMember"&&U&&"\u5957\u9910\u4F1A\u5458\u4E13\u4EAB",Z==="productTrial"&&U&&"\u65B0\u7528\u6237\u4E13\u4EAB",Z==="mallCount"&&U&&"\u6700\u5C0F\u5E97\u94FA\u6570\u91CF: ".concat(U),Z==="month"&&U&&"\u6700\u5C0F\u5F00\u901A\u6708\u6570: ".concat(U),Z==="type"&&U&&"\u7C7B\u578B: ".concat(je[U]||U),Z==="expiredTime"&&U&&"\u6709\u6548\u671F: ".concat(new Date(U).toLocaleString())]},Z)})}catch(w){return(0,n.jsx)("span",{children:"\u65E0"})}};return(0,n.jsx)("div",{className:v.A.page,children:(0,n.jsx)(k.A,{className:v.A.card,bodyStyle:{padding:0},children:(0,n.jsx)(t.A,{size:"small",items:[{key:"\u751F\u6210",label:"\u4F18\u60E0\u7801\u751F\u6210",children:(0,n.jsxs)("div",{style:{padding:12},children:[(0,n.jsxs)(f.U,{initialValues:{discount:90,couponType:"ONES",maxAmount:1,commissionRatio:0},onFinish:Le,submitter:{searchConfig:{submitText:"\u751F\u6210",resetText:"\u91CD\u7F6E"}},children:[(0,n.jsx)(c.A,{required:!0,max:100,min:0,name:"discount",label:"\u6298\u6263(100=100%\uFF0C\u4E0D\u6253\u6298)"}),(0,n.jsx)(c.A,{required:!0,max:100,min:0,fieldProps:{step:10},name:"commissionRatio",label:"\u5206\u4F63\u6BD4\u4F8B"}),(0,n.jsx)(_.A.Group,{options:[{label:"\u5355\u6B21",value:"ONES"},{label:"\u4EE3\u7406\u4EBA",value:"AGENT"}],label:"\u4EE3\u7406\u7C7B\u578B",name:"couponType",radioType:"button"}),(0,n.jsx)(a.A,{label:(0,n.jsx)("strong",{children:"\u4F7F\u7528\u6761\u4EF6"}),children:(0,n.jsxs)("div",{style:{padding:"12px",border:"1px dashed #dfdfdf",borderRadius:4},children:[(0,n.jsx)(c.A,{label:"\u6700\u5C0F\u5E97\u94FA\u6570\u91CF",name:"condition_mallCount"}),(0,n.jsx)(c.A,{label:"\u6700\u5C0F\u5F00\u901A\u6708\u6570",name:"condition_month",initialValue:12}),(0,n.jsx)(_.A.Group,{label:"\u8D2D\u4E70\u65B9\u5F0F",name:"condition_type",initialValue:"MALL",options:[{label:"\u6309\u5E97\u94FA\u8D2D\u4E70",value:"MALL"},{label:"\u6309\u5957\u9910\u8D2D\u4E70",value:"PACKAGE"},{label:"\u901A\u7528",value:"GENERAL"}],radioType:"button"}),(0,n.jsx)(h.A,{label:"\u65B0\u7528\u6237\u4E13\u4EAB",name:"condition_productTrial"}),(0,n.jsx)(u.A,{label:"\u6709\u6548\u671F",name:"condition_expiredTime"})]})}),(0,n.jsx)(c.A,{label:"\u6700\u5927\u6570\u91CF",min:1,name:"maxAmount"}),(0,n.jsx)(i.A,{label:"\u5907\u6CE8",name:"remark"})]}),(0,n.jsx)("hr",{style:{margin:"16px 0"}}),(0,n.jsxs)("div",{style:{fontSize:"15px"},children:["\u4F18\u60E0\u7801: ",q,q?(0,n.jsx)(p.A,{copyText:q,successMsg:"\u590D\u5236\u6210\u529F"}):(0,n.jsx)(n.Fragment,{})]})]})},{key:"\u641C\u7D22",label:"\u4F18\u60E0\u7801\u641C\u7D22",children:(0,n.jsxs)("div",{style:{padding:12},children:[(0,n.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:10},children:[(0,n.jsx)(Y.A,{size:"small",allowClear:!0,placeholder:"\u8F93\u5165\u4F18\u60E0\u7801",value:de,onChange:function(D){me(D.target.value)},onPressEnter:xe}),(0,n.jsx)($.A,{size:"small",type:"primary",loading:I,onClick:xe,children:"\u641C\u7D22"})]}),(0,n.jsx)(y.A,{loading:I,total:(G==null?void 0:G.total)||0,page:se,pageSize:H,onPageChange:function(D){J(D);var V=r()(r()({},l),{},{page:D});L(V),K(V)},children:((G==null?void 0:G.data)||[]).map(function(A){return(0,n.jsxs)(k.A,{className:v.A.card,title:(0,n.jsxs)("div",{className:v.A.cardTitle,children:[(0,n.jsx)("span",{className:v.A.titleMain,children:A.code||"-"}),A.code&&(0,n.jsx)(p.A,{copyText:String(A.code),successMsg:"\u590D\u5236\u6210\u529F"})]}),extra:(0,n.jsx)("span",{style:{color:N.isNew(A.status)?"#108ee9":"#f50",fontSize:13},children:N.getLabel(A.status)||A.status}),children:[(0,n.jsxs)("div",{className:v.A.rows,children:[(0,n.jsxs)("div",{className:v.A.row,children:[(0,n.jsx)("span",{className:v.A.rowLabel,children:"\u7C7B\u578B"}),(0,n.jsx)("span",{className:v.A.rowValue,children:A.type==="ONES"?"\u5355\u6B21":A.type==="AGENT"?"\u4EE3\u7406":A.type})]}),(0,n.jsxs)("div",{className:v.A.row,children:[(0,n.jsx)("span",{className:v.A.rowLabel,children:"\u6298\u6263"}),(0,n.jsxs)("span",{className:v.A.rowValue,children:[A.discount,"%"]})]}),(0,n.jsxs)("div",{className:v.A.row,children:[(0,n.jsx)("span",{className:v.A.rowLabel,children:"\u4F7F\u7528\u91CF"}),(0,n.jsx)("span",{className:v.A.rowValue,children:A.amount})]}),(0,n.jsxs)("div",{className:v.A.row,children:[(0,n.jsx)("span",{className:v.A.rowLabel,children:"\u6700\u5927\u91CF"}),(0,n.jsx)("span",{className:v.A.rowValue,children:A.maxAmount})]}),(0,n.jsxs)("div",{className:v.A.row,children:[(0,n.jsx)("span",{className:v.A.rowLabel,children:"\u6761\u4EF6"}),(0,n.jsx)("span",{className:v.A.rowValue,children:Se(A.conditions)})]}),(0,n.jsxs)("div",{className:v.A.row,children:[(0,n.jsx)("span",{className:v.A.rowLabel,children:"\u5907\u6CE8"}),(0,n.jsx)("span",{className:v.A.rowValue,children:A.remark||"-"})]}),(0,n.jsxs)("div",{className:v.A.row,children:[(0,n.jsx)("span",{className:v.A.rowLabel,children:"\u521B\u5EFA\u65F6\u95F4"}),(0,n.jsx)("span",{className:v.A.rowValue,children:A.createTime||"-"})]})]}),(0,n.jsx)("div",{className:v.A.actionBar,children:(0,n.jsx)(R.A,{title:"\u662F\u5426\u786E\u8BA4\u64CD\u4F5C",onConfirm:function(){return ye(A==null?void 0:A.code)},okText:"\u662F",cancelText:"\u5426",children:(0,n.jsx)("span",{className:v.A.danger,children:"\u593
11\u6548"})})})]},A.id)})})]})}]})})})}var Te=Me,Oe=e(15554);e.dn(Ee);var De={MALL:"\u6309\u5E97\u94FA\u8D2D\u4E70",PACKAGE:"\u6309\u5957\u9910\u8D2D\u4E70",GENERAL:"\u901A\u7528"};function Ee(){var T,b,Q=(0,Oe.al)(),ae=(0,W.useState)(!1),te=m()(ae,2),pe=te[0],q=te[1],oe=(0,W.useState)(""),re=m()(oe,2),ee=re[0],se=re[1],J=(0,P.Ay)(ve,{manual:!0}),X=J.data,F=J.params,H=J.run,le=J.loading,ie=J.refresh,de=(0,P.Ay)(_e,{manual:!0,onFinally:function(){ie()}}),me=de.run,ue=function(l,L){se(""),q(!0),Pe(l,L).then(function(O){O.success?(o.Ay.success("\u751F\u6210\u4F18\u60E0\u7801\u6210\u529F"),se(O.data)):o.Ay.error(O.msg)}).catch(function(O){o.Ay.error(O.message||"\u63A5\u53E3\u8C03\u7528\u5931\u8D25")}).finally(function(){return q(!1)})};return(0,M.A)(function(){H({page:1,pageSize:20})}),Q?(0,n.jsx)(Te,{}):(0,n.jsx)(j.Ay,{ghost:!0,children:(0,n.jsx)(x.A,{children:(0,n.jsx)(t.A,{items:[{key:"\u4F18\u60E0\u7801\u751F\u6210",label:"\u4F18\u60E0\u7801\u751F\u6210",children:(0,n.jsxs)(x.A,{children:[(0,n.jsxs)(f.U,{initialValues:{discount:90,couponType:"ONES",maxAmount:1,commissionRatio:0},onFinish:function(l){var L=Ae(l);if(l.discount<=50){S.A.confirm({title:"\u4F4E\u6298\u6263\u63D0\u9192",content:"\u5F53\u524D\u6298\u6263\u4E3A ".concat(l.discount,"%\uFF0C\u6298\u6263\u8FC7\u4F4E\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4ECD\u8981\u751F\u6210\uFF1F"),okText:"\u786E\u8BA4\u751F\u6210",cancelText:"\u53D6\u6D88",onOk:function(){ue(l,L)}});return}ue(l,L)},children:[(0,n.jsx)(c.A,{required:!0,max:100,min:0,name:"discount",label:"\u6298\u6263(100=100%\uFF0C\u4E0D\u6253\u6298)"}),(0,n.jsx)(c.A,{required:!0,max:100,min:0,fieldProps:{step:10},name:"commissionRatio",label:"\u5206\u4F63\u6BD4\u4F8B"}),(0,n.jsx)(_.A.Group,{options:[{label:"\u5355\u6B21",value:"ONES"},{label:"\u4EE3\u7406\u4EBA",value:"AGENT"}],label:"\u4EE3\u7406\u7C7B\u578B",name:"couponType",radioType:"button"}),(0,n.jsx)(a.A,{label:(0,n.jsx)("strong",{children:"\u4F7F\u7528\u6761\u4EF6"}),children:(0,n.jsxs)("div",{style:{padding:"16px",border:"1px dashed #dfdfdf"},children:[(0,n.jsx)(c.A,{label:"\u6700\u5C0F\u5E97\u94FA\u6570\u91CF",name:"condition_mallCount"}),(0,n.jsx)(c.A,{label:"\u6700\u5C0F\u5F00\u901A\u6708\u6570",name:"condition_month",initialValue:12}),(0,n.jsx)(_.A.Group,{label:"\u8D2D\u4E70\u65B9\u5F0F",name:"condition_type",initialValue:"MALL",options:[{label:"\u6309\u5E97\u94FA\u8D2D\u4E70",value:"MALL"},{label:"\u6309\u5957\u9910\u8D2D\u4E70",value:"PACKAGE"},{label:"\u901A\u7528",value:"GENERAL"}],radioType:"button"}),(0,n.jsx)(h.A,{label:"\u65B0\u7528\u6237\u4E13\u4EAB",name:"condition_productTrial"}),(0,n.jsx)(u.A,{label:"\u6709\u6548\u671F",name:"condition_expiredTime"})]})}),(0,n.jsx)(c.A,{label:"\u6700\u5927\u6570\u91CF",min:1,name:"maxAmount"}),(0,n.jsx)(i.A,{label:"\u5907\u6CE8",name:"remark"})]}),(0,n.jsx)("hr",{style:{margin:"20px 0"}}),(0,n.jsxs)("div",{style:{marginTop:"10px",width:"100%",fontSize:"16px"},children:["\u4F18\u60E0\u7801: ",ee,ee?(0,n.jsx)(p.A,{copyText:ee,successMsg:"\u590D\u5236\u6210\u529F"}):(0,n.jsx)(n.Fragment,{})]})]})},{key:"\u4F18\u60E0\u7801\u641C\u7D22",label:"\u4F18\u60E0\u7801\u641C\u7D22",children:(0,n.jsxs)(x.A,{children:[(0,n.jsx)(s.X,{style:{paddingLeft:5,paddingTop:5},defaultCollapsed:!1,labelAlign:"left",split:!0,submitter:{submitButtonProps:{loading:le}},span:{xs:24,sm:12,md:8,lg:8,xl:8,xxl:8},onFinish:function(l){H(r()(r()({},l||{}),{},{page:1,pageSize:20}))},children:(0,n.jsx)(a.A,{label:"\u4F18\u60E0\u7801",name:"coupon"})}),(0,n.jsx)(C.A,{rowKey:"id",loading:le,search:!1,options:!1,scroll:{x:"max-content"},columns:[{title:"ID",dataIndex:"id",key:"id",width:100,fixed:"left",render:function(l){return(0,n.jsx)("span",{children:l})}},{title:"\u4F18\u60E0\u7801",dataIndex:"code",key:"code",fixed:"left",width:220,render:function(l){return(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)("span",{children:l}),l&&(0,n.jsx)(p.A,{copyText:String(l),successMsg:"\u590D\u5236\u6210\u529F"})]})}},{title:"\u7C7B\u578B",dataIndex:"type",key:"type",width:180,render:function(l){return(0,n.jsx)("span",{children:l==="ONES"?"\u5355\u6B21":l==="AGENT"?"\u4EE3\u7406":l})}},{title:"\u6298\u6263",dataIndex:"discount",key:"discount",width:180,render:function(l){return"".concat(l,"%")}}
1,{title:"\u4F7F\u7528\u91CF",dataIndex:"amount",key:"amount",width:180},{title:"\u6700\u5927\u91CF",dataIndex:"maxAmount",key:"maxAmount",width:180},{title:"\u72B6\u6001",dataIndex:"status",key:"status",width:180,render:function(l){return(0,n.jsx)("span",{style:{color:N.isNew(l)?"#108ee9":"#f50"},children:N.getLabel(l)||l})}},{title:"\u6761\u4EF6",dataIndex:"conditions",key:"conditions",width:220,render:function(l){try{var L=JSON.parse(l);return Object.entries(L).map(function(O){var G=m()(O,2),K=G[0],I=G[1];return(0,n.jsxs)("div",{children:[K==="packageMember"&&I&&"\u5957\u9910\u4F1A\u5458\u4E13\u4EAB",K==="productTrial"&&I&&"\u65B0\u7528\u6237\u4E13\u4EAB",K==="mallCount"&&I&&"\u6700\u5C0F\u5E97\u94FA\u6570\u91CF: ".concat(I),K==="month"&&I&&"\u6700\u5C0F\u5F00\u901A\u6708\u6570: ".concat(I),K==="type"&&I&&"\u7C7B\u578B: ".concat(De[I]||I),K==="expiredTime"&&I&&"\u6709\u6548\u671F: ".concat(new Date(I).toLocaleString())]},K)})}catch(O){return(0,n.jsx)("span",{children:"\u65E0"})}}},{title:"\u5907\u6CE8",width:220,dataIndex:"remark",key:"remark",render:function(l){return l||"-"}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",key:"createTime"},{title:"\u64CD\u4F5C",dataIndex:"opt",key:"opt",width:180,fixed:"right",render:function(l,L){return(0,n.jsx)("div",{children:(0,n.jsx)(R.A,{title:"\u662F\u5426\u786E\u8BA4\u64CD\u4F5C",onConfirm:function(){return me(L==null?void 0:L.code)},okText:"\u662F",cancelText:"\u5426",children:(0,n.jsx)($.A,{type:"link",children:"\u5931\u6548"})})})}}],dataSource:(X==null?void 0:X.data)||[],pagination:{current:F==null||(T=F[0])===null||T===void 0?void 0:T.page,pageSize:F==null||(b=F[0])===null||b===void 0?void 0:b.pageSize,pageSizeOptions:[10,20,50],showSizeChanger:!0,hideOnSinglePage:!0,onChange:function(l,L){var O;(F==null||(O=F[0])===null||O===void 0?void 0:O.pageSize)!==L?H(r()(r()({},(F==null?void 0:F[0])||{}),{},{page:1,pageSize:L})):H(r()(r()({},(F==null?void 0:F[0])||{}),{},{page:l}))},total:X==null?void 0:X.total}})]})}]})})})}}),15774:(function(z,E){E.A={page:"page___ryFw5",toolbar:"toolbar___ygQkc",card:"card___oNkfm",cardTitle:"cardTitle___m86nS",titleMain:"titleMain___Chy_Q",link:"link___wB_7B",danger:"danger___eKrPo",tagRow:"tagRow___rr6yz",rows:"rows___c_8nj",row:"row___aHK5u",rowLabel:"rowLabel___f4KcL",rowValue:"rowValue___O7aiP",actionBar:"actionBar___DIo6C",time:"time___aFBer",desc:"desc___RXcRz",filterCard:"filterCard___qLLMc"}})}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.