Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-purchase
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9fdcc826
authored
Jul 15, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug修复
1 parent
c8f1df5c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/views/purchaseOrder/components/goodsDetailCom.vue
src/views/purchaseOrder/components/goodsDetailCom.vue
View file @
9fdcc82
...
@@ -758,6 +758,8 @@ export default {
...
@@ -758,6 +758,8 @@ export default {
// goodsSpecificationNameList 商品
// goodsSpecificationNameList 商品
res
=
res
.
data
res
=
res
.
data
console
.
log
(
res
,
'res'
)
console
.
log
(
res
,
'res'
)
if
(
res
.
specificationType
==
2
)
{
console
.
log
(
res
,
'res'
)
goodType
=
res
.
goodsSpecificationNameList
.
map
((
item
,
index
)
=>
{
goodType
=
res
.
goodsSpecificationNameList
.
map
((
item
,
index
)
=>
{
item
.
name
=
item
.
specificationName
item
.
name
=
item
.
specificationName
item
.
propertyList
=
item
.
goodsSpecificationValueList
.
map
((
el
,
elIndex
)
=>
{
item
.
propertyList
=
item
.
goodsSpecificationValueList
.
map
((
el
,
elIndex
)
=>
{
...
@@ -799,6 +801,7 @@ export default {
...
@@ -799,6 +801,7 @@ export default {
// 获取所有的规格
// 获取所有的规格
this
.
getShopGoodsType
()
this
.
getShopGoodsType
()
this
.
initGoodType
()
this
.
initGoodType
()
}
this
.
goodsInfo
=
res
this
.
goodsInfo
=
res
this
.
tableInfo
=
res
?.
upgradeGoodsList
?.
merchantGoodsInfoList
this
.
tableInfo
=
res
?.
upgradeGoodsList
?.
merchantGoodsInfoList
...
@@ -867,6 +870,7 @@ export default {
...
@@ -867,6 +870,7 @@ export default {
// 判断是否有值
// 判断是否有值
params
.
upgradeGoodsId
&&
params
.
upgradeGoodsId
&&
this
.
$apis
.
purchaseShopping
.
shoppingCarAdd
(
params
).
then
(
res
=>
{
this
.
$apis
.
purchaseShopping
.
shoppingCarAdd
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'res'
)
this
.
$message
.
success
(
'加入购物车成功'
)
this
.
$message
.
success
(
'加入购物车成功'
)
this
.
$EventBus
.
$emit
(
'updateCarShopping'
)
this
.
$EventBus
.
$emit
(
'updateCarShopping'
)
this
.
dialogShow
=
false
this
.
dialogShow
=
false
...
...
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