Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 824d3d50
authored
Dec 11, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
积分优化
1 parent
896d6276
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
src/views/goods/addPrefer.vue
src/views/goods/addPrefer.vue
View file @
824d3d5
...
@@ -624,9 +624,8 @@ export default {
...
@@ -624,9 +624,8 @@ export default {
}
else
callback
()
}
else
callback
()
}
else
{
}
else
{
const
_target
=
this
.
saleMerchantList
.
find
(
item
=>
{
const
_target
=
this
.
saleMerchantList
.
find
(
item
=>
{
let
activityPrice
=
item
.
activityPrice
||
0
let
originalPrice
=
item
.
originalPrice
||
0
let
originalPrice
=
item
.
originalPrice
||
0
return
!
(
+
activityPrice
)
||
!
(
+
originalPrice
)
return
!
(
+
originalPrice
)
})
})
const
_integralTarget
=
this
.
saleMerchantList
.
find
(
item
=>
!
item
.
giveIntegral
&&
item
.
giveIntegral
!==
0
)
const
_integralTarget
=
this
.
saleMerchantList
.
find
(
item
=>
!
item
.
giveIntegral
&&
item
.
giveIntegral
!==
0
)
const
_exchangeintegralTarget
=
this
.
saleMerchantList
.
find
(
item
=>
this
.
formObj
.
goodsSource
==
1
&&
item
.
exchangeIntegralFlag
&&
(
!
item
.
exchangeIntegral
||
item
.
exchangeIntegral
==
0
))
const
_exchangeintegralTarget
=
this
.
saleMerchantList
.
find
(
item
=>
this
.
formObj
.
goodsSource
==
1
&&
item
.
exchangeIntegralFlag
&&
(
!
item
.
exchangeIntegral
||
item
.
exchangeIntegral
==
0
))
...
@@ -639,7 +638,7 @@ export default {
...
@@ -639,7 +638,7 @@ export default {
if
(
!
this
.
saleMerchantList
.
length
)
{
if
(
!
this
.
saleMerchantList
.
length
)
{
callback
(
new
Error
(
'请选择门店'
))
callback
(
new
Error
(
'请选择门店'
))
}
else
if
(
_target
)
{
}
else
if
(
_target
)
{
callback
(
new
Error
(
`门店
${
this
.
formObj
.
goodsSource
==
2
?
'零售价'
:
'
活动价和
原价'
}
请填写大于0的数值`
))
callback
(
new
Error
(
`门店
${
this
.
formObj
.
goodsSource
==
2
?
'零售价'
:
'原价'
}
请填写大于0的数值`
))
}
else
if
(
this
.
formObj
.
goodsSource
!=
2
&&
hasTarget
)
{
}
else
if
(
this
.
formObj
.
goodsSource
!=
2
&&
hasTarget
)
{
callback
(
new
Error
(
'原价不能小于最低售价和活动价'
))
callback
(
new
Error
(
'原价不能小于最低售价和活动价'
))
}
else
if
(
_integralTarget
)
{
}
else
if
(
_integralTarget
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment