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
e61f0357
Commit
e61f0357
authored
Jun 16, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 未入过库的商品统一填充仓库名称
parent
59460180
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
src/views/order/factoryOrderNew/component/OrderInventoryDialog.vue
+18
-3
No files found.
src/views/order/factoryOrderNew/component/OrderInventoryDialog.vue
View file @
e61f0357
...
@@ -142,7 +142,7 @@ const filterForm = ref({
...
@@ -142,7 +142,7 @@ const filterForm = ref({
warehouseId
:
undefined
as
number
|
undefined
,
warehouseId
:
undefined
as
number
|
undefined
,
warehouseSku
:
''
,
warehouseSku
:
''
,
productNo
:
''
,
productNo
:
''
,
inventoryStatus
:
undefined
as
string
|
undefined
,
inventoryStatus
:
undefined
as
number
|
undefined
,
})
})
const
buildQueryParams
=
()
=>
({
const
buildQueryParams
=
()
=>
({
...
@@ -153,6 +153,19 @@ const buildQueryParams = () => ({
...
@@ -153,6 +153,19 @@ const buildQueryParams = () => ({
inventoryStatus
:
filterForm
.
value
.
inventoryStatus
||
undefined
,
inventoryStatus
:
filterForm
.
value
.
inventoryStatus
||
undefined
,
})
})
const
applyQueryWarehouseName
=
(
records
:
OrderInventoryData
[])
=>
{
const
{
inventoryStatus
,
warehouseId
}
=
filterForm
.
value
if
(
inventoryStatus
!==
3
||
!
warehouseId
)
{
return
records
}
const
warehouseName
=
props
.
warehouseList
.
find
((
w
)
=>
w
.
id
===
warehouseId
)
?.
name
return
records
.
map
((
record
)
=>
({
...
record
,
warehouseName
,
}))
}
const
{
const
{
loading
,
loading
,
currentPage
,
currentPage
,
...
@@ -171,7 +184,10 @@ const {
...
@@ -171,7 +184,10 @@ const {
current
,
current
,
size
,
size
,
)
)
return
res
.
data
return
{
...
res
.
data
,
records
:
applyQueryWarehouseName
(
res
.
data
.
records
),
}
},
},
})
})
...
@@ -294,7 +310,6 @@ const columns = [
...
@@ -294,7 +310,6 @@ const columns = [
align
:
'right'
,
align
:
'right'
,
},
},
]
]
const
handleSearch
=
()
=>
{
const
handleSearch
=
()
=>
{
refresh
()
refresh
()
}
}
...
...
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