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
44ae4dd5
Commit
44ae4dd5
authored
Jun 16, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:去掉 拣胚失败、补胚失败的出库数量校验
parent
3221af81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
src/types/api/warehouse.ts
+2
-1
src/views/order/factoryOrderNew/component/CreateOutboundDialog.vue
+6
-5
No files found.
src/types/api/warehouse.ts
View file @
44ae4dd5
...
@@ -63,7 +63,8 @@ export interface InterWarehousePage extends InterWarehouseBase { }
...
@@ -63,7 +63,8 @@ export interface InterWarehousePage extends InterWarehouseBase { }
export
interface
InterWarehouseDetail
extends
InterWarehouseBase
{
export
interface
InterWarehouseDetail
extends
InterWarehouseBase
{
currencyName
?:
string
currencyName
?:
string
currencyCode
?:
string
currencyCode
?:
string
productList
:
InterProductList
[]
productList
:
InterProductList
[],
outRecordType
?:
string
}
}
export
interface
ExportInWarehouseInfo
extends
warehouseSearchForm
{
export
interface
ExportInWarehouseInfo
extends
warehouseSearchForm
{
total
?:
number
total
?:
number
...
...
src/views/order/factoryOrderNew/component/CreateOutboundDialog.vue
View file @
44ae4dd5
...
@@ -325,11 +325,11 @@ const addOtherCurrency = async () => {
...
@@ -325,11 +325,11 @@ const addOtherCurrency = async () => {
ElMessage
.
error
(
'请输入出库数量'
)
ElMessage
.
error
(
'请输入出库数量'
)
return
return
}
}
const
usableInventory
=
arr
[
i
].
usableInventory
||
0
//
const usableInventory = arr[i].usableInventory || 0
if
((
arr
[
i
].
outCount
as
number
)
>
usableInventory
)
{
//
if ((arr[i].outCount as number) > usableInventory) {
ElMessage
.
error
(
'出库数量不能大于可用库存数量'
)
//
ElMessage.error('出库数量不能大于可用库存数量')
return
//
return
}
//
}
if
(
!
arr
[
i
].
locationId
)
{
if
(
!
arr
[
i
].
locationId
)
{
ElMessage
.
error
(
'请选择库位'
)
ElMessage
.
error
(
'请选择库位'
)
return
return
...
@@ -338,6 +338,7 @@ const addOtherCurrency = async () => {
...
@@ -338,6 +338,7 @@ const addOtherCurrency = async () => {
const
params
:
InterWarehouseDetail
=
{
const
params
:
InterWarehouseDetail
=
{
...
editForm
.
value
,
...
editForm
.
value
,
productList
:
otherPurchaseData
.
value
,
productList
:
otherPurchaseData
.
value
,
outRecordType
:
'picking_replenish'
}
}
try
{
try
{
await
addOutRecordApi
(
params
)
await
addOutRecordApi
(
params
)
...
...
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