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
c92c8d02
Commit
c92c8d02
authored
Nov 30, 2022
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠券金额满减不让修改减货币
parent
d1e819d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
edit.vue
src/views/ecw/coupon/edit.vue
+22
-4
No files found.
src/views/ecw/coupon/edit.vue
View file @
c92c8d02
...
...
@@ -62,7 +62,7 @@
<el-option
v-for=
"item in currencyList"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
/>
</el-select>
-->
<selector
v-if=
"[4,5].indexOf(form.type) > -1"
v-model=
"item.fullCurrencyId"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<selector
v-if=
"form.type == 2"
v-model=
"item.combUnit"
:options=
"combUnitList"
label-field=
"label"
value-field=
"value"
defaultable
style=
"width:100px"
/>
<selector
v-if=
"form.type == 2"
v-model=
"item.combUnit"
@
input=
"checkReduceCurrency(item)"
:options=
"combUnitList"
label-field=
"label"
value-field=
"value"
defaultable
style=
"width:100px"
/>
<span
v-if=
"[2].indexOf(form.type) > -1"
>
{{
$t
(
'
减
'
)
}}
</span>
<span
v-if=
"[4].indexOf(form.type) > -1"
>
{{
$t
(
'
折扣率
'
)
}}
</span>
...
...
@@ -71,7 +71,7 @@
<el-input
v-if=
"[2,3,4].indexOf(form.type) > -1"
v-model=
"item.reduceAmount"
@
keyup.native=
"checkPositive(item, 'reduceAmount')"
style=
"width:100px"
/>
<selector
v-if=
"[2,3].indexOf(form.type) > -1"
v-model=
"item.reduceCurrencyId"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<selector
v-if=
"[2,3].indexOf(form.type) > -1"
v-model=
"item.reduceCurrencyId"
:
disabled=
"!!item.reduceCurrencyDisabled"
:
options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<span
v-if=
"[4].indexOf(form.type) > -1"
>
%
</span>
</
template
>
<
template
v-if=
"form.type==7"
>
...
...
@@ -100,7 +100,7 @@
<
template
v-if=
"[1,2,3,4,5].indexOf(form.type) > -1"
>
{{
$t
(
'
满
'
)
}}
<el-input
v-model=
"item.fullAmount"
@
keyup.native=
"checkPositive(item, 'fullAmount')"
style=
"width:100px"
/>
<selector
v-if=
"[2,4,5].indexOf(form.type) > -1"
v-model=
"item.fullCurrencyId"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<selector
v-if=
"[2,4,5].indexOf(form.type) > -1"
v-model=
"item.fullCurrencyId"
@
input=
"syncClearanceCurrency(item)"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<selector
v-if=
"form.type == 3"
v-model=
"item.prodUnit"
:options=
"unitList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<span
v-if=
"[2].indexOf(form.type) > -1"
>
{{
$t
(
'
减
'
)
}}
</span>
...
...
@@ -110,7 +110,7 @@
<el-input
v-if=
"[2,3,4].indexOf(form.type) > -1"
@
keyup.native=
"checkPositive(item, 'reduceAmount')"
v-model=
"item.reduceAmount"
style=
"width:100px"
/>
<selector
v-if=
"[2,3].indexOf(form.type) > -1"
v-model=
"item.reduceCurrencyId"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<selector
v-if=
"[2,3].indexOf(form.type) > -1"
v-model=
"item.reduceCurrencyId"
:
disabled=
"form.type==2"
:
options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<span
v-if=
"[4].indexOf(form.type) > -1"
>
%
</span>
</
template
>
<
template
v-if=
"form.type==7"
>
...
...
@@ -468,6 +468,24 @@ export default {
this
.
reset
()
},
methods
:
{
// 满减清关费修改满的货币后需要同步减的货币
syncClearanceCurrency
(
item
){
if
(
this
.
form
.
type
!=
2
)
return
item
.
reduceCurrencyId
=
item
.
fullCurrencyId
},
// 满减活动如果选择的满多少金额减,则在选择满货币后需要同步减的货币,且禁用减的货币修改
checkReduceCurrency
(
item
){
if
(
this
.
form
.
type
==
2
&&
item
.
combUnit
.
split
(
'
_
'
)[
0
]
==
'
fullCurrencyId
'
){
this
.
$set
(
item
,
'
reduceCurrencyDisabled
'
,
true
)
this
.
$set
(
item
,
'
reduceCurrencyId
'
,
+
item
.
combUnit
.
split
(
'
_
'
)[
1
])
return
}
if
(
item
.
reduceCurrencyDisabled
){
this
.
$set
(
item
,
'
reduceCurrencyDisabled
'
,
false
)
}
},
getCouponSelect
(){
getCouponSelect
().
then
(
res
=>
{
this
.
couponList
=
res
.
data
...
...
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