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
fe8f1e62
Commit
fe8f1e62
authored
Dec 31, 2022
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠编辑页面二选一的提示
parent
a71fe96f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
edit.vue
src/views/ecw/coupon/edit.vue
+8
-6
No files found.
src/views/ecw/coupon/edit.vue
View file @
fe8f1e62
...
...
@@ -61,8 +61,8 @@
<!--
<el-select
v-model=
"item.fullCurrencyId"
style=
"width:100px"
>
<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"
@
input=
"checkReduceCurrency(item)"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
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"
/>
<selector
v-if=
"[4].indexOf(form.type) > -1"
v-model=
"item.fullCurrencyId"
@
input=
"checkReduceCurrency(item)"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<selector
v-if=
"form.type == 2
|| form.type == 5
"
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>
...
...
@@ -95,6 +95,8 @@
<el-button
v-if=
"fee[1].length > 1"
class=
"el-icon-minus"
size=
"mini"
type=
"danger"
@
click=
"fee[1].splice(index,1)"
/>
</
template
>
<!-- <div class="red-tips" v-if="errTips[1] && errTips[1][index]">{{errTips[1][index]}}</div> -->
<span
style=
"color:red; margin-left: 10px;"
v-if=
"index == 0 && (form.type == 2 || form.type == 4)"
>
注意:运费/清关费 方案二选一
</span>
</div>
</el-form-item>
...
...
@@ -370,8 +372,8 @@ export default {
},
watch
:{
'
form.type
'
(
val
){
// 方数满减3和特价6需要单位
if
((
val
==
3
||
val
==
6
||
val
==
2
)
&&
!
this
.
unitList
.
length
){
// 方数满减3和特价6
、优惠5
需要单位
if
((
val
==
3
||
val
==
6
||
val
==
2
||
val
==
5
)
&&
!
this
.
unitList
.
length
){
this
.
getUnitList
()
}
...
...
@@ -620,8 +622,8 @@ export default {
this
.
errTips
=
{}
let
discountDetailedVOs
=
this
.
costType
==
3
?
this
.
fee
[
3
]
:
this
.
fee
[
1
].
concat
(
this
.
fee
[
2
]).
filter
(
item
=>
item
.
netReceiptsAmount
||
item
.
fullAmount
)
discountDetailedVOs
.
map
(
item
=>
{
// 目前只有满减使用组合单位
if
(
this
.
form
.
type
==
2
&&
item
.
combUnit
){
// 目前只有满减
(1)和优惠(5)
使用组合单位
if
(
(
this
.
form
.
type
==
2
||
this
.
form
.
type
==
5
)
&&
item
.
combUnit
){
// 满减需要 先删除单位,防止编辑的时候切换单位导致两个同时存在
delete
item
.
fullCurrencyId
delete
item
.
prodUnit
...
...
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