|
|
@@ -232,6 +232,11 @@ class ProductController extends BaseController
|
|
|
$field = 'id,py,cover,name,cost,itemId,classId,skPrice,variety,price,stock,presell';
|
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|
|
|
$itemInfoData = ProductClass::itemListGroup($itemInfoData, $level);
|
|
|
+ } elseif ($requestType == 'cg') {
|
|
|
+ //采购花材
|
|
|
+ $field = 'id,py,cover,name,itemId,classId,variety,price,stock,presell';
|
|
|
+ $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|
|
|
+ $itemInfoData = ProductClass::cgItemGroup($itemInfoData, $level);
|
|
|
} elseif ($requestType == 'warning') {
|
|
|
//库存预警
|
|
|
$field = 'id,py,cover,name,ratio,cost,addPrice,classId,skMore,skPrice,itemId,smallUnit,smallRatio,bigUnit,smallUnit,ratioType,variety,price,stock,stockWarning,discountPrice,presell,presellDate';
|