From 53990b0e76f02193f1f26c1df273b96f88b49ade Mon Sep 17 00:00:00 2001 From: Default User Date: Tue, 3 Feb 2026 14:12:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20SupplierReview.html=20?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=8C=E7=A7=BB=E9=99=A4=E9=A1=B5=E8=84=9A?= =?UTF-8?q?=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SupplierReview.html | 1051 ++++++++++++++++++++++++++++++++----------- 1 file changed, 798 insertions(+), 253 deletions(-) diff --git a/SupplierReview.html b/SupplierReview.html index ee3377f..5eab8d9 100644 --- a/SupplierReview.html +++ b/SupplierReview.html @@ -6,73 +6,313 @@ 供应商审核系统 + + +
- -
- 未登录 - + +
+

供应商审核系统

+

高效管理供应商信息,快速审核合作资质,为企业采购决策提供可靠支持

+
+ + +
+
+
0
+
总供应商数
+
+
+
0
+
审核中
+
+
+
0
+
已通过
+
+
+
0
+
已拒绝
+
- -

审核系统

@@ -1274,6 +1777,42 @@ // 联系人数据 let contacts = []; + // 更新统计卡片数据 + function updateStatistics(suppliers) { + const totalSuppliersEl = document.getElementById('totalSuppliers'); + const pendingSuppliersEl = document.getElementById('pendingSuppliers'); + const approvedSuppliersEl = document.getElementById('approvedSuppliers'); + const rejectedSuppliersEl = document.getElementById('rejectedSuppliers'); + + if (totalSuppliersEl) { + totalSuppliersEl.textContent = suppliers.length; + } + + if (pendingSuppliersEl) { + const pendingCount = suppliers.filter(s => + s.partnerstatus === 'underreview' || + s.status === 'underreview' + ).length; + pendingSuppliersEl.textContent = pendingCount; + } + + if (approvedSuppliersEl) { + const approvedCount = suppliers.filter(s => + s.partnerstatus === 'approved' || + s.status === 'approved' + ).length; + approvedSuppliersEl.textContent = approvedCount; + } + + if (rejectedSuppliersEl) { + const rejectedCount = suppliers.filter(s => + s.partnerstatus === 'reviewfailed' || + s.status === 'reviewfailed' + ).length; + rejectedSuppliersEl.textContent = rejectedCount; + } + } + // DOM元素 const supplyListEl = document.getElementById('supplyList'); const searchInputEl = document.getElementById('searchInput'); @@ -1693,6 +2232,9 @@ totalCountEl.textContent = totalCount; } + // 更新统计卡片数据 + updateStatistics(suppliersList); + // 对供应商列表进行排序,按照创建时间倒序排列(最新的在前) suppliersList.sort((a, b) => { // 获取创建时间,支持多种可能的字段名称 @@ -2582,5 +3124,8 @@ resetImageTransform(); } + + + \ No newline at end of file