|
|
@@ -76,6 +76,7 @@ class OrderItemClass extends BaseClass
|
|
|
$productList = [];
|
|
|
foreach ($itemList as $item) {
|
|
|
$num = $item['num'] ?? 0;
|
|
|
+ $price = $item['price'] ?? 0;
|
|
|
$productId = $item['productId'] ?? 0;
|
|
|
$info = $addInfo[$productId] ?? [];
|
|
|
$current = [];
|
|
|
@@ -110,6 +111,10 @@ class OrderItemClass extends BaseClass
|
|
|
$current['xhPreNum'] = $num;
|
|
|
$current['xhPreUnitName'] = $info['bigUnit'] ?? '';
|
|
|
$current['xhPreUnitType'] = 0;
|
|
|
+ if ($price > 0) {
|
|
|
+ $current['xhUnitPrice'] = $price;
|
|
|
+ $current['xhPreUnitPrice'] = $price;
|
|
|
+ }
|
|
|
$current['itemInfo'] = '';
|
|
|
self::add($current);
|
|
|
|