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
25b16e47
Commit
25b16e47
authored
Apr 17, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
班组派工拆分
parent
b12079ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
index.vue
pages/aps/dispatch/index.vue
+18
-3
No files found.
pages/aps/dispatch/index.vue
View file @
25b16e47
...
...
@@ -39,6 +39,13 @@
v-if=
"item.quantity > 1 && item.pid == 0"
@
click=
"setChai(item,index)"
></op>
<op
title=
"删除"
type=
"icon"
icon=
"md-close-circle"
v-else-if=
"item.pid != 0"
@
click=
"removeDetail(item,index)"
></op>
<!-- -->
</p>
<p>
{{
item
.
beginTime
}}
--
{{
item
.
endTime
}}
</p>
...
...
@@ -493,12 +500,20 @@ export default {
this
.
rowIndex
=
index
},
okChai
()
{
var
detail
=
this
.
$u
.
clone
(
this
.
list
[
this
.
rowIndex
])
this
.
list
[
this
.
rowIndex
].
quantity
-=
this
.
chaiNum
var
detail
=
this
.
$u
.
clone
(
this
.
list
Task
[
this
.
rowIndex
])
this
.
list
Task
[
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
)
this
.
listTask
.
splice
(
this
.
rowIndex
+
1
,
0
,
detail
)
},
// 删除行
removeDetail
(
item
,
index
)
{
let
oldList
=
this
.
listTask
;
let
clickRow
=
oldList
.
filter
(
listRow
=>
listRow
.
process_name
===
item
.
process_name
)[
0
];
clickRow
.
quantity
+=
this
.
chaiNum
this
.
listTask
.
splice
(
index
,
1
)
this
.
$Message
.
success
(
'拆分项已删除。'
)
},
cancle
()
{
//取消
this
.
facilityModal
=
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