|
|
@@ -867,11 +867,14 @@ class OrderClass extends BaseClass
|
|
|
$productId = $val['productId'] ?? 0;
|
|
|
$currentInfo = $productInfo[$productId];
|
|
|
$currentPrice = $productInfo[$productId]['price'] ?? 0;
|
|
|
- if ($bookSavePrice == 0) {
|
|
|
- $list[$key]['currentHdPrice'] = floatval($currentPrice);
|
|
|
- } else {
|
|
|
- $list[$key]['currentHdPrice'] = $val['xhUnitPrice'] ?? 0;
|
|
|
- }
|
|
|
+ $unitPrice = isset($val['xhUnitPrice']) ? floatval($val['xhUnitPrice']) : 0;
|
|
|
+
|
|
|
+ $list[$key]['currentHdPrice'] = $unitPrice;
|
|
|
+ //原有售价
|
|
|
+ $list[$key]['itemSalePrice'] = floatval($currentPrice);
|
|
|
+ //自己填的价格
|
|
|
+ $list[$key]['itemModifyPrice'] = $unitPrice;
|
|
|
+
|
|
|
$list[$key]['property'] = '';
|
|
|
$list[$key]['cost'] = $currentInfo['cost'] ?? 0;
|
|
|
$list[$key]['stock'] = $currentInfo['stock'] ? floatval($currentInfo['stock']) : 0;
|