fix(calls): 员工详情抽屉字段补全(修错key+加userId/微信号/微信手机号;去不存在的工号/部门)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
浅念
2026-08-24 10:44:25 +08:00
parent f7e1f1d775
commit 68f535d637
+5 -4
View File
@@ -244,10 +244,11 @@ const staffDrawerSections = computed(() => {
const fields: { label: string; text: string }[] = [
{ label: '姓名', text: String(cell(row, 'userName') ?? row.user_id_name ?? '--') },
{ label: '手机号', text: String(cell(row, 'userPhone') ?? '--') },
{ label: '工号', text: String(cell(row, 'jobNumber') ?? '--') },
{ label: '员工微信昵称', text: String(cell(row, 'weChatNickName') ?? '--') },
{ label: '员工微信', text: String(cell(row, 'weChatId') ?? '--') },
{ label: '部门', text: String(cell(row, 'departmentName') ?? '--') },
{ label: '员工 userId', text: String(row.user_id ?? cell(row, 'userId') ?? '--') },
{ label: '员工微信昵称', text: String(cell(row, 'userWeChatNickName') ?? '--') },
{ label: '微信号', text: String(cell(row, 'userWeChatAlias') ?? '--') },
{ label: '员工微信 ID', text: String(cell(row, 'weChatId') ?? '--') },
{ label: '微信手机号', text: String(cell(row, 'userWeChatPhone') ?? '--') },
]
return [{ title: '员工信息', fields }]
})