Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
mes-ui
Commits
c8c01439
Commit
c8c01439
authored
Sep 23, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复生产版本bug
parent
0d7d3f20
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
8 deletions
+49
-8
ProogingProcess.vue
...mes/pro/productionSolution/components/ProogingProcess.vue
+32
-5
proofingApply.vue
src/views/mes/pro/productionSolution/proofingApply.vue
+1
-1
proofingInfo.vue
src/views/mes/pro/productionSolution/proofingInfo.vue
+16
-2
No files found.
src/views/mes/pro/productionSolution/components/ProogingProcess.vue
View file @
c8c01439
...
...
@@ -88,12 +88,20 @@
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-
inpu
t
<el-
selec
t
v-model=
"scope.row.stdWorkingTimeUom"
placeholder=
""
:disabled=
"mode == 'info'"
clearable
/>
:disabled=
"mode == 'info'"
placeholder=
"请选择工时单位"
>
<el-option
v-for=
"dict in dict.type.mes_work_time"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
>
</el-option>
</el-select>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -474,6 +482,7 @@ export default {
"process_control_code"
,
"sys_yes_no"
,
"mes_time_type"
,
"mes_work_time"
,
"product_shape"
,
],
props
:
{
...
...
@@ -693,7 +702,25 @@ export default {
});
},
getComData
()
{
return
this
.
tableData
.
filter
(
item
=>
Object
.
values
(
item
).
some
(
v
=>
v
&&
v
.
length
>
0
)
);
let
isNULL
=
false
for
(
let
i
=
0
;
i
<
this
.
tableData
.
length
;
i
++
)
{
const
item
=
this
.
tableData
[
i
]
console
.
log
(
'item'
,
item
)
if
(
item
.
processName
&&
!
item
.
workstationId
)
{
this
.
$message
.
warning
(
'工作中心必选'
)
isNULL
=
true
break
}
else
if
(
item
.
processName
&&
!
item
.
stdWorkingTime
)
{
this
.
$message
.
warning
(
'标准工时必填'
)
isNULL
=
true
break
}
}
console
.
log
(
'isNULL'
,
isNULL
)
if
(
isNULL
)
{
return
isNULL
}
return
this
.
tableData
.
filter
(
v
=>
v
&&
v
.
processName
&&
v
.
workstationId
&&
v
.
stdWorkingTime
);
},
/**重置表单 */
resetForm
()
{
...
...
src/views/mes/pro/productionSolution/proofingApply.vue
View file @
c8c01439
...
...
@@ -158,7 +158,7 @@ export default {
{
value
:
"销售"
,
label
:
"销售"
},
{
value
:
"特定"
,
label
:
"特定"
},
],
productionSolutionList
:
[],
// 表单参数
form
:
{},
// 表单校验
...
...
src/views/mes/pro/productionSolution/proofingInfo.vue
View file @
c8c01439
...
...
@@ -276,6 +276,7 @@ export default {
saveForm
()
{
const
bomHead
=
this
.
$refs
.
ProogingBomRef
.
getComData
();
const
processList
=
this
.
$refs
.
ProogingProcessRef
.
getComData
();
if
(
typeof
processList
===
'boolean'
)
return
const
params
=
{
...
this
.
form
,
bomHead
,
...
...
@@ -293,9 +294,16 @@ export default {
this
.
$nextTick
(()
=>
{
// 关闭页签
tabPlugins
.
closeOpenPage
();
this
.
$router
.
replace
({
this
.
$tab
.
closePage
({
path
:
"/mes/md/production"
,
name
:
"Production"
});
this
.
$nextTick
(()
=>
{
this
.
$router
.
replace
({
path
:
"/mes/md/production"
,
});
})
})
})
.
catch
(()
=>
{
...
...
@@ -309,9 +317,15 @@ export default {
this
.
$nextTick
(()
=>
{
// 关闭页签
tabPlugins
.
closeOpenPage
();
this
.
$router
.
replace
({
this
.
$tab
.
closePage
({
path
:
"/mes/md/production"
,
name
:
"Production"
});
this
.
$nextTick
(()
=>
{
this
.
$router
.
replace
({
path
:
"/mes/md/production"
,
});
})
})
})
.
catch
(()
=>
{
...
...
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