shish пре 2 година
родитељ
комит
4e302dd3ca
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app-ghs/controllers/ProductController.php

+ 1 - 1
app-ghs/controllers/ProductController.php

@@ -270,7 +270,7 @@ class ProductController extends BaseController
         $itemInfoData = [];
         $itemInfoData = [];
         if ($requestType == 'hasStockList') {
         if ($requestType == 'hasStockList') {
             //有库存的花材列表
             //有库存的花材列表
-            $field = 'id,py,name,classId,itemId,price,skPrice,hjPrice,stock';
+            $field = 'id,py,name,classId,itemId,price,skPrice,hjPrice,stock,cost';
             $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
             $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
         } elseif ($requestType == 'changePrice') {
         } elseif ($requestType == 'changePrice') {
             $field = 'id,py,cover,name,cost,itemId,classId,addPrice,skPrice,hjPrice,discountPrice,hjDiscountPrice,skDiscountPrice,skMore,hjAddPrice,addPrice,variety,price,hjPrice,stock,onStock,presell,frontHide,reachNum,reachNumDiscount';
             $field = 'id,py,cover,name,cost,itemId,classId,addPrice,skPrice,hjPrice,discountPrice,hjDiscountPrice,skDiscountPrice,skMore,hjAddPrice,addPrice,variety,price,hjPrice,stock,onStock,presell,frontHide,reachNum,reachNumDiscount';