shish 2 лет назад
Родитель
Сommit
fe327c8edf
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      app-ghs/controllers/PurchaseOrderItemController.php

+ 3 - 0
app-ghs/controllers/PurchaseOrderItemController.php

@@ -107,6 +107,9 @@ class PurchaseOrderItemController extends BaseController
                 $list[$key]['skMore'] = $skMore;
                 $list[$key]['addPrice'] = $addPrice;
                 $list[$key]['hjAddPrice'] = $hjAddPrice;
+                //修改之前的批发价
+                $beforeModifyPrice = $current['price'] ?? 0;
+                $list[$key]['beforeModifyPrice'] = $beforeModifyPrice;
             }
         }
         util::success(['list' => $list]);