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 @@ 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 @@ - +