Selaa lähdekoodia

feat: 发票列居右调整

lanjianrong 4 vuotta sitten
vanhempi
commit
1bee6445c6

+ 6 - 3
src/pages/Statistic/Product/InvoiceAggregate/index.jsx

@@ -31,17 +31,20 @@ const InvoiceAggregate = () => {
     {
       dataIndex: 'creditPrice',
       title: '开票金额(元)',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     },
     {
       dataIndex: 'receivablesPrice',
       title: '收款金额(元)',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     },
     {
       dataIndex: 'invoicePrice',
       title: '入账金额(元)',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     }
   ]
 

+ 24 - 12
src/pages/Statistic/Product/InvoiceTrends/index.jsx

@@ -45,62 +45,74 @@ const InvoiceTrends = () => {
     {
       dataIndex: 'month_1',
       title: '1月',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     },
     {
       dataIndex: 'month_2',
       title: '2月',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     },
     {
       dataIndex: 'month_3',
       title: '3月',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     },
     {
       dataIndex: 'month_4',
       title: '4月',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     },
     {
       dataIndex: 'month_5',
       title: '5月',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     },
     {
       dataIndex: 'month_6',
       title: '6月',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     },
     {
       dataIndex: 'month_7',
       title: '7月',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     },
     {
       dataIndex: 'month_8',
       title: '8月',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     },
     {
       dataIndex: 'month_9',
       title: '9月',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     },
     {
       dataIndex: 'month_10',
       title: '10月',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     },
     {
       dataIndex: 'month_11',
       title: '11月',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     },
     {
       dataIndex: 'month_12',
       title: '12月',
-      align: 'center'
+      align: 'center',
+      render: text => <div className="text-right">{text}</div>
     }
   ]