feat: update report detail and verification flow

This commit is contained in:
wushumin
2026-05-22 13:31:02 +08:00
parent b98d6164a7
commit be64b8e5b7
14 changed files with 1336 additions and 282 deletions

View File

@@ -344,6 +344,27 @@ export interface ReportListItem {
export interface ReportDetailData {
evidence_attachments: EvidenceAttachmentAsset[];
zhongjian_report_files: EvidenceAttachmentAsset[];
report_media: {
images: EvidenceAttachmentAsset[];
};
product_display: {
product_name: string;
institution_name: string;
items: Array<{
label: string;
value: string;
remark?: string;
}>;
};
trace_info: {
nodes: Array<{
code: "inbound" | "appraisal" | "return";
title: string;
occurred_at: string;
status: "completed" | "pending";
assets: EvidenceAttachmentAsset[];
}>;
};
report_header: {
report_id: number;
report_no: string;
@@ -413,6 +434,12 @@ export interface MaterialTagVerifyResult {
verify_count: number;
}
export interface ReportAntiCounterfeitResult {
verify_passed: boolean;
verify_message: string;
verify_count: number;
}
export interface MessageSummaryData {
total_count: number;
unread_count: number;
@@ -672,6 +699,12 @@ export const appApi = {
params: { report_no: reportNo },
});
},
verifyReportAntiCounterfeit(payload: { report_no: string; verify_code: string }) {
return request<ReportAntiCounterfeitResult>("/api/app/report/anti-counterfeit/verify", {
method: "POST",
data: payload,
});
},
getMaterialTag(token: string) {
return request<MaterialTagData>("/api/app/material-tag", {
params: { token },