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 22f08e1f
authored
Jan 29, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
8f64803d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
22 deletions
packageWorkspace/pages/performanceRating/rateEdit/rateEdit.js
packageWorkspace/pages/performanceRating/rateList/retaList.js
packageWorkspace/pages/performanceRating/rateList/retaList.wxml
packageWorkspace/pages/performanceRating/rateEdit/rateEdit.js
View file @
22f08e1
...
@@ -75,24 +75,11 @@ Page({
...
@@ -75,24 +75,11 @@ Page({
},
},
// t1时间段内可编辑上月绩效
// t1时间段内可编辑上月绩效
isExpired
(
endDateStr
)
{
isExpired
(
endDateStr
)
{
const
{
pageQuery
}
=
this
.
data
const
now
=
new
Date
()
const
now
=
new
Date
()
const
endDate
=
new
Date
(
endDateStr
)
const
endDate
=
new
Date
(
endDateStr
)
if
(
now
>
endDate
)
{
if
(
now
>
endDate
)
{
return
true
return
true
}
}
const
currentYear
=
now
.
getFullYear
()
const
currentMonth
=
now
.
getMonth
()
let
lastYear
,
lastMonth
;
if
(
currentMonth
===
0
)
{
lastYear
=
currentYear
-
1
lastMonth
=
12
}
else
{
lastYear
=
currentYear
lastMonth
=
currentMonth
}
const
lastMonthStr
=
`
${
lastYear
}
-
${
String
(
lastMonth
).
padStart
(
2
,
'0'
)}
`
return
pageQuery
.
queryMonth
!==
lastMonthStr
},
},
getCycleTime
()
{
getCycleTime
()
{
...
@@ -150,7 +137,7 @@ Page({
...
@@ -150,7 +137,7 @@ Page({
info
:
{
info
:
{
...
data
,
...
data
,
entryDate
:
data
?.
entryDate
?
dayjs
(
data
?.
entryDate
).
format
(
'YYYY-MM-DD'
)
:
''
,
entryDate
:
data
?.
entryDate
?
dayjs
(
data
?.
entryDate
).
format
(
'YYYY-MM-DD'
)
:
''
,
adoptType
:
data
?.
isAutoPerformance
==
0
||
!
data
?.
isAutoPerformance
?
2
:
data
?.
adoptType
adoptType
:
data
?.
isAutoPerformance
==
0
||
!
data
?.
isAutoPerformance
?
2
:
data
?.
adoptType
,
},
},
autoInfo
:
{
autoInfo
:
{
levelCode
:
data
?.
autoGradeCode
,
levelCode
:
data
?.
autoGradeCode
,
...
@@ -301,6 +288,13 @@ Page({
...
@@ -301,6 +288,13 @@ Page({
this
.
setData
({
this
.
setData
({
'info.adoptType'
:
value
'info.adoptType'
:
value
})
})
if
(
value
==
1
)
{
const
computedValue
=
NP
.
round
(
NP
.
times
(
NP
.
times
(
info
.
afterAttendanceTotalBasicSalary
,
0.3
),
info
.
autoRewardCoefficient
),
2
)
this
.
setData
({
'info.performanceSalary'
:
computedValue
,
'info.basicSalary'
:
NP
.
plus
(
computedValue
,
info
.
baseSalary
)
})
}
},
},
// 提交
// 提交
...
...
packageWorkspace/pages/performanceRating/rateList/retaList.js
View file @
22f08e1
...
@@ -166,6 +166,7 @@ Page({
...
@@ -166,6 +166,7 @@ Page({
this
.
getRule
()
this
.
getRule
()
this
.
search
()
this
.
search
()
this
.
getStatics
()
this
.
getStatics
()
this
.
isHistoryMonth
()
})
})
}
}
this
.
closeMonthPicker
()
this
.
closeMonthPicker
()
...
@@ -216,13 +217,9 @@ Page({
...
@@ -216,13 +217,9 @@ Page({
}
}
})
})
},
},
isExpired
(
endDateStr
)
{
isHistoryMonth
()
{
const
{
monthPickerValue
}
=
this
.
data
const
now
=
new
Date
()
const
now
=
new
Date
()
const
endDate
=
new
Date
(
endDateStr
)
const
{
monthPickerValue
}
=
this
.
data
if
(
now
>
endDate
)
{
return
true
}
const
currentYear
=
now
.
getFullYear
()
const
currentYear
=
now
.
getFullYear
()
const
currentMonth
=
now
.
getMonth
()
const
currentMonth
=
now
.
getMonth
()
let
lastYear
,
lastMonth
;
let
lastYear
,
lastMonth
;
...
@@ -234,8 +231,18 @@ Page({
...
@@ -234,8 +231,18 @@ Page({
lastMonth
=
currentMonth
lastMonth
=
currentMonth
}
}
const
lastMonthStr
=
`
${
lastYear
}
-
${
String
(
lastMonth
).
padStart
(
2
,
'0'
)}
`
const
lastMonthStr
=
`
${
lastYear
}
-
${
String
(
lastMonth
).
padStart
(
2
,
'0'
)}
`
this
.
setData
({
isHistoryMonthFlag
:
dayjs
(
monthPickerValue
).
format
(
'YYYY-MM'
)
!==
lastMonthStr
})
return
dayjs
(
monthPickerValue
).
format
(
'YYYY-MM'
)
!==
lastMonthStr
return
dayjs
(
monthPickerValue
).
format
(
'YYYY-MM'
)
!==
lastMonthStr
},
},
isExpired
(
endDateStr
)
{
const
now
=
new
Date
()
const
endDate
=
new
Date
(
endDateStr
)
if
(
now
>
endDate
)
{
return
true
}
},
// 批量操作
// 批量操作
handleBatch
()
{
handleBatch
()
{
let
{
monthPickerValue
}
=
this
.
data
let
{
monthPickerValue
}
=
this
.
data
...
@@ -245,7 +252,7 @@ Page({
...
@@ -245,7 +252,7 @@ Page({
let
{
code
,
data
,
message
}
=
res
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
const
T1EndDate
=
data
?.
find
(
val
=>
val
.
cycleCode
==
'T1'
)?.
endDate
const
T1EndDate
=
data
?.
find
(
val
=>
val
.
cycleCode
==
'T1'
)?.
endDate
if
(
this
.
isExpired
(
T1EndDate
))
{
if
(
this
.
isExpired
(
T1EndDate
)
||
this
.
isHistoryMonth
()
)
{
return
wx
.
showModal
({
return
wx
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
content
:
'亲,记得在运营配置的T1日前来评绩效哦'
,
content
:
'亲,记得在运营配置的T1日前来评绩效哦'
,
...
...
packageWorkspace/pages/performanceRating/rateList/retaList.wxml
View file @
22f08e1
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
</view>
</view>
<view class="btn-box flex">
<view class="btn-box flex">
<view bindtap="handleDetail" data-target="{{item}}" class="btn">查看</view>
<view bindtap="handleDetail" data-target="{{item}}" class="btn">查看</view>
<view bindtap="handleEdit" data-target="{{item}}" class="btn primary">编辑{{(2 - item.submitCount)}}/2</view>
<view bindtap="handleEdit" data-target="{{item}}"
wx:if="{{!isHistoryMonthFlag}}"
class="btn primary">编辑{{(2 - item.submitCount)}}/2</view>
</view>
</view>
</view>
</view>
</block>
</block>
...
...
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