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
b83827f6
Commit
b83827f6
authored
Nov 21, 2019
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售提成和销售详情
parent
5d816cd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
14 deletions
+67
-14
CommissionDetail.vue
src/components/administrative/CommissionDetail.vue
+51
-8
CommissionManagement.vue
src/components/administrative/CommissionManagement.vue
+16
-6
No files found.
src/components/administrative/CommissionDetail.vue
View file @
b83827f6
<
template
>
<
template
>
<div
class=
"commissionDetails-box"
>
<div
class=
"commissionDetails
commissionDetails
-box"
>
<div
class=
"query-box"
>
<div
class=
"query-box"
>
<ul>
<ul>
<li>
<li>
...
@@ -206,10 +206,12 @@ export default {
...
@@ -206,10 +206,12 @@ export default {
columnAlign
:
"left"
,
columnAlign
:
"left"
,
isResize
:
true
,
isResize
:
true
,
width
:
80
,
width
:
80
,
result
:
""
,
formatter
:
function
(
rowData
,
rowIndex
,
pagingIndex
,
field
)
{
filterMultiple
:
false
,
if
(
rowData
.
leaveStr
)
filters
:
[{}],
return
`<div>
${
rowData
.
createByStr
}
<span style="color:red;display:inline-block">(
${
rowData
.
leaveStr
}
)</span></div>`
type
:
"text"
else
return
`<div>
${
rowData
.
createByStr
}
</div>`
}
};
};
let
commissionMoney
=
{
let
commissionMoney
=
{
field
:
"commissionMoney"
,
field
:
"commissionMoney"
,
...
@@ -294,7 +296,7 @@ export default {
...
@@ -294,7 +296,7 @@ export default {
width
:
80
,
width
:
80
,
formatter
:
function
(
rowData
,
rowIndex
,
pagingIndex
,
field
)
{
formatter
:
function
(
rowData
,
rowIndex
,
pagingIndex
,
field
)
{
if
(
rowData
.
periods
!=
that
.
stringPerons
)
if
(
rowData
.
periods
!=
that
.
stringPerons
)
return
`<div style='height:40px;line-height:40px;color:#f1f1f1;background: red;margin: 0 -
10px
;padding-left: 10px;'>
${
rowData
.
periods
}
</div>`
return
`<div style='height:40px;line-height:40px;color:#f1f1f1;background: red;margin: 0 -
5px;
;padding-left: 10px;'>
${
rowData
.
periods
}
</div>`
else
else
return
rowData
.
periods
return
rowData
.
periods
}
}
...
@@ -307,7 +309,14 @@ export default {
...
@@ -307,7 +309,14 @@ export default {
isResize
:
true
,
isResize
:
true
,
width
:
80
,
width
:
80
,
formatter
:
function
(
rowData
,
rowIndex
,
pagingIndex
,
field
)
{
formatter
:
function
(
rowData
,
rowIndex
,
pagingIndex
,
field
)
{
return
rowData
.
remark
?
rowData
.
remark
:
''
if
(
rowData
.
remark
)
return
`<div class="outDiv">
<div class="toolDiv">
<div class="triangle_border_up">
</div>
${
rowData
.
remark
}
</div>
${
rowData
.
remark
}
</div>`
else
return
''
}
}
};
};
let
opera
=
{
let
opera
=
{
...
@@ -437,7 +446,7 @@ export default {
...
@@ -437,7 +446,7 @@ export default {
},
},
created
(){
created
(){
Vue
.
component
(
'commission-table-operation'
,{
Vue
.
component
(
'commission-table-operation'
,{
template
:
`<div style='
width:80px;height:40px;background:#fff;text-align:center;position: relative;left:-5px;padding-top: 6px;padding-top:6px;
'><el-button type="primary" size='mini' icon="el-icon-view" circle @click="see(rowData,index)"></el-button></div>`
,
template
:
`<div style='
border-bottom: 1px solid #e5e5e5;width:80px;height:40px;background:#fff;text-align:center;position: relative;left:-5px;padding-top: 6px;padding-top:6px;box-sizing:border-box
'><el-button type="primary" size='mini' icon="el-icon-view" circle @click="see(rowData,index)"></el-button></div>`
,
props
:{
props
:{
rowData
:{
rowData
:{
type
:
Object
type
:
Object
...
@@ -461,7 +470,41 @@ export default {
...
@@ -461,7 +470,41 @@ export default {
};
};
</
script
>
</
script
>
<
style
>
<
style
>
.commissionDetails
.triangle_border_up
{
width
:
0
;
height
:
0
;
border-width
:
0
5px
5px
;
border-style
:
solid
;
border-color
:
transparent
transparent
#303133
;
/*透明 透明 灰*/
position
:
absolute
;
top
:
-5px
;
}
.commissionDetails
.v-table-body-cell
:hover
.outDiv
.toolDiv
{
display
:
block
;
}
.commissionDetails
.v-table-body-cell
{
overflow
:
initial
;
cursor
:
pointer
;
}
.commissionDetails
.toolDiv
{
position
:
absolute
;
top
:
25px
;
background
:
#303133
;
color
:
#fff
;
z-index
:
20000
;
padding
:
4px
15px
;
max-width
:
220px
;
white-space
:
normal
;
border-radius
:
4px
;
word-wrap
:
break-word
;
display
:
none
;
}
.commissionDetails
.outDiv
{
position
:
relative
;
}
.commissionDetails-box
.el-button.is-circle
{
padding
:
5px
!important
;}
.commissionDetails-box
.el-button.is-circle
{
padding
:
5px
!important
;}
.commissionDetails-box
.v-table-body-cell
span
{
.commissionDetails-box
.v-table-body-cell
span
{
display
:
block
;
display
:
block
;
...
...
src/components/administrative/CommissionManagement.vue
View file @
b83827f6
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</li>
</li>
</ul>
</ul>
</div>
-->
</div>
-->
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<table
v-loading=
"loading"
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<tr>
<th>
期数
</th>
<th>
期数
</th>
<th
v-if=
"userInfo.RB_Branch_id==0 || userInfo.RB_Branch_id==49"
>
提成总金额
</th>
<th
v-if=
"userInfo.RB_Branch_id==0 || userInfo.RB_Branch_id==49"
>
提成总金额
</th>
...
@@ -58,10 +58,10 @@
...
@@ -58,10 +58,10 @@
></el-button>
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"制单"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"制单"
placement=
"top"
>
<el-button
<el-button
v-if=
"btnShow"
type=
"primary"
type=
"primary"
class=
"CM_look"
class=
"CM_look"
@
click=
"generalFinancacls(item
.branchMoney
)"
@
click=
"generalFinancacls(item)"
icon=
"el-icon-plus"
icon=
"el-icon-plus"
title=
"制单"
title=
"制单"
circle
circle
...
@@ -95,12 +95,18 @@ export default {
...
@@ -95,12 +95,18 @@ export default {
dataList
:
[],
dataList
:
[],
total
:
0
,
total
:
0
,
currentPage
:
1
,
currentPage
:
1
,
userInfo
:
{}
userInfo
:
{},
btnShow
:
false
,
};
};
},
},
mounted
()
{
mounted
()
{
this
.
getList
();
this
.
getList
();
this
.
userInfo
=
this
.
getLocalStorage
();
this
.
userInfo
=
this
.
getLocalStorage
();
let
userInfo
=
this
.
getLocalStorage
();
let
ActionMenuCode
=
userInfo
.
ActionMenuCode
;
if
(
ActionMenuCode
.
indexOf
(
'CommissionVoucher'
)
!=-
1
){
this
.
btnShow
=
true
;
}
},
},
methods
:
{
methods
:
{
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
...
@@ -169,10 +175,14 @@ export default {
...
@@ -169,10 +175,14 @@ export default {
null
null
);
);
},
},
generalFinancacls
(
money
){
generalFinancacls
(
item
){
if
(
item
.
financialsArray
&&
item
.
financialsArray
.
length
>
0
){
this
.
Error
(
"请不要多次制单!"
)
return
;
}
let
obj
=
{
let
obj
=
{
CostType
:
16
,
CostType
:
16
,
Money
:
m
oney
,
Money
:
item
.
branchM
oney
,
CurrencyId
:
1
,
CurrencyId
:
1
,
XSTC
:
1
,
XSTC
:
1
,
}
}
...
...
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