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
f6067124
Commit
f6067124
authored
Jun 22, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排产显示
parent
edd92a99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
5 deletions
+58
-5
api.js
pages/aps/plan/api.js
+3
-0
index.vue
pages/aps/plan/index.vue
+55
-5
No files found.
pages/aps/plan/api.js
View file @
f6067124
...
...
@@ -31,4 +31,7 @@ export default {
getpoolordercount
(){
//各排产池订单数量
return
Api
.
get
(
`
${
PlanUrl
}
/messchedule/getpoolordercount`
);
},
listbyuser
(
params
)
{
//获取当前登录用户可操作的排产
return
Api
.
post
(
`
${
authUrl
}
/api/services/app/setschedulecompany/listbyuser`
,
params
);
},
}
\ No newline at end of file
pages/aps/plan/index.vue
View file @
f6067124
...
...
@@ -26,6 +26,7 @@
overflow-count=
"99"
style=
"margin-right:15px;"
type=
"info"
v-if=
"showAps"
>
<a
href=
"javascript:;"
@
click=
"goAps"
>
APS排产
</a>
</Badge>
...
...
@@ -34,6 +35,7 @@
overflow-count=
"99"
style=
"margin-right:15px;"
type=
"info"
v-if=
"showAi"
>
<a
href=
"javascript:;"
>
智能排产
</a>
</Badge>
...
...
@@ -42,10 +44,11 @@
overflow-count=
"99"
style=
"margin-right:15px;"
type=
"info"
v-if=
"showAll"
>
<a
href=
"javascript:;"
@
click=
"goCemplate"
>
整机排产
</a>
</Badge>
<Badge
:count=
"this.$store.state.countRun"
overflow-count=
"99"
type=
"info"
>
<Badge
:count=
"this.$store.state.countRun"
overflow-count=
"99"
type=
"info"
v-if=
"showRun"
>
<a
href=
"javascript:;"
@
click=
"goStream"
>
流水排产
</a>
</Badge>
</
template
>
...
...
@@ -82,7 +85,14 @@
<Modal
v-model=
"scheduleModal"
title=
"移入排产"
width=
"800"
>
<p>
</p>
<h4>
请选择排产模型:
</h4>
<Dictionary
code=
"aps.plan.scheduleType"
v-model=
"scheduleType"
class=
"radioList"
:border=
"true"
type=
"radio"
@
on-change=
"onchangeScheduleType"
></Dictionary>
<Dictionary
code=
"aps.plan.scheduleType"
v-model=
"scheduleType"
class=
"radioList"
:border=
"true"
type=
"radio"
@
on-change=
"onchangeScheduleType"
></Dictionary>
<p
class=
"pl30 pt10"
v-show=
"scheduleType!=null"
>
确定将订单
<span
class=
"fwBold"
>
{{resultsOrderList}}
</span>
移入
...
...
@@ -310,7 +320,13 @@ export default {
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
,
title
:
params
.
row
.
mainRoutingSetStatus
==
0
?
"工艺派发"
:
"移入排产"
},
attrs
:
{
oprate
:
"detail"
,
title
:
params
.
row
.
mainRoutingSetStatus
==
0
?
"工艺派发"
:
"移入排产"
},
style
:
{
color
:
params
.
row
.
mainRoutingSetStatus
==
0
?
"red"
:
""
},
...
...
@@ -331,7 +347,14 @@ export default {
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
,
title
:
params
.
row
.
isSupportingFinish
==
2
||
params
.
row
.
isSupportingFinish
==
3
?
"配套派发"
:
""
},
attrs
:
{
oprate
:
"detail"
,
title
:
params
.
row
.
isSupportingFinish
==
2
||
params
.
row
.
isSupportingFinish
==
3
?
"配套派发"
:
""
},
style
:
{
color
:
params
.
row
.
mainRoutingSetStatus
==
0
?
"red"
:
""
},
...
...
@@ -365,7 +388,11 @@ export default {
scheduleStatus
:
0
,
//排产标识
resultsOrderList
:
""
,
scheduleType
:
null
,
scheduleTypeName
:
""
scheduleTypeName
:
""
,
showAps
:
false
,
showAi
:
false
,
showAll
:
false
,
showRun
:
false
};
},
mounted
()
{
...
...
@@ -640,6 +667,29 @@ export default {
},
//进入页面加载排产count-----
loadInitCount
()
{
let
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
;
let
para
=
{
id
:
currentUserId
};
Api
.
listbyuser
(
para
).
then
(
datas
=>
{
if
(
datas
.
success
&&
datas
.
result
&&
datas
.
result
.
length
>
0
)
{
datas
.
result
.
forEach
(
dateScheduleId
=>
{
switch
(
dateScheduleId
.
apsScheduleId
)
{
case
1
:
this
.
showAps
=
true
;
break
;
case
2
:
this
.
showAll
=
true
;
break
;
case
3
:
this
.
showRun
=
true
;
break
;
default
:
this
.
showAi
=
true
;
}
});
}
});
this
.
$store
.
commit
(
"setCountAps"
,
0
);
this
.
$store
.
commit
(
"setCountAi"
,
0
);
this
.
$store
.
commit
(
"setCountAll"
,
0
);
...
...
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