| | |
| | | code?: string; |
| | | batchCode?: string; |
| | | result?: number; |
| | | workflowStatus?: number; |
| | | } |
| | | |
| | | export interface SeedQualityRecord { |
| | |
| | | code: string; |
| | | batchCode?: string; |
| | | result: number; |
| | | workflowStatus: number; |
| | | retestResult?: number; |
| | | reason?: string; |
| | | inspectorId?: number; |
| | | inspectedAt?: string; |
| | | createTime?: string; |
| | | } |
| | | export interface SeedQualityIndicator { |
| | | indicatorCode: string; |
| | | value: number; |
| | | minValue: number; |
| | | maxValue: number; |
| | | } |
| | | export function getSeedQualityIndicators(id: number) { |
| | | return requestClient.get<SeedQualityIndicator[]>('/mes/qc/seed-quality/indicators', { params: { id } }); |
| | | } |
| | | export interface SeedQualityAction { |
| | | id: number; |
| | | action: string; |
| | | result?: number; |
| | | opinion?: string; |
| | | indicatorsJson?: string; |
| | | operatorId?: number; |
| | | createTime?: string; |
| | | } |
| | | export function getSeedQualityActions(id: number) { |
| | | return requestClient.get<SeedQualityAction[]>('/mes/qc/seed-quality/actions', { params: { id } }); |
| | | } |
| | | export function retestSeedQuality(id: number, data: Omit<MesQcSeedQualityApi.SubmitParams, 'qualifiedWarehouseId'>) { |
| | | return requestClient.post('/mes/qc/seed-quality/retest', data, { params: { id } }); |
| | | } |
| | | export function approveSeedQuality(stage: 'process' | 'company', data: { id: number; approved: boolean; opinion: string }) { |
| | | return requestClient.post(`/mes/qc/seed-quality/${stage}-approve`, data); |
| | | } |
| | | export function approveSeedQualityBatch(stage: 'process' | 'company', data: { ids: number[]; approved: boolean; opinion: string }) { |
| | | return requestClient.post(`/mes/qc/seed-quality/${stage}-approve-batch`, data); |
| | | } |
| | | |
| | | export namespace MesQcSeedQualityApi { |
| | | export interface Indicator { |