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
bc148006
Commit
bc148006
authored
Oct 14, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流水排产
parent
14fe771b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
172 additions
and
109 deletions
+172
-109
index.vue
pages/aps/complete/index.vue
+62
-45
index.vue
pages/aps/stream/index.vue
+110
-64
No files found.
pages/aps/complete/index.vue
View file @
bc148006
...
...
@@ -14,28 +14,31 @@
<div
class=
"left-down"
>
<div
class=
"left-body"
v-for=
"(li,index) in list"
v-for=
"(li,
index) in list"
:key=
"index"
:class=
"li.checked == true ? 'addclass' : ''
"
:class=
"li.checked == true ? 'addclass' : ''"
>
<Row
class=
"title-i"
>
<Col
:span=
"20"
class=
"order-code"
>
<Checkbox
v-model=
"li.checked"
@
on-change=
"checkData(li)"
:disabled=
"li.status==0?false:true"
>
订单号:
{{
li
.
mesCode
}}
</Checkbox>
:disabled=
"li.status == 0 ? false : true"
>
订单号:
{{
li
.
mesCode
}}
</Checkbox
>
</Col>
<Col
:span=
"4"
class=
"order-ringht"
>
<Icon
type=
"md-close"
@
click=
"close(li.id)"
/>
</Col>
</Row>
<div
class=
"fa"
>
产品名称:
{{
li
.
productName
}}
</div>
<div
class=
"time-s"
>
产品数量:
{{
li
.
quantity
}}
</div>
<div
class=
"time-s"
>
<div
class=
"fa"
>
产品名称:
{{
li
.
productName
}}
</div>
<div
class=
"time-s"
>
产品数量:
{{
li
.
quantity
}}
</div>
<
!--
<
div
class=
"time-s"
>
<span>
工序:
{{
li
.
drawnNumber
}}
</span>
</div>
-->
<div
class=
"time-s"
>
{{
li
.
demandFinishDate
}}
~
{{
li
.
demandStartDate
}}
</div>
<div
class=
"time-s"
>
{{
li
.
demandFinishDate
}}
~
{{
li
.
demandStartDate
}}
</div>
</div>
</div>
</div>
...
...
@@ -49,7 +52,7 @@
placeholder=
"请选择工时"
@
on-change=
"changeFormat"
v-model=
"formItem.time"
style=
"width:300px"
style=
"width:
300px"
></DatePicker>
</FormItem>
<FormItem
label=
"类型"
>
...
...
@@ -58,26 +61,36 @@
<Radio
label=
"1"
>
班组
</Radio>
</RadioGroup>
</FormItem>
<FormItem
v-if=
"formItem.radio
==
0"
>
<FormItem
v-if=
"formItem.radio
==
0"
>
<UserSelect
v-model=
"user"
:multiple=
"true"
/>
</FormItem>
<FormItem
label=
"班组"
v-if=
"formItem.radio==1"
>
<Select
v-model=
"formItem.shopId"
placeholder=
"请选择"
style=
"width:300px"
>
<FormItem
label=
"班组"
v-if=
"formItem.radio == 1"
>
<!--
<DepartmentSelect
:type=
"3"
v-model=
"formItem.shopId"
/>
-->
<Select
v-model=
"formItem.shopId"
placeholder=
"请选择"
style=
"width: 300px"
>
<Option
v-for=
"(item,index) in listClass"
v-for=
"(item,
index) in listClass"
:key=
"index"
:value=
"item.value"
:label=
"item.label"
style=
"display:none"
style=
"display:
none"
></Option>
<Tree
key=
"mytree"
:data=
"workShop"
ref=
"mytree"
:render=
"renderContent"
></Tree>
<Tree
key=
"mytree"
:data=
"workShop"
ref=
"mytree"
:render=
"renderContent"
></Tree>
</Select>
</FormItem>
<FormItem
label=
"备注"
>
<Input
v-model=
"formItem.remark
"
v-model=
"formItem.remark"
type=
"textarea"
:autosize=
"
{
minRows: 2,maxRows: 5
}"
:autosize=
"
{
minRows: 2, maxRows: 5
}"
placeholder="请输入备注信息"
>
</Input>
</FormItem>
...
...
@@ -110,9 +123,11 @@ export default {
remark
:
""
,
departmentTitle
:
""
,
shopId
:
""
,
showSet
:
false
showSet
:
false
,
// userName: ""
},
user
:
''
,
showSet
:
false
,
// listGroup: [
// {
// equip_name: "调试组",
...
...
@@ -147,7 +162,7 @@ export default {
// ],
workShop
:
[],
listClass
:
[],
orderIds
:
[]
orderIds
:
[]
,
};
},
created
()
{
...
...
@@ -162,16 +177,18 @@ export default {
//排产池列表
orderlist
(
a
)
{
this
.
status
=
a
;
Api
.
getpooltypeorderlist
({
PoolType
:
2
,
status
:
this
.
status
}).
then
(
r
=>
{
if
(
r
.
success
)
{
r
.
result
.
map
(
e
=>
{
e
.
checked
=
false
;
e
.
demandFinishDate
=
e
.
demandFinishDate
.
substr
(
0
,
10
);
e
.
demandStartDate
=
e
.
demandStartDate
.
substr
(
0
,
10
);
});
this
.
list
=
r
.
result
;
Api
.
getpooltypeorderlist
({
PoolType
:
2
,
status
:
this
.
status
}).
then
(
(
r
)
=>
{
if
(
r
.
success
)
{
r
.
result
.
map
((
e
)
=>
{
e
.
checked
=
false
;
e
.
demandFinishDate
=
e
.
demandFinishDate
.
substr
(
0
,
10
);
e
.
demandStartDate
=
e
.
demandStartDate
.
substr
(
0
,
10
);
});
this
.
list
=
r
.
result
;
}
}
}
);
);
},
//获取订单集
checkData
(
li
)
{
...
...
@@ -210,10 +227,10 @@ export default {
userIds
:
this
.
user
,
beginTime
:
this
.
formItem
.
beginTime
,
endTime
:
this
.
formItem
.
endTime
,
remark
:
this
.
formItem
.
remark
remark
:
this
.
formItem
.
remark
,
// userName: this.formItem.userName
};
Api
.
cmonestepschedule
(
params1
).
then
(
r
=>
{
Api
.
cmonestepschedule
(
params1
).
then
(
(
r
)
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"下发成功"
);
this
.
orderlist
(
this
.
status
);
...
...
@@ -232,9 +249,9 @@ export default {
shopId
:
this
.
formItem
.
shopId
,
beginTime
:
this
.
formItem
.
beginTime
,
endTime
:
this
.
formItem
.
endTime
,
remark
:
this
.
formItem
.
remark
remark
:
this
.
formItem
.
remark
,
};
Api
.
cmtwostepschedule
(
params2
).
then
(
r
=>
{
Api
.
cmtwostepschedule
(
params2
).
then
(
(
r
)
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"下发成功"
);
this
.
orderlist
(
this
.
status
);
...
...
@@ -250,7 +267,7 @@ export default {
//部门(班组)
getWorkshop
()
{
let
url
=
`
${
systemUrl
}
/user/userdepartmentsofworkshop`
;
this
.
$api
.
get
(
url
).
then
(
r
=>
{
this
.
$api
.
get
(
url
).
then
(
(
r
)
=>
{
if
(
r
.
result
)
{
this
.
workShop
=
r
.
result
;
}
...
...
@@ -262,13 +279,13 @@ export default {
"span"
,
{
style
:
{
cursor
:
"pointer"
cursor
:
"pointer"
,
},
on
:
{
click
:
()
=>
{
this
.
handleSelect
(
data
);
//手动选择树节点
}
}
}
,
}
,
},
data
.
title
);
...
...
@@ -276,7 +293,7 @@ export default {
handleSelect
(
data
)
{
let
obj
=
{
label
:
data
.
title
,
value
:
data
.
value
value
:
data
.
value
,
};
this
.
listClass
=
[];
this
.
listClass
.
push
(
obj
);
...
...
@@ -294,7 +311,7 @@ export default {
title
:
"删除"
,
content
:
"<p>您确定要移除此订单吗</p>"
,
onOk
:
()
=>
{
Api
.
shiftoutofcmorflpool
({
ids
:
ids
}).
then
(
r
=>
{
Api
.
shiftoutofcmorflpool
({
ids
:
ids
}).
then
(
(
r
)
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"删除成功"
);
this
.
orderlist
(
this
.
status
);
...
...
@@ -305,9 +322,9 @@ export default {
},
onCancel
:
()
=>
{
this
.
$Message
.
info
(
"您已取消删除"
);
}
}
,
});
}
}
,
// closeTag() {}
},
watch
:
{
...
...
@@ -315,8 +332,8 @@ export default {
if
(
v
==
1
)
{
this
.
getWorkshop
();
}
}
}
}
,
}
,
};
</
script
>
<
style
lang=
"less"
scoped
>
...
...
@@ -370,8 +387,8 @@ export default {
}
.fa {
height: 3
2
px;
line-height: 3
2
px;
height: 3
5
px;
line-height: 3
5
px;
color: rgba(38, 128, 235, 1);
padding: 5px 8px 0 8px;
}
...
...
@@ -379,7 +396,7 @@ export default {
padding: 0 8px;
height: 32px;
line-height: 32px;
color:@table-color;
color:
@table-color;
}
}
}
...
...
pages/aps/stream/index.vue
View file @
bc148006
This diff is collapsed.
Click to expand it.
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