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.
1 lines
12 KiB
1 lines
12 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2286],{16391:function(ue,A,a){a.r(A),a.d(A,{default:function(){return re}});var s=a(89336),W=a(90215),j=a(8025),N=a(6774),Y=a(18283),f=a(65906),G=a(498),me=a(79685),q=a(29195),k=a.n(q),H=a(56717),_=a.n(H);function ee(){return P.apply(this,arguments)}function P(){return P=_()(k()().mark(function b(){return k()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",(0,j.request)("/api/profile/basic"));case 1:case"end":return y.stop()}},b)})),P.apply(this,arguments)}var te=a(24507),X=(0,te.kc)(function(b){var E=b.token;return{title:{marginBottom:"16px",color:E.colorTextHeading,fontWeight:"500",fontSize:"16px"}}}),ne=X,i=a(63342),le=[{title:"\u65F6\u95F4",dataIndex:"time",key:"time"},{title:"\u5F53\u524D\u8FDB\u5EA6",dataIndex:"rate",key:"rate"},{title:"\u72B6\u6001",dataIndex:"status",key:"status",render:function(E){return E==="success"?(0,i.jsx)(N.Z,{status:"success",text:"\u6210\u529F"}):(0,i.jsx)(N.Z,{status:"processing",text:"\u8FDB\u884C\u4E2D"})}},{title:"\u64CD\u4F5C\u5458ID",dataIndex:"operator",key:"operator"},{title:"\u8017\u65F6",dataIndex:"cost",key:"cost"}],ie=function(){var E=ne(),y=E.styles,O=(0,j.useRequest)(function(){return ee()}),ce=O.data,U=O.loading,u=ce||{basicGoods:[],basicProgress:[]},h=u.basicGoods,se=u.basicProgress,V=[];if(h.length){var K=0,J=0;h.forEach(function(C){K+=Number(C.num),J+=Number(C.amount)}),V=h.concat({id:"\u603B\u8BA1",num:K,amount:J})}var F=function(p,Z,e){var t={children:p,props:{}};return e===h.length&&(t.props.colSpan=0),t},ae=[{title:"\u5546\u54C1\u7F16\u53F7",dataIndex:"id",key:"id",render:function(p,Z,e){return e<h.length?(0,i.jsx)("span",{children:p}):{children:(0,i.jsx)("span",{style:{fontWeight:600},children:"\u603B\u8BA1"}),props:{colSpan:4}}}},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"name",key:"name",render:F},{title:"\u5546\u54C1\u6761\u7801",dataIndex:"barcode",key:"barcode",render:F},{title:"\u5355\u4EF7",dataIndex:"price",key:"price",align:"right",render:F},{title:"\u6570\u91CF\uFF08\u4EF6\uFF09",dataIndex:"num",key:"num",align:"right",render:function(p,Z,e){return e<h.length?p:(0,i.jsx)("span",{style:{fontWeight:600},children:p})}},{title:"\u91D1\u989D",dataIndex:"amount",key:"amount",align:"right",render:function(p,Z,e){return e<h.length?p:(0,i.jsx)("span",{style:{fontWeight:600},children:p})}}];return(0,i.jsx)(s._z,{children:(0,i.jsxs)(Y.Z,{bordered:!1,children:[(0,i.jsxs)(f.Z,{title:"\u9000\u6B3E\u7533\u8BF7",style:{marginBottom:32},children:[(0,i.jsx)(f.Z.Item,{label:"\u53D6\u8D27\u5355\u53F7",children:"1000000000"}),(0,i.jsx)(f.Z.Item,{label:"\u72B6\u6001",children:"\u5DF2\u53D6\u8D27"}),(0,i.jsx)(f.Z.Item,{label:"\u9500\u552E\u5355\u53F7",children:"1234123421"}),(0,i.jsx)(f.Z.Item,{label:"\u5B50\u8BA2\u5355",children:"3214321432"})]}),(0,i.jsx)(G.Z,{style:{marginBottom:32}}),(0,i.jsxs)(f.Z,{title:"\u7528\u6237\u4FE1\u606F",style:{marginBottom:32},children:[(0,i.jsx)(f.Z.Item,{label:"\u7528\u6237\u59D3\u540D",children:"\u4ED8\u5C0F\u5C0F"}),(0,i.jsx)(f.Z.Item,{label:"\u8054\u7CFB\u7535\u8BDD",children:"18100000000"}),(0,i.jsx)(f.Z.Item,{label:"\u5E38\u7528\u5FEB\u9012",children:"\u83DC\u9E1F\u4ED3\u50A8"}),(0,i.jsx)(f.Z.Item,{label:"\u53D6\u8D27\u5730\u5740",children:"\u6D59\u6C5F\u7701\u676D\u5DDE\u5E02\u897F\u6E56\u533A\u4E07\u5858\u8DEF18\u53F7"}),(0,i.jsx)(f.Z.Item,{label:"\u5907\u6CE8",children:"\u65E0"})]}),(0,i.jsx)(G.Z,{style:{marginBottom:32}}),(0,i.jsx)("div",{className:y.title,children:"\u9000\u8D27\u5546\u54C1"}),(0,i.jsx)(W.Z,{style:{marginBottom:24},pagination:!1,search:!1,loading:U,options:!1,toolBarRender:!1,dataSource:V,columns:ae,rowKey:"id"}),(0,i.jsx)("div",{className:y.title,children:"\u9000\u8D27\u8FDB\u5EA6"}),(0,i.jsx)(W.Z,{style:{marginBottom:16},pagination:!1,loading:U,search:!1,options:!1,toolBarRender:!1,dataSource:se,columns:le})]})})},re=ie},65906:function(ue,A,a){a.d(A,{Z:function(){return Z}});var s=a(79685),W=a(68591),j=a.n(W),N=a(85817),Y=a(99248),f=a(73064),G=a(79301),q={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},H=s.createContext({}),_=a(89259),ee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r};const P=e=>(0,_.Z)(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function te(e,t,r){const n=s.useMemo(()=>t||P(r),[t,r]);return s.useMemo(()=>n.map(c=>{var{span:o}=c,v=ee(c,["span"]);return Object.assign(Object.assign({},v),{span:typeof o=="number"?o:(0,N.m9)(e,o)})}),[n,e])}function X(e,t,r){let n=e,l=!1;return(r===void 0||r>t)&&(n=Object.assign(Object.assign({},e),{span:t}),l=r!==void 0),[n,l]}function ne(e,t){const r=[];let n=[],l=t,c=!1;return e.filter(o=>o).forEach((o,v)=>{const S=o==null?void 0:o.span,m=S||1;if(v===e.length-1){const[d,x]=X(o,l,S);c=c||x,n.push(d),r.push(n);return}if(m<l)l-=m,n.push(o);else{const[d,x]=X(o,l,m);c=c||x,n.push(d),r.push(n),l=t,n=[]}}),[r,c]}var le=(e,t)=>{const[r,n]=(0,s.useMemo)(()=>ne(t,e),[t,e]);return r},re=e=>{let{children:t}=e;return t};function b(e){return e!=null}var y=e=>{const{itemPrefixCls:t,component:r,span:n,className:l,style:c,labelStyle:o,contentStyle:v,bordered:S,label:m,content:d,colon:x}=e,B=r;return S?s.createElement(B,{className:j()({[`${t}-item-label`]:b(m),[`${t}-item-content`]:b(d)},l),style:c,colSpan:n},b(m)&&s.createElement("span",{style:o},m),b(d)&&s.createElement("span",{style:v},d)):s.createElement(B,{className:j()(`${t}-item`,l),style:c,colSpan:n},s.createElement("div",{className:`${t}-item-container`},(m||m===0)&&s.createElement("span",{className:j()(`${t}-item-label`,{[`${t}-item-no-colon`]:!x}),style:o},m),(d||d===0)&&s.createElement("span",{className:j()(`${t}-item-content`),style:v},d)))};function O(e,t,r){let{colon:n,prefixCls:l,bordered:c}=t,{component:o,type:v,showLabel:S,showContent:m,labelStyle:d,contentStyle:x}=r;return e.map((B,I)=>{let{label:M,children:Q,prefixCls:z=l,className:R,style:T,labelStyle:$,contentStyle:g,span:D=1,key:w}=B;return typeof o=="string"?s.createElement(y,{key:`${v}-${w||I}`,className:R,style:T,labelStyle:Object.assign(Object.assign({},d),$),contentStyle:Object.assign(Object.assign({},x),g),span:D,colon:n,component:o,itemPrefixCls:z,bordered:c,label:S?M:null,content:m?Q:null}):[s.createElement(y,{key:`label-${w||I}`,className:R,style:Object.assign(Object.assign(Object.assign({},d),T),$),span:1,colon:n,component:o[0],itemPrefixCls:z,bordered:c,label:M}),s.createElement(y,{key:`content-${w||I}`,className:R,style:Object.assign(Object.assign(Object.assign({},x),T),g),span:D*2-1,component:o[1],itemPrefixCls:z,bordered:c,content:Q})]})}var U=e=>{const t=s.useContext(H),{prefixCls:r,vertical:n,row:l,index:c,bordered:o}=e;return n?s.createElement(s.Fragment,null,s.createElement("tr",{key:`label-${c}`,className:`${r}-row`},O(l,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),s.createElement("tr",{key:`content-${c}`,className:`${r}-row`},O(l,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):s.createElement("tr",{key:c,className:`${r}-row`},O(l,e,Object.assign({component:o?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},u=a(26477),h=a(4614),se=a(44244),V=a(25830);const K=e=>{const{componentCls:t,labelBg:r}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${(0,u.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${t}-row`]:{borderBottom:`${(0,u.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,u.bf)(e.padding)} ${(0,u.bf)(e.paddingLG)}`,borderInlineEnd:`${(0,u.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:r,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,u.bf)(e.paddingSM)} ${(0,u.bf)(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,u.bf)(e.paddingXS)} ${(0,u.bf)(e.padding)}`}}}}}},J=e=>{const{componentCls:t,extraColor:r,itemPaddingBottom:n,colonMarginRight:l,colonMarginLeft:c,titleMarginBottom:o}=e;return{[t]:Object.assign(Object.assign(Object.assign({},(0,h.Wf)(e)),K(e)),{["&-rtl"]:{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:o},[`${t}-title`]:Object.assign(Object.assign({},h.vS),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:r,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:n},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,u.bf)(c)} ${(0,u.bf)(l)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},F=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText});var ae=(0,se.I$)("Descriptions",e=>{const t=(0,V.TS)(e,{});return J(t)},F),C=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r};const p=e=>{const{prefixCls:t,title:r,extra:n,column:l,colon:c=!0,bordered:o,layout:v,children:S,className:m,rootClassName:d,style:x,size:B,labelStyle:I,contentStyle:M,items:Q}=e,z=C(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:R,direction:T,descriptions:$}=s.useContext(Y.E_),g=R("descriptions",t),D=(0,G.Z)(),w=s.useMemo(()=>{var L;return typeof l=="number"?l:(L=(0,N.m9)(D,Object.assign(Object.assign({},q),l)))!==null&&L!==void 0?L:3},[D,l]),fe=te(D,Q,S),oe=(0,f.Z)(B),ge=le(w,fe),[pe,ye]=ae(g),be=s.useMemo(()=>({labelStyle:I,contentStyle:M}),[I,M]);return pe(s.createElement(H.Provider,{value:be},s.createElement("div",Object.assign({className:j()(g,$==null?void 0:$.className,{[`${g}-${oe}`]:oe&&oe!=="default",[`${g}-bordered`]:!!o,[`${g}-rtl`]:T==="rtl"},m,d,ye),style:Object.assign(Object.assign({},$==null?void 0:$.style),x)},z),(r||n)&&s.createElement("div",{className:`${g}-header`},r&&s.createElement("div",{className:`${g}-title`},r),n&&s.createElement("div",{className:`${g}-extra`},n)),s.createElement("div",{className:`${g}-view`},s.createElement("table",null,s.createElement("tbody",null,ge.map((L,de)=>s.createElement(U,{key:de,index:de,colon:c,prefixCls:g,vertical:v==="vertical",bordered:o,row:L}))))))))};p.Item=re;var Z=p}}]);
|
|
|