Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
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 a2e636e0
authored
Jan 22, 2024
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改bug
1 parent
6db15120
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
9 deletions
src/views/goods/add.vue
src/views/goods/addPrefer.vue
src/views/goods/components/selectGoods.vue
src/views/goods/add.vue
View file @
a2e636e
...
...
@@ -593,7 +593,11 @@ export default {
,
closeDialog
()
{
if
(
!
this
.
merchantDialogVisible
&&
!
this
.
formObj
.
smartcarlifeInfoId
)
{
return
this
.
$message
.
error
(
'请先选择商品'
)
return
this
.
$message
({
message
:
'请选择商品'
,
type
:
'error'
,
customClass
:
'message-Z-zinde'
})
}
this
.
merchantDialogVisible
=
!
this
.
merchantDialogVisible
}
...
...
src/views/goods/addPrefer.vue
View file @
a2e636e
...
...
@@ -374,6 +374,12 @@ export default {
name
:
'marketPrice'
,
type
:
'showTxt'
,
isHide
:
true
},
{
label
:
'库存'
,
name
:
'goodsStock'
,
type
:
'showTxt'
,
isHide
:
true
}
// {
// label: '颜色',
...
...
@@ -690,9 +696,9 @@ export default {
this
.
expressInfoFormData
=
e
==
2
?
selfGoodsExpreeCol
:
defaultExpreeColFn
(
this
)
this
.
goodsFormData
.
forEach
(
item
=>
{
item
.
isHide
=
(
item
.
name
==
'retailPrice'
||
item
.
name
==
'minSellPrice'
)
&&
(
e
==
2
||
e
==
4
)
if
((
item
.
name
==
'marketPrice'
||
item
.
name
==
'sellPrice'
||
item
.
name
==
'goodsSkuName'
)
&&
e
==
4
)
{
if
((
item
.
name
==
'marketPrice'
||
item
.
name
==
'sellPrice'
||
item
.
name
==
'goodsSkuName'
||
item
.
name
==
'goodsStock'
)
&&
e
==
4
)
{
item
.
isHide
=
false
}
else
if
((
item
.
name
==
'marketPrice'
||
item
.
name
==
'sellPrice'
||
item
.
name
==
'goodsSkuName'
)
&&
e
!=
4
)
{
}
else
if
((
item
.
name
==
'marketPrice'
||
item
.
name
==
'sellPrice'
||
item
.
name
==
'goodsSkuName'
||
item
.
name
==
'goodsStock'
)
&&
e
!=
4
)
{
item
.
isHide
=
true
}
else
if
(
e
==
4
&&
item
.
name
==
'goodsName'
)
{
item
.
isHide
=
true
...
...
@@ -876,7 +882,7 @@ export default {
}
},
setYzhGoodsInfo
(
e
)
{
const
{
goodsSkuName
,
goodsImgUrl
,
goodsSkuCode
,
marketPrice
,
sellPrice
}
=
e
const
{
goodsSkuName
,
goodsImgUrl
,
goodsSkuCode
,
marketPrice
,
sellPrice
,
goodsStock
}
=
e
this
.
formObj
=
{
...
this
.
formObj
,
goodsSource
:
4
,
...
...
@@ -889,7 +895,8 @@ export default {
marketPrice
,
sellPrice
,
coverList
:
[
goodsImgUrl
],
smartcarlifeInfoId
:
e
.
id
smartcarlifeInfoId
:
e
.
id
,
goodsStock
}
},
confirmDialog
(
e
)
{
...
...
src/views/goods/components/selectGoods.vue
View file @
a2e636e
...
...
@@ -292,7 +292,7 @@ export default {
startSellPrice
:
''
,
endSellPrice
:
''
,
startDiffPrice
:
''
,
endDiffPrice
:
''
,
endDiffPrice
:
''
}
}
},
...
...
@@ -366,14 +366,14 @@ export default {
goodsName
:
''
,
discoverGoodsId
:
''
,
goodsType
:
''
,
shelvesStatus
:
''
,
shelvesStatus
:
''
}
this
.
yzhSearchForm
=
{
categoryCode
:
[],
startSellPrice
:
''
,
endSellPrice
:
''
,
startDiffPrice
:
''
,
endDiffPrice
:
''
,
endDiffPrice
:
''
}
this
.
resetTable
()
},
...
...
@@ -415,7 +415,12 @@ export default {
},
handleConfirm
()
{
if
(
Object
.
keys
(
this
.
curInfo
).
length
)
this
.
$emit
(
'handleGoodsConfirm'
,
this
.
curInfo
)
else
this
.
$message
.
error
(
'请选择商品'
)
else
this
.
$message
({
message
:
'请选择商品'
,
type
:
'error'
,
customClass
:
'message-Z-zinde'
})
}
}
}
...
...
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