feat: update report detail and verification flow
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user