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
2d0cb090
Commit
2d0cb090
authored
Mar 25, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改提示判断
parent
7ceb7855
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
index.vue
pages/mes/prodReport/index.vue
+7
-4
No files found.
pages/mes/prodReport/index.vue
View file @
2d0cb090
...
@@ -1149,7 +1149,7 @@ export default {
...
@@ -1149,7 +1149,7 @@ export default {
this
.
$u
.
toast
(
res
.
msg
)
this
.
$u
.
toast
(
res
.
msg
)
}
}
})
})
this
.
changeStatus
(
item
.
taskId
,
item
.
taskWorkunitId
,
'BEGINNING'
,
item
.
workunitId
);
this
.
changeStatus
(
item
.
taskId
,
item
.
taskWorkunitId
,
'BEGINNING'
,
item
.
workunitId
,
false
);
}
}
});
});
if
(
status
)
{
if
(
status
)
{
...
@@ -1522,7 +1522,7 @@ export default {
...
@@ -1522,7 +1522,7 @@ export default {
}
}
});
});
},
},
changeStatus
(
taskId
,
taskWorkunitId
,
status
,
workunitId
)
{
changeStatus
(
taskId
,
taskWorkunitId
,
status
,
workunitId
,
showToast
)
{
// this.form.status = status;
// this.form.status = status;
this
.
$u
.
api
this
.
$u
.
api
.
changeStatus
({
.
changeStatus
({
...
@@ -1533,8 +1533,11 @@ export default {
...
@@ -1533,8 +1533,11 @@ export default {
attr1
:
this
.
stopReason
attr1
:
this
.
stopReason
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
showToast
||
true
// this.$u.toast('变更成功');
const
showToast
=
showToast
===
false
?
false
:
true
if
(
showToast
)
{
this
.
$u
.
toast
(
'变更成功'
);
}
uni
.
$emit
(
'taskStatusChanged'
);
//任务状态变更
uni
.
$emit
(
'taskStatusChanged'
);
//任务状态变更
this
.
getTaskList
();
this
.
getTaskList
();
}
}
...
...
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