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
237fb353
Commit
237fb353
authored
Aug 14, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 质检样式调整
parent
c23d1ef9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
38 deletions
+58
-38
src/views/order/factoryOrderNew/component/QualityFailDialog.vue
+58
-38
No files found.
src/views/order/factoryOrderNew/component/QualityFailDialog.vue
View file @
237fb353
...
@@ -7,46 +7,48 @@
...
@@ -7,46 +7,48 @@
:destroy-on-close=
"true"
:destroy-on-close=
"true"
@
close=
"handleClose"
@
close=
"handleClose"
>
>
<ElForm
ref=
"formRef"
:model=
"form"
:rules=
"rules"
>
<div
class=
"confirm-body"
>
<div
v-if=
"qualityPassed"
>
<ElIcon
class=
"confirm-tip__icon"
:size=
"24"
>
<div
style=
"margin: 5px 0 20px 0"
>
确定质检通过吗?
</div>
<WarningFilled
/>
</div>
</ElIcon>
<div
v-else
style=
"margin: 0 0 10px 0"
>
<ElForm
ref=
"formRef"
:model=
"form"
:rules=
"rules"
class=
"confirm-form"
>
<div>
确定质检不通过吗?
</div>
<div
class=
"confirm-tip"
>
</div>
{{
qualityPassed
?
'确定质检通过吗?'
:
'确定质检不通过吗?'
}}
<ElFormItem
</div>
v-if=
"!qualityPassed"
<ElFormItem
label=
"原因"
v-if=
"!qualityPassed"
prop=
"qualify_problem_type"
label=
"原因"
>
prop=
"qualify_problem_type"
<ElSelect
>
v-model=
"form.qualify_problem_type"
<ElSelect
placeholder=
"请选择不通过原因"
v-model=
"form.qualify_problem_type"
style=
"width: 100%"
placeholder=
"请选择不通过原因"
clearable
style=
"width: 100%"
filterable
clearable
@
change=
"handleReasonChange"
filterable
@
change=
"handleReasonChange"
>
<ElOption
v-for=
"item in reasonOptions"
:key=
"item.key"
:label=
"item.value"
:value=
"item.key"
/>
</ElSelect>
</ElFormItem>
<ElFormItem
v-if=
"!qualityPassed && form.qualify_problem_type === 5"
label=
"具体原因"
prop=
"qualityIssues"
>
>
<ElOption
<ElInput
v-for=
"item in reasonOptions"
v-model=
"form.qualityIssues"
:key=
"item.key"
placeholder=
"请输入不通过原因"
:label=
"item.value"
clearable
:value=
"item.key"
/>
/>
</ElSelect>
</ElFormItem>
</ElFormItem>
</ElForm>
<ElFormItem
</div>
v-if=
"!qualityPassed && form.qualify_problem_type === 5"
label=
"具体原因"
prop=
"qualityIssues"
>
<ElInput
v-model=
"form.qualityIssues"
placeholder=
"请输入不通过原因"
clearable
/>
</ElFormItem>
</ElForm>
<template
#
footer
>
<template
#
footer
>
<div
class=
"dialog-footer"
style=
"text-align: center"
>
<div
class=
"dialog-footer"
style=
"text-align: center"
>
<ElButton
@
click=
"visible = false"
>
取消
</ElButton>
<ElButton
@
click=
"visible = false"
>
取消
</ElButton>
...
@@ -62,6 +64,7 @@
...
@@ -62,6 +64,7 @@
import
{
computed
,
reactive
,
ref
}
from
'vue'
import
{
computed
,
reactive
,
ref
}
from
'vue'
import
{
ElMessage
}
from
'element-plus'
import
{
ElMessage
}
from
'element-plus'
import
type
{
FormInstance
,
FormRules
}
from
'element-plus'
import
type
{
FormInstance
,
FormRules
}
from
'element-plus'
import
{
WarningFilled
}
from
'@element-plus/icons-vue'
import
{
import
{
getQualityTypeApi
,
getQualityTypeApi
,
qualityPodOrderOperationApi
,
qualityPodOrderOperationApi
,
...
@@ -176,3 +179,20 @@ const handleSubmit = async () => {
...
@@ -176,3 +179,20 @@ const handleSubmit = async () => {
defineExpose
({
open
})
defineExpose
({
open
})
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
.confirm-form
{
flex
:
1
;
min-width
:
0
;
}
.confirm-tip
{
margin-bottom
:
12px
;
line-height
:
24px
;
}
.confirm-tip__icon
{
flex-shrink
:
0
;
color
:
var
(
--el-color-warning
);
}
</
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