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 37d57924
authored
Jul 15, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 调整多规格默认排序
1 parent
9fdcc826
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/views/purchaseOrder/components/goodsDetailCom.vue
src/views/purchaseOrder/components/goodsDetailCom.vue
View file @
37d5792
...
@@ -777,7 +777,8 @@ export default {
...
@@ -777,7 +777,8 @@ export default {
let
skuItem
=
goodType
[
elIndex
].
propertyList
.
find
((
skuItem
,
skuItemIndex
)
=>
{
let
skuItem
=
goodType
[
elIndex
].
propertyList
.
find
((
skuItem
,
skuItemIndex
)
=>
{
console
.
log
(
skuItem
.
name
==
el
,
skuItem
.
name
,
el
)
console
.
log
(
skuItem
.
name
==
el
,
skuItem
.
name
,
el
)
// 取第一个默认选中
// 取第一个默认选中
if
(
skuItem
.
name
==
el
&&
index
==
res
.
upgradeGoodsSpecificationValueDTOS
.
length
-
1
)
{
if
(
skuItem
.
name
==
el
&&
index
==
0
)
{
// if (skuItem.name == el && index == res.upgradeGoodsSpecificationValueDTOS.length - 1)
{
goodType
[
elIndex
].
propertyList
[
skuItemIndex
].
selected
=
true
goodType
[
elIndex
].
propertyList
[
skuItemIndex
].
selected
=
true
console
.
log
(
goodType
,
'goodType'
)
console
.
log
(
goodType
,
'goodType'
)
}
}
...
...
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