Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 727b27ca
authored
Jan 13, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
冒烟问题修改
1 parent
5d8f5da0
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
21 deletions
src/views/goods/grounding/constants/data.js
src/views/goods/grounding/editGrounding.vue
src/views/goods/grounding/groundingDetail.vue
src/views/goods/packageManage/editPackage.vue
src/views/goods/packageManage/packageView.vue
src/views/goods/productManage/components/productForm.vue
src/views/goods/grounding/constants/data.js
View file @
727b27c
...
@@ -191,7 +191,7 @@ export const packageGoodsDetail = [
...
@@ -191,7 +191,7 @@ export const packageGoodsDetail = [
value
:
'goodsName'
value
:
'goodsName'
},
{
},
{
label
:
'所属分类'
,
label
:
'所属分类'
,
value
:
'
g
oodsTypeName'
value
:
'
tempG
oodsTypeName'
},
{
},
{
label
:
'商品ID'
,
label
:
'商品ID'
,
value
:
'upgradeCommodityCode'
value
:
'upgradeCommodityCode'
...
...
src/views/goods/grounding/editGrounding.vue
View file @
727b27c
...
@@ -293,9 +293,8 @@ export default {
...
@@ -293,9 +293,8 @@ export default {
const
resArr
=
[]
const
resArr
=
[]
res
.
list
&&
res
.
list
.
forEach
(
val
=>
{
res
.
list
&&
res
.
list
.
forEach
(
val
=>
{
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
val
.
goodsInfo
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
val
.
goodsInfo
const
result
=
[
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
].
find
(
type
=>
type
)
const
types
=
[
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
]
?
`
${
goodsTypeName
}
-
${[
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
].
find
(
type
=>
type
)}
`
const
result
=
types
.
filter
(
type
=>
type
).
join
(
'-'
)
:
goodsTypeName
val
.
upgradeGoodsList
.
forEach
(
v
=>
{
val
.
upgradeGoodsList
.
forEach
(
v
=>
{
resArr
.
push
({
resArr
.
push
({
confId
:
v
.
id
,
confId
:
v
.
id
,
...
@@ -369,9 +368,8 @@ export default {
...
@@ -369,9 +368,8 @@ export default {
if
(
res
?.
upgradeProductFlag
==
'Y'
)
productType
.
push
(
2
)
if
(
res
?.
upgradeProductFlag
==
'Y'
)
productType
.
push
(
2
)
if
(
res
?.
baseProductFlag
==
'Y'
)
productType
.
push
(
1
)
if
(
res
?.
baseProductFlag
==
'Y'
)
productType
.
push
(
1
)
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
res
.
goodsInfo
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
res
.
goodsInfo
const
result
=
[
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
].
find
(
type
=>
type
)
const
types
=
[
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
]
?
`
${
goodsTypeName
}
-
${[
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
].
find
(
type
=>
type
)}
`
const
result
=
types
.
filter
(
type
=>
type
).
join
(
'-'
)
:
goodsTypeName
res
.
productType
=
productType
// 产品类型
res
.
productType
=
productType
// 产品类型
res
.
upgradePrice
=
res
.
upgradeGoods
?.
upgradePrice
// 参考售价
res
.
upgradePrice
=
res
.
upgradeGoods
?.
upgradePrice
// 参考售价
res
.
positionNames
=
positionNamesArr
.
length
?
positionNamesArr
.
map
(
subItem
=>
{
return
subItem
?.
confName
}).
join
(
'/'
)
:
''
// 部位
res
.
positionNames
=
positionNamesArr
.
length
?
positionNamesArr
.
map
(
subItem
=>
{
return
subItem
?.
confName
}).
join
(
'/'
)
:
''
// 部位
...
...
src/views/goods/grounding/groundingDetail.vue
View file @
727b27c
...
@@ -184,9 +184,8 @@ export default {
...
@@ -184,9 +184,8 @@ export default {
if
(
res
?.
upgradeProductFlag
==
'Y'
)
productType
.
push
(
2
)
if
(
res
?.
upgradeProductFlag
==
'Y'
)
productType
.
push
(
2
)
if
(
res
?.
baseProductFlag
==
'Y'
)
productType
.
push
(
1
)
if
(
res
?.
baseProductFlag
==
'Y'
)
productType
.
push
(
1
)
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
res
.
goodsInfo
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
res
.
goodsInfo
const
result
=
[
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
].
find
(
type
=>
type
)
const
types
=
[
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
]
?
`
${
goodsTypeName
}
-
${[
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
].
find
(
type
=>
type
)}
`
const
result
=
types
.
filter
(
type
=>
type
).
join
(
'-'
)
:
goodsTypeName
const
productTypeTextArr
=
[]
const
productTypeTextArr
=
[]
// 太阳膜/延保类回显部位
// 太阳膜/延保类回显部位
const
positionNamesArr
=
deepClone
(
this
.
positionTypeList
).
filter
(
val
=>
(
res
?.
upgradeGoods
.
position
?.
split
(
','
))?.
includes
(
val
.
position
+
''
))
||
[]
const
positionNamesArr
=
deepClone
(
this
.
positionTypeList
).
filter
(
val
=>
(
res
?.
upgradeGoods
.
position
?.
split
(
','
))?.
includes
(
val
.
position
+
''
))
||
[]
...
...
src/views/goods/packageManage/editPackage.vue
View file @
727b27c
...
@@ -249,9 +249,8 @@ export default {
...
@@ -249,9 +249,8 @@ export default {
const
resArr
=
[]
const
resArr
=
[]
res
.
list
&&
res
.
list
.
forEach
(
val
=>
{
res
.
list
&&
res
.
list
.
forEach
(
val
=>
{
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
val
.
goodsInfo
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
val
.
goodsInfo
const
result
=
[
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
].
find
(
type
=>
type
)
const
types
=
[
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
]
?
`
${
goodsTypeName
}
-
${[
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
].
find
(
type
=>
type
)}
`
const
result
=
types
.
filter
(
type
=>
type
).
join
(
'-'
)
:
goodsTypeName
val
.
upgradeGoodsList
.
forEach
(
v
=>
{
val
.
upgradeGoodsList
.
forEach
(
v
=>
{
resArr
.
push
({
resArr
.
push
({
confId
:
v
.
id
,
confId
:
v
.
id
,
...
@@ -313,9 +312,8 @@ export default {
...
@@ -313,9 +312,8 @@ export default {
const
defaultSelect
=
[]
// 上架商品 默认选中项
const
defaultSelect
=
[]
// 上架商品 默认选中项
res
?.
merchantGoodsInfoList
?.
forEach
(
val
=>
{
res
?.
merchantGoodsInfoList
?.
forEach
(
val
=>
{
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
val
.
goodsInfo
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
val
.
goodsInfo
const
result
=
[
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
].
find
(
type
=>
type
)
const
types
=
[
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
]
?
`
${
goodsTypeName
}
-
${[
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
].
find
(
type
=>
type
)}
`
const
result
=
types
.
filter
(
type
=>
type
).
join
(
'-'
)
:
goodsTypeName
const
positionNamesArr
=
deepClone
(
this
.
positionTypeList
)?.
filter
(
subVal
=>
(
val
?.
upgradeGoods
?.
position
?.
split
(
','
))?.
includes
(
subVal
.
position
+
''
))
||
[]
const
positionNamesArr
=
deepClone
(
this
.
positionTypeList
)?.
filter
(
subVal
=>
(
val
?.
upgradeGoods
?.
position
?.
split
(
','
))?.
includes
(
subVal
.
position
+
''
))
||
[]
res
.
groundingGoodsList
.
push
({
res
.
groundingGoodsList
.
push
({
id
:
val
.
id
,
id
:
val
.
id
,
...
...
src/views/goods/packageManage/packageView.vue
View file @
727b27c
...
@@ -151,9 +151,8 @@ export default {
...
@@ -151,9 +151,8 @@ export default {
arr
=
upgradeSupplyModeList
arr
=
upgradeSupplyModeList
}
}
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
val
.
goodsInfo
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
val
.
goodsInfo
const
result
=
[
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
].
find
(
type
=>
type
)
const
types
=
[
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
]
?
`
${
goodsTypeName
}
-
${[
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
].
find
(
type
=>
type
)}
`
const
result
=
types
.
filter
(
type
=>
type
).
join
(
'-'
)
:
goodsTypeName
this
.
editForm
[
1
].
formBlock
.
push
(
packageGoodsDetail
)
this
.
editForm
[
1
].
formBlock
.
push
(
packageGoodsDetail
)
// 太阳膜类回显部位
// 太阳膜类回显部位
const
positionNamesArr
=
deepClone
(
this
.
positionTypeList
).
filter
(
subVal
=>
(
val
?.
upgradeGoods
?.
position
?.
split
(
','
))?.
includes
(
subVal
.
position
+
''
))
||
[]
const
positionNamesArr
=
deepClone
(
this
.
positionTypeList
).
filter
(
subVal
=>
(
val
?.
upgradeGoods
?.
position
?.
split
(
','
))?.
includes
(
subVal
.
position
+
''
))
||
[]
...
...
src/views/goods/productManage/components/productForm.vue
View file @
727b27c
...
@@ -175,9 +175,9 @@
...
@@ -175,9 +175,9 @@
</el-select>
</el-select>
<!-- 级联选择器 -->
<!-- 级联选择器 -->
<el-cascader
v-else-if=
"item.type === 'cascader'"
:style=
"
{ width: item.width || formItemWidth }" :options="item.optionList"
<el-cascader
v-else-if=
"item.type === 'cascader'"
:style=
"
{ width: item.width || formItemWidth }" :options="item.optionList"
v-model="formData[item.name]" :placeholder="'请选择' + item.label"
v-model="formData[item.name]" :placeholder="'请选择' + item.label"
filterable
@change="selectAddAttr($event, item)" aria-hidden="false"
@change="selectAddAttr($event, item)" aria-hidden="false"
:props="{ checkStrictly: true, label: item.optionLabel, value: item.optionId }"
:show-all-levels="false"
>
:props="{ checkStrictly: true, label: item.optionLabel, value: item.optionId }">
</el-cascader>
</el-cascader>
</el-form-item>
</el-form-item>
</div>
</div>
...
...
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