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
05464d1a
Commit
05464d1a
authored
Jan 30, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 本次发货数量大于剩余待发货数量”的全部库存sku展示出来
parent
2f9e7868
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
14 deletions
+39
-14
src/views/supply/stockingOrder/SupplierDispatchOrderDialog.vue
+39
-14
No files found.
src/views/supply/stockingOrder/SupplierDispatchOrderDialog.vue
View file @
05464d1a
...
...
@@ -272,20 +272,32 @@ const handleDispatch = async () => {
ElMessage
.
warning
(
'请填写本次发货数量'
)
return
}
if
(
Number
(
item
.
currentShipQuantity
)
>
(
item
.
remainingQuantity
??
0
))
{
try
{
await
ElMessageBox
.
confirm
(
`库存SKU:
${
item
.
warehouseSku
}
本次发货数量大于剩余待发货数量,是否确认发货?`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
},
)
}
catch
{
return
}
}
const
overQuantitySkus
=
(
formData
.
value
.
detailsList
||
[])
.
filter
(
(
item
)
=>
Number
(
item
.
currentShipQuantity
)
>
(
item
.
remainingQuantity
??
0
),
)
.
map
((
item
)
=>
item
.
warehouseSku
)
if
(
overQuantitySkus
.
length
>
0
)
{
try
{
await
ElMessageBox
.
alert
(
`<div style="line-height: 1.6;"><span style="white-space: nowrap; flex-shrink: 0;">库存SKU:</span><span style="word-break: break-all; margin-left: 4px;">
${
overQuantitySkus
.
join
(
','
,
)}
</span><span style="margin-top: 12px;">本次发货数量大于剩余待发货数量,是否确认发货?</span></div>`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
customClass
:
'over-quantity-alert-box'
,
dangerouslyUseHTMLString
:
true
,
},
)
}
catch
{
return
}
}
const
loading
=
ElLoading
.
service
({
...
...
@@ -424,3 +436,16 @@ defineExpose({ open })
margin-top
:
2px
;
}
</
style
>
<
style
>
.over-quantity-alert-box
{
width
:
1000px
!important
;
max-width
:
90vw
!important
;
}
.over-quantity-alert-box
.el-message-box__message
{
word-break
:
break-all
;
line-height
:
1.6
;
padding
:
10px
0
;
}
</
style
>
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