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
62accedc
Commit
62accedc
authored
Dec 28, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
634eb097
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
30 deletions
+28
-30
index.js
src/api/finance/index.js
+11
-0
empBonus.vue
src/pages/financial/market/empBonus.vue
+17
-30
No files found.
src/api/finance/index.js
View file @
62accedc
...
...
@@ -650,6 +650,17 @@ export function CreateEmpBonus(data) {
});
}
/**
* 设置人头奖励未已发放
*/
export
function
saveEmployeeBounsIssue
(
data
)
{
return
request
({
url
:
'/Bonus/SetEmployeeBounsIssue'
,
method
:
'post'
,
data
});
}
/**
* 获取人头奖励分页列表
*/
...
...
src/pages/financial/market/empBonus.vue
View file @
62accedc
...
...
@@ -16,7 +16,6 @@
cursor
:
pointer
;
outline
:
none
;
}
</
style
>
<
template
>
<div
class=
"page-body empBonus"
>
...
...
@@ -80,8 +79,8 @@
</el-table-column>
<el-table-column
prop=
"IsGiveOut"
label=
"是否已发放"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
'scope.row.Is
GiveOut
==1'
>
已发放
</span>
<span
v-if=
'scope.row.Is
GiveOut==2
'
>
未发放
</span>
<span
v-if=
'scope.row.Is
Issue
==1'
>
已发放
</span>
<span
v-if=
'scope.row.Is
Issue==0
'
>
未发放
</span>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -96,6 +95,7 @@
<
script
>
import
{
CreateEmpBonus
,
saveEmployeeBounsIssue
,
queryPersonnelPeriodPage
}
from
'../../../api/finance/index'
...
...
@@ -134,11 +134,9 @@
generalFinancacls
(
item
)
{
this
.
CheckID
=
item
.
Id
;
this
.
SendEmployeeList
=
item
.
BonusList
;
console
.
log
(
item
,
'数据'
);
console
.
log
(
this
.
SendEmployeeList
,
'11111111'
);
this
.
tishi
(
'3.6'
,
this
.
CheckID
);
this
.
tishi
();
},
tishi
(
Money
,
Id
)
{
tishi
()
{
let
that
=
this
this
.
$q
.
dialog
({
title
:
"销售制单"
,
...
...
@@ -196,28 +194,19 @@
let
EmpIds
=
''
;
let
data
=
[]
this
.
multipleSelection
.
forEach
(
x
=>
{
data
.
push
(
x
.
Employee
Id
)
data
.
push
(
x
.
Id
)
})
EmpIds
=
data
.
join
(
','
)
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(() => {
saveEmployeeBounsIssue
({
Ids
:
EmpIds
}).
then
(
res
=>
{
this
.
goaddFinancial
(
this
.
totalAmount
,
this
.
CheckID
,
EmpIds
)
this
.
$message
.
success
(
'设置成功'
);
}).
catch
(()
=>
{
//
})
})
});
},
goaddFinancial
(
Money
,
Id
,
EmpIds
)
{
let
School_Id
=
0
;
let
obj
=
{
...
...
@@ -281,22 +270,20 @@
let
Num
=
Number
(
Obj
.
ClueNumSalary
+
Obj
.
CurRewardMoney
+
Obj
.
OpenBonus
)
-
Number
(
Obj
.
BeforeMoney
);
return
Num
;
},
getFrnancialArr
(
Financials
){
if
(
Financials
)
{
getFrnancialArr
(
Financials
)
{
if
(
Financials
)
{
let
FinanArr
=
Financials
.
split
(
','
);
return
FinanArr
}
},
gocaiwuxiangq
(
id
){
gocaiwuxiangq
(
id
)
{
this
.
OpenNewUrl
(
"/financial/financalDocument/FinancialDocumentsDetail"
,
{
id
:
id
});
}
},
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
</
style
>
\ No newline at end of file
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