Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c7cbc0f9
authored
Sep 04, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(CreateOrder): 修复商品选择后数据未正确重置的问题
重置externalData以确保每次选择商品时数据正确
1 parent
835faa9d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
pages/boutique/tool/components/CreateOrder.vue
pages/boutique/tool/components/CreateOrder.vue
View file @
c7cbc0f
...
...
@@ -288,6 +288,7 @@ export default {
const
productFields
=
[
'frontGear'
,
'frontWindow'
,
'rearGear'
,
'rearWindow'
,
'sunRoof'
,
'package'
,
'skuGoods'
]
if
(
productFields
.
includes
(
val
.
value
))
{
this
.
valueKey
=
val
.
value
this
.
externalData
=
utils
.
deepClone
(
this
.
goodsList
)
}
console
.
log
(
this
.
popupType
,
this
.
externalData
,
'-------------'
)
this
.
$refs
.
orderPopup
.
open
()
...
...
@@ -303,6 +304,7 @@ export default {
// 弹窗确认回调
onConfirm
(
val
)
{
console
.
log
(
val
,
'onConfirm'
)
this
.
externalData
=
[]
// const { chooseContent } = val
const
chooseContent
=
utils
.
deepClone
(
val
.
chooseContent
)
// 根据popupTypeEnum优化处理
...
...
@@ -693,6 +695,7 @@ export default {
merchantId
:
userInfo
.
shopMerchantId
,
sceneType
:
userInfo
.
sceneType
})
this
.
goodsList
=
res
// 分类映射
const
posMap
=
{
...
...
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