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.
2 lines
3.8 KiB
2 lines
3.8 KiB
(("undefined"!=typeof globalThis?globalThis:self)["makoChunk_ant-design-pro"]=("undefined"!=typeof globalThis?globalThis:self)["makoChunk_ant-design-pro"]||[]).push([["974ebe7b"],{"96f627bb":function(e,t,a){a.d(t,"__esModule",{value:!0}),a.e(t,{default:function(){return y;}});var l=a("777fffbe"),n=a("dac8af92"),d=a("e6b1eada"),r=a("7a650845"),i=a("c7d71c0a"),s=a("a6ee99bd"),o=l._(s),c=a("084468f6"),u=l._(c),h=a("3dbe6820"),f=l._(h),m=a("e6c8d689"),x=l._(m),g=a("609f48be");async function b(){return(0,i.request)("/api/profile/basic");}l._(g);let p=(0,a("98213865").createStyles)(({token:e})=>({title:{marginBottom:"16px",color:e.colorTextHeading,fontWeight:"500",fontSize:"16px"}})),j=[{title:"\u65F6\u95F4",dataIndex:"time",key:"time"},{title:"\u5F53\u524D\u8FDB\u5EA6",dataIndex:"rate",key:"rate"},{title:"\u72B6\u6001",dataIndex:"status",key:"status",render:e=>"success"===e?(0,n.jsx)(o.default,{status:"success",text:"\u6210\u529F"}):(0,n.jsx)(o.default,{status:"processing",text:"\u8FDB\u884C\u4E2D"})},{title:"\u64CD\u4F5C\u5458ID",dataIndex:"operator",key:"operator"},{title:"\u8017\u65F6",dataIndex:"cost",key:"cost"}],y=()=>{let{styles:e}=p(),{data:t,loading:a}=(0,i.useRequest)(()=>b()),{basicGoods:l,basicProgress:s}=t||{basicGoods:[],basicProgress:[]},o=[];if(l.length){let e=0,t=0;l.forEach(a=>{e+=Number(a.num),t+=Number(a.amount);}),o=l.concat({id:"\u603B\u8BA1",num:e,amount:t});}let c=(e,t,a)=>{let n={children:e,props:{}};return a===l.length&&(n.props.colSpan=0),n;},h=[{title:"\u5546\u54C1\u7F16\u53F7",dataIndex:"id",key:"id",render:(e,t,a)=>a<l.length?(0,n.jsx)("span",{children:e}):{children:(0,n.jsx)("span",{style:{fontWeight:600},children:"\u603B\u8BA1"}),props:{colSpan:4}}},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"name",key:"name",render:c},{title:"\u5546\u54C1\u6761\u7801",dataIndex:"barcode",key:"barcode",render:c},{title:"\u5355\u4EF7",dataIndex:"price",key:"price",align:"right",render:c},{title:"\u6570\u91CF\uFF08\u4EF6\uFF09",dataIndex:"num",key:"num",align:"right",render:(e,t,a)=>a<l.length?e:(0,n.jsx)("span",{style:{fontWeight:600},children:e})},{title:"\u91D1\u989D",dataIndex:"amount",key:"amount",align:"right",render:(e,t,a)=>a<l.length?e:(0,n.jsx)("span",{style:{fontWeight:600},children:e})}];return(0,n.jsx)(d.PageContainer,{children:(0,n.jsxs)(u.default,{bordered:!1,children:[(0,n.jsxs)(f.default,{title:"\u9000\u6B3E\u7533\u8BF7",style:{marginBottom:32},children:[(0,n.jsx)(f.default.Item,{label:"\u53D6\u8D27\u5355\u53F7",children:"1000000000"}),(0,n.jsx)(f.default.Item,{label:"\u72B6\u6001",children:"\u5DF2\u53D6\u8D27"}),(0,n.jsx)(f.default.Item,{label:"\u9500\u552E\u5355\u53F7",children:"1234123421"}),(0,n.jsx)(f.default.Item,{label:"\u5B50\u8BA2\u5355",children:"3214321432"})]}),(0,n.jsx)(x.default,{style:{marginBottom:32}}),(0,n.jsxs)(f.default,{title:"\u7528\u6237\u4FE1\u606F",style:{marginBottom:32},children:[(0,n.jsx)(f.default.Item,{label:"\u7528\u6237\u59D3\u540D",children:"\u4ED8\u5C0F\u5C0F"}),(0,n.jsx)(f.default.Item,{label:"\u8054\u7CFB\u7535\u8BDD",children:"18100000000"}),(0,n.jsx)(f.default.Item,{label:"\u5E38\u7528\u5FEB\u9012",children:"\u83DC\u9E1F\u4ED3\u50A8"}),(0,n.jsx)(f.default.Item,{label:"\u53D6\u8D27\u5730\u5740",children:"\u6D59\u6C5F\u7701\u676D\u5DDE\u5E02\u897F\u6E56\u533A\u4E07\u5858\u8DEF18\u53F7"}),(0,n.jsx)(f.default.Item,{label:"\u5907\u6CE8",children:"\u65E0"})]}),(0,n.jsx)(x.default,{style:{marginBottom:32}}),(0,n.jsx)("div",{className:e.title,children:"\u9000\u8D27\u5546\u54C1"}),(0,n.jsx)(r.ProTable,{style:{marginBottom:24},pagination:!1,search:!1,loading:a,options:!1,toolBarRender:!1,dataSource:o,columns:h,rowKey:"id"}),(0,n.jsx)("div",{className:e.title,children:"\u9000\u8D27\u8FDB\u5EA6"}),(0,n.jsx)(r.ProTable,{style:{marginBottom:16},pagination:!1,loading:a,search:!1,options:!1,toolBarRender:!1,dataSource:s,columns:j})]})});};}}]);
|
|
//# sourceMappingURL=974ebe7b-async.2d2d109b.js.map
|