Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 c4019706
authored
Mar 28, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改优惠劵显示Bug
1 parent
764c5543
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
15 deletions
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/productGroup/editProduct.vue
src/views/couponManage/editCashCoupon.vue
View file @
c401970
...
@@ -317,9 +317,12 @@ export default {
...
@@ -317,9 +317,12 @@ export default {
this
.
apear
=
'couponEdit'
this
.
apear
=
'couponEdit'
this
.
title
=
'编辑'
this
.
title
=
'编辑'
}
}
this
.
editFormData
[
0
].
isDisabled
=
true
const
stockIndex
=
this
.
editFormData
.
findIndex
(
val
=>
val
.
name
==
'stock'
)
this
.
editFormData
[
1
].
isDisabled
=
true
const
couponNameIndex
=
this
.
editFormData
.
findIndex
(
val
=>
val
.
name
==
'couponName'
)
this
.
editFormData
[
9
].
isDisabled
=
true
const
anticipatedCostIdx
=
this
.
editFormData
.
findIndex
(
val
=>
val
.
name
==
'anticipatedCost'
)
this
.
editFormData
[
couponNameIndex
].
isDisabled
=
true
this
.
editFormData
[
anticipatedCostIdx
].
isDisabled
=
true
this
.
editFormData
[
stockIndex
].
isDisabled
=
true
this
.
userDisable
=
true
this
.
userDisable
=
true
}
else
{
}
else
{
this
.
apear
=
'couponAdd'
this
.
apear
=
'couponAdd'
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
c401970
...
@@ -216,15 +216,19 @@ export default {
...
@@ -216,15 +216,19 @@ export default {
this
.
apear
=
'couponSee'
this
.
apear
=
'couponSee'
this
.
showSubmit
=
false
this
.
showSubmit
=
false
this
.
title
=
'查看'
this
.
title
=
'查看'
this
.
editFormData
[
5
].
isHide
=
false
const
editHtmlIndex
=
this
.
editFormData
.
findIndex
(
val
=>
val
.
addHtml
==
'editHtml'
)
this
.
editFormData
[
editHtmlIndex
].
isHide
=
false
}
else
if
(
addOrEdit
==
2
)
{
}
else
if
(
addOrEdit
==
2
)
{
this
.
apear
=
'couponEdit'
this
.
apear
=
'couponEdit'
this
.
title
=
'编辑'
this
.
title
=
'编辑'
}
}
this
.
isDisabled
=
true
this
.
isDisabled
=
true
this
.
editFormData
[
0
].
isDisabled
=
this
.
isDisabled
const
couponNameIndex
=
this
.
editFormData
.
findIndex
(
val
=>
val
.
name
==
'couponName'
)
this
.
editFormData
[
1
].
isDisabled
=
this
.
isDisabled
const
anticipatedCostIndex
=
this
.
editFormData
.
findIndex
(
val
=>
val
.
name
==
'anticipatedCost'
)
this
.
editFormData
[
2
].
isDisabled
=
this
.
isDisabled
const
stockIndex
=
this
.
editFormData
.
findIndex
(
val
=>
val
.
name
==
'stock'
)
this
.
editFormData
[
couponNameIndex
].
isDisabled
=
this
.
isDisabled
this
.
editFormData
[
anticipatedCostIndex
].
isDisabled
=
this
.
isDisabled
this
.
editFormData
[
stockIndex
].
isDisabled
=
this
.
isDisabled
this
.
userDisable
=
true
this
.
userDisable
=
true
}
else
{
}
else
{
this
.
apear
=
'couponAdd'
this
.
apear
=
'couponAdd'
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
c401970
...
@@ -193,7 +193,8 @@ export default {
...
@@ -193,7 +193,8 @@ export default {
if
(
id
)
{
if
(
id
)
{
if
(
addOrEdit
==
3
)
{
if
(
addOrEdit
==
3
)
{
this
.
apear
=
'couponSee'
this
.
apear
=
'couponSee'
this
.
editFormData
[
5
].
isHide
=
false
const
editHtmlIndex
=
this
.
editFormData
.
findIndex
(
val
=>
val
.
addHtml
==
'editHtml'
)
this
.
editFormData
[
editHtmlIndex
].
isHide
=
false
this
.
showSubmit
=
false
this
.
showSubmit
=
false
this
.
title
=
'查看'
this
.
title
=
'查看'
}
else
if
(
addOrEdit
==
2
)
{
}
else
if
(
addOrEdit
==
2
)
{
...
@@ -201,8 +202,12 @@ export default {
...
@@ -201,8 +202,12 @@ export default {
this
.
title
=
'编辑'
this
.
title
=
'编辑'
}
}
this
.
isDisabled
=
true
this
.
isDisabled
=
true
this
.
editFormData
[
0
].
isDisabled
=
this
.
isDisabled
const
couponNameIndex
=
this
.
editFormData
.
findIndex
(
val
=>
val
.
name
==
'couponName'
)
this
.
editFormData
[
1
].
isDisabled
=
this
.
isDisabled
const
anticipatedCostIndex
=
this
.
editFormData
.
findIndex
(
val
=>
val
.
name
==
'anticipatedCost'
)
const
stockIndex
=
this
.
editFormData
.
findIndex
(
val
=>
val
.
name
==
'stock'
)
this
.
editFormData
[
couponNameIndex
].
isDisabled
=
this
.
isDisabled
this
.
editFormData
[
anticipatedCostIndex
].
isDisabled
=
this
.
isDisabled
this
.
editFormData
[
stockIndex
].
isDisabled
=
this
.
isDisabled
this
.
userDisable
=
true
this
.
userDisable
=
true
}
else
{
}
else
{
this
.
apear
=
'couponAdd'
this
.
apear
=
'couponAdd'
...
...
src/views/productGroup/editProduct.vue
View file @
c401970
...
@@ -806,8 +806,8 @@ export default {
...
@@ -806,8 +806,8 @@ export default {
'editForm.expressFee'
(
newValue
,
oldValue
)
{
'editForm.expressFee'
(
newValue
,
oldValue
)
{
this
.
editForm
.
expressFee
=
limitPrice
(
newValue
,
oldValue
,
5
,
2
,
0
,
100000
)
this
.
editForm
.
expressFee
=
limitPrice
(
newValue
,
oldValue
,
5
,
2
,
0
,
100000
)
},
},
// 判断配送发货状态
//
关联优惠券radio,
判断配送发货状态
'editForm.relatedCoupon
Name
'
(
newValue
,
oldValue
)
{
'editForm.relatedCoupon
Id
'
(
newValue
,
oldValue
)
{
if
(
newValue
)
{
if
(
newValue
)
{
let
inx
=
this
.
externalFormList
[
2
].
editFormData
.
findIndex
(
val
=>
val
.
name
==
'deliveryType'
)
let
inx
=
this
.
externalFormList
[
2
].
editFormData
.
findIndex
(
val
=>
val
.
name
==
'deliveryType'
)
this
.
externalFormList
[
2
].
editFormData
[
inx
].
optionList
.
map
(
val
=>
{
this
.
externalFormList
[
2
].
editFormData
[
inx
].
optionList
.
map
(
val
=>
{
...
@@ -823,9 +823,6 @@ export default {
...
@@ -823,9 +823,6 @@ export default {
// this.editForm.deliveryType = 2
// this.editForm.deliveryType = 2
this
.
handleTypeChange
(
this
.
editForm
.
deliveryType
)
this
.
handleTypeChange
(
this
.
editForm
.
deliveryType
)
}
}
},
// 关联优惠券radio
'editForm.relatedCouponId'
(
newValue
,
oldValue
)
{
this
.
associationRadio
=
newValue
this
.
associationRadio
=
newValue
}
}
},
},
...
@@ -1232,6 +1229,7 @@ export default {
...
@@ -1232,6 +1229,7 @@ export default {
goodsStock
:
res
.
goodsStock
+
''
,
goodsStock
:
res
.
goodsStock
+
''
,
supplyPrice
:
res
.
supplyPrice
?
(
res
.
supplyPrice
/
100
).
toFixed
(
2
)
:
''
,
supplyPrice
:
res
.
supplyPrice
?
(
res
.
supplyPrice
/
100
).
toFixed
(
2
)
:
''
,
describeTxt
:
''
,
describeTxt
:
''
,
relatedCouponId
:
''
,
descImgList
:
[],
descImgList
:
[],
businessType
:
[]
businessType
:
[]
}
}
...
...
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