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 c58d13ab
authored
Dec 06, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
4231d886
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
40 additions
and
28 deletions
src/views/residentManage/inStoreManage/components/historicalPerformance.vue
src/views/residentManage/inStoreManage/components/salaryDetailsDialog.vue
src/views/residentManage/salaryPerformance/components/addExpenseDialog.vue
src/views/residentManage/salaryPerformance/components/appliedGoodsDialog.vue
src/views/residentManage/salaryPerformance/components/campus.vue
src/views/residentManage/salaryPerformance/components/depositDetailDialog.vue
src/views/residentManage/salaryPerformance/components/depositList.vue
src/views/residentManage/salaryPerformance/components/expenseList.vue
src/views/residentManage/salaryPerformance/components/relateStoreTable.vue
src/views/residentManage/inStoreManage/components/historicalPerformance.vue
View file @
c58d13a
...
...
@@ -292,7 +292,10 @@ export default {
}
,
// 工资明细
handleSalaryDetail
(
row
)
{
this
.
detailRow
=
row
this
.
detailRow
=
{
...
row
,
...
this
.
queryData
}
this
.
handleSalaryDetailsColseDialog
()
}
,
handleSalaryDetailsColseDialog
()
{
...
...
src/views/residentManage/inStoreManage/components/salaryDetailsDialog.vue
View file @
c58d13a
...
...
@@ -38,7 +38,7 @@
<span>
{{
subItem
.
staffName
||
'-'
}}
|
</span>
<span>
{{
filterStr
(
subItem
.
sceneType
,
staffSceneLabelList
)
||
'-'
}}
|
</span>
<span>
产值贡献
{{
isEmpty
(
subItem
.
orderTotalPrice
)
?
'-'
:
`¥${subItem.orderTotalPrice
}
`
}}
|
<
/span
>
<
span
>
{{
filterStr
(
subItem
.
jobType
,
staffLevelList
)
||
'-'
}}
|
<
/span
>
<
span
>
{{
filterStr
(
subItem
.
jobType
,
staffLevelList
,
detailRow
.
hireType
)
||
'-'
}}
|
<
/span
>
<
span
>
周期渗透率
{{
!
isEmpty
(
subItem
.
penetrationRate
)
?
`${subItem.penetrationRate
}
%`
:
'-'
}}
|
<
/span
>
<
span
>
提成系数
{{
!
isEmpty
(
subItem
.
calculateValue
)
?
`${subItem.calculateValue
}
%`
:
'-'
}}
<
/span
>
<
/div
>
...
...
@@ -160,14 +160,16 @@ export default {
}
,
getSalaryDetail
()
{
getSalaryDetailApi
({
id
:
this
.
detailRow
.
id
}
).
then
(
res
=>
{
const
detailArray
=
res
?.
detailList
&&
Object
.
keys
(
res
?.
detailList
)?.
map
(
key
=>
{
return
{
key
:
key
,
data
:
res
?.
detailList
[
key
]
}
}
)
res
.
detailArray
=
detailArray
this
.
activeName
=
detailArray
?.
length
?
'0'
:
''
if
(
res
)
{
const
detailArray
=
res
?.
detailList
&&
Object
.
keys
(
res
?.
detailList
)?.
map
(
key
=>
{
return
{
key
:
key
,
data
:
res
?.
detailList
[
key
]
}
}
)
res
.
detailArray
=
detailArray
this
.
activeName
=
detailArray
?.
length
?
'0'
:
''
}
this
.
detailInfo
=
res
||
{
}
}
)
}
...
...
src/views/residentManage/salaryPerformance/components/addExpenseDialog.vue
View file @
c58d13a
...
...
@@ -209,7 +209,7 @@ export default {
this
.
baseData
.
staffList
.
forEach
(
item
=>
{
if
(
item
.
staffPhone
===
val
)
{
this
.
$set
(
this
.
expenseForm
,
'staffPhone'
,
item
.
staffPhone
)
this
.
$set
(
this
.
expenseForm
,
'jobTypeStr'
,
filterStr
(
item
.
jobType
,
staffLevelList
))
this
.
$set
(
this
.
expenseForm
,
'jobTypeStr'
,
filterStr
(
item
.
jobType
,
staffLevelList
,
item
.
hireType
))
this
.
$set
(
this
.
expenseForm
,
'merchantName'
,
item
.
merchantName
)
this
.
$set
(
this
.
expenseForm
,
'staffName'
,
item
.
staffName
)
this
.
$set
(
this
.
expenseForm
,
'jobType'
,
item
.
jobType
)
...
...
src/views/residentManage/salaryPerformance/components/appliedGoodsDialog.vue
View file @
c58d13a
...
...
@@ -20,7 +20,6 @@
@
select=
"handleChange"
@
select-all=
"handleAll"
>
<el-table-column
type=
"selection"
:selectable=
"selectable"
width=
"55"
align=
"center"
/>
<el-table-column
prop=
"upgradeGoodsName"
label=
"商品名称"
align=
"center"
>
...
...
@@ -42,7 +41,7 @@
height=
"464px"
>
<el-table-column
prop=
"upgradeGoodsName"
label=
"商品名称"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
upgradeGoodsName
}}
</span>
<span
:class=
"
{'gray': scope.row.merchantGoodsStatus != 1}"
>
{{
scope
.
row
.
upgradeGoodsName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"删除"
align=
"center"
width=
"50px"
>
...
...
@@ -98,23 +97,19 @@ export default {
mounted
()
{
this
.
selectedData
=
deepClone
(
this
.
addGoodsRow
?.
goodsData
)
console
.
log
(
this
.
selectedData
)
this
.
getSelectingList
()
},
methods
:
{
selectable
(
row
)
{
// 每个服务项目code只能选中一个 按等级和年限区分
if
(
row
.
status
==
1
)
{
return
true
}
else
{
return
false
}
},
recoverySelection
()
{
var
exitIds
=
this
.
selectedData
.
map
((
item
)
=>
item
.
merchantGoodsCode
)
this
.
selectingData
.
forEach
((
item
)
=>
{
exitIds
.
includes
(
item
.
merchantGoodsCode
)
&&
this
.
$refs
.
seletingTable
.
toggleRowSelection
(
item
,
true
)
if
(
exitIds
.
includes
(
item
.
merchantGoodsCode
))
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
seletingTable
.
toggleRowSelection
(
item
,
true
)
})
}
})
},
getSelectingList
()
{
...
...
@@ -161,7 +156,9 @@ export default {
(
item
)
=>
item
.
merchantGoodsCode
!==
row
.
merchantGoodsCode
)
const
obj
=
this
.
selectingData
.
find
((
v
)
=>
v
.
merchantGoodsCode
==
row
.
merchantGoodsCode
)
this
.
$refs
.
seletingTable
.
toggleRowSelection
(
obj
)
this
.
$nextTick
(()
=>
{
this
.
$refs
.
seletingTable
.
toggleRowSelection
(
obj
)
})
},
handleCurrentChange
(
val
)
{
this
.
currentPage
=
val
...
...
@@ -189,6 +186,9 @@ export default {
display
:
flex
;
.tableBox
{
flex
:
1
;
.gray{
color
:
#66666642
;
}
}
}
.service-store
.appliedGoods
.el-table
.cell
,
...
...
src/views/residentManage/salaryPerformance/components/campus.vue
View file @
c58d13a
...
...
@@ -203,7 +203,7 @@ export default {
},
// 选择职级后将列表顺序排序
handleSelect
()
{
//
this.infoData.campusList?.sort((a, b) => a.jobType - b.jobType)
this
.
infoData
.
campusList
?.
sort
((
a
,
b
)
=>
a
.
jobType
-
b
.
jobType
)
},
validateCustomForm
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
src/views/residentManage/salaryPerformance/components/depositDetailDialog.vue
View file @
c58d13a
...
...
@@ -134,7 +134,7 @@ export default {
getIncentivePoolDetailApi
({
id
:
this
.
detailRow
.
id
}
).
then
(
res
=>
{
if
(
res
)
{
res
.
commissionMonthStr
=
res
?.
commissionMonth
?
res
?.
commissionMonth
.
split
(
'-'
)[
1
]
:
'-'
res
.
jobTypeStr
=
filterStr
(
res
?.
jobType
,
staffLevelList
)
res
.
jobTypeStr
=
filterStr
(
res
?.
jobType
,
staffLevelList
,
res
?.
hireType
)
}
this
.
detailInfo
=
res
||
{
}
}
)
...
...
src/views/residentManage/salaryPerformance/components/depositList.vue
View file @
c58d13a
...
...
@@ -62,7 +62,7 @@ export default {
prop
:
'jobType'
,
width
:
120
,
formatter
:
(
cellValue
)
=>
{
return
filterStr
(
cellValue
.
jobType
,
this
.
baseData
.
jobTypeList
)
return
filterStr
(
cellValue
.
jobType
,
this
.
baseData
.
jobTypeList
,
cellValue
.
hireType
)
}
},
{
label
:
'门店'
,
...
...
src/views/residentManage/salaryPerformance/components/expenseList.vue
View file @
c58d13a
...
...
@@ -81,7 +81,7 @@ export default {
label
:
'职级'
,
prop
:
'jobType'
,
formatter
:
(
cellValue
)
=>
{
return
filterStr
(
cellValue
.
jobType
,
this
.
baseData
.
jobTypeList
)
return
filterStr
(
cellValue
.
jobType
,
this
.
baseData
.
jobTypeList
,
cellValue
.
hireType
)
}
},
{
label
:
'支出时间'
,
...
...
src/views/residentManage/salaryPerformance/components/relateStoreTable.vue
View file @
c58d13a
...
...
@@ -166,6 +166,13 @@ export default {
})
return
true
}
if
(
selectedData
?.
length
>
20
)
{
return
this
.
$message
({
message
:
'关联门店最多20个'
,
type
:
'warning'
,
showClose
:
true
})
}
selectedData
.
forEach
(
item
=>
{
if
(
!
item
.
goodsData
?.
length
)
item
.
goodsData
=
[]
})
...
...
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