Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 754fb6ff
authored
Apr 25, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
考勤明细合计天数添加单位
1 parent
4b8d80f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/views/residentManage/inStoreManage/components/basicSalaryDialog.vue
src/views/residentManage/inStoreManage/components/basicSalaryDialog.vue
View file @
754fb6f
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<el-table
<el-table
v-if=
"item.tableData.length"
v-if=
"item.tableData.length"
:data=
"item.tableData"
:data=
"item.tableData"
height=
"50
0px"
max-height=
"47
0px"
class=
"table_class"
class=
"table_class"
border
border
:header-cell-style=
"
{
:header-cell-style=
"
{
...
@@ -207,12 +207,12 @@ export default {
...
@@ -207,12 +207,12 @@ export default {
if (index === 1) {
if (index === 1) {
const numberList = this.tabList[Number(this.activeName)]?.tableData.map((item) => !isNaN(item.deductionDays) ? item.deductionDays : 0)
const numberList = this.tabList[Number(this.activeName)]?.tableData.map((item) => !isNaN(item.deductionDays) ? item.deductionDays : 0)
sums[index] =
const total = (numberList.length
(numberList.length
? numberList.reduce((preVal, curVal) => {
? numberList.reduce((preVal, curVal) => {
return `
$
{
this
.
activeName
==
2
?
'+'
:
''
}
$
{
new
BigNumber
(
preVal
||
0
).
plus
(
new
BigNumber
(
curVal
||
0
)).
toNumber
()}
`
return `
$
{
new
BigNumber
(
preVal
||
0
).
plus
(
new
BigNumber
(
curVal
||
0
)).
toNumber
()}
`
})
})
: "0")
: "0")
sums[index] = `
$
{
this
.
activeName
==
'2'
&&
total
>
0
?
'+'
:
''
}
$
{
Number
(
total
)}
天
`
}
}
})
})
return sums
return sums
...
...
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