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
21a3d234
Commit
21a3d234
authored
Apr 29, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排产优化
parent
b9a8705f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
index.vue
pages/aps/complete/index.vue
+9
-9
index.vue
pages/aps/stream/index.vue
+7
-8
No files found.
pages/aps/complete/index.vue
View file @
21a3d234
...
...
@@ -5,9 +5,9 @@
<Col
:span=
"6"
class=
"chan-chi"
>
排产池
</Col>
<Col
:span=
"18"
class=
"l-ringht"
>
<RadioGroup
v-model=
"status"
type=
"button"
@
on-change=
"changeStatus"
size=
"small"
>
<Radio
label=
"-1"
>
全部
</Radio>
<Radio
label=
"0"
>
未排产
</Radio>
<Radio
label=
"2"
>
已排查
</Radio>
<Radio
label=
"-1"
>
全部
</Radio>
</RadioGroup>
</Col>
</Row>
...
...
@@ -130,19 +130,17 @@ export default {
},
data
()
{
return
{
// activeindex: 1,
list
:
[],
status
:
"
-1
"
,
//全部排产-1,0为未排产;2为已排查;
status
:
"
0
"
,
//全部排产-1,0为未排产;2为已排查;
formItem
:
{
// resourcesType: 0,
radio
:
"0"
,
time
:
""
,
beginTime
:
""
,
endTime
:
""
,
remark
:
""
,
departmentTitle
:
""
,
shopId
:
""
,
userName
:
""
shopId
:
""
//
userName: ""
},
// listGroup: [
// {
...
...
@@ -182,7 +180,7 @@ export default {
};
},
created
()
{
this
.
orderlist
(
-
1
);
this
.
orderlist
(
0
);
},
methods
:
{
// 过滤条件
...
...
@@ -233,13 +231,14 @@ export default {
userIds
:
this
.
formItem
.
userIds
,
beginTime
:
this
.
formItem
.
beginTime
,
endTime
:
this
.
formItem
.
endTime
,
remark
:
this
.
formItem
.
remark
,
userName
:
this
.
formItem
.
userName
remark
:
this
.
formItem
.
remark
//
userName: this.formItem.userName
};
Api
.
cmonestepschedule
(
params1
).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"下发成功"
);
this
.
orderlist
(
this
.
status
);
this
.
orderIds
=
[];
}
else
{
this
.
$Message
.
success
(
"下发失败"
);
this
.
formItem
=
{};
...
...
@@ -259,6 +258,7 @@ export default {
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"下发成功"
);
this
.
orderlist
(
this
.
status
);
this
.
orderIds
=
[];
this
.
formItem
=
{};
this
.
formItem
.
radio
=
0
;
}
else
{
...
...
pages/aps/stream/index.vue
View file @
21a3d234
...
...
@@ -5,9 +5,9 @@
<Col
:span=
"6"
class=
"chan-chi"
>
排产池
</Col>
<Col
:span=
"18"
class=
"l-ringht"
>
<RadioGroup
v-model=
"status"
type=
"button"
@
on-change=
"changeStatus"
size=
"small"
>
<Radio
label=
"-1"
>
全部
</Radio>
<Radio
label=
"0"
>
未排产
</Radio>
<Radio
label=
"2"
>
已排查
</Radio>
<Radio
label=
"-1"
>
全部
</Radio>
</RadioGroup>
</Col>
</Row>
...
...
@@ -152,7 +152,7 @@ export default {
active
:
null
,
activeindex
:
1
,
list
:
[],
status
:
"
-1
"
,
//全部排产-1,0为未排产;2为已排查;
status
:
"
0
"
,
//全部排产-1,0为未排产;2为已排查;
result
:
[],
isactive
:
null
,
resourcesType
:
null
,
...
...
@@ -161,13 +161,13 @@ export default {
maxnum
:
1
,
chaiModal
:
false
,
orderId
:
0
,
quantity
:
0
,
routingHeaderId
:
0
,
detailId
:
0
};
},
created
()
{
this
.
orderlist
(
-
1
);
this
.
orderlist
(
0
);
},
methods
:
{
// 排产池过滤条件
...
...
@@ -217,7 +217,6 @@ export default {
u
.
chai
=
false
;
});
this
.
result
=
r
.
result
;
this
.
quantity
=
r
.
result
.
quantity
;
}
});
},
...
...
@@ -303,7 +302,7 @@ export default {
},
//下发
lowerHair
()
{
if
(
this
.
orderId
||
this
.
quantity
)
{
if
(
this
.
orderId
)
{
var
items
=
[];
var
obj
=
{};
if
(
this
.
mode
==
1
)
{
...
...
@@ -324,7 +323,7 @@ export default {
items
:
items
};
Api
.
flonestepschedule
(
data
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
result
)
{
this
.
$Message
.
success
(
"下发成功"
);
this
.
orderlist
(
this
.
status
);
}
else
{
...
...
@@ -349,7 +348,7 @@ export default {
items
:
items
};
Api
.
fltwostepschedule
(
data
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
result
)
{
this
.
$Message
.
success
(
"下发成功"
);
this
.
orderlist
(
this
.
status
);
}
else
{
...
...
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