Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
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
bp
op-web-service
Commits
6bcd6292
Commit
6bcd6292
authored
Jul 09, 2021
by
pengyunqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:佣金百分号
parent
69a54967
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
8 deletions
+26
-8
index.vue
src/pages/Goods/Retail/index.vue
+26
-8
No files found.
src/pages/Goods/Retail/index.vue
View file @
6bcd6292
...
...
@@ -70,12 +70,26 @@
prop=
"first_commission_value"
label=
"一级分销金额"
>
<template
#
default=
"scope"
>
<span>
{{
scope
.
row
.
first_commission_value
+
"%"
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"second_commission_value"
label=
"二级分销金额"
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
.
second_commission_value
?
scope
.
row
.
second_commission_value
+
"%"
:
"0%"
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"online_status"
label=
"状态"
>
<
template
#
default=
"scope"
>
...
...
@@ -186,7 +200,7 @@
<el-form-item
label=
"一级佣金:"
prop=
"first_commission_value"
>
<el-input
v-model=
"ruleForm.first_commission_value"
@
input=
"changeValue($event,'first_commission_value')"
@
input=
"changeValue($event,
'first_commission_value')"
:disabled=
"shopStart !== 0"
>
<
template
#
append
>
%
</
template
>
...
...
@@ -195,7 +209,7 @@
<el-form-item
label=
"二级佣金: "
prop=
"second_commission_value"
>
<el-input
v-model=
"ruleForm.second_commission_value"
@
input=
"changeValue($event,'second_commission_value')"
@
input=
"changeValue($event,
'second_commission_value')"
:disabled=
"shopStart !== 0"
>
<
template
#
append
>
%
</
template
>
...
...
@@ -301,7 +315,9 @@
<!--
{{
shopStart
==
0
?
"返回"
:
"返回"
}}
-->
<el-button
type=
"primary"
@
click=
"cancel"
style=
"width: 150px"
>
返回
</el-button>
<el-button
type=
"primary"
@
click=
"cancel"
style=
"width: 150px"
>
返回
</el-button
>
</span>
</
template
>
</el-dialog>
...
...
@@ -416,9 +432,11 @@ export default {
};
},
methods
:
{
changeValue
(
value
,
level
){
value
&&
value
.
indexOf
(
'.'
)
!==
value
.
length
-
1
&&
(
this
.
ruleForm
[
level
]
=
parseFloat
(
value
))
},
changeValue
(
value
,
level
)
{
value
&&
value
.
indexOf
(
"."
)
!==
value
.
length
-
1
&&
(
this
.
ruleForm
[
level
]
=
parseFloat
(
value
));
},
// 查看详情列表
async
handleClick
(
row
)
{
this
.
dialogFormVisible
=
true
;
...
...
@@ -594,8 +612,8 @@ export default {
let
addParams
=
{
goods_sku_id
,
marketing_name
,
first_commission_value
,
second_commission_value
,
first_commission_value
:
first_commission_value
+
""
,
second_commission_value
:
second_commission_value
+
""
,
start_time
:
this
.
formatTime
(
start_time
),
end_time
:
this
.
formatTime
(
end_time
),
};
...
...
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