fix: 支局长/领导新建记录时客户经理栏显示UUID

manager_id 初始值: director/leader 设为空让用户选择,manager 仍用自身ID
编辑模式保留原记录的 manager_id

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-07-12 20:38:51 +08:00
parent 7b91cb4230
commit fade9e62e2
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ const form = ref({
category: '其他',
content: '',
time_range: '',
manager_id: auth.userId || '',
manager_id: (auth.isDirector || auth.isLeader) ? '' : (auth.userId || ''),
})
function onTimeRangeChange(val: [string, string] | null) {