|
@@ -1,9 +1,11 @@
|
|
|
import HTTP from '../alova';
|
|
|
import { fromReportData, fromSchemeRequest } from '../model';
|
|
|
+import { useVisitor } from '@/stores';
|
|
|
|
|
|
+const Visitor = useVisitor();
|
|
|
|
|
|
export function getReportMethod(id: string) {
|
|
|
- const params = { healthAnalysisReportId: id };
|
|
|
+ const params = { healthAnalysisReportId: id, patientId: Visitor.patientId };
|
|
|
return HTTP.Get(`/fdhb-tablet/analysisManage/getHealRepDetailById`, {
|
|
|
params,
|
|
|
transform(data, headers) { return fromReportData(<any> data); },
|
|
@@ -15,12 +17,13 @@ export function updateReportMethod(id: string, data: Record<string, any>) {
|
|
|
healthAnalysisReportId: id,
|
|
|
constitutionGroupImg: data?.constitutionGroupImg,
|
|
|
factorItemRadarImg: data?.factorItemRadarImg,
|
|
|
+ patientId: Visitor.patientId
|
|
|
};
|
|
|
return HTTP.Post(`/fdhb-tablet/analysisManage/upConFacImgById`, params, {});
|
|
|
}
|
|
|
|
|
|
export function getReportSchemeMethod(id: string) {
|
|
|
- const params = { healthAnalysisReportId: id };
|
|
|
+ const params = { healthAnalysisReportId: id, patientId: Visitor.patientId };
|
|
|
return HTTP.Get(`/fdhb-tablet/analysisManage/getCondProgDetailById`, {
|
|
|
params,
|
|
|
transform(data: any, headers) {
|