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 |   45 ++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 40 insertions(+), 5 deletions(-)

diff --git a/src/api/erp/finance/payment/index.ts b/src/api/erp/finance/payment/index.ts
index 004713c..6d4d8ee 100644
--- a/src/api/erp/finance/payment/index.ts
+++ b/src/api/erp/finance/payment/index.ts
@@ -1,5 +1,7 @@
 import type { PageParam, PageResult } from '@vben/request';
 
+import type { ErpPurchaseInvoiceApi } from '#/api/erp/purchase/invoice';
+
 import { requestClient } from '#/api/request';
 
 export namespace ErpFinancePaymentApi {
@@ -9,13 +11,20 @@
     no: string; // 浠樻鍗曞彿
     supplierId?: number; // 渚涘簲鍟嗙紪鍙�
     supplierName?: string; // 渚涘簲鍟嗗悕绉�
+    invoiceId?: number; // 鍏宠仈鏉ョエ缂栧彿
+    invoice?: ErpPurchaseInvoiceApi.PurchaseInvoice; // 鍏宠仈鏉ョエ淇℃伅
     paymentTime?: Date; // 浠樻鏃堕棿
     totalPrice: number; // 鍚堣閲戦锛屽崟浣嶏細鍏�
     discountPrice: number; // 浼樻儬閲戦
     paymentPrice: number; // 瀹為檯浠樻閲戦
     status: number; // 鐘舵��
+    // ========== 瀹℃壒淇℃伅锛堣交閲忕骇鐘舵�佹満瀹℃壒锛� ==========
+    reviewerId?: number; // 瀹℃牳浜虹紪鍙�
+    reviewerName?: string; // 瀹℃牳浜哄鍚�
+    reviewTime?: Date | string; // 瀹℃牳鏃堕棿
+    reviewRemark?: string; // 瀹℃牳鎰忚锛堜笉閫氳繃鏃朵负椹冲洖鍘熷洜锛�
     remark: string; // 澶囨敞
-    fileUrl?: string; // 闄勪欢
+    attachmentList?: { id: number; name?: string; url?: string }[]; // 闄勪欢鍒楄〃
     accountId?: number; // 浠樻璐︽埛
     accountName?: string; // 璐︽埛鍚嶇О
     financeUserId?: number; // 璐㈠姟浜哄憳
@@ -71,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