Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
101fdafa
Commit
101fdafa
authored
Sep 19, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9c468175
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
867 additions
and
0 deletions
+867
-0
Qzcommissions.vue
src/components/FinancialModule/Qzcommissions.vue
+246
-0
QzCommissionDetail.vue
src/components/administrative/QzCommissionDetail.vue
+476
-0
QzCommissionsmangment.vue
src/components/administrative/QzCommissionsmangment.vue
+121
-0
config.js
src/router/config.js
+24
-0
No files found.
src/components/FinancialModule/Qzcommissions.vue
0 → 100644
View file @
101fdafa
<
template
>
<div
class=
"Feedback"
>
<ul
style=
"overflow: initial!important"
>
<li
style=
"float:right;margin-bottom:10px"
>
<input
type=
"button"
class=
"hollowFixedBtn"
value=
"新增"
@
click=
"addRule"
>
</li>
</ul>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th>
人员
</th>
<th>
占比
</th>
<th>
设置
</th>
</tr>
<tbody
v-for=
"(item,i) in dataList"
:key=
"i"
>
<tr>
<td>
{{
item
.
EmployeeName
}}
</td>
<td>
{{
item
.
CommissionPercent
}}
%
</td>
<td
width=
"150"
>
<el-button
@
click=
"SetRules(item)"
style=
"padding:4px"
type=
"primary"
icon=
"el-icon-edit"
circle
></el-button>
<el-button
@
click=
"Delete(item)"
style=
"padding:4px"
type=
"danger"
icon=
"el-icon-delete"
circle
></el-button>
</td>
</tr>
</tbody>
<tr
v-if=
"dataList.length==0"
>
<td
colspan=
"12"
align=
"center"
>
暂无数据
</td>
</tr>
</table>
<el-dialog
title=
"提成规则"
:visible
.
sync=
"ruleVisible"
width=
"400px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"100px"
>
<el-form-item
label=
"人员"
prop=
"EmployeeId"
>
<el-select
class=
"multiple_input"
filterable
v-model=
"form.EmployeeId"
>
<el-option
v-for=
"item in EmployeeList"
:label=
"item.EmName"
:value=
"item.EmployeeId"
:key=
"item.EmployeeId"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"占比"
prop=
"CommissionPercent"
>
<el-input
class=
"w220"
@
keyup
.
native=
"checkInteger(form,'CommissionPercent')"
v-model=
"form.CommissionPercent"
></el-input>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"ruleVisible = false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"danger"
@
click=
"RulesOk('form')"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</
template
>
<
script
>
import
moment
from
"moment"
import
{
constants
}
from
'fs'
;
export
default
{
name
:
'Feedback'
,
data
(){
return
{
allzb
:
100
,
obj
:{
BranchId
:
-
1
,
LineId
:
0
,
},
dataList
:[],
loading
:
false
,
dateList
:[],
companyList
:[],
ruleVisible
:
false
,
form
:{
EmployeeId
:
''
,
CommissionPercent
:
0
,
},
departmentMsg
:
{
RB_Group_Id
:
'0'
,
RB_Branch_Id
:
'-1'
,
Status
:
'0'
,
ParentId
:
'-1'
,
Tier
:
'0'
,
},
EmployeeList
:[],
rules
:{
EmployeeId
:
[
{
required
:
true
,
message
:
'请选择参与人员'
,
trigger
:
'change'
}
],
CommissionPercent
:
[{
required
:
true
,
message
:
"请输入占比"
,
trigger
:
"blur"
}],
},
}
},
created
(){
},
mounted
(){
this
.
getList
();
this
.
getEmployeeList
();
},
methods
:{
addRule
(){
this
.
ruleVisible
=
true
;
this
.
form
=
{
EmployeeId
:
''
,
CommissionPercent
:
0
,
}
},
Delete
(
item
)
{
this
.
$confirm
(
"是否删除? 删除后不可恢复"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
.
then
(()
=>
{
this
.
apipost
(
'VisaCommission_RemoveOPCommission'
,
{
ID
:
item
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
)
this
.
getList
()
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
})
})
.
catch
(()
=>
{});
},
RulesOk
(
formName
){
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
let
num
=
0
;
let
newnum
=
0
;
if
(
this
.
form
.
Id
){
this
.
dataList
.
forEach
(
item
=>
{
if
(
item
.
Id
!=
this
.
form
.
Id
){
num
+=
item
.
CommissionPercent
;
}
})
newnum
=
100
-
num
;
}
else
{
newnum
=
this
.
allzb
;
}
if
(
Number
(
this
.
form
.
CommissionPercent
)
>
newnum
||
Number
(
this
.
form
.
CommissionPercent
)
==
0
){
this
.
Error
(
"请输入正确的占比!"
);
return
;
}
this
.
apipost
(
'VisaCommission_SetOPCommission'
,
this
.
form
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getList
();
this
.
ruleVisible
=
false
;
this
.
Success
(
res
.
data
.
message
)
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
err
=>
{
}
)
}
else
{
}
});
},
getEmployeeList
()
{
let
userInfo
=
this
.
getLocalStorage
()
let
msg
=
{
GroupId
:
userInfo
.
RB_Group_id
,
BranchId
:
'-1'
,
DepartmentId
:
'-1'
,
PostId
:
'-1'
,
IsLeave
:
'0'
}
this
.
apipost
(
'admin_get_EmployeeGetList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
EmployeeList
=
res
.
data
.
data
}
},
err
=>
{
}
)
},
SetRules
(
item
){
this
.
ruleVisible
=
true
;
this
.
form
=
{
EmployeeId
:
item
.
EmployeeId
,
CommissionPercent
:
item
.
CommissionPercent
,
Id
:
item
.
Id
}
},
linkageDepartment
(){
this
.
departmentMsg
.
RB_Branch_Id
=
this
.
form
.
BranchId
;
this
.
departmentList
=
[];
this
.
form
.
DepartmentId
=-
1
;
this
.
getDepartment
();
},
getDepart
(
id
){
this
.
form
.
DepartmentId
=
id
;
this
.
$forceUpdate
();
},
getDepartment
()
{
this
.
apipost
(
'admin_get_DepartmentGetList'
,
this
.
departmentMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
departmentList
=
res
.
data
.
data
;
}
},
err
=>
{})
},
getList
(){
this
.
loading
=
true
;
this
.
apipost
(
"VisaCommission_GetPageList"
,
{},
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
;
console
.
log
(
"this.dataList"
,
this
.
dataList
)
// allzb
let
num
=
0
;
this
.
dataList
.
forEach
(
item
=>
{
num
+=
item
.
CommissionPercent
;
})
this
.
allzb
=
100
-
num
;
}
});
},
}
}
</
script
>
<
style
>
.Feedback
ul
>
li
{
display
:
inline-block
;
font-size
:
12px
;
color
:
#666
;
margin
:
20px
30px
0px
0
;
}
.Feedback
.singeRowTable
{
margin-top
:
20px
;
}
</
style
>
src/components/administrative/QzCommissionDetail.vue
0 → 100644
View file @
101fdafa
This diff is collapsed.
Click to expand it.
src/components/administrative/QzCommissionsmangment.vue
0 → 100644
View file @
101fdafa
<
style
>
.CM_look
{
padding
:
4px
!important
;
position
:
relative
;
top
:
1px
;
}
</
style
>
<
template
>
<div
class=
"flexOne"
>
<!--
<div
class=
"query-box"
>
<ul>
<li>
<input
type=
"button"
class=
"normalBtn"
@
click=
"generateTable"
value=
"生成提成报表"
/>
</li>
</ul>
</div>
-->
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<th>
期数
</th>
<th>
提成总金额
</th>
<th>
{{
$t
(
'admin.admin_czPerson'
)
}}
</th>
<th>
日期
</th>
<th>
{{
$t
(
'system.table_operation'
)
}}
</th>
</tr>
<tr
v-for=
"(item,index) in dataList"
:key=
"index"
>
<td>
{{
item
.
Periods
}}
</td>
<td>
{{
item
.
SumPrice
}}
</td>
<td>
{{
item
.
CreateByStr
}}
</td>
<td>
{{
item
.
CreateStr
}}
</td>
<td>
<!--
<el-tooltip
class=
"item"
effect=
"dark"
content=
"取消"
placement=
"top"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
></el-button>
</el-tooltip>
-->
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看"
placement=
"top"
>
<el-button
type=
"primary"
class=
"CM_look"
@
click=
"goUrl('QzCommissionDetail',item.ID)"
icon=
"iconfont icon-chakan"
circle
></el-button>
</el-tooltip>
</td>
</tr>
<tr
v-if=
"dataList.length==0"
>
<td
colspan=
"5"
align=
"center"
>
暂无数据
</td>
</tr>
</table>
<!-- 分页 -->
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
'msg.PageSize'
:total=
'total'
>
</el-pagination>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
msg
:
{
PageIndex
:
1
,
PageSize
:
20
},
loading
:
false
,
//数据源
dataList
:[],
total
:
0
,
currentPage
:
1
,
}
},
mounted
()
{
this
.
getList
();
},
methods
:
{
handleCurrentChange
(
val
)
{
this
.
msg
.
PageIndex
=
val
;
this
.
getList
();
},
goUrl
(
path
,
id
)
{
this
.
$router
.
push
({
path
:
path
,
query
:
{
ID
:
id
,
blank
:
'y'
,
tab
:
'详情'
}
});
},
//获取数据
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"VisaCommission_GetPeriodsPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
){
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
//生成提成报表
generateTable
(){
let
msg
=
{
UserId
:
0
}
this
.
apipost
(
"sellcommission_SetGenerateCommission"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
getList
();
this
.
Success
(
'报表生成成功'
)
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
}
}
}
</
script
>
src/router/config.js
View file @
101fdafa
...
@@ -337,6 +337,14 @@ export default {
...
@@ -337,6 +337,14 @@ export default {
title
:
'地接提成'
title
:
'地接提成'
},
},
},
},
{
path
:
'/QzCommissionsmangment'
,
//提成管理 签证
name
:
'QzCommissionsmangment'
,
component
:
resolve
=>
require
([
'@/components/administrative/QzCommissionsmangment'
],
resolve
),
meta
:
{
title
:
'签证提成'
},
},
{
{
path
:
'/AirticketCommission'
,
//票务提成
path
:
'/AirticketCommission'
,
//票务提成
name
:
'AirticketCommission'
,
name
:
'AirticketCommission'
,
...
@@ -377,6 +385,14 @@ export default {
...
@@ -377,6 +385,14 @@ export default {
title
:
'提成详情'
title
:
'提成详情'
},
},
},
},
{
path
:
'/QzCommissionDetail'
,
//提成详情 - 签证
name
:
'QzCommissionDetail'
,
component
:
resolve
=>
require
([
'@/components/administrative/QzCommissionDetail'
],
resolve
),
meta
:
{
title
:
'签证提成详情'
},
},
{
{
path
:
'/ExaminationStatistics'
,
//考核管理
path
:
'/ExaminationStatistics'
,
//考核管理
name
:
'ExaminationStatistics'
,
name
:
'ExaminationStatistics'
,
...
@@ -3692,6 +3708,14 @@ export default {
...
@@ -3692,6 +3708,14 @@ export default {
title
:
'地接提成规则'
title
:
'地接提成规则'
}
}
},
},
{
path
:
'/Qzcommissions'
,
name
:
'Qzcommissions'
,
component
:
resolve
=>
require
([
'@/components/FinancialModule/Qzcommissions'
],
resolve
),
meta
:
{
title
:
'签证提成规则'
}
},
{
{
path
:
'/OPCommissionDetail'
,
path
:
'/OPCommissionDetail'
,
name
:
'OPCommissionDetail'
,
name
:
'OPCommissionDetail'
,
...
...
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