Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
c079874d
Commit
c079874d
authored
Dec 24, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
9be14da8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
41 deletions
+39
-41
empBonus.vue
src/pages/financial/market/empBonus.vue
+39
-41
No files found.
src/pages/financial/market/empBonus.vue
View file @
c079874d
...
...
@@ -50,7 +50,7 @@
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看"
placement=
"top"
>
<i
class=
"iconfont icon-sousuo"
@
click=
"goUrl(scope.row.Id)"
></i>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"制单"
@
click=
"go"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"制单"
placement=
"top"
>
<i
class=
"iconfont icon-add"
@
click=
"generalFinancacls(scope.row)"
></i>
</el-tooltip>
</div>
...
...
@@ -65,10 +65,14 @@
</template>
<el-dialog
title=
"设置发放用户"
width=
"700px"
:visible
.
sync=
"costmode"
center
>
<el-table
:data=
"SendEmployeeList"
border
@
selection-change=
"handleSelectionChange"
style=
"width: 100%"
>
<el-table-column
type=
"selection"
width=
"55"
:selectable=
"checkSelectable"
></el-table-column>
<el-table-column
prop=
"UserName"
label=
"用户"
>
</el-table-column>
<el-table-column
prop=
"StudentCount"
label=
"客人数量"
>
</el-table-column>
<el-table-column
prop=
"CurrentPeriodMoney"
label=
"应发提成金额"
>
</el-table-column>
<el-table-column
type=
"selection"
width=
"50"
:selectable=
"checkSelectable"
></el-table-column>
<el-table-column
prop=
"EmployeeName"
label=
"用户"
>
</el-table-column>
<el-table-column
prop=
"CurGuestNum"
label=
"客人数量"
>
</el-table-column>
<el-table-column
prop=
"ClueNumSalary"
label=
"应发提成金额"
>
<
template
slot-scope=
"scope"
>
{{
getTicheng
(
scope
.
row
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"IsGiveOut"
label=
"是否已发放"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
'scope.row.IsGiveOut==1'
>
已发放
</span>
...
...
@@ -87,8 +91,7 @@
<
script
>
import
{
CreateEmpBonus
,
queryPersonnelPeriodPage
,
getSellAchievementsSendEmployeeList
queryPersonnelPeriodPage
}
from
'../../../api/finance/index'
export
default
{
...
...
@@ -110,7 +113,6 @@
StartDate
:
''
,
pageCount
:
0
,
dataList
:
[],
iscMaker
:
false
,
//是否有制单的权限
CheckID
:
0
,
SendEmployeeList
:
[],
//可发放提成的用户列表
multipleSelection
:
[],
...
...
@@ -120,22 +122,15 @@
},
created
()
{},
mounted
()
{
let
userinfo
=
this
.
getLocalStorage
();
userinfo
.
ActionMenuList
.
map
(
x
=>
{
//判断权限
// if (x.FunctionCode == "SAGenerate_Commission") { //判断是否有生成的权限
// this.isgenerate = true;
// }
// if (x.FunctionCode == "SACommission_maker") { //判断是否有制单的权限
// this.iscMaker = true;
// }
})
this
.
getList
();
},
methods
:
{
//制单
generalFinancacls
(
item
)
{
this
.
CheckID
=
item
.
Id
;
this
.
SendEmployeeList
=
item
.
BonusList
;
console
.
log
(
item
,
'数据'
);
console
.
log
(
this
.
SendEmployeeList
,
'11111111'
);
this
.
tishi
(
'3.6'
,
this
.
CheckID
);
},
tishi
(
Money
,
Id
)
{
...
...
@@ -154,24 +149,14 @@
focus
:
true
}
}).
onOk
(()
=>
{
this
.
getcomSendEmployeeList
(
Id
)
});
},
getcomSendEmployeeList
(
Id
)
{
//获取可发放提成的用户
getSellAchievementsSendEmployeeList
({
PeriodId
:
Id
}).
then
(
res
=>
{
this
.
SendEmployeeList
=
res
.
Data
;
this
.
costmode
=
true
}).
catch
(()
=>
{
})
});
},
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
let
zong
=
0
this
.
multipleSelection
.
forEach
(
x
=>
{
zong
=
this
.
accAdd
(
zong
,
x
.
CurrentPeriodMoney
)
zong
=
this
.
accAdd
(
zong
,
Number
(
x
.
ClueNumSalary
+
x
.
CurRewardMoney
+
x
.
OpenBonus
)
-
Number
(
x
.
BeforeMoney
)
)
})
this
.
totalAmount
=
zong
},
...
...
@@ -206,18 +191,25 @@
let
EmpIds
=
''
;
let
data
=
[]
this
.
multipleSelection
.
forEach
(
x
=>
{
data
.
push
(
x
.
User
Id
)
data
.
push
(
x
.
Employee
Id
)
})
EmpIds
=
data
.
join
(
','
)
setSellAchievementsSendEmployee
({
PeriodId
:
this
.
CheckID
,
EmpIds
:
EmpIds
}).
then
(
res
=>
{
this
.
goaddFinancial
(
this
.
totalAmount
,
this
.
CheckID
,
EmpIds
)
this
.
$message
.
success
(
'设置成功'
);
}).
catch
(()
=>
{
this
.
goaddFinancial
(
this
.
totalAmount
,
this
.
CheckID
,
EmpIds
)
// let EmpIds = '';
// let data = []
// this.multipleSelection.forEach(x => {
// data.push(x.UserId)
// })
// EmpIds = data.join(',')
// setSellAchievementsSendEmployee({
// PeriodId: this.CheckID,
// EmpIds: EmpIds
// }).then(res => {
// this.goaddFinancial(this.totalAmount, this.CheckID, EmpIds)
// this.$message.success('设置成功');
// }).catch(() => {
})
//
})
});
},
...
...
@@ -229,10 +221,10 @@
Money
:
Money
,
CurrencyId
:
21
,
XSTC
:
1
,
School_Id
:
this
.
msg
.
SchoolId
==
-
1
?
0
:
this
.
msg
.
SchoolId
,
School_Id
:
0
,
OtherType
:
51
,
//业绩提成
ReFinanceId
:
Id
,
ReFinanceId2
:
this
.
msg
.
SchoolId
,
ReFinanceId2
:
0
,
EduCommissionEmp
:
EmpIds
}
let
query
=
{
...
...
@@ -279,7 +271,13 @@
this
.
OpenNewUrl
(
'../market/empBonusDetail'
,
{
Id
:
Id
})
},
//计算提成数
getTicheng
(
Obj
)
{
let
Num
=
Number
(
Obj
.
ClueNumSalary
+
Obj
.
CurRewardMoney
+
Obj
.
OpenBonus
)
-
Number
(
Obj
.
BeforeMoney
);
return
Num
;
}
},
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment