From 816526befa677e84b86e1dfb8d64bcbe93827cad Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期四, 05 十一月 2026 14:45:39 +0800
Subject: [PATCH] feat(app): 销售订单/供应商准入按流程key判断免审批,仓储单据补提交与生成入口

---
 src/api/bpm.ts |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/api/bpm.ts b/src/api/bpm.ts
index f25489d..cfa8008 100644
--- a/src/api/bpm.ts
+++ b/src/api/bpm.ts
@@ -3,6 +3,18 @@
 
 const header = (accessToken: string) => ({ Authorization: `Bearer ${accessToken}` });
 
+/**
+ * 鏌ヨ鏌愪釜娴佺▼鏄惁鍏嶅鎵广��
+ * 鍚庣鍒ゅ畾锛氬叏灞�鎬诲紑鍏冲紑鍚紝鎴栬娴佺▼ Key 鍗曠嫭閰嶇疆浜嗗厤瀹℃壒锛岄兘绠楀厤瀹℃壒銆�
+ * 鎺ュ彛寮傚父鏃堕��鍥� false锛堣蛋姝e父瀹℃壒娴佺▼閫夋嫨锛夛紝閬垮厤璇斁琛屻��
+ */
+export function isAutoApproveByKey(accessToken: string, processDefinitionKey: string) {
+  return request<boolean>(
+    `/bpm/process-auto-approve/ui-policy${query({ key: processDefinitionKey })}`,
+    { header: header(accessToken) },
+  ).catch(() => false);
+}
+
 type QueryValue = string | number | boolean | string[] | number[] | undefined;
 
 function query(params: Record<string, QueryValue>) {

--
Gitblit v1.9.3