fix(mobile): converge work report confirmation

This commit is contained in:
key
2026-07-30 00:14:42 +08:00
parent 5027bef32d
commit 380d8e6e32
6 changed files with 54 additions and 6 deletions
+4 -2
View File
@@ -251,6 +251,7 @@ import {
isCurrentWorkReportRequest,
isDefinitiveWorkReportRejection,
organizeWorkReport,
prepareWorkReportOrganizeInput,
stableWorkReportRequestId,
submitWorkReport,
uploadWorkReportAttachment,
@@ -430,6 +431,7 @@ const organizeInput = async (
const transcript = text.trim();
if (!transcript || organizing.value || draftLocked.value || submittedReport.value) return;
const previousDraft = draftPayload();
const organizeRequest = prepareWorkReportOrganizeInput(transcript, previousDraft);
pushMessage<UserMessage>({
role: 'user',
text: transcript,
@@ -443,8 +445,8 @@ const organizeInput = async (
speechPlayback.stop();
try {
const result = await organizeWorkReport({
transcript,
currentDraft: previousDraft,
transcript: organizeRequest.transcript,
currentDraft: organizeRequest.currentDraft,
attachmentOssId: attachment.value?.ossId,
attachmentName: attachment.value?.fileName
});