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

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

@@ -269,7 +269,11 @@ class ProductController extends BaseController
             $itemInfoData = ProductClass::checkItemGroup($itemInfoData, $level);
         } elseif ($requestType == 'break') {
             //报损花材
-            $field = 'id,py,cover,name,itemId,classId,variety,price,discountPrice,stock,stockWarning,presell,ratioType,smallUnit,bigUnit,ratio';
+            if (in_array($this->mainId, [52, 1459, 2126, 2128])) {
+                $field = 'id,py,cover,name,itemId,classId,variety,price,discountPrice,stock,stockWarning,presell,ratioType,smallUnit,bigUnit,ratio';
+            }else{
+                $field = 'id,py,cover,name,itemId,classId,variety,price,discountPrice,stock,stockWarning,presell,ratioType,smallUnit,bigUnit,ratio,frontHide';
+            }
             $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
             $itemInfoData = ProductClass::breakItemGroup($itemInfoData, $level);
         } elseif ($requestType == 'part') {