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
1
Merge Requests
1
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
ccdc09eb
Commit
ccdc09eb
authored
Aug 20, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
fix: 修复取消后处理创建入库单时未对同一sku合并处理问题 #1002084 See merge request
!306
parents
43d11fbe
e193f6ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
12 deletions
+29
-12
src/views/order/cancelOrderProcess/index.vue
+29
-12
No files found.
src/views/order/cancelOrderProcess/index.vue
View file @
ccdc09eb
...
...
@@ -711,7 +711,7 @@ const handleEmbryoInStockByCard = async (
})
try
{
otherPurchaseData
.
value
=
[]
if
(
type
!==
'embryoInStock'
)
{
if
(
type
!==
'embryoInStock'
)
{
const
res
=
await
getBySkuAndUserMarkAndInboundTypeApi
(
operationList
.
map
((
r
)
=>
r
.
operationNo
as
string
),
)
...
...
@@ -719,17 +719,34 @@ const handleEmbryoInStockByCard = async (
otherPurchaseData
.
value
=
res
.
data
.
map
((
item
:
InterskuList
)
=>
mapInterskuToProduct
(
item
,
type
),
)
}
else
{
for
(
const
item
of
operationList
){
if
(
!
item
.
thirdSkuCode
)
return
const
userMark
=
item
.
thirdSkuCode
.
includes
(
'JM'
)?
null
:
item
.
thirdSkuCode
.
slice
(
0
,
4
)
const
res
=
await
getBySkuAndUserMarkApi
(
firstWid
,
item
.
thirdSkuCode
,
userMark
)
otherPurchaseData
.
value
=
otherPurchaseData
.
value
.
concat
(
res
.
data
.
map
((
it
:
InterskuList
)
=>
mapInterskuToProduct
(
it
,
type
)
)
)
}
}
else
{
const
userMarkMap
=
operationList
.
reduce
((
acc
,
cur
)
=>
{
if
(
!
cur
.
thirdSkuCode
)
return
acc
const
key
=
cur
.
thirdSkuCode
.
includes
(
'JM'
)
?
''
:
cur
.
thirdSkuCode
.
slice
(
0
,
4
)
if
(
!
acc
[
key
])
{
acc
[
key
]
=
[]
}
if
(
!
acc
[
key
].
includes
(
cur
.
thirdSkuCode
))
{
acc
[
key
].
push
(
cur
.
thirdSkuCode
)
}
return
acc
},
{}
as
Record
<
string
,
string
[]
>
)
const
results
=
await
Promise
.
all
(
Object
.
entries
(
userMarkMap
).
map
(([
userMark
,
skuSet
])
=>
getBySkuAndUserMarkApi
(
firstWid
,
skuSet
.
join
(
','
),
userMark
||
null
,
),
),
)
otherPurchaseData
.
value
=
results
.
flatMap
((
res
)
=>
(
res
.
data
||
[]).
map
((
it
:
InterskuList
)
=>
mapInterskuToProduct
(
it
,
type
),
),
)
}
await
fetchReceiptLocationList
(
''
)
const
listRes
=
await
warehouseInfoGetAll
()
...
...
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