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
60af6898
Commit
60af6898
authored
Aug 14, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat; 质检样式调整
parent
100577c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
22 deletions
+48
-22
src/views/order/factoryOrderFlowConfig/index.vue
+43
-20
src/views/order/factoryOrderNew/component/QualityFailDialog.vue
+5
-2
No files found.
src/views/order/factoryOrderFlowConfig/index.vue
View file @
60af6898
<
template
>
<div
class=
"page card h-100 flex-gap-10 overflow-hidden flex flex-column"
>
<div
class=
"flow-config-container"
>
<div
class=
"flow-steps"
>
<div
v-for=
"item in showFlowConfigList"
:key=
"item.code"
class=
"flow-step"
>
{{
item
.
name
}}
<div
class=
"page-wrap"
>
<div
class=
"page card h-100 overflow-hidden"
>
<div
class=
"flow-config-container"
>
<div
class=
"flow-steps"
>
<div
v-for=
"item in showFlowConfigList"
:key=
"item.code"
class=
"flow-step"
>
{{
item
.
name
}}
</div>
</div>
<div
class=
"step-button mt-10"
>
<el-checkbox
v-model=
"draftSkipInspect"
>
跳过质检流程 (跳过后生产完成到待配货状态)
</el-checkbox>
</div>
</div>
<div
class=
"step-button flex-1 mt-10"
>
<el-checkbox
v-model=
"draftSkipInspect"
>
跳过质检流程 (跳过后生产完成到待配货状态)
</el-checkbox>
</div>
</div>
<div
class=
"footer-actions"
>
...
...
@@ -39,12 +41,19 @@ const factoryOrderFlowConfig = ref<FactoryOrderFlowConfig>()
/** 勾选草稿,仅保存后同步到已生效配置 */
const
draftSkipInspect
=
ref
(
false
)
const
STEP_WIDTH
=
150
const
showFlowConfigList
=
computed
(()
=>
draftSkipInspect
.
value
?
flowConfigList
.
value
.
filter
((
item
)
=>
item
.
code
!==
'INSPECTION'
)
:
flowConfigList
.
value
,
)
/** 按完整步骤数预留宽度,勾选后容器不收缩,避免居中抖动 */
const
fullStepsWidth
=
computed
(
()
=>
`
${
flowConfigList
.
value
.
length
*
STEP_WIDTH
}
px`
,
)
// 获取质检状态
const
getConfig
=
async
()
=>
{
const
res
=
await
getFactoryOrderFlowConfigApi
()
...
...
@@ -108,21 +117,35 @@ onMounted(async () => {
</
script
>
<
style
lang=
"scss"
scoped
>
.page-wrap
{
position
:
relative
;
height
:
100%
;
}
.page
{
width
:
1200px
;
margin
:
0
auto
;
}
.flow-config-container
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
flex-start
;
flex
:
1
;
min-height
:
0
;
width
:
fit-content
;
margin-left
:
25%
;
margin-top
:
50px
;
width
:
max-content
;
min-width
:
v-bind
(
fullStepsWidth
);
margin
:
50px
auto
0
;
}
.footer-actions
{
position
:
absolute
;
bottom
:
-10px
;
left
:
-10px
;
right
:
-50px
;
z-index
:
1
;
display
:
flex
;
justify-content
:
center
;
flex-shrink
:
0
;
padding
:
16px
0
;
background
:
rgba
(
144
,
147
,
153
,
0.2
);
}
.flow-steps
{
...
...
src/views/order/factoryOrderNew/component/QualityFailDialog.vue
View file @
60af6898
...
...
@@ -8,8 +8,11 @@
@
close=
"handleClose"
>
<ElForm
ref=
"formRef"
:model=
"form"
:rules=
"rules"
>
<div
class=
"mb-10"
>
{{
qualityPassed
?
'确定质检通过吗?'
:
'确定质检不通过吗?'
}}
<div
v-if=
"qualityPassed"
>
<div
style=
"margin: 5px 0 20px 0"
>
确定质检通过吗?
</div>
</div>
<div
v-else
style=
"margin: 0 0 10px 0"
>
<div>
确定质检不通过吗?
</div>
</div>
<ElFormItem
v-if=
"!qualityPassed"
...
...
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