From 926cefaee91d250010ad960281abcfec28d44209 Mon Sep 17 00:00:00 2001
From: qsh <>
Date: Tue, 24 Dec 2024 17:28:34 +0800
Subject: [PATCH] sc
---
src/api/kpi/score.js | 10 ++++
.../Finance/Salary/Comp/DialogSalary.vue | 13 ++---
src/views/Home/Salary/index.vue | 8 +--
src/views/Kpi/Appraise/index.vue | 8 ++-
src/views/Kpi/Record/DialogScoreDetail.vue | 48 ++++++++++++++++
src/views/Kpi/Record/index.vue | 56 ++++++++++---------
src/views/Kpi/Score/index.vue | 7 ++-
7 files changed, 107 insertions(+), 43 deletions(-)
create mode 100644 src/views/Kpi/Record/DialogScoreDetail.vue
diff --git a/src/api/kpi/score.js b/src/api/kpi/score.js
index 764b296..0bcad06 100644
--- a/src/api/kpi/score.js
+++ b/src/api/kpi/score.js
@@ -29,3 +29,13 @@ export const saveScoreRecord = (params) => {
export const getKpiPeriodStatus = (params) => {
return request.get({ url: '/admin-api/oa/examine-period/getExaminePeriodByPeriod', params })
}
+
+// 查询考核记录
+export const getScoreRecord = (data) => {
+ return request.post({ url: '/admin-api/oa/examine-result/periodPage', data })
+}
+
+// 查详情
+export const getScoreDetail = (params) => {
+ return request.get({ url: '/admin-api/oa/examine-result/detail', params })
+}
diff --git a/src/views/Finance/Salary/Comp/DialogSalary.vue b/src/views/Finance/Salary/Comp/DialogSalary.vue
index a7ec392..920543a 100644
--- a/src/views/Finance/Salary/Comp/DialogSalary.vue
+++ b/src/views/Finance/Salary/Comp/DialogSalary.vue
@@ -19,12 +19,7 @@
-
+
@@ -137,7 +132,8 @@ const open = async (row) => {
getOptions()
formLoading.value = true
try {
- formData.value = await SalaryApi.getSalaryDetail(row.id)
+ const data = await SalaryApi.getSalaryDetail(row.id)
+ formData.value = { ...data, meritsRate: data.meritsRate * 100 }
if (!formData.value) {
resetForm(row.id)
}
@@ -167,7 +163,8 @@ const resetForm = (id) => {
socialDeduct: 0,
accumulationFundDeduct: 0,
meritsSalary: 0,
- extraDeduct: 0
+ extraDeduct: 0,
+ meritsRate: 0
}
formRef.value?.resetFields()
}
diff --git a/src/views/Home/Salary/index.vue b/src/views/Home/Salary/index.vue
index 1f38c4a..549d238 100644
--- a/src/views/Home/Salary/index.vue
+++ b/src/views/Home/Salary/index.vue
@@ -74,26 +74,26 @@
- {{ row.standardMeritsSalary }}
+ {{ row.meritsSalary }}
- {{ row.meritsSalary }}
+ {{ row.reallyMeritsSalary }}
diff --git a/src/views/Kpi/Appraise/index.vue b/src/views/Kpi/Appraise/index.vue
index c207f50..9d4d2c2 100644
--- a/src/views/Kpi/Appraise/index.vue
+++ b/src/views/Kpi/Appraise/index.vue
@@ -22,7 +22,7 @@
-
+
@@ -125,7 +125,11 @@ const handleQuery = () => {
/** 重置按钮操作 */
const resetQuery = () => {
- queryFormRef.value.resetFields()
+ searchForm.value = {
+ examineTarget: undefined,
+ pageNo: 1,
+ pageSize: 20
+ }
handleQuery()
}
diff --git a/src/views/Kpi/Record/DialogScoreDetail.vue b/src/views/Kpi/Record/DialogScoreDetail.vue
new file mode 100644
index 0000000..2ecf45a
--- /dev/null
+++ b/src/views/Kpi/Record/DialogScoreDetail.vue
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
diff --git a/src/views/Kpi/Record/index.vue b/src/views/Kpi/Record/index.vue
index 3d991e8..5e7754e 100644
--- a/src/views/Kpi/Record/index.vue
+++ b/src/views/Kpi/Record/index.vue
@@ -23,7 +23,7 @@
-
+
{{ row.period }}
- 考核人数:{{ row.attendanceUserCount }}人
+ 考核人数:{{ row.examineNum }}人
- {{ row.employeeName }}
+ {{ row.examinedUserName }}
@@ -59,19 +59,9 @@
-
- 详情
-
封存
已封存
+
+ 详情
+
@@ -91,17 +91,20 @@
v-model:limit="searchForm.pageSize"
@pagination="getList"
/>
+
+