import { defHttp } from '#/api/request';
|
|
enum Api {
|
Detail = '/api/extend/lims/biz/jianyanguanli/jianyan-jindu/detail',
|
}
|
|
export interface InspectionSampleInfo {
|
batch_no: string;
|
code: string;
|
id: string;
|
name: string;
|
specification: string;
|
}
|
|
export interface InspectionProgressRecord {
|
department: string;
|
id: string;
|
operated_at: string;
|
operator: string;
|
status: 'completed' | 'current' | 'pending';
|
title: string;
|
xiangmu_mingcheng: string;
|
}
|
|
export interface InspectionProjectStage {
|
operated_at?: string;
|
operator?: string;
|
status: 'finish' | 'process' | 'wait';
|
title: string;
|
}
|
|
export interface InspectionProjectItem {
|
id: string;
|
name: string;
|
stages: InspectionProjectStage[];
|
}
|
|
export interface InspectionProgressDetail {
|
inspection_progress: InspectionProgressRecord[];
|
project_detail: InspectionProjectItem[];
|
sample_info: InspectionSampleInfo;
|
}
|
|
export interface InspectionProgressQuery {
|
qingyandan_id?: string;
|
}
|
|
export function postInspectionProgressDetail(data: InspectionProgressQuery) {
|
return defHttp.post<{ data: InspectionProgressDetail }>({ data, url: Api.Detail });
|
}
|