云
2 天以前 346a988f537228ae44731cd31007f1412b482e83
src/api/mes/pro/bagCode/index.ts
@@ -41,17 +41,17 @@
    createTime?: string[];
  }
  /** 生成数据包请求(品种主计量单位类型为 N千克 时按托盘数换算袋数;为 吨 时无托盘、直接输入袋码数) */
  /** 生成数据包请求(品种主计量单位类型为 N袋 时按托盘数换算袋数;为 吨 时无托盘、直接输入袋码数) */
  export interface GenerateParams {
    itemId: number; // 品种(物料)编号
    palletCount?: number; // 托盘数(48千克/100千克 品种必填)
    palletCount?: number; // 托盘数(48袋/100袋 品种必填)
    bagCount?: number; // 袋码数(吨品种必填)
    remark?: string; // 备注
  }
  export interface GenerateResult {
    uuid?: string; // 生成组 UUID
    type?: string; // 品种主计量单位类型(48千克/100千克/吨)
    type?: string; // 品种主计量单位类型(48袋/100袋/吨)
    perPallet?: number; // 每托袋数(吨品种为 0)
    totalCount?: number; // 生成袋码总数
    palletIds?: number[]; // 自动生成的托盘编号列表(吨品种为空)
@@ -222,6 +222,11 @@
  );
}
/** 可绑定批次的吨袋(无托盘且未绑定批次) */
export function getUnboundTonBags() {
  return requestClient.get<MesProBagCodeApi.BagCode[]>('/mes/pro/bag-code/unbound-ton-bags');
}
/** 批量导出袋码 Excel(交付印刷) */
export function exportBagCodeExcel(params: MesProBagCodeApi.PageParams) {
  return requestClient.download('/mes/pro/bag-code/export-excel', { params });