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
2e8aa449
Commit
2e8aa449
authored
Jun 18, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售提成的页面提交
parent
543cc8d0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
618 additions
and
0 deletions
+618
-0
index.js
src/api/finance/index.js
+17
-0
CommissionDetail.vue
src/pages/financial/CommissionDetail.vue
+158
-0
salesCommission.vue
src/pages/financial/salesCommission.vue
+121
-0
salesRules.vue
src/pages/financial/salesRules.vue
+303
-0
routes.js
src/router/routes.js
+19
-0
No files found.
src/api/finance/index.js
View file @
2e8aa449
...
...
@@ -70,4 +70,21 @@ export function getStockOutPageList(data) {
data
});
}
// 财务流程 销售提成规则
export
function
getSellCommissionRuleList
(
data
)
{
return
request
({
url
:
'/SellCommission/GetSellCommissionRuleList'
,
method
:
'post'
,
data
});
}
// 财务流程 保存销售提成规则
export
function
setSellCommissionRule
(
data
)
{
return
request
({
url
:
'/SellCommission/SetSellCommissionRule'
,
method
:
'post'
,
data
});
}
src/pages/financial/CommissionDetail.vue
0 → 100644
View file @
2e8aa449
<
style
>
.baseSet_Title
{
width
:
120px
!important
;
padding
:
18px
0
0
16px
;
text-align
:
right
;
}
.CommissionDetail
.border-bottom
{
/* border-bottom: 1px dashed #EEE; */
padding-bottom
:
5px
;
margin-bottom
:
5px
;
}
.CommissionDetail
.text-bottom
{
height
:
32px
;
line-height
:
32px
;
margin-bottom
:
10px
;
}
</
style
>
<
template
>
<div
class=
"page-body CommissionDetail"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
</div>
</div>
</div>
<template
>
<el-table
ref=
"filterTable"
:data=
"tableData"
border
style=
"width: 100%"
>
<el-table-column
prop=
"xiaoqu"
label=
"公司"
:filters=
"company"
:filter-method=
"filterHandler"
></el-table-column>
<el-table-column
prop=
"bumen"
label=
"部门"
:filters=
"department"
:filter-method=
"filterHandler"
></el-table-column>
<el-table-column
prop=
"name"
label=
"姓名"
sortable
>
</el-table-column>
<el-table-column
prop=
"gstic"
label=
"提成金额"
sortable
:sort-method=
"fn2"
>
</el-table-column>
<el-table-column
prop=
"ewaijine"
label=
"额外奖励"
sortable
>
</el-table-column>
<el-table-column
prop=
"qishu"
label=
"额外扣除"
sortable
>
</el-table-column>
<el-table-column
label=
"操作"
>
<template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看"
placement=
"top"
>
<i
class=
"iconfont icon-sousuo"
@
click=
"goUrl('CommissionDetail',Id)"
></i>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
</template>
</div>
</template>
<
script
>
import
{
GetClassTypePageList
,
}
from
'../../api/system/index'
;
import
{
getSellCommissionRuleList
,
setSellCommissionRule
}
from
'../../api/finance/index'
export
default
{
meta
:
{
title
:
"销售提成详情"
},
props
:
{},
components
:
{},
data
()
{
return
{
loading
:
false
,
//列表数据参数
msg
:
{
pageIndex
:
1
,
pageSize
:
99
},
pageCount
:
0
,
persistent
:
false
,
listData
:{},
tableData
:[
{
xiaoqu
:
'微途科技1'
,
bumen
:
'销售部1'
,
name
:
'徐总'
,
gstic
:
'1.00'
,
ewaijine
:
'0.00'
,
riqi
:
'2019-03-15'
,
'qishu'
:
'20190211'
},
{
xiaoqu
:
'微途科技2'
,
bumen
:
'销售部2'
,
name
:
'徐总'
,
gstic
:
'12.00'
,
ewaijine
:
'0.00'
,
riqi
:
'2019-03-15'
,
'qishu'
:
'20190215'
},
{
xiaoqu
:
'微途科技3'
,
bumen
:
'销售部3'
,
name
:
'徐总'
,
gstic
:
'7.00'
,
ewaijine
:
'0.00'
,
riqi
:
'2019-03-15'
,
'qishu'
:
'20190216'
},
{
xiaoqu
:
'微途科技3'
,
bumen
:
'销售部3'
,
name
:
'徐总'
,
gstic
:
'9.00'
,
ewaijine
:
'0.00'
,
riqi
:
'2019-03-15'
,
'qishu'
:
'20190218'
},
],
company
:[],
department
:[],
}
},
created
()
{},
mounted
()
{
// this.getRuleList();//获取规则
this
.
company
=
[];
this
.
tableData
.
forEach
(
x
=>
{
let
obj
=
{
text
:
x
.
xiaoqu
,
value
:
x
.
xiaoqu
}
let
obj2
=
{
text
:
x
.
bumen
,
value
:
x
.
bumen
}
this
.
company
.
push
(
obj
)
this
.
department
.
push
(
obj2
)
})
this
.
company
=
this
.
unique
(
this
.
company
)
this
.
department
=
this
.
unique
(
this
.
department
)
},
methods
:
{
unique
(
Arr
){
var
hash
=
{};
Arr
=
Arr
.
reduce
(
function
(
arr
,
current
)
{
hash
[
current
.
text
]
?
""
:
(
hash
[
current
.
text
]
=
true
&&
arr
.
push
(
current
));
return
arr
;
},
[]);
return
Arr
;
},
getRuleList
(){
this
.
loading
=
true
;
getSellCommissionRuleList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
listData
=
res
.
Data
this
.
GetClassTypePageList
();
//获取班级类型列表数据
}
})
},
goUrl
(
path
,
id
)
{
this
.
$router
.
push
({
path
:
'/financial/'
+
path
,
query
:
{
"id"
:
id
,
blank
:
'y'
,
tab
:
'单据详情'
}
})
},
filterHandler
(
value
,
row
,
column
)
{
const
property
=
column
[
'property'
];
return
row
[
property
]
===
value
;
},
fn2
(
a
,
b
){
return
a
.
gstic
-
b
.
gstic
;
}
},
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
\ No newline at end of file
src/pages/financial/salesCommission.vue
0 → 100644
View file @
2e8aa449
<
style
>
.baseSet_Title
{
width
:
120px
!important
;
padding
:
18px
0
0
16px
;
text-align
:
right
;
}
.salesCommission
.border-bottom
{
/* border-bottom: 1px dashed #EEE; */
padding-bottom
:
5px
;
margin-bottom
:
5px
;
}
.salesCommission
.text-bottom
{
height
:
32px
;
line-height
:
32px
;
margin-bottom
:
10px
;
}
</
style
>
<
template
>
<div
class=
"page-body salesCommission"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
</div>
</div>
</div>
<template
>
<el-table
ref=
"filterTable"
:data=
"tableData"
border
style=
"width: 100%"
>
<el-table-column
prop=
"qishu"
label=
"期数"
sortable
></el-table-column>
<el-table-column
prop=
"alljine"
label=
"提成总金额"
width=
"180"
></el-table-column>
<el-table-column
prop=
"caoren"
label=
"操作人"
>
</el-table-column>
<el-table-column
prop=
"gstic"
label=
"所属公司提成"
>
</el-table-column>
<el-table-column
prop=
"caiwudanj"
label=
"财务单据"
>
</el-table-column>
<el-table-column
prop=
"riqi"
label=
"日期"
>
</el-table-column>
<el-table-column
label=
"操作"
>
<template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看"
placement=
"top"
>
<i
class=
"iconfont icon-sousuo"
@
click=
"goUrl('CommissionDetail',Id)"
></i>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
</template>
</div>
</template>
<
script
>
import
{
GetClassTypePageList
,
}
from
'../../api/system/index'
;
import
{
getSellCommissionRuleList
,
setSellCommissionRule
}
from
'../../api/finance/index'
export
default
{
meta
:
{
title
:
"销售提成列表"
},
props
:
{},
components
:
{},
data
()
{
return
{
loading
:
false
,
//列表数据参数
msg
:
{
pageIndex
:
1
,
pageSize
:
99
},
pageCount
:
0
,
persistent
:
false
,
listData
:{},
tableData
:[
{
qishu
:
'201902'
,
alljine
:
'10223'
,
caoren
:
'徐总'
,
gstic
:
'0.00'
,
caiwudanj
:
2019
,
riqi
:
'2019-03-15'
}
],
}
},
created
()
{},
mounted
()
{
// this.getRuleList();//获取规则
},
methods
:
{
getRuleList
(){
this
.
loading
=
true
;
getSellCommissionRuleList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
listData
=
res
.
Data
this
.
GetClassTypePageList
();
//获取班级类型列表数据
}
})
},
goUrl
(
path
,
id
)
{
this
.
$router
.
push
({
path
:
'/financial/'
+
path
,
query
:
{
"id"
:
id
,
blank
:
'y'
,
tab
:
'单据详情'
}
})
},
},
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
\ No newline at end of file
src/pages/financial/salesRules.vue
0 → 100644
View file @
2e8aa449
This diff is collapsed.
Click to expand it.
src/router/routes.js
View file @
2e8aa449
...
...
@@ -237,6 +237,23 @@ const routes = [{
component
:
()
=>
import
(
"pages/financial/CompanyAccount.vue"
)
},
{
path
:
"/financial/salesRules"
,
//销售提成规则
component
:
()
=>
import
(
"pages/financial/salesRules.vue"
)
},
{
path
:
"/financial/salesCommission"
,
//销售提成列表
component
:
()
=>
import
(
"pages/financial/salesCommission.vue"
)
},
{
path
:
"/financial/CommissionDetail"
,
//销售提成详情
component
:
()
=>
import
(
"pages/financial/CommissionDetail.vue"
)
},
{
path
:
"/financial/TeamRevenueReport"
,
//营收报表
component
:
()
=>
...
...
@@ -810,6 +827,8 @@ const routes = [{
component
:
()
=>
import
(
"pages/financial/financalDocument/PrintPageN.vue"
)
},
{
path
:
'/AssetsShenpi'
,
//资产管理审批
name
:
'AssetsShenpi'
,
...
...
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