Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
26a1bab1
Commit
26a1bab1
authored
Jul 09, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复单件打单扫码数据丢失问题 #1001806
parent
c8d0655b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
src/views/order/podUs/PodMakeOrder.vue
+12
-3
No files found.
src/views/order/podUs/PodMakeOrder.vue
View file @
26a1bab1
...
@@ -642,7 +642,8 @@ watch(
...
@@ -642,7 +642,8 @@ watch(
if
(
item
?.
data
)
{
if
(
item
?.
data
)
{
renderItemBox
(
true
)
renderItemBox
(
true
)
}
else
{
}
else
{
if
(
boxIndex
.
value
===
podBoxIndex
.
value
)
{
// 0 号箱为单件,不在播种墙列表中,不应清空当前单件数据
if
(
boxIndex
.
value
===
podBoxIndex
.
value
&&
boxIndex
.
value
!==
0
)
{
podOrderDetailsData
.
value
=
{}
podOrderDetailsData
.
value
=
{}
boxIndex
.
value
=
null
boxIndex
.
value
=
null
}
}
...
@@ -1155,6 +1156,8 @@ const initOrderDetailBox = async (type: 'scan' | 'manual' = 'manual') => {
...
@@ -1155,6 +1156,8 @@ const initOrderDetailBox = async (type: 'scan' | 'manual' = 'manual') => {
}
}
return
item
return
item
})
})
// 当 boxIndex.value 为 0 时,不更新列表数据,防止单件数据丢失
if
(
boxIndex
.
value
!==
0
)
{
const
currentBox
=
boxIndex
.
value
const
currentBox
=
boxIndex
.
value
const
currentBoxItem
=
currentBox
const
currentBoxItem
=
currentBox
?
boxList
.
find
((
item
)
=>
item
.
box
===
currentBox
&&
item
.
data
)
?
boxList
.
find
((
item
)
=>
item
.
box
===
currentBox
&&
item
.
data
)
...
@@ -1166,7 +1169,10 @@ const initOrderDetailBox = async (type: 'scan' | 'manual' = 'manual') => {
...
@@ -1166,7 +1169,10 @@ const initOrderDetailBox = async (type: 'scan' | 'manual' = 'manual') => {
podOrderDetailsData
.
value
?.
productList
?.
forEach
((
el
)
=>
{
podOrderDetailsData
.
value
?.
productList
?.
forEach
((
el
)
=>
{
if
(
!
el
.
previewImgs
)
{
if
(
!
el
.
previewImgs
)
{
if
(
el
.
productMark
===
'custom_normal'
||
el
.
productMark
===
'normal'
)
{
if
(
el
.
productMark
===
'custom_normal'
||
el
.
productMark
===
'normal'
)
{
el
.
previewImgs
=
[{
url
:
el
.
variantImage
||
''
}]
el
.
previewImgs
=
[{
url
:
el
.
variantImage
||
''
}]
}
else
{
}
else
{
el
.
previewImgs
=
el
.
imageAry
el
.
previewImgs
=
el
.
imageAry
...
@@ -1177,7 +1183,8 @@ const initOrderDetailBox = async (type: 'scan' | 'manual' = 'manual') => {
...
@@ -1177,7 +1183,8 @@ const initOrderDetailBox = async (type: 'scan' | 'manual' = 'manual') => {
})
})
if
(
type
!==
'scan'
)
{
if
(
type
!==
'scan'
)
{
coverImage
.
value
=
coverImage
.
value
=
podOrderDetailsData
.
value
?.
productList
?.[
0
]?.
previewImgs
?.[
0
].
url
||
''
podOrderDetailsData
.
value
?.
productList
?.[
0
]?.
previewImgs
?.[
0
].
url
||
''
}
}
if
(
if
(
...
@@ -1187,6 +1194,7 @@ const initOrderDetailBox = async (type: 'scan' | 'manual' = 'manual') => {
...
@@ -1187,6 +1194,7 @@ const initOrderDetailBox = async (type: 'scan' | 'manual' = 'manual') => {
)
{
)
{
podOrderDetailsData
.
value
.
printResult
=
'notPrintSuccess'
podOrderDetailsData
.
value
.
printResult
=
'notPrintSuccess'
}
}
}
const
pickFinished
=
boxList
.
filter
((
item
)
=>
{
const
pickFinished
=
boxList
.
filter
((
item
)
=>
{
return
item
.
data
?.
productList
?.
every
((
product
)
=>
product
.
power
)
return
item
.
data
?.
productList
?.
every
((
product
)
=>
product
.
power
)
})
})
...
@@ -1417,6 +1425,7 @@ const print = (data: OrderData, forcePrint = false, callback?: () => void) => {
...
@@ -1417,6 +1425,7 @@ const print = (data: OrderData, forcePrint = false, callback?: () => void) => {
}
else
{
}
else
{
;(
podOrderDetailsData
.
value
as
OrderData
).
printResult
=
'printFail'
;(
podOrderDetailsData
.
value
as
OrderData
).
printResult
=
'printFail'
}
}
return
}
}
const
factoryNo
=
userStore
.
user
?.
factory
.
id
const
factoryNo
=
userStore
.
user
?.
factory
.
id
if
(
!
factoryNo
)
return
if
(
!
factoryNo
)
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment