Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-commodity
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 cd638a04
authored
Apr 28, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改第二轮提测bug
1 parent
a6e19629
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
src/views/commodity/commodityDetail.vue
src/views/commodity/editCommodity.vue
src/views/commodity/commodityDetail.vue
View file @
cd638a0
...
@@ -50,7 +50,7 @@ export default {
...
@@ -50,7 +50,7 @@ export default {
},
},
{
{
label
:
'所属系列'
,
label
:
'所属系列'
,
name
:
'goodsCode'
name
:
'goodsCode
Name
'
},
},
{
{
label
:
'产品类型'
,
label
:
'产品类型'
,
...
@@ -142,6 +142,11 @@ export default {
...
@@ -142,6 +142,11 @@ export default {
this
.
detailForm
.
baseProductFlag
==
'Y'
?
list
.
push
(
'基础产品'
)
:
''
this
.
detailForm
.
baseProductFlag
==
'Y'
?
list
.
push
(
'基础产品'
)
:
''
this
.
detailForm
.
upgradeProductFlag
==
'Y'
?
list
.
push
(
'升级产品'
)
:
''
this
.
detailForm
.
upgradeProductFlag
==
'Y'
?
list
.
push
(
'升级产品'
)
:
''
this
.
detailForm
.
typeTxt
=
list
.
join
(
','
)
this
.
detailForm
.
typeTxt
=
list
.
join
(
','
)
if
(
list
.
length
!=
2
&&
this
.
detailForm
.
baseProductFlag
==
'Y'
){
this
.
detailForm
.
sellPrice
=
'-'
;
this
.
detailForm
.
minSellPrice
=
'-'
this
.
detailForm
.
productCost
=
'-'
}
})
})
},
},
handleCancel
()
{
handleCancel
()
{
...
...
src/views/commodity/editCommodity.vue
View file @
cd638a0
...
@@ -109,7 +109,7 @@ export default {
...
@@ -109,7 +109,7 @@ export default {
},
},
// 售价
// 售价
'editForm.sellPrice'
(
newValue
,
oldValue
)
{
'editForm.sellPrice'
(
newValue
,
oldValue
)
{
this
.
editForm
.
sellPrice
=
limitPrice
(
newValue
,
oldValue
,
6
,
2
)
this
.
editForm
.
sellPrice
=
limitPrice
(
newValue
,
oldValue
,
6
,
2
,
)
},
},
// 最低售价
// 最低售价
'editForm.minSellPrice'
(
newValue
,
oldValue
)
{
'editForm.minSellPrice'
(
newValue
,
oldValue
)
{
...
@@ -160,7 +160,7 @@ export default {
...
@@ -160,7 +160,7 @@ export default {
},
},
validateProduct
(
goodsCode
)
{
validateProduct
(
goodsCode
)
{
let
isFlag
=
goodsCode
!=
'太阳膜'
let
isFlag
=
goodsCode
!=
'太阳膜'
let
AttrList
=
isFlag
?
[
'售价/元'
,
'最低售价/元'
,
'产品成本/元'
]
:
[
'产品类型'
]
let
AttrList
=
isFlag
?
[
'售价/元'
,
'最低售价/元'
,
'产品成本/元'
]
:
[
'产品类型'
,
'质保年限'
]
this
.
changeFormAttr
(
'editFormData'
,
'isHide'
,
AttrList
,
false
)
this
.
changeFormAttr
(
'editFormData'
,
'isHide'
,
AttrList
,
false
)
if
(
!
isFlag
)
if
(
!
isFlag
)
return
(
val
,
attr
)
=>
{
return
(
val
,
attr
)
=>
{
...
@@ -180,7 +180,7 @@ export default {
...
@@ -180,7 +180,7 @@ export default {
// 产品类型改变
// 产品类型改变
handleCheckChange
(
val
,
attr
)
{
handleCheckChange
(
val
,
attr
)
{
console
.
log
(
val
,
attr
)
console
.
log
(
val
,
attr
)
let
baseAttrList
=
[
'赠送成本/元'
]
let
baseAttrList
=
[
'赠送成本/元'
,
]
let
upAttrList
=
[
'售价/元'
,
'最低售价/元'
,
'产品成本/元'
]
let
upAttrList
=
[
'售价/元'
,
'最低售价/元'
,
'产品成本/元'
]
switch
(
attr
)
{
switch
(
attr
)
{
case
'baseProductFlag'
:
case
'baseProductFlag'
:
...
@@ -199,7 +199,8 @@ export default {
...
@@ -199,7 +199,8 @@ export default {
minSellPrice
:
''
,
minSellPrice
:
''
,
productCost
:
''
,
productCost
:
''
,
warningValue
:
''
,
warningValue
:
''
,
giftCost
:
''
giftCost
:
''
,
warrantyPeriod
:
''
}
}
},
},
changeFormAttr
(
formName
,
attrName
,
labelList
,
attrValue
)
{
changeFormAttr
(
formName
,
attrName
,
labelList
,
attrValue
)
{
...
...
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