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
e7a6e689
Commit
e7a6e689
authored
Apr 08, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aps
parent
26ed338c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
39 deletions
+66
-39
index.vue
pages/aps/aps/index.vue
+66
-39
No files found.
pages/aps/aps/index.vue
View file @
e7a6e689
...
@@ -400,12 +400,14 @@ export default {
...
@@ -400,12 +400,14 @@ export default {
});
});
parmsOrderpriority
.
alls
=
arryIds
;
parmsOrderpriority
.
alls
=
arryIds
;
// 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
.
result
)
{
if
(
res
.
result
)
{
//this.$Message.success("排序成功");
//this.$Message.success("排序成功");
//apsp排产前检查
//apsp排产前检查
Api
.
apsdatachecked
().
then
(
res1
=>
{
Api
.
apsdatachecked
()
.
then
(
res1
=>
{
if
(
res1
.
success
)
{
if
(
res1
.
success
)
{
if
(
res1
.
result
.
res
)
{
if
(
res1
.
result
.
res
)
{
// this.$Message.success("数据校验成功");
// this.$Message.success("数据校验成功");
...
@@ -413,7 +415,8 @@ export default {
...
@@ -413,7 +415,8 @@ export default {
let
paramsTime
=
{
let
paramsTime
=
{
setTime
:
this
.
entity
.
setTime
setTime
:
this
.
entity
.
setTime
};
};
Api
.
apsprepareandcalc
(
paramsTime
).
then
(
res2
=>
{
Api
.
apsprepareandcalc
(
paramsTime
)
.
then
(
res2
=>
{
if
(
res2
.
success
)
{
if
(
res2
.
success
)
{
if
(
res2
.
result
.
res
)
{
if
(
res2
.
result
.
res
)
{
this
.
$Message
.
success
(
"排产计算成功"
);
this
.
$Message
.
success
(
"排产计算成功"
);
...
@@ -423,26 +426,50 @@ export default {
...
@@ -423,26 +426,50 @@ export default {
// params: { customerId: id }
// params: { customerId: id }
});
});
}
else
{
}
else
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
res2
.
result
.
msg
);
this
.
$Message
.
error
(
res2
.
result
.
msg
);
}
}
}
else
{
}
else
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败:排产计算"
);
this
.
$Message
.
error
(
"操作失败:排产计算"
);
}
}
});
})
.
catch
(
function
(
err
)
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败"
);
}.
bind
(
this
)
);
}
else
{
}
else
{
this
.
circleModal
=
false
;
this
.
$Message
.
success
(
"数据校验失败"
);
this
.
$Message
.
success
(
"数据校验失败"
);
}
}
}
else
{
}
else
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败:数据校验"
);
this
.
$Message
.
error
(
"操作失败:数据校验"
);
}
}
});
})
.
catch
(
function
(
err
)
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败"
);
}.
bind
(
this
)
);
}
else
{
}
else
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"排序失败,请重新APS排产操作"
);
this
.
$Message
.
error
(
"排序失败,请重新APS排产操作"
);
}
}
}
else
{
}
else
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败:排序"
);
this
.
$Message
.
error
(
"操作失败:排序"
);
}
}
});
})
.
catch
(
function
(
err
)
{
this
.
circleModal
=
false
;
this
.
$Message
.
error
(
"操作失败"
);
}.
bind
(
this
)
);
},
},
//打开设置参数
//打开设置参数
openAddModel
(
type
,
row
)
{
openAddModel
(
type
,
row
)
{
...
...
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