Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
wx-notification
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 dbfd5fec
authored
Feb 11, 2026
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.6.1' into SAAS+V5.6.2
2 parents
e271109d
6da3399a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
182 additions
and
9 deletions
src/router/routes.js
src/views/purchase/components/dialog.vue
src/views/purchase/index.vue
src/views/salary/index.vue
src/router/routes.js
View file @
dbfd5fe
...
@@ -2,12 +2,15 @@
...
@@ -2,12 +2,15 @@
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-11-18 14:23:31
* @Date: 2025-11-18 14:23:31
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-02-09 16:04:41
<<<<<<< HEAD
* @LastEditTime: 2026-02-11 09:57:51
=======
* @LastEditTime: 2026-01-28 15:04:53
>>>>>>> SAAS+V5.6.1
* @FilePath: \wx-notification\src\router\routes.js
* @FilePath: \wx-notification\src\router\routes.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%A
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%A
*/
*/
const
keepAlives
=
[]
const
keepAlives
=
[]
const
pages
=
{
const
pages
=
{
...
@@ -32,7 +35,18 @@ const pages = {
...
@@ -32,7 +35,18 @@ const pages = {
showAction
:
true
showAction
:
true
}
}
}
}
],
salary
:
[
{
name
:
'index'
,
meta
:
{
keepAlive
:
true
,
title
:
'工资条'
,
noAuth
:
true
,
backgroundColor
:
'#f7f8fa'
,
showAction
:
true
}
}
],
],
cannibalize
:
[
cannibalize
:
[
{
{
...
@@ -55,7 +69,7 @@ const pages = {
...
@@ -55,7 +69,7 @@ const pages = {
showAction
:
true
showAction
:
true
}
}
}
}
]
,
]
}
}
let
routes
=
[
let
routes
=
[
{
{
...
...
src/views/purchase/components/dialog.vue
View file @
dbfd5fe
<
template
>
<
template
>
<van-popup
round
v-model=
"isShow"
position=
"bottom"
:style=
"
{ height: '75%' }" class="popup" @close="onClose" :close-on-click-overlay="false">
<van-popup
round
v-model=
"isShow"
position=
"bottom"
:style=
"
{ height: '75%' }" class="popup" @close="onClose" :close-on-click-overlay="false">
<div
class=
"title"
>
{{
title
}}
</div>
<div
class=
"title"
>
{{
title
}}
</div>
<!--
<div
v-if=
"loading"
>
-->
<div
class=
"content"
>
<div
class=
"content"
>
<slot></slot>
<slot></slot>
</div>
</div>
...
@@ -12,8 +11,6 @@
...
@@ -12,8 +11,6 @@
</div>
</div>
<div
v-if=
"showCloseBtn"
class=
"close-btn"
@
click=
"handleCancel"
>
关闭
</div>
<div
v-if=
"showCloseBtn"
class=
"close-btn"
@
click=
"handleCancel"
>
关闭
</div>
</div>
</div>
<!--
</div>
-->
<template
v-if=
"loading"
>
<template
v-if=
"loading"
>
<div
class=
"mask"
>
<div
class=
"mask"
>
<div
class=
"loading-home"
>
<div
class=
"loading-home"
>
...
...
src/views/purchase/index.vue
View file @
dbfd5fe
...
@@ -25,11 +25,11 @@
...
@@ -25,11 +25,11 @@
<div
class=
"title"
>
<div
class=
"title"
>
商品信息
<span
class=
"title-tip"
>
点击商品名称可查看商品全部信息
</span>
商品信息
<span
class=
"title-tip"
>
点击商品名称可查看商品全部信息
</span>
</div>
</div>
<
StickyTable
:columns=
"tableColumns"
:data=
"purchaseOrderInfo.goodsList"
:height=
"
purchaseOrderInfo.goodsList.length > 5 ? '216px' : 'auto'"
>
<
sticky-table
:columns=
"tableColumns"
:data=
"purchaseOrderInfo.goodsList"
:height=
"purchaseOrderInfo&&purchaseOrderInfo.goodsList&&
purchaseOrderInfo.goodsList.length > 5 ? '216px' : 'auto'"
>
<template
#
upgradeGoodsName=
"
{ row }">
<template
#
upgradeGoodsName=
"
{ row }">
<span
style=
"color: #347bff; cursor: pointer;"
@
click=
"handleProductClick(row)"
>
{{
row
.
upgradeGoodsName
}}
</span>
<span
style=
"color: #347bff; cursor: pointer;"
@
click=
"handleProductClick(row)"
>
{{
row
.
upgradeGoodsName
}}
</span>
</
template
>
</
template
>
</
StickyT
able>
</
sticky-t
able>
</div>
</div>
<!-- 收件信息 -->
<!-- 收件信息 -->
<div
class=
"info-section"
>
<div
class=
"info-section"
>
...
...
src/views/salary/index.vue
0 → 100644
View file @
dbfd5fe
<
template
>
<div
class=
"salary-detail"
>
<div
class=
"card"
>
<div
class=
"row"
>
<span
class=
"label"
>
计薪月份
</span>
<span
class=
"value"
>
{{
detail
.
salaryMonth
||
'-'
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
姓名
</span>
<span
class=
"value"
>
{{
detail
.
staffName
||
'-'
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
手机号
</span>
<span
class=
"value"
>
{{
detail
.
staffPhone
||
'-'
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
入职日期
</span>
<span
class=
"value"
>
{{
detail
.
entryDate
||
'-'
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
计薪天数
</span>
<span
class=
"value"
>
{{
detail
.
actualWorkDay
?
detail
.
actualWorkDay
+
'天'
:
'-'
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
基本底薪
</span>
<span
class=
"value"
>
{{
formatMoney
(
detail
.
minimumSalary
)
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
绩效工资
</span>
<span
class=
"value"
>
{{
formatMoney
(
detail
.
performanceSalary
)
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
绩效等级
</span>
<span
class=
"value"
>
{{
detail
.
performanceLevel
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
业务提成
</span>
<span
class=
"value"
>
{{
formatMoney
(
detail
.
commissionPrice
)
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
平板扣款
</span>
<span
class=
"value"
>
{{
formatDeduction
(
detail
.
padDeductMoney
,
true
)
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
日报扣款
</span>
<span
class=
"value"
>
{{
formatDeduction
(
detail
.
dailyDeductMoney
,
true
)
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
递延金扣减
</span>
<span
class=
"value"
>
{{
formatDeduction
(
detail
.
deferExpenses
,
true
)
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
递延金发放
</span>
<span
class=
"value"
>
{{
formatIncomeWithPlus
(
detail
.
deferIncome
,
true
)
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
其他扣除
</span>
<span
class=
"value"
>
{{
formatDeduction
(
detail
.
otherDeduction
,
true
)
}}
</span>
</div>
<div
class=
"row"
>
<span
class=
"label"
>
其他奖励
</span>
<span
class=
"value"
>
{{
formatIncomeWithPlus
(
detail
.
otherRewards
,
true
)
}}
</span>
</div>
<div
class=
"row total"
>
<span
class=
"label"
>
工资合计
</span>
<span
class=
"value"
>
{{
formatMoney
(
detail
.
salary
)
}}
</span>
</div>
</div>
</div>
</
template
>
<
script
>
import
salaryApi
from
'@/api/salary'
export
default
{
name
:
'SalaryIndex'
,
data
()
{
return
{
detail
:
{
}
}
},
mounted
()
{
this
.
getSalaryDetail
()
},
methods
:
{
getSalaryDetail
(){
console
.
log
(
this
.
$route
.
query
)
salaryApi
.
getSalaryDetail
({
uuid
:
this
.
$route
.
query
.
uuid
}).
then
(
res
=>
{
this
.
detail
=
res
.
data
})
},
// 金额格式化:¥ + 千分位 + 两位小数
formatMoney
(
value
,
{
showPlus
=
false
,
dashIfEmpty
=
true
}
=
{})
{
console
.
log
(
value
===
null
||
value
===
undefined
||
value
===
''
)
if
(
value
===
null
||
value
===
undefined
||
value
===
''
)
{
return
dashIfEmpty
?
'-'
:
'¥0.00'
}
const
num
=
Number
(
value
)
if
(
isNaN
(
num
))
return
dashIfEmpty
?
'-'
:
'¥0.00'
const
formatted
=
num
.
toFixed
(
2
).
replace
(
/
\B(?=(\d{3})
+
(?!\d))
/g
,
','
)
const
signPrefix
=
showPlus
?
'+'
:
''
return
`
${
signPrefix
}
¥
${
formatted
}
`
},
// 扣减类统一渲染为 -¥
formatDeduction
(
value
,
dashIfEmpty
=
false
)
{
if
(
value
===
null
||
value
===
undefined
||
value
===
''
)
{
return
dashIfEmpty
?
'-'
:
'-¥0.00'
}
const
num
=
Math
.
abs
(
Number
(
value
)
||
0
)
const
formatted
=
num
.
toFixed
(
2
).
replace
(
/
\B(?=(\d{3})
+
(?!\d))
/g
,
','
)
return
`-¥
${
formatted
}
`
},
// 奖励/发放类显示 +¥
formatIncomeWithPlus
(
value
,
dashIfEmpty
=
false
)
{
if
(
value
===
null
||
value
===
undefined
||
value
===
''
)
{
return
dashIfEmpty
?
'-'
:
'+¥0.00'
}
const
num
=
Number
(
value
)
||
0
const
formatted
=
num
.
toFixed
(
2
).
replace
(
/
\B(?=(\d{3})
+
(?!\d))
/g
,
','
)
return
`¥
${
formatted
}
`
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.salary-detail
{
min-height
:
100vh
;
background
:
#ffffff
;
padding
:
16px
;
}
.row
{
display
:
flex
;
align-items
:
center
;
font-size
:
14px
;
margin-bottom
:
16px
;
}
.row
:last-child
{
border-bottom
:
none
;
}
.label
{
width
:
60px
;
color
:
#888888
;
white-space
:
wrap
;
margin-right
:
20px
;
}
.value
{
color
:
#222222
;
}
.total
{
border-top
:
0.5px
solid
#c3c3c366
;
padding-top
:
16px
;
}
.total
.value
{
font-size
:
16px
;
font-weight
:
600
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
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