From 91eff4781fa4142d1f62d30a0fa1de5cae424eaf Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期三, 16 九月 2026 18:23:12 +0800
Subject: [PATCH] refactor: 单据审核改为审批配置状态机(前端统一审核弹窗)
---
src/api/erp/finance/payment/index.ts | 41 +++++++++++++++++++++++++++++++++--------
1 files changed, 33 insertions(+), 8 deletions(-)
diff --git a/src/api/erp/finance/payment/index.ts b/src/api/erp/finance/payment/index.ts
index 276c047..6d4d8ee 100644
--- a/src/api/erp/finance/payment/index.ts
+++ b/src/api/erp/finance/payment/index.ts
@@ -18,7 +18,11 @@
discountPrice: number; // 浼樻儬閲戦
paymentPrice: number; // 瀹為檯浠樻閲戦
status: number; // 鐘舵��
- processInstanceId?: string; // 宸ヤ綔娴佺紪鍙�
+ // ========== 瀹℃壒淇℃伅锛堣交閲忕骇鐘舵�佹満瀹℃壒锛� ==========
+ reviewerId?: number; // 瀹℃牳浜虹紪鍙�
+ reviewerName?: string; // 瀹℃牳浜哄鍚�
+ reviewTime?: Date | string; // 瀹℃牳鏃堕棿
+ reviewRemark?: string; // 瀹℃牳鎰忚锛堜笉閫氳繃鏃朵负椹冲洖鍘熷洜锛�
remark: string; // 澶囨敞
attachmentList?: { id: number; name?: string; url?: string }[]; // 闄勪欢鍒楄〃
accountId?: number; // 浠樻璐︽埛
@@ -76,16 +80,37 @@
return requestClient.put('/erp/finance-payment/update', data);
}
-/** 鎻愪氦浠樻鍗曞鎵� */
-export function submitFinancePayment(id: number, processDefinitionKey: string) {
- return requestClient.post('/erp/finance-payment/submit', null, {
- params: { id, processDefinitionKey },
+/**
+ * 鎻愪氦瀹℃壒锛堟湭瀹℃牳 鈫� 瀹℃壒涓級
+ *
+ * 瀹℃壒浜虹敱銆岀郴缁熺鐞� - 瀹℃壒閰嶇疆銆嶇粺涓�閰嶇疆锛屾彁浜ゆ椂鏃犻渶鎸囧畾銆�
+ */
+export function submitFinancePayment(id: number) {
+ return requestClient.put('/erp/finance-payment/submit', null, {
+ params: { id },
});
}
-/** 鑾峰彇浠樻鍗曞鎵规祦绋嬪垪琛� */
-export function getFinancePaymentApproveProcessList() {
- return requestClient.get('/erp/finance-payment/approve-process-list');
+/** 鑾峰緱瀹℃壒浜虹紪鍙烽泦鍚堬紝渚涘垪琛ㄩ〉鍒ゆ柇鏄惁灞曠ず瀹℃牳鎸夐挳 */
+export function getFinancePaymentApproverUserIds() {
+ return requestClient.get<number[]>('/erp/finance-payment/approver-ids');
+}
+
+/**
+ * 瀹℃牳锛堝鎵逛腑 鈫� 瀹℃牳閫氳繃/瀹℃牳涓嶉�氳繃锛�
+ *
+ * 浠呭鎵归厤缃腑鎸囧畾鐨勫鎵逛汉鏈汉鍙皟鐢紱pass=false 鏃� reviewRemark锛堜笉閫氳繃鍘熷洜锛夊繀濉��
+ */
+export function auditFinancePayment(
+ id: number,
+ pass: boolean,
+ reviewRemark?: string,
+) {
+ return requestClient.put('/erp/finance-payment/audit', {
+ id,
+ pass,
+ reviewRemark,
+ });
}
/** 鍒犻櫎浠樻鍗� */
--
Gitblit v1.9.3