备货单与审批数据过滤

This commit is contained in:
2025-12-08 13:19:16 +08:00
parent 06a264ff21
commit a0a71161d3
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -2,6 +2,7 @@
namespace app\crm\service;
use app\common\model\User;
use support\Request;
use support\exception\BusinessException;
@@ -34,7 +35,10 @@ class StockOrdersService extends \app\common\service\StockOrdersService
$config['order']['id'] = 'desc';
$config['where']['salesperson_id'] = $request->user->uid;
$roles_id = array_intersect([1,5,6], $request->user->role_ids);
if(count($roles_id) === 0){
$config['where']['salesperson_id'] = $request->user->uid;
}
break;
case 'print':
case 'approval':