From c46728c0eace6d30068fc4f15bd8a9f2e92208f2 Mon Sep 17 00:00:00 2001 From: qiankanghui Date: Wed, 8 Jul 2026 13:55:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(home):=20=E6=B7=BB=E5=8A=A0=E9=AA=8C?= =?UTF-8?q?=E8=B4=A7=E5=AE=A1=E6=A0=B8=E5=BE=85=E5=8A=9E=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=92=8CPO=E5=88=97=E8=A1=A8=E7=AD=9B=E9=80=89=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在首页待办清单中添加验货请求审核卡片 - 实现验货审核待办数量统计和跳转功能 - 为验货申请列表添加PO号筛选搜索功能 - 实现CRD日期排序功能和重置筛选按钮 - 优化PO列表显示逻辑和数据过滤处理 - 修复待办清单标题错别字问题 --- src/views/common/home.vue | 46 +++++++- .../inspection/inspectionRequestList.vue | 102 +++++++++++++++++- src/views/modules/inspection/myTodoList.vue | 2 +- 3 files changed, 146 insertions(+), 4 deletions(-) diff --git a/src/views/common/home.vue b/src/views/common/home.vue index 4dbc565..d783513 100644 --- a/src/views/common/home.vue +++ b/src/views/common/home.vue @@ -5,7 +5,7 @@
-

代办清单

+

待办清单

@@ -39,6 +39,16 @@
{{ myPerformanceScoreCount }}
{{ myPerformanceScoreCount > 0 ? '' : 'Null' }}
+
+ +
Inspection Request Audit
+
{{ inspectionAuditCount }}
+
{{ inspectionAuditCount > 0 ? '' : 'Null' }}
+
@@ -49,6 +59,7 @@ import {searchSysLanguagePack} from "../../api/sysLanguage"; import { supplierDocExpireReminder, supplierContractRequestExpireReminder } from '@/api/srm/srmSupplier.js' import { myPerformanceScoreReminder } from '@/api/supplierPerformance/myPerformanceEvaluateRequest.js' +import { searchInspectionRequestHeaderList } from '@/api/inspection/inspectionRequestHeader.js' export default { data(){ @@ -59,10 +70,12 @@ export default { contractExpireReminderCount: 0, contractExpireReminderIds: [], myPerformanceScoreCount: 0, + inspectionAuditCount: 0, homeTileShow: { supplierDocExpire: true, contractRequestExpire: true, myPerformanceScore: true, + inspectionAudit: true, }, /** 代办卡片悬停外圈脉冲(双环);false 时无任何脉冲描边 */ homeCardPulseEnabled: false, @@ -78,6 +91,9 @@ export default { onMyPerformanceScoreClick () { this.goMyPerformanceScoreList() }, + onInspectionAuditClick () { + this.goInspectionAuditList() + }, loadDocExpireReminder () { const site = this.$store.state.user.site supplierDocExpireReminder({ site }).then(({ data }) => { @@ -141,6 +157,26 @@ export default { } }) }, + loadInspectionAuditReminder () { + const site = this.$store.state.user.site + // 直接使用审核页面的查询接口,查询未审核的数据 + const params = { + page: 1, + limit: 1, // 只需要知道有多少条,不需要加载全部数据 + status: 'Confirmed', // 只查询已确认(待审核)的状态 + site: site + } + searchInspectionRequestHeaderList(params).then(({ data }) => { + if (data && data.code === 0 && data.page) { + this.inspectionAuditCount = data.page.totalCount || 0 + } + }).catch(() => {}) + }, + goInspectionAuditList () { + if (!this.inspectionAuditCount) return + // 跳转到验货申请审核页面 + this.$router.push({ name: 'inspection-inspectionRequestAudit' }) + }, languageRefresh(){ console.log("欢迎使用 旭捷管理系统!!!") }, @@ -180,6 +216,9 @@ export default { if (this.homeTileShow.myPerformanceScore) { this.loadMyPerformanceScoreReminder() } + if (this.homeTileShow.inspectionAudit) { + this.loadInspectionAuditReminder() + } }, watch: { 'homeTileShow.supplierDocExpire'(v) { @@ -196,6 +235,11 @@ export default { if (v) { this.loadMyPerformanceScoreReminder() } + }, + 'homeTileShow.inspectionAudit'(v) { + if (v) { + this.loadInspectionAuditReminder() + } } }, diff --git a/src/views/modules/inspection/inspectionRequestList.vue b/src/views/modules/inspection/inspectionRequestList.vue index 8bbc521..5221c32 100644 --- a/src/views/modules/inspection/inspectionRequestList.vue +++ b/src/views/modules/inspection/inspectionRequestList.vue @@ -237,8 +237,37 @@
批量选择PO
+ + +
+ +
+ +
+ + + +
+ + + + CRD日期排序 + + + + + 重置筛选 + +
+
+ + sortable + :sort-method="(a, b) => sortCrdDate(a, b)">