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
b12079ca
Commit
b12079ca
authored
Apr 17, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
班组派工拆分功能
parent
07ec32b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
3 deletions
+63
-3
index.vue
pages/aps/dispatch/index.vue
+63
-3
No files found.
pages/aps/dispatch/index.vue
View file @
b12079ca
...
...
@@ -24,13 +24,22 @@
<Checkbox
v-model=
"item.checked"
:disabled=
"item.dispatchStatus==2"
>
工
单号:
{{
item
.
mesCode
}}
</Checkbox>
>
订
单号:
{{
item
.
mesCode
}}
</Checkbox>
</p>
<div
class=
"h60"
>
<p
class=
"g_title"
>
{{
item
.
productName
}}
--
{{
item
.
equipCode
}}
</p>
<p>
<Icon
type=
"ios-pricetags"
/>
工序
{{
item
.
process_seq
}}
:
{{
item
.
process_name
}}
工序
{{
item
.
process_seq
}}
:
{{
item
.
process_name
}}
;
产品数量:
{{
item
.
quantity
}}
<op
title=
"拆分"
type=
"icon"
icon=
"md-cut"
v-if=
"item.quantity > 1 && item.pid == 0"
@
click=
"setChai(item,index)"
></op>
<!-- -->
</p>
<p>
{{
item
.
beginTime
}}
--
{{
item
.
endTime
}}
</p>
<!--
<p>
设备 :
{{
item
.
equipCode
}}
</p>
-->
...
...
@@ -114,6 +123,13 @@
</div>
</Col>
</Row>
<!-- 拆分 fenModel -->
<Modal
v-model=
"chaiModal"
title=
"拆分工序"
:width=
"400"
:mask-closable=
"false"
ok-text=
"拆分"
@
on-ok=
"okChai()"
>
拆分数量:
<Tag>
{{
chaiNum
}}
</Tag>
<Slider
v-model=
"chaiNum"
:max=
"maxnum"
show-stops
:min=
"1"
></Slider>
</Modal>
<FooterToolbar
style=
"height:65px"
v-show=
"showOperate&&footerToolbar"
>
<Button
class=
"span ml20"
type=
"primary"
@
click=
"openDrawer"
>
设置
</Button>
<Button
@
click=
"footerToolbar=false"
>
取消
</Button>
...
...
@@ -241,6 +257,10 @@ export default {
listMan
:
[],
//人员列表
listTask
:
[],
//工单列表数据
newList
:
[],
//选中数据
chaiModal
:
false
,
//拆分弹框
chaiNum
:
1
,
//拆分数量
maxnum
:
1
,
rowIndex
:
0
,
//多选项的index
entity
:
{
taskTime
:
''
,
//工时
userIds
:
null
,
//选中人员
...
...
@@ -346,7 +366,32 @@ export default {
getEntryList
(
id
)
{
let
parme
=
{
departmentId
:
id
,
DispatchStatus
:
this
.
status
}
Api
.
getEntryList
(
parme
).
then
((
res
)
=>
{
this
.
listTask
=
res
.
result
var
savedUl
=
[]
res
.
result
.
map
((
u
)
=>
{
let
detailnew
=
{
beginTime
:
u
.
beginTime
,
//开始时间
dispatchStatus
:
u
.
dispatchStatus
,
//
endTime
:
u
.
endTime
,
//
equipCode
:
u
.
equipCode
,
//
equipId
:
u
.
equipId
,
//
executeId
:
u
.
executeId
,
//
id
:
u
.
id
,
//
mesCode
:
u
.
mesCode
,
//
order_id
:
u
.
order_id
,
//
process_content
:
u
.
process_content
,
//
process_name
:
u
.
process_name
,
//
process_seq
:
u
.
process_seq
,
//
productName
:
u
.
productName
,
//
quantity
:
u
.
quantity
,
//
routingDetailId
:
u
.
routingDetailId
,
//
routingHeaderId
:
u
.
routingHeaderId
,
//
status
:
u
.
status
,
//
userIds
:
u
.
userIds
,
//
pid
:
0
,
//拆分项id
}
savedUl
.
push
(
detailnew
)
})
this
.
listTask
=
savedUl
})
},
// 时间改变方法
...
...
@@ -440,6 +485,21 @@ export default {
})
},
// 拆分方法
setChai
(
item
,
index
)
{
this
.
chaiModal
=
true
this
.
chaiNum
=
1
this
.
maxnum
=
item
.
quantity
-
1
this
.
rowIndex
=
index
},
okChai
()
{
var
detail
=
this
.
$u
.
clone
(
this
.
list
[
this
.
rowIndex
])
this
.
list
[
this
.
rowIndex
].
quantity
-=
this
.
chaiNum
// detail.pid = this.$u.guid()
detail
.
pid
=
this
.
$u
.
guid
()
detail
.
quantity
=
this
.
chaiNum
this
.
list
.
splice
(
this
.
rowIndex
+
1
,
0
,
detail
)
},
cancle
()
{
//取消
this
.
facilityModal
=
false
this
.
manModal
=
false
...
...
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