|
|
@@ -123,10 +123,6 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'header' => 'Product Name', // 存货名称
|
|
|
'headerOther' => ['width' => '200'],
|
|
|
],
|
|
|
- 'BUY_NUMS' => [
|
|
|
- 'header' => 'Qty', // 数量
|
|
|
- 'headerOther' => ['width' => '100'],
|
|
|
- ],
|
|
|
'CONSIGNEE' => [
|
|
|
'header' => 'Recipient', // 收货人
|
|
|
'headerOther' => [
|
|
|
@@ -218,6 +214,10 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
},
|
|
|
'headerOther' => ['width' => '190'],
|
|
|
],
|
|
|
+ 'BUY_NUMS' => [
|
|
|
+ 'header' => 'Qty', // 数量
|
|
|
+ 'headerOther' => ['width' => '100'],
|
|
|
+ ],
|
|
|
'REAL_PRICE' => [
|
|
|
'header' => 'Item Pricing', // 商品单价
|
|
|
'headerOther' => [
|
|
|
@@ -232,13 +232,27 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
];
|
|
|
},
|
|
|
],
|
|
|
+ 'TOTAL_PRICE' => [
|
|
|
+ 'header' => 'Total Price', // 订单总价
|
|
|
+ 'headerOther' => [
|
|
|
+ 'width' => '150',
|
|
|
+ ],
|
|
|
+ 'value' => function ($row) {
|
|
|
+ return Tool::formatPrice($row['REAL_PRICE'] * $row['BUY_NUMS']);
|
|
|
+ },
|
|
|
+ 'valueOther' => function ($row) {
|
|
|
+ return [
|
|
|
+ 'tag' => ['type' => 'danger', 'size' => 'small', 'class' => 'no-border']
|
|
|
+ ];
|
|
|
+ },
|
|
|
+ ],
|
|
|
'REAL_PV' => [
|
|
|
'header' => 'BV Amount', // 商品金额
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
'value' => function ($row) {
|
|
|
- return Tool::formatPrice($row['REAL_PV']);
|
|
|
+ return Tool::formatPrice($row['REAL_PV'] * $row['BUY_NUMS']);
|
|
|
},
|
|
|
'valueOther' => function ($row) {
|
|
|
return [
|
|
|
@@ -252,7 +266,7 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'width' => '150',
|
|
|
],
|
|
|
'value' => function ($row) {
|
|
|
- return Tool::formatPrice($row['ORDER_AMOUNT_STANDARD']);
|
|
|
+ return Tool::formatPrice($row['STANDARD_PRICE'] * $row['BUY_NUMS']);
|
|
|
},
|
|
|
'valueOther' => function ($row) {
|
|
|
return [
|