采购单修改

This commit is contained in:
mzl
2025-09-22 16:47:50 +08:00
parent bdefd69a13
commit 419d0e9d54
2 changed files with 24 additions and 15 deletions
+4 -3
View File
@@ -160,9 +160,10 @@ class PurchaseOrdersService
$config['model'] = $this->modelClass;
switch ($scene) {
// case 'index':
// // $config['with']['buyer'] = ['name', 'avatar'];
// break;
case 'index':
// $config['where']['status'] = 1;
$config['order']['id'] = 'desc';
break;
case 'update':
$config['where']['id'] = $p['id'] ?? 0;
break;