Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
235d5aad
Commit
235d5aad
authored
Jan 04, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复优惠的货币单位限制
parent
3bca5b87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
edit.vue
src/views/ecw/coupon/edit.vue
+13
-5
No files found.
src/views/ecw/coupon/edit.vue
View file @
235d5aad
...
...
@@ -513,7 +513,7 @@ export default {
// 满减活动如果选择的满多少金额减,则在选择满货币后需要同步减的货币,且禁用减的货币修改
checkReduceCurrency
(
item
){
// 金额满减
if
(
this
.
form
.
type
==
2
){
if
(
[
2
,
4
,
5
,
7
].
indexOf
(
this
.
form
.
type
)
>
-
1
){
// 只要不是按产品单位满减
if
(
!
item
.
combUnit
||
item
.
combUnit
.
split
(
'
_
'
)[
0
]
!=
'
prodUnit
'
){
this
.
$set
(
item
,
'
reduceCurrencyDisabled
'
,
true
)
...
...
@@ -524,21 +524,29 @@ export default {
if
(
!
currencyId
){
currencyId
=
this
.
currencyList
[
0
].
id
}
this
.
$set
(
item
,
'
reduceCurrencyId
'
,
currencyId
)
// 满减
if
(
this
.
form
.
type
==
2
){
this
.
$set
(
item
,
'
reduceCurrencyId
'
,
currencyId
)
}
// 优惠5,区间价7
if
(
this
.
form
.
type
==
5
||
this
.
form
.
type
==
7
){
this
.
$set
(
item
,
'
netReceiptsCurrencyId
'
,
currencyId
)
}
}
else
this
.
$set
(
item
,
'
reduceCurrencyDisabled
'
,
false
)
return
}
// 优惠
if
(
this
.
form
.
type
==
5
){
/*
if(this.form.type == 5){
if(!item.fullCurrencyId){
this.$set(item, 'fullCurrencyId', this.currencyList[0].id)
}
this
.
$set
(
item
,
'
reduceCurrencyDisabled
'
,
true
)
//
this.$set(item, 'reduceCurrencyDisabled', true)
this.$set(item, 'netReceiptsCurrencyId', +item.fullCurrencyId)
return
}
}
*/
// 区间价
if
(
this
.
form
.
type
==
7
){
...
...
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