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
212b09bd
Commit
212b09bd
authored
Dec 24, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
8163dabb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
167 additions
and
8 deletions
+167
-8
empBonus.vue
src/pages/financial/market/empBonus.vue
+158
-4
empBonusDetail.vue
src/pages/financial/market/empBonusDetail.vue
+9
-4
No files found.
src/pages/financial/market/empBonus.vue
View file @
212b09bd
...
...
@@ -3,6 +3,7 @@
.empBonus
._icon_btn
i
.icon-add
{
background-color
:
#47BF8C
;
}
.empBonus
._icon_btn
i
{
width
:
26px
;
height
:
26px
;
...
...
@@ -49,8 +50,8 @@
<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=
"制单"
placement=
"top"
>
<i
class=
"iconfont icon-add"
></i>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"制单"
@
click=
"go"
placement=
"top"
>
<i
class=
"iconfont icon-add"
@
click=
"generalFinancacls(scope.row)"
></i>
</el-tooltip>
</div>
</
template
>
...
...
@@ -62,12 +63,32 @@
</el-pagination>
</div>
</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
prop=
"IsGiveOut"
label=
"是否已发放"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
'scope.row.IsGiveOut==1'
>
已发放
</span>
<span
v-if=
'scope.row.IsGiveOut==2'
>
未发放
</span>
</
template
>
</el-table-column>
</el-table>
<div
style=
"margin-top: 10px;"
>
金额总额:{{totalAmount}}
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"hollowFixedBtn"
size=
"small"
@
click=
"costmode=false"
>
取消
</el-button>
<el-button
class=
"normalBtn"
size=
"small"
type=
"primary"
@
click=
"preservetransaction()"
>
确定
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
CreateEmpBonus
,
queryPersonnelPeriodPage
queryPersonnelPeriodPage
,
getSellAchievementsSendEmployeeList
}
from
'../../../api/finance/index'
export
default
{
...
...
@@ -88,14 +109,147 @@
},
StartDate
:
''
,
pageCount
:
0
,
dataList
:
[]
dataList
:
[],
iscMaker
:
false
,
//是否有制单的权限
CheckID
:
0
,
SendEmployeeList
:
[],
//可发放提成的用户列表
multipleSelection
:
[],
totalAmount
:
0
,
//选中的金额总额
costmode
:
false
,
}
},
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
.
tishi
(
'3.6'
,
this
.
CheckID
);
},
tishi
(
Money
,
Id
)
{
let
that
=
this
this
.
$q
.
dialog
({
title
:
"销售制单"
,
message
:
"你正在进行所有校区一起制单操作?"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
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
)
})
this
.
totalAmount
=
zong
},
checkSelectable
(
row
)
{
return
row
.
IsGiveOut
=
2
},
preservetransaction
()
{
let
that
=
this
if
(
this
.
multipleSelection
.
length
==
0
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请选择您要发放的用户`
})
return
}
this
.
$q
.
dialog
({
title
:
"设置用户状态"
,
message
:
"确认后无法更改用户制单状态,如果需修改请联系管理员"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
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
(()
=>
{
})
});
},
goaddFinancial
(
Money
,
Id
,
EmpIds
)
{
let
School_Id
=
0
;
let
obj
=
{
CostType
:
316
,
Money
:
Money
,
CurrencyId
:
21
,
XSTC
:
1
,
School_Id
:
this
.
msg
.
SchoolId
==
-
1
?
0
:
this
.
msg
.
SchoolId
,
OtherType
:
51
,
//业绩提成
ReFinanceId
:
Id
,
ReFinanceId2
:
this
.
msg
.
SchoolId
,
EduCommissionEmp
:
EmpIds
}
let
query
=
{
blank
:
"y"
,
tab
:
"新增付款单据"
,
Type
:
2
,
IsUploadPic
:
1
,
Name
:
'销售提成单'
,
id
:
143
,
orderObj
:
JSON
.
stringify
(
obj
)
}
this
.
$router
.
push
({
path
:
"/financial/financalDocument/addFinancialDocuments"
,
query
});
},
//生成提成
createBonus
()
{
if
(
this
.
StartDate
)
{
...
...
src/pages/financial/market/empBonusDetail.vue
View file @
212b09bd
...
...
@@ -28,7 +28,7 @@
<el-table-column
prop=
"OrderMoney"
label=
"订单金额"
>
</el-table-column>
</el-table>
</div>
<el-button
slot=
"reference"
type=
"
primary
"
plain
size=
"mini"
>
{{
scope
.
row
.
CurRewardMoney
}}
</el-button>
<el-button
slot=
"reference"
type=
"
success
"
plain
size=
"mini"
>
{{
scope
.
row
.
CurRewardMoney
}}
</el-button>
</el-popover>
</
template
>
</el-table-column>
...
...
@@ -36,7 +36,12 @@
<el-table-column
prop=
"CreateByName"
label=
"创建人"
>
</el-table-column>
<el-table-column
prop=
"CreateTime"
label=
"创建时间"
width=
"150"
>
</el-table-column>
<el-table-column
prop=
"CurOrderMoney"
width=
"110"
label=
"当月订单金额"
>
</el-table-column>
<el-table-column
prop=
"DeductionMoney"
width=
"100"
label=
"待抵扣金额"
>
</el-table-column>
<el-table-column
prop=
"DeductionMoney"
width=
"100"
label=
"待抵扣金额"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.DeductionMoney>0"
style=
"color:red;"
>
{{
scope
.
row
.
DeductionMoney
}}
</span>
<span
v-else
>
{{
scope
.
row
.
DeductionMoney
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"已抵扣金额"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-popover
placement=
"left"
width=
"420"
trigger=
"click"
>
...
...
@@ -47,7 +52,7 @@
<el-table-column
prop=
"DeductionContent"
label=
"备注"
>
</el-table-column>
</el-table>
</div>
<el-button
slot=
"reference"
type=
"
primary
"
plain
size=
"mini"
>
{{
scope
.
row
.
FinishDeductionMoney
}}
</el-button>
<el-button
slot=
"reference"
type=
"
success
"
plain
size=
"mini"
>
{{
scope
.
row
.
FinishDeductionMoney
}}
</el-button>
</el-popover>
</
template
>
</el-table-column>
...
...
@@ -65,7 +70,7 @@
<el-table-column
prop=
"LogContent"
label=
"备注"
>
</el-table-column>
</el-table>
</div>
<el-button
slot=
"reference"
type=
"
primary
"
plain
size=
"mini"
>
日志信息
</el-button>
<el-button
slot=
"reference"
type=
"
success
"
plain
size=
"mini"
>
日志信息
</el-button>
</el-popover>
</
template
>
</el-table-column>
...
...
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