| | |
| | | |
| | | /** 生成数据包请求 */ |
| | | export interface GenerateParams { |
| | | batchId: number; // 生产批次编号 |
| | | count: number; // 生成袋数 |
| | | remark?: string; // 备注 |
| | | } |
| | | |
| | | export interface GenerateResult { |
| | | uuid?: string; |
| | | } |
| | | |
| | | export interface BindBatchParams { |
| | | batchId: number; |
| | | ids: number[]; |
| | | } |
| | | |
| | | /** 绑定/解绑托盘请求 */ |
| | |
| | | |
| | | /** 生成袋码数据包(返回生成组 UUID) */ |
| | | export function generateBagCodes(data: MesProBagCodeApi.GenerateParams) { |
| | | return requestClient.post<string>('/mes/pro/bag-code/generate', data); |
| | | return requestClient.post<MesProBagCodeApi.GenerateResult>( |
| | | '/mes/pro/bag-code/generate', |
| | | data, |
| | | ); |
| | | } |
| | | |
| | | /** 录入生产批次 */ |
| | | export function bindBagCodeBatch(data: MesProBagCodeApi.BindBatchParams) { |
| | | return requestClient.put('/mes/pro/bag-code/bind-batch', data); |
| | | } |
| | | |
| | | /** 删除袋码生成组 */ |