Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
regional-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 240db610
authored
Feb 09, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
批量操作绩效,计算保留两位小数
1 parent
4aa1f91d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
packageWorkspace/pages/performanceRating/batchOperation/batchOperation.js
packageWorkspace/pages/performanceRating/batchOperation/batchOperation.js
View file @
240db61
...
@@ -128,10 +128,10 @@ Page({
...
@@ -128,10 +128,10 @@ Page({
})
})
// 未输入手动维护绩效金额 根据评分等级系数计算绩效工资
// 未输入手动维护绩效金额 根据评分等级系数计算绩效工资
if
(((
batchSingleList
[
singleSelectIndex
].
manualFinalPerformanceAmount
??
''
)
===
''
))
{
if
(((
batchSingleList
[
singleSelectIndex
].
manualFinalPerformanceAmount
??
''
)
===
''
))
{
const
performanceSalary
=
NP
.
times
(
NP
.
times
(
batchSingleList
[
singleSelectIndex
].
afterAttendanceTotalBasicSalary
,
0.3
),
obj
.
rewardCoefficient
)
const
performanceSalary
=
NP
.
round
(
NP
.
times
(
NP
.
times
(
batchSingleList
[
singleSelectIndex
].
afterAttendanceTotalBasicSalary
,
0.3
),
obj
.
rewardCoefficient
),
2
)
this
.
setData
({
this
.
setData
({
[
`batchSingleList[
${
singleSelectIndex
}
].performanceSalary`
]:
performanceSalary
,
[
`batchSingleList[
${
singleSelectIndex
}
].performanceSalary`
]:
performanceSalary
,
[
`batchSingleList[
${
singleSelectIndex
}
].basicSalary`
]:
NP
.
plus
(
performanceSalary
,
batchSingleList
[
singleSelectIndex
].
baseSalary
)
[
`batchSingleList[
${
singleSelectIndex
}
].basicSalary`
]:
NP
.
round
(
NP
.
plus
(
performanceSalary
,
batchSingleList
[
singleSelectIndex
].
baseSalary
),
2
)
})
})
}
}
}
}
...
@@ -228,11 +228,11 @@ Page({
...
@@ -228,11 +228,11 @@ Page({
})
})
}
else
{
}
else
{
// 计算绩效工资,没有手动维护金额按绩效等级系数进行计算
// 计算绩效工资,没有手动维护金额按绩效等级系数进行计算
const
computedValue
=
value
||
(
batchSingleList
[
index
]?.
manualGradeCode
?
NP
.
times
(
NP
.
times
(
batchSingleList
[
index
]?.
afterAttendanceTotalBasicSalary
,
0.3
),
batchSingleList
[
index
].
manualRewardCoefficient
)
:
0
)
const
computedValue
=
value
||
(
batchSingleList
[
index
]?.
manualGradeCode
?
NP
.
round
(
NP
.
times
(
NP
.
times
(
batchSingleList
[
index
]?.
afterAttendanceTotalBasicSalary
,
0.3
),
batchSingleList
[
index
].
manualRewardCoefficient
),
2
)
:
0
)
this
.
setData
({
this
.
setData
({
[
`batchSingleList[
${
index
}
].manualFinalPerformanceAmount`
]:
value
,
[
`batchSingleList[
${
index
}
].manualFinalPerformanceAmount`
]:
value
,
[
`batchSingleList[
${
index
}
].performanceSalary`
]:
computedValue
,
[
`batchSingleList[
${
index
}
].performanceSalary`
]:
computedValue
,
[
`batchSingleList[
${
index
}
].basicSalary`
]:
NP
.
plus
(
computedValue
,
batchSingleList
[
index
]?.
baseSalary
)
[
`batchSingleList[
${
index
}
].basicSalary`
]:
NP
.
round
(
NP
.
plus
(
computedValue
,
batchSingleList
[
index
]?.
baseSalary
),
2
)
})
})
}
}
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment