云
5 天以前 78caa769e452f63288743b8997f7b4c21bb06ce5
src/api/mes/pro/batch/index.ts
@@ -23,7 +23,7 @@
    itemName?: string;
    bindingMode?: 'pallet' | 'tonBag'; // 批次已有绑定方式
    businessCode?: string; // 内部出入库业务码
    code?: string; // 批次号(补录正式信息后自动生成)
    code?: string; // 批次号(新增/补录可人工输入,留空自动生成;生成后不可修改)
    tempCode?: string; // 临时批次码(预生成二维码阶段使用,扫码追溯兼容)
    lineId?: number; // 产线编号(页面展示为「加工单位」)
    lineCode?: string; // 产线编码(后端回填,页面已隐藏)
@@ -35,6 +35,7 @@
    ownerUserName?: string; // 责任人昵称
    bagQuantity?: number; // 已生成袋码数量
    palletQuantity?: number; // 已生成托盘码数量
    palletCodes?: string[]; // 批次下全部正式托盘码
    status?: number; // 批次状态(字典 mes_pro_batch_status)
    remark?: string; // 备注
    createTime?: string; // 创建时间
@@ -125,7 +126,7 @@
  return requestClient.put('/mes/pro/batch/fill-info', data);
}
/** 新增生产批次(自动生成批次号) */
/** 新增生产批次(批次号可人工输入,留空自动生成) */
export function createBatch(data: MesProBatchApi.Batch) {
  return requestClient.post<number>('/mes/pro/batch/create', data);
}