diff --git a/src/views/modules/inspection/inspectionPendingList.vue b/src/views/modules/inspection/inspectionPendingList.vue
index b55cce7..230a4e0 100644
--- a/src/views/modules/inspection/inspectionPendingList.vue
+++ b/src/views/modules/inspection/inspectionPendingList.vue
@@ -12,9 +12,9 @@
-
+
-
-
+
@@ -38,16 +38,16 @@
-
+
-
-
+
-
+
-
-
+
diff --git a/src/views/modules/inspection/inspectionRequestAudit.vue b/src/views/modules/inspection/inspectionRequestAudit.vue
index be06708..2585478 100644
--- a/src/views/modules/inspection/inspectionRequestAudit.vue
+++ b/src/views/modules/inspection/inspectionRequestAudit.vue
@@ -20,16 +20,16 @@
-
+
-
-
+
-
+
-
-
+
diff --git a/src/views/modules/inspection/inspectionRequestList.vue b/src/views/modules/inspection/inspectionRequestList.vue
index 74d2a5c..c6ce015 100644
--- a/src/views/modules/inspection/inspectionRequestList.vue
+++ b/src/views/modules/inspection/inspectionRequestList.vue
@@ -12,9 +12,9 @@
-
+
-
-
+
@@ -45,16 +45,16 @@
-
+
-
-
+
-
+
-
-
+
diff --git a/src/views/modules/inspection/inspectionScheduleList.vue b/src/views/modules/inspection/inspectionScheduleList.vue
index d73bb4d..361fb30 100644
--- a/src/views/modules/inspection/inspectionScheduleList.vue
+++ b/src/views/modules/inspection/inspectionScheduleList.vue
@@ -12,9 +12,9 @@
-
+
-
-
+
@@ -40,17 +40,17 @@
-
+
-
-
+
-
+
-
-
+
diff --git a/src/views/modules/supplierPerformance/myPerformanceEvaluateRequest.vue b/src/views/modules/supplierPerformance/myPerformanceEvaluateRequest.vue
index b065fe0..96d2029 100644
--- a/src/views/modules/supplierPerformance/myPerformanceEvaluateRequest.vue
+++ b/src/views/modules/supplierPerformance/myPerformanceEvaluateRequest.vue
@@ -79,7 +79,7 @@
@@ -94,13 +94,14 @@
-
-
-
+
+
+
@@ -175,14 +176,20 @@
指定负责人
-
-
-
+
+
+
- {{scope.row.owner}}
+ {{ scope.row.owner }}
(未选择)
+
+
+ {{ scope.row.ownerDisplay }}
+ -
+
+
查询
@@ -199,12 +206,18 @@
-
+
- {{scope.row.owner}}
+ {{ scope.row.owner }}
(未选择)
+
+
+ {{ scope.row.ownerDisplay }}
+ -
+
+
查询
@@ -534,9 +547,32 @@ export default {
if (data && (data.code === 0 || data.code === '0')) {
// 统一使用 owner 字段
this.departmentList = data.rows || data.obj || []
+ // 加载所有用户列表,用于匹配 ownerDisplay
+ this.loadAllUsersForDisplay()
} else { this.departmentList = [] }
}).catch(()=> { this.departmentList=[] }).finally(()=> { this.deptLoading=false })
},
+ // 加载所有用户用于匹配显示名称
+ loadAllUsersForDisplay() {
+ // 使用和 loadOwners 相同的调用方式,传入一个空对象或第一个部门
+ const queryParam = this.departmentList.length > 0 ? this.departmentList[0] : {}
+ fetchOwnerUserList(queryParam).then(({data})=> {
+ if (data && (data.code===0||data.code==='0')) {
+ const userList = (data.page? data.page.list : (data.rows||data.obj||[])) || []
+ // 为每个有 owner 的部门匹配 userDisplay
+ this.departmentList.forEach(dept => {
+ if (dept.owner) {
+ const matchedUser = userList.find(u => u.username === dept.owner || u.userName === dept.owner)
+ if (matchedUser) {
+ this.$set(dept, 'ownerDisplay', matchedUser.userDisplay || matchedUser.user_display || '')
+ }
+ }
+ })
+ }
+ }).catch(()=> {
+ // 静默失败,不影响其他数据显示
+ })
+ },
openOwnerSelect(row) { this.currentDeptRow = row; this.ownerDialogVisible = true; this.ownerQuery.keyword=''; this.loadOwners(); },
loadOwners() {
this.ownerLoading = true;
@@ -548,7 +584,10 @@ export default {
if (!this.currentDeptRow || !row) return;
const uname = row.username || row.userName || row.user_id || ''
if (!uname) { this.$message.warning('该行缺少 username无法选择'); return }
+ // 保存 username 到 owner 字段(用于提交)
this.$set(this.currentDeptRow, 'owner', uname)
+ // 保存 userDisplay 到 ownerDisplay 字段(仅用于显示)
+ this.$set(this.currentDeptRow, 'ownerDisplay', row.userDisplay || row.user_display || '')
this.ownerDialogVisible = false
},
clearOwner(row) { row.owner = '' },
diff --git a/src/views/modules/supplierPerformance/perMyScore.vue b/src/views/modules/supplierPerformance/perMyScore.vue
index e1135db..ea4e0f2 100644
--- a/src/views/modules/supplierPerformance/perMyScore.vue
+++ b/src/views/modules/supplierPerformance/perMyScore.vue
@@ -74,7 +74,7 @@
@@ -108,8 +108,7 @@
- 季度供应商绩效评级请求: {{ currentRequest.requestNo || '-'
- }}
+ 季度供应商绩效评级请求