| | |
| | | ironPlateNo: number | string; |
| | | } |
| | | |
| | | export interface TimeSensitiveScannedMaterial { |
| | | id: number | string; |
| | | materialType: TimelinessMaterialType | string; |
| | | batchCode: string; |
| | | available: boolean; |
| | | unavailableReason?: string | null; |
| | | qualitativeProductionId?: number | string; |
| | | [key: string]: any; |
| | | } |
| | | |
| | | export interface TimelinessInspectionDetailForm { |
| | | id?: number | string; |
| | | routingInspectionUser?: string; |
| | |
| | | }); |
| | | }, |
| | | |
| | | /** 时效领用扫码:单丝、绞线统一按流转卡批次号查询。 */ |
| | | scanByBatchCode(data: { batchCode: string }) { |
| | | if (USE_TIME_SENSITIVE_MOCK) { |
| | | const material = [...mockMaterialPool.单丝, ...mockMaterialPool.绞线].find( |
| | | (item) => mockMaterialCode(item) === data.batchCode |
| | | ); |
| | | return mockResult<TimeSensitiveScannedMaterial | null>( |
| | | material ? { ...material, batchCode: mockMaterialCode(material), available: true } : null |
| | | ); |
| | | } |
| | | return request<BaseResult<TimeSensitiveScannedMaterial>>({ |
| | | url: "/timeSensitiveTask/scanByBatchCode", |
| | | method: "POST", |
| | | data, |
| | | }); |
| | | }, |
| | | |
| | | addItems(data: { |
| | | taskId: number | string; |
| | | itemIds: Array<number | string>; |