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
0c187a5c
Commit
0c187a5c
authored
Aug 17, 2021
by
liwenhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:佣金不能输入0
parent
fee5271b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
index.vue
src/pages/Goods/Retail/index.vue
+5
-5
No files found.
src/pages/Goods/Retail/index.vue
View file @
0c187a5c
...
@@ -223,7 +223,7 @@
...
@@ -223,7 +223,7 @@
@
input=
"changeValue($event, 'first_commission_value')"
@
input=
"changeValue($event, 'first_commission_value')"
:disabled=
"shopStart !== 0"
:disabled=
"shopStart !== 0"
>
>
<
template
#
append
>
%
</
template
>
<
template
#
append
>
{{
ruleForm
.
commission_mode
==
1
?
'%'
:
'元'
}}
</
template
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"分享者佣金: "
prop=
"second_commission_value"
>
<el-form-item
label=
"分享者佣金: "
prop=
"second_commission_value"
>
...
@@ -233,7 +233,7 @@
...
@@ -233,7 +233,7 @@
@
input=
"changeValue($event, 'second_commission_value')"
@
input=
"changeValue($event, 'second_commission_value')"
:disabled=
"shopStart !== 0"
:disabled=
"shopStart !== 0"
>
>
<
template
#
append
>
%
</
template
>
<
template
#
append
>
{{
ruleForm
.
commission_mode
==
1
?
'%'
:
'元'
}}
</
template
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"活动生效时间:"
>
<el-form-item
label=
"活动生效时间:"
>
...
@@ -459,14 +459,14 @@ export default {
...
@@ -459,14 +459,14 @@ export default {
{
{
required
:
true
,
required
:
true
,
message
:
"请填写分享者佣金"
,
message
:
"请填写分享者佣金"
,
trigger
:
"
change
"
,
trigger
:
"
blur
"
,
},
},
{
type
:
"number"
,
message
:
"必须为数值型"
},
{
type
:
"number"
,
message
:
"必须为数值型"
},
{
validator
:
commissionSec
},
{
validator
:
commissionSec
},
],
],
first_commission_value
:
[
first_commission_value
:
[
{
type
:
"number"
,
message
:
"必须为数值型"
,
trigger
:
"
change
"
,
},
{
type
:
"number"
,
message
:
"必须为数值型"
,
trigger
:
"
blur
"
,
},
{
validator
:
commission
},
{
validator
:
commission
},
],
],
},
},
...
@@ -485,7 +485,7 @@ export default {
...
@@ -485,7 +485,7 @@ export default {
if
(
value
&&
value
.
indexOf
(
"."
)
!==
value
.
length
-
1
&&
parseFloat
(
value
))
if
(
value
&&
value
.
indexOf
(
"."
)
!==
value
.
length
-
1
&&
parseFloat
(
value
))
this
.
ruleForm
[
level
]
=
parseFloat
(
value
);
this
.
ruleForm
[
level
]
=
parseFloat
(
value
);
else
if
(
value
&&
value
.
indexOf
(
"."
)
===
value
.
length
-
1
)
return
;
else
if
(
value
&&
value
.
indexOf
(
"."
)
===
value
.
length
-
1
)
return
;
else
this
.
ruleForm
[
level
]
=
""
;
//
else this.ruleForm[level] = "";
},
},
// 查看详情列表
// 查看详情列表
async
handleClick
(
row
)
{
async
handleClick
(
row
)
{
...
...
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