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
c9893ce8
Commit
c9893ce8
authored
Sep 15, 2025
by
wuqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复校验
parent
ab093293
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
28 deletions
+27
-28
src/views/order/podCN/PodMakeOrder.vue
+27
-28
No files found.
src/views/order/podCN/PodMakeOrder.vue
View file @
c9893ce8
...
...
@@ -247,7 +247,6 @@ import useOrderStore from '@/store/cnOrder'
import
{
getPackingCnDataApi
,
clearBoxApi
,
clearAllBoxApi
,
getPodBoxListApi
,
submitInspectionApi
,
}
from
'@/api/podCnOrder'
...
...
@@ -906,33 +905,33 @@ const print = (data: OrderData, forcePrint = false, callback?: () => void) => {
})
})
}
const
clearAllBox
=
async
()
=>
{
try
{
await
ElMessageBox
.
alert
(
'确定清空所有箱子吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
})
}
catch
{
productionOrderRef
.
value
.
focus
()
return
}
try
{
const
res
=
await
clearAllBoxApi
()
if
(
res
.
code
!==
200
)
return
orderStore
.
setPodBoxList
({
boxList
:
res
.
data
,
factoryNo
:
userStore
.
user
?.
factory
.
id
||
''
,
warehouseId
:
warehouseId
.
value
,
})
productionOrderRef
.
value
.
focus
()
podOrderDetailsData
.
value
=
{}
coverImage
.
value
=
''
boxIndex
.
value
=
null
}
catch
(
error
)
{
productionOrderRef
.
value
.
focus
()
console
.
error
(
error
)
}
}
//
const clearAllBox = async () => {
//
try {
//
await ElMessageBox.alert('确定清空所有箱子吗?', '提示', {
//
confirmButtonText: '确定',
//
cancelButtonText: '取消',
//
})
//
} catch {
//
productionOrderRef.value.focus()
//
return
//
}
//
try {
//
const res = await clearAllBoxApi()
//
if (res.code !== 200) return
//
orderStore.setPodBoxList({
//
boxList: res.data,
//
factoryNo: userStore.user?.factory.id || '',
//
warehouseId: warehouseId.value,
//
})
//
productionOrderRef.value.focus()
//
podOrderDetailsData.value = {}
//
coverImage.value = ''
//
boxIndex.value = null
//
} catch (error) {
//
productionOrderRef.value.focus()
//
console.error(error)
//
}
//
}
const
handleRowClick
=
(
row
:
ProductList
)
=>
{
console
.
log
(
907
,
row
)
coverImage
.
value
=
row
.
previewImgs
?.[
0
]?.
url
||
''
...
...
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