Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
6ceaea37
Commit
6ceaea37
authored
Apr 02, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aps
parent
e0da64c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
index.vue
pages/aps/aps/index.vue
+19
-4
No files found.
pages/aps/aps/index.vue
View file @
6ceaea37
...
@@ -332,7 +332,7 @@ export default {
...
@@ -332,7 +332,7 @@ export default {
let
arryIds
=
[];
let
arryIds
=
[];
this
.
list
.
forEach
((
e
,
index
)
=>
{
this
.
list
.
forEach
((
e
,
index
)
=>
{
let
objIds
=
{};
let
objIds
=
{};
objIds
.
orderId
=
e
.
id
;
objIds
.
orderId
=
e
.
part_task_pk
;
objIds
.
priority
=
index
+
1
;
objIds
.
priority
=
index
+
1
;
arryIds
.
push
(
objIds
);
arryIds
.
push
(
objIds
);
});
});
...
@@ -340,16 +340,31 @@ export default {
...
@@ -340,16 +340,31 @@ export default {
// alert(JSON.stringify(parmsOrderpriority));
// alert(JSON.stringify(parmsOrderpriority));
Api
.
orderpriority
(
parmsOrderpriority
).
then
(
res
=>
{
Api
.
orderpriority
(
parmsOrderpriority
).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
if
(
res
.
re
us
lt
)
{
if
(
res
.
re
su
lt
)
{
this
.
$Message
.
success
(
"排序成功"
);
this
.
$Message
.
success
(
"排序成功"
);
//apsp排产前检查
//apsp排产前检查
Api
.
apsdatachecked
().
then
(
res1
=>
{
if
(
res1
.
success
)
{
if
(
res1
.
result
)
{
this
.
$Message
.
success
(
"数据校验成功"
);
}
else
{
this
.
$Message
.
success
(
"数据校验失败"
);
}
}
else
{
this
.
$Message
.
error
(
"操作失败:数据校验"
);
}
})
}
else
{
}
else
{
this
.
$Message
.
error
(
"排序失败,请重新APS排产操作"
);
this
.
$Message
.
error
(
"排序失败,请重新APS排产操作"
);
}
}
}
else
{
}
else
{
this
.
$Message
.
error
(
"操作失败"
);
this
.
$Message
.
error
(
"操作失败
:排序
"
);
}
}
});
});
//APS排产前数据合法性校验
//APS排产前数据合法性校验
...
...
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