gaoluyang
27 分钟以前 51538d466085b6544c35fcf9b9d11de572d74ada
src/api/erp/purchase/order/index.ts
@@ -1,4 +1,4 @@
import type { PageParam, PageResult } from '..\..\..\..\packages\effects\request\src';
import type { PageParam, PageResult } from '@vben/request';
import { requestClient } from '#/api/request';
@@ -19,7 +19,7 @@
    accountId?: number; // 结算账户编号
    status?: number; // 状态
    remark?: string; // 备注
    fileUrl?: string; // 附件地址
    attachmentList?: { id: number; name?: string; url?: string }[]; // 附件列表
    inCount?: number; // 采购入库数量
    count?: number; // 数量
    returnCount?: number; // 采购退货数量
@@ -50,6 +50,7 @@
    totalTaxPrice?: number; // 含税总价,单位:元
    remark?: string; // 备注
    stockCount?: number; // 库存数量(显示字段)
    qcCheckFlag?: boolean; // 是否需要来料检验
  }
}
@@ -96,3 +97,23 @@
export function exportPurchaseOrder(params: any) {
  return requestClient.download('/erp/purchase-order/export-excel', { params });
}
/** 获取采购审核流程列表 */
export function getPurchaseApproveProcessList() {
  return requestClient.get<any[]>('/erp/purchase-order/approve-process-list');
}
/** 获取采购审核流程列表响应 */
export interface ProcessDefinition {
  id: string; // 流程定义ID
  key: string; // 流程Key
  name: string; // 流程名称
  version: number; // 版本号
}
/** 确认收货 */
export function confirmReceipt(id: number) {
  return requestClient.post<number>('/erp/purchase-order/confirm-receipt', null, {
    params: { id },
  });
}