Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
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-pad
Commits
e4df7608
Commit
e4df7608
authored
Mar 12, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改开始作业和暂停作业传回的参数
parent
e1f9027f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
index.vue
pages/mes/prodReport/index.vue
+7
-5
No files found.
pages/mes/prodReport/index.vue
View file @
e4df7608
...
...
@@ -1001,7 +1001,7 @@ userTempVisible: false,
if
(
item
.
status
===
'BEGINNING'
)
{
status
=
true
;
}
else
{
this
.
changeStatus
(
item
.
taskId
,
item
.
taskWorkunitId
,
'BEGINNING'
);
this
.
changeStatus
(
item
.
taskId
,
item
.
taskWorkunitId
,
'BEGINNING'
,
item
.
workunitId
);
}
});
if
(
status
)
{
...
...
@@ -1017,7 +1017,7 @@ userTempVisible: false,
break
;
case
'FinshTask'
:
this
.
tableSelectData
.
forEach
((
item
)
=>
{
this
.
changeStatus
(
item
.
taskId
,
item
.
taskWorkunitId
,
'FINISHED'
);
this
.
changeStatus
(
item
.
taskId
,
item
.
taskWorkunitId
,
'FINISHED'
,
item
.
workunitId
);
});
this
.
getTaskList
();
break
;
...
...
@@ -1155,7 +1155,7 @@ userTempVisible: false,
},
stopReasonSubmit
()
{
this
.
tableSelectData
.
forEach
((
item
)
=>
{
this
.
changeStop
(
item
.
taskId
,
item
.
taskWorkunitId
,
'PAUSE'
);
this
.
changeStop
(
item
.
taskId
,
item
.
taskWorkunitId
,
'PAUSE'
,
item
.
workunitId
);
});
this
.
getTaskList
();
},
...
...
@@ -1299,13 +1299,14 @@ userTempVisible: false,
}
});
},
changeStatus
(
taskId
,
taskWorkunitId
,
status
)
{
changeStatus
(
taskId
,
taskWorkunitId
,
status
,
workunitId
)
{
// this.form.status = status;
this
.
$u
.
api
.
changeStatus
({
taskId
:
taskId
,
status
:
status
,
taskWorkunitId
:
taskWorkunitId
,
workunitId
:
workunitId
,
attr1
:
this
.
stopReason
})
.
then
((
res
)
=>
{
...
...
@@ -1317,13 +1318,14 @@ userTempVisible: false,
});
},
//暂停作业
changeStop
(
taskId
,
taskWorkunitId
,
status
)
{
changeStop
(
taskId
,
taskWorkunitId
,
status
,
workunitId
)
{
// this.form.status = status;
this
.
$u
.
api
.
changeStatus
({
taskId
:
taskId
,
status
:
status
,
taskWorkunitId
:
taskWorkunitId
,
workunitId
:
workunitId
,
attr1
:
this
.
stopReasonForm
.
reason
,
attr2
:
this
.
stopReasonForm
.
desc
})
...
...
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