Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4e5d2bd1
authored
Jun 12, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
考勤和收入联调
1 parent
1cdbced1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
106 additions
and
106 deletions
assets/css/sprite.scss
assets/images/sprite.png
components/HomeFrame/components/Income/History.vue
components/HomeFrame/components/Income/MyStore.vue
assets/css/sprite.scss
View file @
4e5d2bd
This diff is collapsed.
Click to expand it.
assets/images/sprite.png
View file @
4e5d2bd
2.41 MB
|
W:
|
H:
2.41 MB
|
W:
|
H:
2-up
Swipe
Onion skin
components/HomeFrame/components/Income/History.vue
View file @
4e5d2bd
...
...
@@ -185,56 +185,56 @@ export default {
// this.showChart()
})
.
exec
()
setTimeout
(()
=>
{
const
_basicSalary
=
{
confirmSalary
:
true
,
basicSalary
:
3000
,
performanceSalary
:
1000
,
actualBasicSalary
:
3500
,
shouldWorkDay
:
26
,
actualWorkDay
:
10
,
actualPerformanceSalary
:
1500
,
performanceSalaryConfigItemList
:
[
{
assessmentType
:
1
,
minAssessmentValue
:
0
,
maxAssessmentValue
:
20
,
performanceSalarDeductionRatio
:
10
},
{
assessmentType
:
1
,
minAssessmentValue
:
24
,
maxAssessmentValue
:
26
,
performanceSalarDeductionRatio
:
50
},
{
assessmentType
:
1
,
minAssessmentValue
:
23
,
maxAssessmentValue
:
26
,
performanceSalarDeductionRatio
:
60
},
{
assessmentType
:
1
,
minAssessmentValue
:
22
,
maxAssessmentValue
:
26
,
performanceSalarDeductionRatio
:
60
},
{
assessmentType
:
1
,
minAssessmentValue
:
21
,
maxAssessmentValue
:
26
,
performanceSalarDeductionRatio
:
100
},
{
assessmentType
:
2
,
minAssessmentValue
:
0
,
maxAssessmentValue
:
20
,
performanceSalarDeductionRatio
:
100
}
]
}
this
.
basicSalary
=
_basicSalary
},
100
)
//
setTimeout(() => {
//
const _basicSalary = {
// confirmSalary: true, // 是否确认工资,核验
// basicSalary: 3000, // 基本工资/底薪
// performanceSalary: 1000, // 绩效工资
// actualBasicSalary: 3500, // 实际基本工资
// shouldWorkDay: 26, // 应出勤天数
// actualWorkDay: 10, // 实际出勤天数
// actualPerformanceSalary: 1500, // 实际绩效工资
//
performanceSalaryConfigItemList: [
//
{
//
assessmentType: 1,
//
minAssessmentValue: 0,
//
maxAssessmentValue: 20,
//
performanceSalarDeductionRatio: 10
//
},
//
{
//
assessmentType: 1,
//
minAssessmentValue: 24,
//
maxAssessmentValue: 26,
//
performanceSalarDeductionRatio: 50
//
},
//
{
//
assessmentType: 1,
//
minAssessmentValue: 23,
//
maxAssessmentValue: 26,
//
performanceSalarDeductionRatio: 60
//
},
//
{
//
assessmentType: 1,
//
minAssessmentValue: 22,
//
maxAssessmentValue: 26,
//
performanceSalarDeductionRatio: 60
//
},
//
{
//
assessmentType: 1,
//
minAssessmentValue: 21,
//
maxAssessmentValue: 26,
//
performanceSalarDeductionRatio: 100
//
},
//
{
//
assessmentType: 2,
//
minAssessmentValue: 0,
//
maxAssessmentValue: 20,
//
performanceSalarDeductionRatio: 100
//
}
//
]
//
}
//
this.basicSalary = _basicSalary
//
}, 100)
},
methods
:
{
isShow
(
key
)
{
...
...
@@ -310,6 +310,7 @@ export default {
this
.
salaryMonth
=
salaryMonth
uni
.
$api
.
pointApi
.
monthSalaryDetail
({
salaryMonth
}).
then
(
res
=>
{
this
.
salaryDetail
=
res
this
.
basicSalary
=
res
})
const
{
phone
:
staffPhone
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
params
=
{
...
...
@@ -339,10 +340,10 @@ export default {
this
.
tipsDetail
=
Object
.
assign
(
item
,
this
.
basicSalary
)
console
.
log
(
dayjs
(
new
Date
()).
daysInMonth
())
// 应出勤天数tips
const
month
=
dayjs
(
new
Date
()
).
daysInMonth
()
const
month
=
dayjs
(
this
.
salaryMonth
).
daysInMonth
()
this
.
tipsDetail
.
basicList
[
1
].
tips
=
`(本月
${
month
}
-
${
month
-
this
.
basicSalary
.
shouldWorkDay
}
)`
// 实际出勤天数tips
this
.
tipsDetail
.
basicList
[
2
].
tips
=
`(截至
${
dayjs
(
).
subtract
(
1
,
'day
'
).
format
(
'YYYY-MM-DD'
)}
)`
this
.
tipsDetail
.
basicList
[
2
].
tips
=
`(截至
${
dayjs
(
this
.
salaryMonth
).
endOf
(
'month
'
).
format
(
'YYYY-MM-DD'
)}
)`
}
else
{
this
.
tipsDetail
=
item
}
...
...
components/HomeFrame/components/Income/MyStore.vue
View file @
4e5d2bd
...
...
@@ -221,56 +221,56 @@ export default {
},
mounted
()
{
this
.
outputList
=
this
.
outputList
.
filter
(
i
=>
i
.
value
==
0
)
setTimeout
(()
=>
{
const
_basicSalary
=
{
confirmSalary
:
false
,
basicSalary
:
3000
,
performanceSalary
:
1000
,
actualBasicSalary
:
3500
,
shouldWorkDay
:
26
,
actualWorkDay
:
10
,
actualPerformanceSalary
:
1500
,
performanceSalaryConfigItemList
:
[
{
assessmentType
:
1
,
minAssessmentValue
:
0
,
maxAssessmentValue
:
20
,
performanceSalarDeductionRatio
:
10
},
{
assessmentType
:
1
,
minAssessmentValue
:
24
,
maxAssessmentValue
:
26
,
performanceSalarDeductionRatio
:
50
},
{
assessmentType
:
1
,
minAssessmentValue
:
23
,
maxAssessmentValue
:
26
,
performanceSalarDeductionRatio
:
60
},
{
assessmentType
:
1
,
minAssessmentValue
:
22
,
maxAssessmentValue
:
26
,
performanceSalarDeductionRatio
:
60
},
{
assessmentType
:
1
,
minAssessmentValue
:
21
,
maxAssessmentValue
:
26
,
performanceSalarDeductionRatio
:
100
},
{
assessmentType
:
2
,
minAssessmentValue
:
0
,
maxAssessmentValue
:
20
,
performanceSalarDeductionRatio
:
100
}
]
}
this
.
basicSalary
=
_basicSalary
},
100
)
//
setTimeout(() => {
//
const _basicSalary = {
//
confirmSalary: false,
//
basicSalary: 3000,
//
performanceSalary: 1000,
//
actualBasicSalary: 3500,
//
shouldWorkDay: 26,
//
actualWorkDay: 10,
//
actualPerformanceSalary: 1500,
//
performanceSalaryConfigItemList: [
//
{
//
assessmentType: 1,
//
minAssessmentValue: 0,
//
maxAssessmentValue: 20,
//
performanceSalarDeductionRatio: 10
//
},
//
{
//
assessmentType: 1,
//
minAssessmentValue: 24,
//
maxAssessmentValue: 26,
//
performanceSalarDeductionRatio: 50
//
},
//
{
//
assessmentType: 1,
//
minAssessmentValue: 23,
//
maxAssessmentValue: 26,
//
performanceSalarDeductionRatio: 60
//
},
//
{
//
assessmentType: 1,
//
minAssessmentValue: 22,
//
maxAssessmentValue: 26,
//
performanceSalarDeductionRatio: 60
//
},
//
{
//
assessmentType: 1,
//
minAssessmentValue: 21,
//
maxAssessmentValue: 26,
//
performanceSalarDeductionRatio: 100
//
},
//
{
//
assessmentType: 2,
//
minAssessmentValue: 0,
//
maxAssessmentValue: 20,
//
performanceSalarDeductionRatio: 100
//
}
//
]
//
}
//
this.basicSalary = _basicSalary
//
}, 100)
},
watch
:
{
'form.merchantId'
(
val
)
{
...
...
@@ -299,6 +299,7 @@ export default {
getDetail
(
salaryMonth
)
{
uni
.
$api
.
pointApi
.
monthSalaryDetail
({
salaryMonth
:
`
${
this
.
year
}
-
${(
this
.
month
+
''
).
padStart
(
2
,
'0'
)}
`
,
calculationDataFlag
:
'Y'
}).
then
(
res
=>
{
this
.
salaryDetail
=
res
||
{}
this
.
basicSalary
=
res
||
{}
})
const
{
phone
:
staffPhone
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
params
=
{
...
...
@@ -371,15 +372,13 @@ export default {
console
.
log
(
this
.
commissionsInfo
,
'this.commissionsInfoQG'
,
this
.
commissionsInfoQG
)
},
clickTips
(
item
)
{
console
.
log
(
this
.
basicSalary
,
'basicSalary======='
)
if
(
item
.
label
==
'基本工资'
)
{
this
.
tipsDetail
=
Object
.
assign
(
item
,
this
.
basicSalary
)
console
.
log
(
dayjs
(
new
Date
()).
daysInMonth
())
// 应出勤天数tips
const
month
=
dayjs
(
new
Date
()).
daysInMonth
()
this
.
tipsDetail
.
basicList
[
1
].
tips
=
`(本月
${
month
}
-
${
month
-
this
.
basicSalary
.
shouldWorkDay
}
)`
this
.
tipsDetail
.
basicList
[
1
].
tips
=
`(本月
${
month
}
-
${
month
-
this
.
basicSalary
.
shouldWorkDay
||
0
}
)`
// 实际出勤天数tips
this
.
tipsDetail
.
basicList
[
2
].
tips
=
`(截至
${
dayjs
().
subtract
(
1
,
'day'
).
format
(
'YYYY-MM-DD'
)}
)`
this
.
tipsDetail
.
basicList
[
2
].
tips
=
`(截至
${
dayjs
().
date
()
===
1
?
dayjs
().
format
(
'YYYY-MM-DD'
)
:
dayjs
().
subtract
(
1
,
'day'
).
format
(
'YYYY-MM-DD'
)}
)`
}
else
{
this
.
tipsDetail
=
item
}
...
...
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