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
26ffb489
Commit
26ffb489
authored
Apr 02, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aps
parent
db3f1e42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
10 deletions
+26
-10
zh-CN.js
i18n/locale/zh-CN.js
+1
-1
index.vue
pages/aps/aps/index.vue
+25
-9
No files found.
i18n/locale/zh-CN.js
View file @
26ffb489
...
@@ -897,7 +897,7 @@ export default {
...
@@ -897,7 +897,7 @@ export default {
part_task_pk
:
'计划编号'
,
part_task_pk
:
'计划编号'
,
priority
:
'优先级'
,
priority
:
'优先级'
,
plan_qty
:
'排产数量'
,
plan_qty
:
'排产数量'
,
spare_qty
:
''
,
spare_qty
:
'
备件数量
'
,
plan_start
:
'计划排产开始'
,
plan_start
:
'计划排产开始'
,
plan_finish
:
'计划排产结束'
,
plan_finish
:
'计划排产结束'
,
notes
:
'备注'
,
notes
:
'备注'
,
...
...
pages/aps/aps/index.vue
View file @
26ffb489
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<Search
/>
<Search
/>
</
template
>
</
template
>
<
template
slot=
"buttons"
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"
apsModal=true
"
>
APS排产
</Button>
<Button
type=
"primary"
@
click=
"
openApsModal
"
>
APS排产
</Button>
</
template
>
</
template
>
<
template
slot=
"batch"
>
<
template
slot=
"batch"
>
<Button
type=
"primary"
class=
"mr10 ml10"
@
click=
"removeOk"
>
移出排产
</Button>
<Button
type=
"primary"
class=
"mr10 ml10"
@
click=
"removeOk"
>
移出排产
</Button>
...
@@ -155,6 +155,7 @@ export default {
...
@@ -155,6 +155,7 @@ export default {
title
:
this
.
l
(
"plan_start"
),
title
:
this
.
l
(
"plan_start"
),
align
:
"center"
,
align
:
"center"
,
high
:
true
,
high
:
true
,
hide
:
true
,
resizable
:
true
,
resizable
:
true
,
width
:
140
width
:
140
},
},
...
@@ -163,6 +164,7 @@ export default {
...
@@ -163,6 +164,7 @@ export default {
title
:
this
.
l
(
"plan_finish"
),
title
:
this
.
l
(
"plan_finish"
),
align
:
"center"
,
align
:
"center"
,
high
:
true
,
high
:
true
,
hide
:
true
,
sortable
:
true
,
sortable
:
true
,
resizable
:
true
,
resizable
:
true
,
width
:
140
width
:
140
...
@@ -179,9 +181,8 @@ export default {
...
@@ -179,9 +181,8 @@ export default {
key
:
"demand_start"
,
key
:
"demand_start"
,
title
:
this
.
l
(
"demand_start"
),
title
:
this
.
l
(
"demand_start"
),
align
:
"center"
,
align
:
"center"
,
hide
:
true
,
resizable
:
true
,
resizable
:
true
,
width
:
1
0
0
width
:
1
4
0
},
},
{
{
key
:
"demand_finish"
,
key
:
"demand_finish"
,
...
@@ -195,7 +196,8 @@ export default {
...
@@ -195,7 +196,8 @@ export default {
key
:
"badjustflag"
,
key
:
"badjustflag"
,
title
:
this
.
l
(
"badjustflag"
),
title
:
this
.
l
(
"badjustflag"
),
align
:
"left"
,
align
:
"left"
,
high
:
true
high
:
true
,
hide
:
true
,
},
},
{
{
title
:
"操作"
,
title
:
"操作"
,
...
@@ -345,7 +347,14 @@ export default {
...
@@ -345,7 +347,14 @@ export default {
getTime
(
value
)
{
getTime
(
value
)
{
this
.
entity
.
getTime
=
value
;
this
.
entity
.
getTime
=
value
;
},
},
//a确定aps排产
openApsModal
()
{
if
(
this
.
entity
.
setTime
!=
""
)
{
this
.
apsModal
=
true
;
}
else
{
this
.
$Message
.
error
(
"请设置基准日期"
);
}
},
//确定aps排产
apsOk
()
{
apsOk
()
{
//APS排产前订单优先级功能
//APS排产前订单优先级功能
let
parmsOrderpriority
=
{
alls
:
[]
};
let
parmsOrderpriority
=
{
alls
:
[]
};
...
@@ -361,19 +370,27 @@ export default {
...
@@ -361,19 +370,27 @@ export default {
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("数据校验成功");
//排产计算
//排产计算
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
)
{
this
.
$Message
.
success
(
"排产计算成功"
);
if
(
res2
.
result
.
res
)
{
this
.
$Message
.
success
(
"排产计算成功"
);
this
.
$router
.
push
({
name
:
"aps-results"
// params: { customerId: id }
});
}
else
{
this
.
$Message
.
error
(
res2
.
result
.
msg
);
}
}
else
{
}
else
{
this
.
$Message
.
error
(
"操作失败:排产计算"
);
this
.
$Message
.
error
(
"操作失败:排产计算"
);
}
}
...
@@ -392,7 +409,6 @@ export default {
...
@@ -392,7 +409,6 @@ export default {
this
.
$Message
.
error
(
"操作失败:排序"
);
this
.
$Message
.
error
(
"操作失败:排序"
);
}
}
});
});
//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