|
|
@@ -248,6 +248,11 @@ class ProductController extends BaseController
|
|
|
$field = 'id,py,cover,name,itemId,classId,variety,price,discountPrice,stock,stockWarning,presell,ratioType,smallUnit,bigUnit,ratio';
|
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|
|
|
$itemInfoData = ProductClass::breakItemGroup($itemInfoData, $level);
|
|
|
+ } elseif ($requestType == 'part') {
|
|
|
+ //报损花材
|
|
|
+ $field = 'id,py,cover,name,itemId,classId,variety,price,discountPrice,stock,stockWarning,presell,ratioType,smallUnit,bigUnit,ratio';
|
|
|
+ $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|
|
|
+ $itemInfoData = ProductClass::partItemGroup($itemInfoData, $level);
|
|
|
} elseif ($requestType == 'stockOut') {
|
|
|
//出库花材
|
|
|
$field = 'id,py,cover,name,itemId,classId,variety,price,discountPrice,stock,stockWarning,presell,ratioType,smallUnit,bigUnit,ratio,smallRatio';
|