chore: release updated anxinyan version
This commit is contained in:
@@ -499,6 +499,7 @@ export interface AdminReportListItem {
|
||||
zhongjian_report_no: string;
|
||||
report_entry_admin_name: string;
|
||||
report_entered_at: string;
|
||||
trace_info_visible: boolean;
|
||||
product_name: string;
|
||||
category_name: string;
|
||||
brand_name: string;
|
||||
@@ -525,6 +526,7 @@ export interface AdminReportDetail {
|
||||
report_entry_admin_id: number;
|
||||
report_entry_admin_name: string;
|
||||
report_entered_at: string;
|
||||
trace_info_visible: boolean;
|
||||
};
|
||||
product_info: Record<string, any>;
|
||||
result_info: Record<string, any>;
|
||||
@@ -1168,6 +1170,29 @@ export interface AdminWarehousePayload {
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface AdminExpressCompanyItem {
|
||||
id: number;
|
||||
company_name: string;
|
||||
company_code: string;
|
||||
status: string;
|
||||
status_text: string;
|
||||
is_default: boolean;
|
||||
sort_order: number;
|
||||
remark: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
export interface AdminExpressCompanyPayload {
|
||||
id?: number;
|
||||
company_name: string;
|
||||
company_code: string;
|
||||
status: string;
|
||||
is_default: boolean;
|
||||
sort_order: number;
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface AdminMaterialTagCode {
|
||||
id: number;
|
||||
batch_id: number;
|
||||
@@ -1752,6 +1777,16 @@ export const adminApi = {
|
||||
data: AdminPublishReportResponse & { material_tag?: AdminMaterialTagCode | null };
|
||||
}>;
|
||||
},
|
||||
updateReportTraceVisibility(id: number, visible: boolean) {
|
||||
return request.post("/api/admin/report/trace-visibility", {
|
||||
id,
|
||||
trace_info_visible: visible,
|
||||
}) as Promise<{
|
||||
code: number;
|
||||
message: string;
|
||||
data: { id: number; trace_info_visible: boolean };
|
||||
}>;
|
||||
},
|
||||
saveInspectionReport(data: AdminManualInspectionPayload) {
|
||||
return request.post("/api/admin/report/inspection/save", data) as Promise<{
|
||||
code: number;
|
||||
@@ -2242,6 +2277,23 @@ export const adminApi = {
|
||||
data: { id: number };
|
||||
}>;
|
||||
},
|
||||
getExpressCompanies(params?: { enabled_only?: 0 | 1 }) {
|
||||
return request.get("/api/admin/express-companies", { params }) as Promise<{
|
||||
code: number;
|
||||
message: string;
|
||||
data: {
|
||||
list: AdminExpressCompanyItem[];
|
||||
default_company: string;
|
||||
};
|
||||
}>;
|
||||
},
|
||||
saveExpressCompany(data: AdminExpressCompanyPayload) {
|
||||
return request.post("/api/admin/express-company/save", data) as Promise<{
|
||||
code: number;
|
||||
message: string;
|
||||
data: { id: number };
|
||||
}>;
|
||||
},
|
||||
getMaterialBatches(params?: Record<string, string>) {
|
||||
return request.get("/api/admin/material/batches", { params }) as Promise<{
|
||||
code: number;
|
||||
|
||||
Reference in New Issue
Block a user