From 749cb2f4ad815c5a68c19fe961d5ca2149a84dd4 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期四, 17 九月 2026 11:28:54 +0800
Subject: [PATCH] feat(mes): 新增员工排班明细页面,修复计划排程菜单404

---
 src/api/erp/finance/payment/index.ts |   39 +++++++++++++++++++++++++++++++++++----
 1 files changed, 35 insertions(+), 4 deletions(-)

diff --git a/src/api/erp/finance/payment/index.ts b/src/api/erp/finance/payment/index.ts
index 6efa6e3..6d4d8ee 100644
--- a/src/api/erp/finance/payment/index.ts
+++ b/src/api/erp/finance/payment/index.ts
@@ -18,6 +18,11 @@
     discountPrice: number; // 浼樻儬閲戦
     paymentPrice: number; // 瀹為檯浠樻閲戦
     status: number; // 鐘舵��
+    // ========== 瀹℃壒淇℃伅锛堣交閲忕骇鐘舵�佹満瀹℃壒锛� ==========
+    reviewerId?: number; // 瀹℃牳浜虹紪鍙�
+    reviewerName?: string; // 瀹℃牳浜哄鍚�
+    reviewTime?: Date | string; // 瀹℃牳鏃堕棿
+    reviewRemark?: string; // 瀹℃牳鎰忚锛堜笉閫氳繃鏃朵负椹冲洖鍘熷洜锛�
     remark: string; // 澶囨敞
     attachmentList?: { id: number; name?: string; url?: string }[]; // 闄勪欢鍒楄〃
     accountId?: number; // 浠樻璐︽埛
@@ -75,10 +80,36 @@
   return requestClient.put('/erp/finance-payment/update', data);
 }
 
-/** 鏇存柊浠樻鍗曠殑鐘舵�� */
-export function updateFinancePaymentStatus(id: number, status: number) {
-  return requestClient.put('/erp/finance-payment/update-status', null, {
-    params: { id, status },
+/**
+ * 鎻愪氦瀹℃壒锛堟湭瀹℃牳 鈫� 瀹℃壒涓級
+ *
+ * 瀹℃壒浜虹敱銆岀郴缁熺鐞� - 瀹℃壒閰嶇疆銆嶇粺涓�閰嶇疆锛屾彁浜ゆ椂鏃犻渶鎸囧畾銆�
+ */
+export function submitFinancePayment(id: number) {
+  return requestClient.put('/erp/finance-payment/submit', null, {
+    params: { id },
+  });
+}
+
+/** 鑾峰緱瀹℃壒浜虹紪鍙烽泦鍚堬紝渚涘垪琛ㄩ〉鍒ゆ柇鏄惁灞曠ず瀹℃牳鎸夐挳 */
+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