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
b2b3a142
Commit
b2b3a142
authored
Apr 20, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product
parents
9976c761
8a2c52cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
16 deletions
+19
-16
api.js
pages/aps/plan/api.js
+3
-0
index.vue
pages/aps/plan/index.vue
+16
-16
No files found.
pages/aps/plan/api.js
View file @
b2b3a142
...
...
@@ -28,4 +28,7 @@ export default {
moveintoaps
()
{
//跳转进入排产池前判断
return
Api
.
post
(
`
${
PlanUrl
}
/messchedule/moveintoaps`
);
},
getpoolordercount
(){
//各排产池订单数量
return
Api
.
get
(
`
${
PlanUrl
}
/messchedule/getpoolordercount`
);
},
}
\ No newline at end of file
pages/aps/plan/index.vue
View file @
b2b3a142
...
...
@@ -618,16 +618,16 @@ export default {
//移入排产成功后给标题增加数量
changeCountOut
(
type
,
count
)
{
switch
(
type
)
{
case
"2"
:
case
"2"
:
//智能排产池排产订单数量
this
.
$store
.
commit
(
"setCountAi"
,
this
.
$store
.
state
.
countAi
+
count
);
break
;
case
"3"
:
case
"3"
:
//整机排产池排产订单数量
this
.
$store
.
commit
(
"setCountAll"
,
this
.
$store
.
state
.
countAll
+
count
);
break
;
case
"4"
:
case
"4"
:
//流水排产池排产订单数量
this
.
$store
.
commit
(
"setCountRun"
,
this
.
$store
.
state
.
countRun
+
count
);
break
;
default
:
default
:
//APS排产池排产订单数量
this
.
$store
.
commit
(
"setCountAps"
,
this
.
$store
.
state
.
countAps
+
count
);
}
},
...
...
@@ -637,18 +637,18 @@ export default {
this
.
$store
.
commit
(
"setCountAi"
,
0
);
this
.
$store
.
commit
(
"setCountAll"
,
0
);
this
.
$store
.
commit
(
"setCountRun"
,
0
);
// Api.getC
ount()
//
.then(res => {
// if (res.success && res.result == true
) {
// this.$store.commit("setCountAps", 3);
// this.$store.commit("setCountAi", 1);
// this.$store.commit("setCountAll", 1);
// this.$store.commit("setCountRun", 0);
//
}
//
})
//
.catch(err => {
//
this.$Message.error("获取排产模型数量失败");
//
});
Api
.
getpoolorderc
ount
()
.
then
(
res
=>
{
if
(
res
.
success
&&
res
.
result
.
length
>
1
)
{
res
.
result
.
forEach
(
data
=>
{
this
.
changeCountOut
(
data
.
poolType
+
''
,
data
.
count
)
})
}
})
.
catch
(
err
=>
{
this
.
$Message
.
error
(
"获取排产模型数量失败"
);
});
}
}
};
...
...
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