feat: 调部门改为调动,使用组织架构部门和职务下拉选择

- 后端:EmployeeDepartmentRecord 增加 oldPosition/newPosition 字段
- 后端:department-change 接口支持 departmentId 关联 + position 职务变动
- 后端:同步更新 Employee.departmentId 和 Employee.position
- 前端:DeptChangeModal 改为从组织架构下拉选择目标部门(树形)和职务
- 前端:选择部门后自动过滤该部门下的职务
- 前端:按钮文案从"调部门"改为"调动"

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
selfrelease
2026-08-15 15:00:38 +08:00
parent e8470e7bb4
commit e3d46d9142
4 changed files with 91 additions and 25 deletions
+2 -2
View File
@@ -874,8 +874,8 @@ export default function Roster() {
)}
<button
type="button"
title="调部门"
aria-label={`${e.name}整部门`}
title="调"
aria-label={`${e.name}`}
className="rounded-md p-1.5 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
onClick={(ev) => {
ev.stopPropagation()