|
@@ -8,16 +8,18 @@ export function getAnalysisResultsMethod() {
|
|
|
const Visitor = useVisitor();
|
|
|
return HTTP.Post(
|
|
|
`/fdhb-tablet/dialogueManage/dialog/${ Visitor.patientId }/${ Visitor.resultId }`,
|
|
|
- { asyncTongueResult: false, questions: [] },
|
|
|
+ { questions: [], asyncTongueResult: false, patientId: Visitor.patientId },
|
|
|
{
|
|
|
meta: { ignoreException: true },
|
|
|
async transform(data: Record<string, any>, headers) {
|
|
|
+ const id = data?.tonguefaceAnalysisReportId;
|
|
|
+ const date = data?.tonguefaceAnalysisReportDate;
|
|
|
+ const miniProgramURL = data?.tonguefaceAnalysisReportAppletImg;
|
|
|
data = data.nextQuestions?.find((item: any) => item.classify === 'tongue_result');
|
|
|
if ( data ) {
|
|
|
const { show, force } = await miniProgramMethod();
|
|
|
return {
|
|
|
- date: data?.tonguefaceAnalysisReportDate,
|
|
|
- miniProgramURL: show ? data?.tonguefaceAnalysisReportAppletImg : void 0,
|
|
|
+ id, date, miniProgramURL: show ? miniProgramURL : void 0,
|
|
|
tongue: fromTongueAnalysisModel(data),
|
|
|
face: fromFaceAnalysisModel(data),
|
|
|
|