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
4e94662b
Commit
4e94662b
authored
Aug 14, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:质检bug修复
parent
d7baf909
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
16 deletions
+18
-16
src/types/api/factoryOrderNew/index.ts
+1
-1
src/views/order/components/FastProduction.vue
+4
-2
src/views/order/factoryOrderNew/component/QualityFailDialog.vue
+13
-13
No files found.
src/types/api/factoryOrderNew/index.ts
View file @
4e94662b
...
...
@@ -311,7 +311,7 @@ export interface OrderInventoryData {
export
interface
QualityParams
{
updateParams
:
{
id
:
number
;
version
?:
number
}[]
qualityIssues
:
string
qualify
_problem_t
ype
:
number
|
string
qualify
ProblemT
ype
:
number
|
string
qualityPassed
:
boolean
source
?:
number
// 0 列表页,1 快捷质检
}
...
...
src/views/order/components/FastProduction.vue
View file @
4e94662b
...
...
@@ -832,12 +832,11 @@ const setData = async (
const
res
=
await
qualityPodOrderOperationApi
({
updateParams
:
[{
id
,
version
:
detail
.
value
.
version
}],
qualityIssues
:
''
,
qualify
_problem_t
ype
:
''
,
qualify
ProblemT
ype
:
''
,
qualityPassed
:
true
,
source
:
1
,
})
if
(
res
.
code
!==
200
)
return
emit
(
'onSuccess'
,
[{
id
,
status
:
true
}])
}
else
{
const
res
=
(
await
props
.
completeApi
(
[
id
],
...
...
@@ -1131,6 +1130,9 @@ const trackCodeInput = async () => {
if
(
props
.
fastKey
===
'productionScan'
)
{
await
setData
(
detail
.
value
.
id
.
toString
(),
'auto'
)
}
if
(
props
.
fastKey
===
'qualityScan'
)
{
emit
(
'onSuccess'
,
[{
id
:
detail
.
value
.
id
,
status
:
true
}])
}
playAudio
(
'weight_search_success'
)
trackingNumberRef
.
value
&&
trackingNumberRef
.
value
.
focus
()
...
...
src/views/order/factoryOrderNew/component/QualityFailDialog.vue
View file @
4e94662b
...
...
@@ -3,6 +3,7 @@
v-model=
"visible"
:title=
"qualityPassed ? '质检通过' : '质检不通过'"
width=
"450px"
top=
"30vh"
:close-on-click-modal=
"false"
:destroy-on-close=
"true"
@
close=
"handleClose"
...
...
@@ -18,10 +19,10 @@
<ElFormItem
v-if=
"!qualityPassed"
label=
"原因"
prop=
"qualify
_problem_t
ype"
prop=
"qualify
ProblemT
ype"
>
<ElSelect
v-model=
"form.qualify
_problem_t
ype"
v-model=
"form.qualify
ProblemT
ype"
placeholder=
"请选择不通过原因"
style=
"width: 100%"
clearable
...
...
@@ -37,7 +38,7 @@
</ElSelect>
</ElFormItem>
<ElFormItem
v-if=
"!qualityPassed && form.qualify
_problem_t
ype === 5"
v-if=
"!qualityPassed && form.qualify
ProblemT
ype === 5"
label=
"具体原因"
prop=
"qualityIssues"
>
...
...
@@ -84,22 +85,22 @@ const updateParams = ref<{ id: number; version?: number }[]>([])
const
reasonOptions
=
ref
<
QualityTypeItem
[]
>
([])
const
form
=
reactive
<
{
qualify
_problem_t
ype
:
number
|
string
qualify
ProblemT
ype
:
number
|
string
qualityIssues
:
string
}
>
({
qualify
_problem_t
ype
:
''
,
qualify
ProblemT
ype
:
''
,
qualityIssues
:
''
,
})
const
rules
=
computed
<
FormRules
>
(()
=>
{
if
(
qualityPassed
.
value
)
return
{}
const
result
:
FormRules
=
{
qualify
_problem_t
ype
:
[
qualify
ProblemT
ype
:
[
{
required
:
true
,
message
:
'请选择不通过原因'
,
trigger
:
'change'
},
],
}
if
(
form
.
qualify
_problem_type
&&
form
.
qualify_problem_t
ype
===
5
)
{
result
.
qualify
_problem_t
ype
=
[
if
(
form
.
qualify
ProblemType
&&
form
.
qualifyProblemT
ype
===
5
)
{
result
.
qualify
ProblemT
ype
=
[
{
required
:
true
,
message
:
'请输入不通过原因'
,
trigger
:
'blur'
},
]
}
...
...
@@ -118,11 +119,10 @@ const loadReasons = async () => {
const
handleReasonChange
=
()
=>
{
form
.
qualityIssues
=
form
.
qualify
_problem_t
ype
===
5
form
.
qualify
ProblemT
ype
===
5
?
''
:
reasonOptions
.
value
.
find
(
(
item
)
=>
item
.
key
===
form
.
qualify_problem_type
,
)?.
value
||
''
:
reasonOptions
.
value
.
find
((
item
)
=>
item
.
key
===
form
.
qualifyProblemType
)
?.
value
||
''
formRef
.
value
?.
clearValidate
(
'qualityIssues'
)
}
...
...
@@ -138,7 +138,7 @@ const open = (
}))
qualityPassed
.
value
=
passed
source
.
value
=
sourceType
form
.
qualify
_problem_t
ype
=
''
form
.
qualify
ProblemT
ype
=
''
form
.
qualityIssues
=
''
visible
.
value
=
true
if
(
!
passed
)
void
loadReasons
()
...
...
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