فهرست منبع

导出PDF样式修改

kevin_zhangl 3 سال پیش
والد
کامیت
eb6ced103e
1فایلهای تغییر یافته به همراه11 افزوده شده و 11 حذف شده
  1. 11 11
      frontendApi/modules/v1/controllers/ShopController.php

+ 11 - 11
frontendApi/modules/v1/controllers/ShopController.php

@@ -1526,13 +1526,13 @@ ORDER;
             // 订单详情
             $orderDetails .= <<<EOT
                 <tr>
-                    <td>{$value['SKU_CODE']}</td>
-                    <td>{$value['GOODS_TITLE']}</td>
-                    <td style="text-align: right;">{$value['REAL_PRICE']}</td>
-                    <td>{$value['BUY_NUMS']}</td>
-                    <td style="text-align: right;">{$value['TAX_RATE']}</td>
-                    <td style="text-align: right;">{$taxAmount}</td>
-                    <td style="text-align: right;">{$totalAmount}</td> 
+                    <td align="center" style="text-align: center;">{$value['SKU_CODE']}</td>
+                    <td align="center" style="text-align: center;">{$value['GOODS_TITLE']}</td>
+                    <td align="center" style="text-align: center;">{$value['REAL_PRICE']}</td>
+                    <td align="center" style="text-align: center;">{$value['BUY_NUMS']}</td>
+                    <td align="center" style="text-align: center;">{$value['TAX_RATE']}</td>
+                    <td align="center" style="text-align: center;">{$taxAmount}</td>
+                    <td align="center" style="text-align: center;">{$totalAmount}</td> 
                 </tr>
 EOT;
         }
@@ -1609,14 +1609,14 @@ ORDER;
                         <div style="display: block; width: 100%;">
                             {$orderBase}
                             
-                            <table border="1" width="100%" style="padding: 5px 5px; text-align: center; align: center;">
+                            <table border="1" width="100%" style="padding: 5px 5px; text-align: center;">
                                 <tr>
                                     <th width="15%" style="font-size: 14px; font-weight: bold; text-align: center;">Product Code</th>
                                     <th width="20%" style="font-size: 14px; font-weight: bold; text-align: center;">Product Name</th>
                                     <th width="15%" style="font-size: 14px; font-weight: bold; text-align: center;">Product Price</th>
-                                    <th width="10%" style="font-size: 14px; font-weight: bold; text-align: center; min-width: 90px; white-space: nowrap;">Qty</th>
-                                    <th width="12%" style="font-size: 14px; font-weight: bold; text-align: center; min-width: 120px; white-space: nowrap;">Tax Rate</th>
-                                    <th width="15%" style="font-size: 14px; font-weight: bold; text-align: center; align: center;">Tax</th>
+                                    <th width="10%" style="font-size: 14px; font-weight: bold; text-align: center;">Qty</th>
+                                    <th width="12%" style="font-size: 14px; font-weight: bold; text-align: center;">Tax Rate</th>
+                                    <th width="15%" style="font-size: 14px; font-weight: bold; text-align: center;">Total Tax</th>
                                     <th width="13%" style="font-size: 14px; font-weight: bold; text-align: center;">Total Amount</th>
                                 </tr>
                                 {$orderDetails}