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
237b7976
Commit
237b7976
authored
Apr 03, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 拣胚失败创建出库单
parent
d648cbc3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
19 deletions
+37
-19
src/views/order/factoryOrderNew/component/CreateOutboundDialog.vue
+1
-5
src/views/order/factoryOrderNew/component/PickFailDialog.vue
+8
-1
src/views/order/factoryOrderNew/component/WaitingRestockTable.vue
+28
-13
No files found.
src/views/order/factoryOrderNew/component/CreateOutboundDialog.vue
View file @
237b7976
...
@@ -376,10 +376,6 @@ const open = async (params: OpenParams) => {
...
@@ -376,10 +376,6 @@ const open = async (params: OpenParams) => {
const
skuList
=
params
.
items
const
skuList
=
params
.
items
.
map
((
item
)
=>
item
.
thirdSkuCode
)
.
map
((
item
)
=>
item
.
thirdSkuCode
)
.
filter
((
sku
)
=>
!!
sku
)
.
filter
((
sku
)
=>
!!
sku
)
if
(
!
skuList
.
length
)
{
newDialogVisible
.
value
=
true
return
}
const
skuToSuggestQuantity
=
new
Map
<
string
,
number
>
()
const
skuToSuggestQuantity
=
new
Map
<
string
,
number
>
()
params
.
items
.
forEach
((
item
)
=>
{
params
.
items
.
forEach
((
item
)
=>
{
...
@@ -394,7 +390,7 @@ const open = async (params: OpenParams) => {
...
@@ -394,7 +390,7 @@ const open = async (params: OpenParams) => {
try
{
try
{
const
res
=
await
getBySkuAndWarehouseIdApi
(
const
res
=
await
getBySkuAndWarehouseIdApi
(
params
.
warehouseId
,
params
.
warehouseId
,
'JM240915008_LBU_L'
,
skuList
.
join
(
','
)
,
)
)
if
(
res
.
code
!==
200
)
return
if
(
res
.
code
!==
200
)
return
await
fetchWarehouseList
()
await
fetchWarehouseList
()
...
...
src/views/order/factoryOrderNew/component/PickFailDialog.vue
View file @
237b7976
...
@@ -261,7 +261,8 @@ const handleCreateOutbound = () => {
...
@@ -261,7 +261,8 @@ const handleCreateOutbound = () => {
}
}
const
warehouseName
=
firstSelection
.
warehouseName
const
warehouseName
=
firstSelection
.
warehouseName
const
items
=
selections
.
value
.
map
((
item
)
=>
{
const
items
=
selections
.
value
.
map
((
item
)
=>
{
const
row
=
item
as
operateOrderListData
&
{
const
row
=
item
as
operateOrderListData
&
{
thirdSkuCode
?:
string
thirdSkuCode
?:
string
inventory
?:
number
inventory
?:
number
...
@@ -276,6 +277,12 @@ const handleCreateOutbound = () => {
...
@@ -276,6 +277,12 @@ const handleCreateOutbound = () => {
),
),
}
}
})
})
.
filter
((
item
)
=>
item
.
suggestOutQuantity
!==
0
)
if
(
items
.
length
===
0
)
{
ElMessage
.
warning
(
'建议出库数量=0,无法快速创建出库单!'
)
return
}
createOutboundDialogRef
.
value
?.
open
({
createOutboundDialogRef
.
value
?.
open
({
warehouseId
,
warehouseId
,
...
...
src/views/order/factoryOrderNew/component/WaitingRestockTable.vue
View file @
237b7976
...
@@ -109,33 +109,40 @@ const columns = [
...
@@ -109,33 +109,40 @@ const columns = [
render
:
(
row
:
RestockData
)
=>
{
render
:
(
row
:
RestockData
)
=>
{
return
(
return
(
<
el
-
image
<
el
-
image
src
=
{
row
.
skuI
mage
??
''
}
src
=
{
row
.
i
mage
??
''
}
style
=
{{
width
:
'50px'
,
height
:
'50px'
}}
style
=
{{
width
:
'50px'
,
height
:
'50px'
}}
previewSrcList
=
{[
row
.
skuI
mage
??
''
]}
previewSrcList
=
{[
row
.
i
mage
??
''
]}
previewTeleported
previewTeleported
/>
/>
)
)
},
},
},
},
{
{
prop
:
'
product
Name'
,
prop
:
'
sku
Name'
,
label
:
'商品名称'
,
label
:
'商品名称'
,
minWidth
:
140
,
minWidth
:
140
,
showOverflowTooltip
:
true
,
showOverflowTooltip
:
true
,
},
},
{
prop
:
'supplierProductNo'
,
label
:
'款号'
,
width
:
130
},
{
prop
:
'supplierProductNo'
,
label
:
'款号'
,
width
:
130
},
{
{
key
:
'thirdSkuCode'
,
prop
:
'warehouseSku'
,
prop
:
'thirdSkuCode'
,
label
:
'库存SKU'
,
label
:
'库存SKU'
,
width
:
16
0
,
width
:
20
0
,
align
:
'center'
,
align
:
'center'
,
},
},
{
{
prop
:
'
stockOutNum
'
,
prop
:
'
usableInventory
'
,
label
:
'缺货数量'
,
label
:
'缺货数量'
,
width
:
90
,
width
:
90
,
align
:
'right'
,
align
:
'right'
,
render
:
(
row
:
RestockData
)
=>
{
const
v
=
row
.
usableInventory
??
0
return
(
<
span
style
=
"color: #f56c6c; font-weight: bold"
>
{
Math
.
abs
(
v
)}
<
/span
>
)
},
},
},
{
{
label
:
'可用数量'
,
label
:
'可用数量'
,
...
@@ -144,14 +151,13 @@ const columns = [
...
@@ -144,14 +151,13 @@ const columns = [
align
:
'right'
,
align
:
'right'
,
},
},
{
{
key
:
'stockQuantity'
,
prop
:
'inventory'
,
prop
:
'stockQuantity'
,
label
:
'库存数量'
,
label
:
'库存数量'
,
width
:
90
,
width
:
90
,
align
:
'right'
,
align
:
'right'
,
},
},
{
{
prop
:
'occup
iedQuantit
y'
,
prop
:
'occup
yInventor
y'
,
label
:
'占用数量'
,
label
:
'占用数量'
,
width
:
90
,
width
:
90
,
align
:
'right'
,
align
:
'right'
,
...
@@ -178,12 +184,21 @@ const handleReset = () => {
...
@@ -178,12 +184,21 @@ const handleReset = () => {
const
handleRestockCheck
=
async
(
row
:
RestockData
)
=>
{
const
handleRestockCheck
=
async
(
row
:
RestockData
)
=>
{
try
{
try
{
await
restockCheckApi
(
row
.
id
,
row
.
thirdSkuCode
??
''
,
row
.
warehouseId
)
await
ElMessageBox
.
confirm
(
'确定补货校验吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
})
}
catch
{
return
}
try
{
const
res
=
await
restockCheckApi
(
row
.
id
,
row
.
warehouseSku
??
''
,
row
.
warehouseId
)
if
(
res
.
code
!==
200
)
return
ElMessage
.
success
(
'补货校验成功'
)
ElMessage
.
success
(
'补货校验成功'
)
refresh
()
refresh
()
}
catch
(
e
)
{
}
catch
(
e
)
{
const
err
=
e
as
Error
&
{
message
?:
string
}
console
.
error
(
e
)
ElMessage
.
error
(
err
?.
message
||
'补货校验失败'
)
}
}
}
}
...
...
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