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
2f95fa32
Commit
2f95fa32
authored
Dec 02, 2024
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
质检完成清数据
parent
87c5b231
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
src/views/order/hook/useQuarantine.ts
+9
-2
src/views/order/index.vue
+2
-1
No files found.
src/views/order/hook/useQuarantine.ts
View file @
2f95fa32
...
@@ -133,8 +133,8 @@ export default function useQuarantine() {
...
@@ -133,8 +133,8 @@ export default function useQuarantine() {
const
loadShipmentOrderByCode
=
async
(
code
:
string
,
uid
:
string
)
=>
{
const
loadShipmentOrderByCode
=
async
(
code
:
string
,
uid
:
string
)
=>
{
try
{
try
{
const
res
=
await
getQaOrderBySubOrderNumber
(
code
,
uid
)
const
res
=
await
getQaOrderBySubOrderNumber
(
code
,
uid
)
const
code1
=
code
?.
split
(
'_'
)[
0
]
;
const
code1
=
code
?.
split
(
'_'
)[
0
]
res
.
data
=
res
.
data
.
map
((
item
:
QaData
)
=>
{
res
.
data
=
res
.
data
.
map
((
item
:
QaData
)
=>
{
return
{
return
{
...
item
,
...
item
,
scansNum
:
item
.
inspectionStatus
?
item
.
passNum
:
0
,
scansNum
:
item
.
inspectionStatus
?
item
.
passNum
:
0
,
...
@@ -189,6 +189,12 @@ export default function useQuarantine() {
...
@@ -189,6 +189,12 @@ export default function useQuarantine() {
playAudio
(
'picking_search_error'
)
playAudio
(
'picking_search_error'
)
}
}
}
}
const
toSaveQuarantine
=
async
()
=>
{
await
saveQuarantine
(()
=>
{
sourceData
.
value
=
[]
_sourceData
.
value
=
[]
})
}
// 质检完成
// 质检完成
const
saveQuarantine
=
async
(
callback
?:
()
=>
void
)
=>
{
const
saveQuarantine
=
async
(
callback
?:
()
=>
void
)
=>
{
try
{
try
{
...
@@ -376,6 +382,7 @@ export default function useQuarantine() {
...
@@ -376,6 +382,7 @@ export default function useQuarantine() {
confirmCheck
,
confirmCheck
,
searchQaByOrderNumber
,
searchQaByOrderNumber
,
saveQuarantine
,
saveQuarantine
,
toSaveQuarantine
,
onQaDialogOpened
,
onQaDialogOpened
,
onChangeTab
,
onChangeTab
,
onSuccessQc
,
onSuccessQc
,
...
...
src/views/order/index.vue
View file @
2f95fa32
...
@@ -905,7 +905,7 @@
...
@@ -905,7 +905,7 @@
<
el
-
button
size
=
"large"
@
click
=
"quarantineVisible = false"
<
el
-
button
size
=
"large"
@
click
=
"quarantineVisible = false"
>
取消
>
取消
<
/el-button
>
<
/el-button
>
<
el
-
button
size
=
"large"
type
=
"primary"
@
click
=
"() =>
s
aveQuarantine()"
<
el
-
button
size
=
"large"
type
=
"primary"
@
click
=
"() =>
toS
aveQuarantine()"
>
质检完成
>
质检完成
<
/el-button
>
<
/el-button
>
<
/div
>
<
/div
>
...
@@ -1214,6 +1214,7 @@ const {
...
@@ -1214,6 +1214,7 @@ const {
shipmentUid
,
shipmentUid
,
searchQaByOrderNumber
,
searchQaByOrderNumber
,
saveQuarantine
,
saveQuarantine
,
toSaveQuarantine
,
confirmCheck
,
confirmCheck
,
onQaDialogOpened
,
onQaDialogOpened
,
}
=
quarantine
}
=
quarantine
...
...
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