刘光辉
10 小时以前 0dfe84494048ce27ba8449831782128412d3eb13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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 });
}