fix(mobile): converge work report confirmation
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user