chore: 更新个人工作台和差旅报销相关功能

This commit is contained in:
caoxiaozhu
2026-05-19 17:24:13 +00:00
parent 54ffef66d3
commit 2574bc81d1
6 changed files with 14989 additions and 14022 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -280,8 +280,21 @@ async function handleExpenseConversationAction() {
return return
} }
pendingAction.value = 'expense'
const nextPayload = buildAssistantPayload() const nextPayload = buildAssistantPayload()
const shouldOpenImmediately = Boolean(nextPayload.prompt || nextPayload.files.length)
if (shouldOpenImmediately) {
emitAssistant({
...nextPayload,
conversation: null
})
void clearKnowledgeHistoryBeforeExpense().catch((error) => {
console.warn('Failed to clear knowledge history before expense:', error)
})
return
}
pendingAction.value = 'expense'
try { try {
await clearKnowledgeHistoryBeforeExpense() await clearKnowledgeHistoryBeforeExpense()
@@ -1131,4 +1144,3 @@ watch(
} }
} }
</style> </style>

View File

@@ -1,9 +1,17 @@
<template> <template>
<PersonalWorkbench :show-header="false" @open-assistant="emit('openAssistant', $event)" /> <PersonalWorkbench
:show-header="false"
:assistant-modal-open="assistantModalOpen"
@open-assistant="emit('openAssistant', $event)"
/>
</template> </template>
<script setup> <script setup>
import PersonalWorkbench from '../components/business/PersonalWorkbench.vue' import PersonalWorkbench from '../components/business/PersonalWorkbench.vue'
defineProps({
assistantModalOpen: { type: Boolean, default: false }
})
const emit = defineEmits(['openAssistant']) const emit = defineEmits(['openAssistant'])
</script> </script>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff