-
未登录
-
+
+
+
供应商审核系统
+
高效管理供应商信息,快速审核合作资质,为企业采购决策提供可靠支持
+
+
+
+
-
-
审核系统
@@ -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();
}
+
+
+