| | |
| | | inspectorUserId?: number; // 检测人员用户 ID |
| | | inspectorNickname?: string; // 检测人员昵称(关联查询) |
| | | status?: number; // 状态 |
| | | workflowStatus?: number; // 销售质检复检和审批状态 |
| | | remark?: string; // 备注 |
| | | } |
| | | } |
| | |
| | | /** 完成出货检验单 */ |
| | | export function finishOqc(id: number) { |
| | | return requestClient.put(`/mes/qc/oqc/finish?id=${id}`); |
| | | } |
| | | export function retestOqc(data: { id: number; checkQuantity: number; qualifiedQuantity: number; unqualifiedQuantity: number; checkResult: number; opinion?: string }) { |
| | | return requestClient.post('/mes/qc/oqc/retest', data); |
| | | } |
| | | export function approveOqc(stage: 'sales' | 'company', data: { id: number; approved: boolean; opinion: string }) { |
| | | return requestClient.post(`/mes/qc/oqc/${stage}-approve`, data); |
| | | } |
| | | export interface OqcAction { id: number; action: string; result?: number; opinion?: string; quantitiesJson?: string; operatorId?: number; createTime?: string } |
| | | export function getOqcActions(id: number) { |
| | | return requestClient.get<OqcAction[]>('/mes/qc/oqc/actions', { params: { id } }); |
| | | } |
| | | |
| | | /** 删除出货检验单 */ |