From 0251fb6f8979a5943f58478686265ce776103ab4 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期二, 25 八月 2026 09:08:17 +0800
Subject: [PATCH] feat(erp): 采购订单审批进协同办公——移除页面审批按钮,已办任务增加反审批

---
 src/api/erp/purchase/order/index.ts |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/src/api/erp/purchase/order/index.ts b/src/api/erp/purchase/order/index.ts
index 1a75e5a..f28d66a 100644
--- a/src/api/erp/purchase/order/index.ts
+++ b/src/api/erp/purchase/order/index.ts
@@ -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; // 閲囪喘閫�璐ф暟閲�
@@ -103,6 +103,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
@@ -110,3 +117,10 @@
   name: string; // 娴佺▼鍚嶇О
   version: number; // 鐗堟湰鍙�
 }
+
+/** 纭鏀惰揣 */
+export function confirmReceipt(id: number) {
+  return requestClient.post<number>('/erp/purchase-order/confirm-receipt', null, {
+    params: { id },
+  });
+}

--
Gitblit v1.9.3