采购单修改
This commit is contained in:
@@ -48,7 +48,7 @@ class ProductController extends BaseMiniController
|
||||
}
|
||||
|
||||
$pageSize = (int) $request->input('pageSize', 10);
|
||||
$paginator = $query->orderBy('sort')
|
||||
$paginator = $query->orderBy('sort', 'desc')
|
||||
->orderBy('id')
|
||||
->paginate($pageSize);
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class ProductController extends BaseController
|
||||
$params,
|
||||
ProductModel::query()->with(['category:id,name', 'supplier:id,name'])
|
||||
)
|
||||
->orderBy('sort')
|
||||
->orderBy('sort', 'desc')
|
||||
->orderBy('id', 'desc')
|
||||
->paginate($pageSize);
|
||||
$data->getCollection()->makeVisible('cost_price');
|
||||
|
||||
Reference in New Issue
Block a user