| | |
| | | sourceDocId?: number; // 来源单据 ID |
| | | sourceLineId?: number; // 来源单据行 ID |
| | | sourceDocCode?: string; // 来源单据编号(关联查询) |
| | | workOrderId?: number; // 生产订单 ID |
| | | workOrderCode?: string; // 订单编号(关联查询) |
| | | workOrderName?: string; // 订单名称(关联查询) |
| | | taskId?: number; // 生产任务 ID |
| | | workstationId?: number; // 工位 ID |
| | | workstationName?: string; // 工位名称(关联查询) |
| | | processId?: number; // 工序 ID |
| | | processName?: string; // 工序名称(关联查询) |
| | | itemId?: number; // 产品物料 ID |
| | | batchCode?: string; // 批号 |
| | | itemId?: number; // 产品物料 ID(MDM 物料 ID) |
| | | itemCode?: string; // 产品物料编码(关联查询) |
| | | itemName?: string; // 产品物料名称(关联查询) |
| | | itemSpecification?: string; // 规格型号(关联查询) |
| | |
| | | majorQuantity?: number; // 严重缺陷数量 |
| | | minorQuantity?: number; // 轻微缺陷数量 |
| | | checkResult?: number; // 检测结果 |
| | | indicatorResultSummary?: string; // 检测结果(检验项实测值汇总,如「温度:15,电阻:1」) |
| | | inspectDate?: number; // 检测日期 |
| | | inspectorUserId?: number; // 检测人员用户 ID |
| | | inspectorNickname?: string; // 检测人员昵称(关联查询) |
| | | auditUserId?: number; // 复核人 ID |
| | | auditNickname?: string; // 复核人昵称(关联查询) |
| | | approveUserId?: number; // 审核人 ID |
| | | approveNickname?: string; // 审核人昵称(关联查询) |
| | | samplingLocation?: string; // 采样地点 |
| | | certificateNo?: string; // 证书编号/合格证号 |
| | | executeStandard?: string; // 执行标准 |
| | | status?: number; // 状态 |
| | | remark?: string; // 备注 |
| | | } |
| | | |
| | | /** 过程检验单导入结果 */ |
| | | export interface ImportResult { |
| | | createList?: string[]; // 新增成功的检验单编号 |
| | | failureList?: Record<string, string>; // 导入失败明细:key 为「检验单编号 X」或「第 N 行」 |
| | | } |
| | | } |
| | | |
| | |
| | | export function exportIpqc(params: any) { |
| | | return requestClient.download('/mes/qc/ipqc/export-excel', { params }); |
| | | } |
| | | |
| | | /** 下载过程检验单导入模板 */ |
| | | export function importIpqcTemplate() { |
| | | return requestClient.download('/mes/qc/ipqc/get-import-template'); |
| | | } |
| | | |
| | | /** 导入过程检验单 */ |
| | | export function importIpqc(file: File) { |
| | | return requestClient.upload<MesQcIpqcApi.ImportResult>('/mes/qc/ipqc/import', { |
| | | file, |
| | | }); |
| | | } |