Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
ww-recruitment
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 38290c0d
authored
Jan 28, 2026
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
工资绩效审核模板
1 parent
61eaac13
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
352 additions
and
7 deletions
src/api/index.js
src/api/salary.js
src/router/mobile.js
src/router/routes.js
src/store/modules/app.js
src/views/salary/index.vue
src/api/index.js
View file @
38290c0
/*
* @
Descripttion:API 统一外部调用入口
* @
version: 1.0.0
* @
Author: limin
* @
Date: 2021-06-07 14:12:3
2
* @
LastEditors: limin
* @
LastEditTime: 2021-06-17 18:23:27
* @
Author: 'wangzhihui' '1733904062@qq.com'
* @
Date: 2026-01-26 20:26:31
* @
LastEditors: 'wangzhihui' '1733904062@qq.com'
* @
LastEditTime: 2026-01-27 14:51:5
2
* @
FilePath: \ww-recruitment\src\api\index.js
* @
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import
ssoApi
from
'./ssoApi'
import
salaryApi
from
'./salary'
export
{
ssoApi
,
salaryApi
}
\ No newline at end of file
src/api/salary.js
0 → 100644
View file @
38290c0
const
url
=
'rop-dj-staff/router'
export
default
{
//获取审批详情与权限(H5请求)
getStaffConfig
(
data
=
{}){
data
.
method
=
'dj.staff.api.performance.config.approve.permission'
return
window
.
$DJ_HTTP
({
url
,
data
,
// returnAll: true
})
},
//提成方案审批操作(通过/驳回/查看)(H5请求)
handleApprove
(
data
=
{}){
data
.
method
=
'dj.staff.api.performance.config.approve.handle'
return
window
.
$DJ_HTTP
({
url
,
data
,
// returnAll: true
})
}
}
\ No newline at end of file
src/router/mobile.js
View file @
38290c0
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2026-01-26 20:26:31
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-01-27 14:23:58
* @FilePath: \ww-recruitment\src\router\mobile.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2026-01-26 20:26:31
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-01-27 13:46:04
* @FilePath: \ww-recruitment\src\router\mobile.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
export
const
mobilePages
=
{
mobile
:
[
{
...
...
@@ -40,5 +56,14 @@ export const mobilePages = {
title
:
'招聘审核'
}
}
],
salary
:
[
{
name
:
'index'
,
path
:
'/salary/index'
,
meta
:
{
title
:
'企微推送H5'
}
}
]
}
src/router/routes.js
View file @
38290c0
...
...
@@ -14,11 +14,13 @@ let routes = [
]
Object
.
keys
(
pages
).
map
(
parent
=>
{
pages
[
parent
].
map
(
val
=>
{
let
childrenPath
=
`
${
parent
}
/
${
val
.
name
}
`
let
{
meta
}
=
val
const
path
=
val
.
path
||
`/
${
val
.
name
==
'index'
?
parent
:
childrenPath
}
`
const
name
=
val
.
name
==
'index'
?
parent
:
val
.
name
console
.
log
(
path
,
name
,
childrenPath
)
if
(
meta
&&
meta
.
keepAlive
)
keepAlives
.
push
(
name
)
let
route
=
{
component
:
resolve
=>
require
([
`views/
${
childrenPath
}
.vue`
],
resolve
),
...
...
@@ -29,6 +31,7 @@ Object.keys(pages).map(parent => {
routes
.
push
(
route
)
})
})
console
.
log
(
routes
)
export
const
keeps
=
keepAlives
...
...
src/store/modules/app.js
View file @
38290c0
...
...
@@ -29,6 +29,7 @@ const actions = {
},
async
login
({
dispatch
})
{
console
.
log
(
'login'
)
//agentId=1000002&corpId=wwa55ffac1225eb25e //开发环境
// return
try
{
const
wwCode
=
getParams
(
'code'
),
...
...
@@ -73,10 +74,11 @@ const actions = {
}
},
navigation
({
dispatch
},
to
)
{
let
{
corpId
,
agentId
,
phone
,
name
}
=
getParams
(),
let
{
corpId
,
agentId
,
phone
,
name
,
id
}
=
getParams
(),
userInfo
=
util
.
getLocalStorage
(
'ww_userInfo'
)
if
(
phone
)
util
.
setLocalStorage
(
'ww_params_phone'
,
phone
)
if
(
name
)
util
.
setLocalStorage
(
'ww_params_name'
,
name
)
if
(
id
)
util
.
setLocalStorage
(
'ww_params_id'
,
id
)
dispatch
(
'registerHttp'
)
if
(
corpId
)
{
let
ww_storage_info
=
{}
...
...
src/views/salary/index.vue
0 → 100644
View file @
38290c0
<
template
>
<div
class=
"approve"
>
<!-- 基本信息 -->
<div
class=
"card"
>
<div
class=
"row"
>
<div
class=
"label"
>
提交日期
</div>
<div
class=
"value"
>
{{
approveDetail
.
submitDate
||
'-'
}}
</div>
</div>
<div
class=
"row"
>
<div
class=
"label"
>
提交方案名称
</div>
<div
class=
"value"
>
{{
approveDetail
.
schemeName
||
'-'
}}
</div>
</div>
<div
class=
"row"
>
<div
class=
"label"
>
发起人
</div>
<div
class=
"value"
>
{{
approveDetail
.
submitUsername
||
'-'
}}
</div>
</div>
<div
class=
"row"
>
<div
class=
"label"
>
变更新增方案说明
</div>
<div
class=
"value"
>
{{
approveDetail
.
approveRemark
||
'-'
}}
</div>
</div>
<!-- 附图 -->
<div
class=
"row"
>
<div
class=
"label"
>
附件
</div>
<div
class=
"value images"
>
<div
v-for=
"(u, idx) in imageUrls"
:key=
"'img_' + idx"
class=
"image-wrap"
@
click=
"openImagePreview(idx)"
>
<img
:src=
"u"
alt=
""
/>
</div>
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"item"
v-for=
"p in approvers"
:key=
"p.id"
>
<div
class=
"row"
>
<div
class=
"label"
>
审批人
</div>
<div
class=
"value"
>
<div>
{{
p
.
approverName
||
'-'
}}
</div>
<div
:class=
"['status-inline', recordStatusClass(p.status)]"
v-if=
"p.status == 2 || p.status == 3"
>
{{
recordStatusText
(
p
.
status
)
}}
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"label"
>
审批意见
</div>
<div
class=
"value opinion"
v-html=
"p.approveOpinion || '-'"
></div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"label"
>
抄送人
</div>
<div
class=
"value"
>
{{
copierNames
||
'-'
}}
</div>
</div>
</div>
<!-- 审批区:仅审批人权限显示 -->
<div
v-if=
"isApproverPermission"
class=
"card"
>
<div
class=
"section-title"
>
审批意见
</div>
<textarea
v-model=
"approveOpinion"
class=
"textarea"
placeholder=
"请输入(500字以内)"
rows=
"4"
maxlength=
"500"
@
input=
"onOpinionInput"
></textarea>
<div
class=
"actions"
>
<button
class=
"btn primary"
@
click=
"submitApprove(2)"
>
通过
</button>
<button
class=
"btn danger-outline"
@
click=
"submitApprove(3)"
>
驳回
</button>
</div>
</div>
</div>
</
template
>
<
script
>
import
salaryApi
from
'@/api/salary'
import
{
util
}
from
'utils'
import
{
ImagePreview
,
Toast
}
from
'vant'
export
default
{
name
:
'Approve'
,
data
()
{
return
{
phone
:
''
,
id
:
''
,
loading
:
false
,
submitting
:
false
,
approveOpinion
:
''
,
approveDetail
:
{
approvePermission
:
''
,
performanceConfigApproveOperationRecordList
:[],
attachmentImgs
:
''
}
}
},
computed
:
{
isApproverPermission
()
{
console
.
log
(
'isApproverPermission'
,
this
.
approveDetail
?.
approvePermission
)
const
v
=
this
.
approveDetail
?.
approvePermission
return
Number
(
v
)
==
2
},
approvers
()
{
const
list
=
this
.
approveDetail
?.
performanceConfigApproveOperationRecordList
||
[]
return
list
.
filter
(
i
=>
Number
(
i
.
approverType
)
===
2
)
},
copiers
()
{
const
list
=
this
.
approveDetail
?.
performanceConfigApproveOperationRecordList
||
[]
return
list
.
filter
(
i
=>
Number
(
i
.
approverType
)
===
1
)
},
imageUrls
()
{
const
imgs
=
this
.
approveDetail
?.
attachmentImgs
||
''
return
imgs
?
imgs
.
split
(
','
).
filter
(
Boolean
)
:
[]
},
copierNames
()
{
return
(
this
.
copiers
||
[]).
map
(
i
=>
i
.
approverName
).
join
(
'、'
)
}
},
mounted
()
{
this
.
id
=
util
.
getLocalStorage
(
'ww_params_id'
)
this
.
phone
=
util
.
getLocalStorage
(
'ww_params_phone'
)
this
.
fetchDetail
()
},
methods
:
{
// 详情获取
async
fetchDetail
()
{
try
{
this
.
loading
=
true
const
res
=
await
salaryApi
.
getStaffConfig
({
mobile
:
this
.
phone
,
id
:
this
.
id
})
if
(
res
)
{
this
.
approveDetail
=
Object
.
assign
(
this
.
approveDetail
,
res
)
}
}
catch
(
e
)
{
console
.
warn
(
'getStaffConfig failed, use fallback data.'
,
e
)
}
finally
{
this
.
loading
=
false
}
},
// 提交通过/驳回
async
submitApprove
(
status
)
{
if
(
!
this
.
isApproverPermission
)
return
// if (!this.approveOpinion || !this.approveOpinion.trim()) {
// alert('请填写审批意见')
// return
// }
try
{
this
.
submitting
=
true
await
salaryApi
.
handleApprove
({
performanceConfigApproveId
:
this
.
id
,
status
,
// 2通过 / 3驳回
mobile
:
this
.
phone
,
approveOpinion
:
this
.
approveOpinion
})
Toast
.
success
(
'已提交'
)
// 刷新详情
await
this
.
fetchDetail
()
}
catch
(
e
)
{
console
.
error
(
e
)
}
finally
{
this
.
submitting
=
false
}
},
recordStatusText
(
s
)
{
const
map
=
{
2
:
'通过'
,
3
:
'驳回'
}
return
map
[
Number
(
s
)]
||
''
},
recordStatusClass
(
s
)
{
const
n
=
Number
(
s
)
if
(
n
===
2
)
return
'success'
if
(
n
===
3
)
return
'danger'
return
''
},
openImagePreview
(
startIndex
)
{
ImagePreview
({
images
:
this
.
imageUrls
,
startPosition
:
startIndex
})
},
onOpinionInput
()
{
if
(
this
.
approveOpinion
.
length
>
500
)
{
this
.
approveOpinion
=
this
.
approveOpinion
.
slice
(
0
,
500
)
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.approve
{
background
:
#f7f8fa
;
}
.card
{
padding
:
16px
;
background
:
#fff
;
margin-bottom
:
8px
;
}
.row
{
display
:
flex
;
align-items
:
flex-start
;
margin-bottom
:
16px
;
}
.line
{
margin
:
16px
0
;
width
:
100%
;
height
:
0.5px
;
background
:
#c3c3c366
;
}
.label
{
color
:
#888888
;
font-size
:
14px
;
width
:
56px
;
margin-right
:
20px
;
}
.value
{
flex
:
1
;
color
:
#333333
;
font-size
:
14px
;
word-break
:
break-all
;
}
.value.opinion
{
white-space
:
pre-wrap
;
}
/* 高清样式:状态为纯文本颜色,置于审批人名下 */
.status-inline
{
margin-top
:
4px
;
font-size
:
12px
;
}
.status-inline.success
{
color
:
#00b578
;
}
.status-inline.danger
{
color
:
#ff4d4f
;
}
.status-inline.info
{
color
:
#86909c
;
}
.status-inline.pending
{
color
:
#1677ff
;
}
/* 保留按钮与输入区样式 */
.textarea
{
height
:
96px
;
border-radius
:
8px
;
border
:
1px
solid
#eff0f2
;
background
:
#f4f5f7
;
width
:
100%
;
border-radius
:
6px
;
padding
:
8px
;
resize
:
vertical
;
}
.actions
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
12px
;
}
.btn
{
padding
:
8px
67px
;
border
:
none
;
border-radius
:
6px
;
cursor
:
pointer
;
font-size
:
16px
;
font-weight
:
400
;
height
:
40px
;
}
.btn.primary
{
background
:
#347bff
;
color
:
#fff
;
}
.btn.danger-outline
{
background
:
#fff
;
border
:
1px
solid
#eb4e4e
;
background
:
#ffffff
;
color
:
#eb4e4e
;
}
.btn
:disabled
{
opacity
:
0.6
;
cursor
:
not-allowed
;
}
.images
{
display
:
flex
;
flex-wrap
:
wrap
;
.image-wrap
{
width
:
calc
((
100%
-
24px
)
/
3
);
min-height
:
72px
;
margin-right
:
8px
;
}
}
.section-title
{
color
:
#888888
;
font-size
:
14px
;
margin-bottom
:
8px
;
}
</
style
>
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