gaoluyang
5 天以前 7b307741022678632e06bbed3c996a8ddd013759
src/api/erp/purchase/order/index.ts
@@ -13,13 +13,14 @@
    totalCount?: number; // 合计数量
    totalPrice?: number; // 合计金额,单位:元
    totalProductPrice?: number; // 产品金额,单位:元
    totalTaxPrice?: number; // 合计税额,单位:元
    discountPercent?: number; // 优惠率,百分比
    discountPrice?: number; // 优惠金额,单位:元
    depositPrice?: number; // 定金金额,单位:元
    accountId?: number; // 结算账户编号
    status?: number; // 状态
    remark?: string; // 备注
    fileUrl?: string; // 附件地址
    attachmentList?: { id: number; name?: string; url?: string }[]; // 附件列表
    inCount?: number; // 采购入库数量
    count?: number; // 数量
    returnCount?: number; // 采购退货数量
@@ -50,6 +51,7 @@
    totalTaxPrice?: number; // 含税总价,单位:元
    remark?: string; // 备注
    stockCount?: number; // 库存数量(显示字段)
    qcCheckFlag?: boolean; // 是否需要来料检验
  }
}
@@ -102,6 +104,13 @@
  return requestClient.get<any[]>('/erp/purchase-order/approve-process-list');
}
/** 反审批(协同办公已办任务中撤回已审核订单,回退为未审核) */
export function reverseApprove(processInstanceId: string) {
  return requestClient.post('/erp/purchase-order/reverse-approve', null, {
    params: { processInstanceId },
  });
}
/** 获取采购审核流程列表响应 */
export interface ProcessDefinition {
  id: string; // 流程定义ID
@@ -109,3 +118,10 @@
  name: string; // 流程名称
  version: number; // 版本号
}
/** 确认收货 */
export function confirmReceipt(id: number) {
  return requestClient.post<number>('/erp/purchase-order/confirm-receipt', null, {
    params: { id },
  });
}