审批&备货单

This commit is contained in:
mzl
2025-09-09 13:42:00 +08:00
parent 5dd2925687
commit 918bac19a5
23 changed files with 1928 additions and 1427 deletions
+9
View File
@@ -46,4 +46,13 @@ class SysDictCategory extends Model
* 不允许自动填充模型字段
*/
protected $guarded = [];
public function dicts()
{
return $this->hasMany(SysDict::class, 'category_id', 'id')
->where('status', 1)
->whereNull('deleted_at')
->orderBy('id', 'asc');
}
}