PageSourceSearch

https://skymirror.ai/p__customer__PaymentDetailPage.dc614947.async.js

js skymirror.ai collected 2026-10-05 15:05:43 UTC 12,220 bytes, 2 lines download raw bytes

1(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7790],{50434:function(on,Q,a){"use strict";a.d(Q,{Z:function(){return k}});var J=a(67294),j=a(65465),X=a(29321),N=a(79965);function k(v){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=w.manual,g=W===void 0?!1:W,P=(0,j.QT)(function(y){return(0,X.ul)(y!=null?y:v)},{manual:g}),A=P.run,i=P.data,m=P.loading,tn=(0,j.QT)(N.pp),t=tn.data,G=(0,J.useMemo)(function(){return i!=null&&i.virtual_account?{is_virtual_account:!0,account_bank:i==null?void 0:i.virtual_account_bank,account_branch:i==null?void 0:i.virtual_account_branch,account_bank_name:i==null?void 0:i.virtual_account_bank_name,account:i==null?void 0:i.virtual_account}:{is_virtual_account:!1,account_bank:t!=null&&t.bank&&t!==null&&t!==void 0&&t.bank_id?"".concat(t.bank," (").concat(t.bank_id,")"):t==null?void 0:t.bank,account_branch:t!=null&&t.bank_branch&&t!==null&&t!==void 0&&t.bank_branch_id?"".concat(t.bank_branch," (").concat(t.bank_branch_id,")"):t==null?void 0:t.bank_branch,account_bank_name:t==null?void 0:t.bank_account_name,account:t==null?void 0:t.bank_account}},[i,t]);return{run:A,payInfo:G,reseller:t,loading:m}}},71671:function(on,Q,a){"use strict";var J=a(2824),j=a(67294);function X(N){var k=(0,j.useState)(function(){return typeof window!="undefined"&&window.matchMedia?window.matchMedia(N).matches:!1}),v=(0,J.Z)(k,2),w=v[0],W=v[1];return(0,j.useEffect)(function(){if(!(typeof window=="undefined"||!window.matchMedia)){var g=window.matchMedia(N),P=function(i){W(i.matches)};return g.addEventListener("change",P),function(){g.removeEventListener("change",P)}}},[N]),w}Q.Z=X},6326:function(on,Q,a){"use strict";a.r(Q),a.d(Q,{default:function(){return An}});var J=a(98858),j=a(4914),X=a(48736),N=a(27049),k=a(402),v=a(39602),w=a(39428),W=a(3182),g=a(11849),P=a(2824),A=a(67294),i=a(51615),m=a(65465),tn=a(80320),t=a(56020),G=a(79965),y=a(40255),hn=a(50434),Zn=a(13062),sn=a(71230),Fn=a(89032),un=a(15746),Pn=a(22385),xn=a(45777),pn=a(30381),K=a.n(pn),T=a(73619),dn=a(71671),_=a(38898),jn=a(1870),n=a(85893);function gn(x){var e=x.slip,r=x.chargePolicy,s=(0,m.v9)(function(p){return p.reseller.reseller}),D=(0,dn.Z)("(max-width: 600px)"),f=function(E){var M=E.label,l=E.value,R=E.tooltip,L=R===void 0?null:R,Y=E.direction,u=Y===void 0?"":Y;return(0,n.jsx)("div",{className:"field-container",children:(0,n.jsxs)("div",{className:"field",children:[(0,n.jsxs)("span",{className:"label ".concat(u?"text-".concat(u):"text-center"),children:[M,L&&(0,n.jsx)(xn.Z,{title:L,className:"tooltip",children:(0,n.jsx)(jn.Z,{})})]}),(0,n.jsx)("span",{className:"content",children:l})]})})},I=(0,A.useMemo)(function(){var p=e!=null&&e.month?K()("".concat(e==null?void 0:e.month,"-01")):K()().day(1);return p.format("YYYY \u5E74 MM \u6708")},[e==null?void 0:e.month]),C=(0,A.useMemo)(function(){if(e!=null&&e.deadline)return K()(e.deadline).format("YYYY \u5E74 MM \u6708 DD \u65E5");var p=parseInt(e==null?void 0:e.month.split("-")[1]),E=K()().month(p).endOf("month").format("YYYY \u5E74 MM \u6708 DD \u65E5");return E},[e==null?void 0:e.deadline,e==null?void 0:e.month]);return(0,n.jsxs)("div",{className:"payment-info",children:[(0,n.jsxs)(sn.Z,{gutter:[15,15],style:{marginBottom:30},children:[(0,n.jsxs)(un.Z,{span:24,children:[(0,n.jsx)(v.Z.Title,{level:3,style:{textAlign:"center"},children:s==null?void 0:s.name}),(0,n.jsxs)(v.Z.Title,{level:4,style:{textAlign:"center",marginTop:0},children:[I,"\u7E73\u8CBB\u901A\u77E5"]})]}),(0,n.jsx)(un.Z,{span:24,style:{textAlign:"center"},children:(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:20},children:[(0,n.jsx)("div",{className:"username-prefix"}),(0,n.jsx)(v.Z.Title,{level:2,className:"username",children:e==null?void 0:e.username}),(0,n.jsxs)("div",{className:"username-suffix",children:[(0,n.jsx)("span",{children:"\u5148\u751F"}),(0,n.jsx)("span",{children:"\u5973\u58EB"}),(0,n.jsx)("span",{children:"\u5BF6\u865F"})]})]})})]}),(0,n.jsxs)("div",{className:"information ".concat(D?"mobile":""),children:[(0,n.jsx)(f,{direction:"right",label:"\u61C9\u7E73\u7E3D\u91D1\u984D (\u5143)",value:"".concat(e==null?void 0:e.currency," ").concat((0,T.T4)(e==null?void 0:e.amount)),tooltip:`\u95DC\u65BC\u61C9\u7E73\u9
11D1\u984D\u7684\u8A08\u7B97\u65B9\u5F0F\uFF0C\u82E5\u5BA2\u6236\u7684\u8A08\u8CBB\u65B9\u5F0F\u70BA"\u56FA\u5B9A\u8CBB\u7387"\uFF0C\u5247\u61C9\u7E73\u91D1\u984D\u70BA"\u7576\u6708\u6DE8\u5229 \u4E58\u4EE5 \u8CBB\u7387"\u3002
2                    \u82E5\u8A08\u8CBB\u65B9\u5F0F\u70BA"\u56FA\u5B9A\u91D1\u984D"\uFF0C\u5247\u76F4\u63A5\u6536\u53D6\u6240\u8A2D\u5B9A\u7684\u56FA\u5B9A\u91D1\u984D\u3002`}),(0,n.jsx)(f,{label:"\u7E73\u8CBB\u671F\u9650",value:C}),(0,n.jsx)(f,{label:"\u7D50\u5E33\u9031\u671F",value:(0,_.rt)(r==null?void 0:r.period)})]})]})}function yn(x){var e=x.reseller,r=(0,dn.Z)("(max-width: 600px)");return(0,n.jsxs)("div",{className:"flex flex-col",style:{width:"100%"},children:[(0,n.jsx)("div",{children:(0,n.jsx)(v.Z.Text,{children:e==null?void 0:e.name})}),(0,n.jsxs)("div",{className:r?"flex flex-col":"flex flex-row justify-between",children:[(0,n.jsxs)(v.Z.Text,{children:["\u71DF\u5229\u4E8B\u696D\u7D71\u4E00\u7DE8\u865F\uFF1A",e==null?void 0:e.tax_no]}),(0,n.jsxs)(v.Z.Text,{children:["\u806F\u7D61\u96FB\u8A71\uFF1A",e==null?void 0:e.phone]}),(0,n.jsxs)(v.Z.Text,{children:["\u806F\u7D61\u5730\u5740\uFF1A",e==null?void 0:e.address]})]})]})}var Tn=a(8963),q=a(79432),ln=a(55590);function Dn(x){var e=x.receivables;return e?(0,n.jsx)("div",{className:"purchase-detail-receivable-list",children:e==null?void 0:e.map(function(r){var s=r!=null&&r.month?K()("".concat(r==null?void 0:r.month,"-01")):K()().day(1);return(0,n.jsxs)("div",{className:"purchase-detail-card",children:[(0,n.jsx)("div",{className:"card-head",children:(0,n.jsx)("div",{className:"card-head-wrapper",children:(0,n.jsx)("div",{className:"card-head-title",children:(0,n.jsxs)(sn.Z,{gutter:[10,10],children:[(0,n.jsx)(un.Z,{span:12,className:"flex items-center",children:s.format("YYYY \u5E74 MM \u6708")+"\u5E33\u6B3E"}),!1]})})})}),!!r&&(r==null?void 0:r.raw_profit)!=0&&(0,n.jsx)("div",{className:"card-content",children:(0,n.jsx)(En,{receivable:r})})]},r.id)})}):(0,n.jsx)(n.Fragment,{})}var z=function(e){var r=e.title,s=e.value,D=e.colSpan;return(0,n.jsxs)(q.Z.Summary.Row,{children:[(0,n.jsx)(q.Z.Summary.Cell,{index:0,align:"right",colSpan:D,className:"bg-light-white",children:r}),(0,n.jsx)(q.Z.Summary.Cell,{index:1,align:"right",children:s})]})},En=function(e){var r,s=e.receivable,D=(0,m.md)(),f=D.isReseller,I=(0,m.v9)(function(u){return u.strategy.products}),C=((s==null||(r=s.balance)===null||r===void 0?void 0:r.ledgers)||[]).map(function(u,o){var h,b=(h=u.note)===null||h===void 0?void 0:h.strategy_product_id,Z=I==null?void 0:I.find(function(O){return O.id===b}),B=(Z==null?void 0:Z.name)||b||"-";return(0,g.Z)((0,g.Z)({key:o+1},u),{},{note:(0,g.Z)((0,g.Z)({},u.note),{},{strategy_product_name:B}),amount:u.amount?parseInt(u.amount):0,raw_profit:s.raw_profit?parseInt(s.raw_profit):0})});C.sort(function(u,o){return parseInt(u.id)-parseInt(o.id)});var p=C.filter(function(u){return u.amount>0&&u.note.subject===ln.oP}),E=p.reduce(function(u,o){return u+parseInt(o.amount)},0),M=C.filter(function(u){return u.note.subject===ln.wm}).reduce(function(u,o){return u+parseInt(o.amount)},0),l=C.filter(function(u){return u.note.subject===ln.s0}).reduce(function(u,o){return u+parseInt(o.amount)},0),R=E+M+l,L=s.raw_profit-R,Y=[{title:"#",dataIndex:"key",width:20},{title:"\u8CBB\u7528\u9805\u76EE",dataIndex:["note","strategy_product_name"]},{dataIndex:["note","plan"],title:"\u8A08\u8CBB\u65B9\u5F0F",width:250,render:function(o,h){var b,Z,B,O=(0,_.yZ)(o),c=Number((b=h.note)===null||b===void 0?void 0:b.plan_amount),nn=Number(h==null?void 0:h.amount),en=(Z=h.note)===null||Z===void 0?void 0:Z.net_profit_diff,V=!!nn||!!c?nn/c*100:void 0,H=(0,_.qD)((B=h.note)===null||B===void 0?void 0:B.plan);return o===_.Ju?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Z.Link,{href:"/report",children:"\u7576\u6708\u6DE8\u5229"})," ".concat((0,T.T4)(en||V))," * ".concat(O," ").concat(c).concat(H)]}):"".concat(O," ").concat(c).concat(H)}},{title:"\u91D1\u984D",dataIndex:"amount",align:"right",width:100,render:function(o){return o?(0,T.T4)(o):"-"}}].filter(function(u){return!(!f&&u.title==="\u8A08\u8CBB\u65B9\u5F0F")});return(0,n.jsx)(q.Z,{size:"small",scroll:{x:"max-content"},pagination:!1,rowKey:"id",dataSource:p,summary:function(o){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(z,{title:"\u5C0F\u8A08",value:(0,T.T4)(E),colSpan:f?3:2}),(0,n.jsx)(z,{title:"\u734E\u91D1\u6298\u62B5",value:(0,T.T4)(M),c
2olSpan:f?3:2}),(0,n.jsx)(z,{title:"\u6298\u50F9\u5238\u6298\u62B5",value:(0,T.T4)(l),colSpan:f?3:2}),(0,n.jsx)(z,{title:"\u61C9\u7E73\u91D1\u984D",value:(0,T.T4)(R),colSpan:f?3:2}),(0,n.jsx)(z,{title:"\u5BE6\u969B\u7372\u5229",value:(0,T.T4)(L),colSpan:f?3:2})]})},columns:Y})};function An(){var x,e=(0,i.UO)(),r=(0,m.tT)("@@initialState"),s=r.initialState,D=s==null||(x=s.currentUser)===null||x===void 0?void 0:x.info,f=(0,m.v9)(function(d){return d.portfolio.users}),I=(0,m.v9)(function(d){return d.reseller.salesmanList}),C=(0,m.v9)(function(d){return d.reseller.contactInfos}),p=(0,m.v9)(function(d){return d.portfolio.referrals}),E=A.useState(null),M=(0,P.Z)(E,2),l=M[0],R=M[1],L=(0,m.QT)(function(d){return(0,G.SR)(d)},{manual:!0}),Y=L.run,u=L.loading,o=(0,m.QT)(function(d){return(0,G.f8)(d)},{manual:!0}),h=o.run,b=o.data,Z=o.loading,B=(0,hn.Z)(null,{manual:!0}),O=B.run,c=B.payInfo,nn=B.reseller,en=B.loading,V=(0,m.QT)(function(d){return(0,G.l0)(d)},{manual:!0}),H=V.run,Bn=V.data,cn=V.loading,vn=(0,A.useCallback)(function(d){var F,an,U=d,S=U.user_id,rn=(D==null?void 0:D.user_id)===S?D:C[S],$=(0,tn.yL)(f[S],rn),fn=!!I[S],Cn=fn&&((F=I[S])===null||F===void 0?void 0:F.role)===t.oP;return(0,g.Z)((0,g.Z)({},U),{},{amount:parseInt(U.amount),referral_user_id:(an=p[S])===null||an===void 0?void 0:an.referer_user_id,user:$,tax_no:$==null?void 0:$.tax_no,username:$==null?void 0:$.username,user_role:Cn?t.oP:fn?t.gW:t.U_})},[C,D,p,I,f]),mn=(0,A.useCallback)((0,W.Z)((0,w.Z)().mark(function d(){var F;return(0,w.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:F=parseInt(e==null?void 0:e.id),F&&(h(F),Y(F).then(function(S){var rn=vn(S);R(rn)}));case 2:case"end":return U.stop()}},d)})),[e,Y,h,vn]);(0,A.useEffect)(function(){l!=null&&l.user_id&&(O(l==null?void 0:l.user_id),H(l==null?void 0:l.user_id))},[l,O,H]),(0,A.useEffect)(function(){mn()},[mn]);var In=function(F){document.title="".concat(l==null?void 0:l.username," - ").concat(l==null?void 0:l.month," \u92B
27\u552E\u55AE (").concat(l==null?void 0:l.id,")"),window.print()};return(0,n.jsx)("div",{className:"payment-detail-page",children:(0,n.jsxs)("div",{className:"payment-container",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"page-header no-print",children:[(0,n.jsxs)("div",{className:"page-header-content",children:[(0,n.jsx)(y.CI,{className:"page-prefix"}),(0,n.jsx)(v.Z.Title,{level:4,className:"page-title",children:"".concat(l==null?void 0:l.month," \u5E33\u55AE")})]}),(0,n.jsx)("div",{className:"page-action",children:(0,n.jsx)(y.wg,{type:"primary",size:"sm",onClick:In,children:"\u5217\u5370"})})]}),(0,n.jsx)(N.Z,{className:"no-print"})]}),(0,n.jsxs)("div",{className:"page-content",children:[(0,n.jsx)(y.G6,{spinning:u||cn,children:(0,n.jsx)(gn,{slip:l,chargePolicy:Bn})}),(0,n.jsx)(y.uV,{title:"\u5E33\u55AE\u660E\u7D30"}),(0,n.jsx)(y.G6,{spinning:u||en||Z||cn,children:(0,n.jsx)(Dn,{receivables:b})}),(0,n.jsx)(y.uV,{title:"\u7E73\u8CBB\u8CC7\u8A0A"}),(0,n.jsx)(y.G6,{spinning:en,children:(0,n.jsxs)(j.Z,{column:{sm:2,xs:1},bordered:!0,size:"small",children:[(0,n.jsx)(j.Z.Item,{label:"\u9280\u884C\u540D\u7A31",children:c==null?void 0:c.account_bank}),(0,n.jsx)(j.Z.Item,{label:"\u5206\u884C\u540D\u7A31",children:c==null?void 0:c.account_branch}),(0,n.jsx)(j.Z.Item,{label:"\u5E33\u6236\u540D\u7A31",children:c==null?void 0:c.account_bank_name}),(0,n.jsx)(j.Z.Item,{label:"\u5E33\u6236\u865F\u78BC",children:c==null?void 0:c.account})]})})]}),(0,n.jsx)("div",{className:"page-footer",children:(0,n.jsx)(yn,{reseller:nn})})]})})}}}]);

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.