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
cf92d806
Commit
cf92d806
authored
Apr 17, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mesplan---delete/send
parent
47593bf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
18 deletions
+27
-18
index.vue
pages/mesPlan/index.vue
+27
-18
No files found.
pages/mesPlan/index.vue
View file @
cf92d806
...
...
@@ -328,8 +328,7 @@ export default {
params
.
row
.
id
==
params
.
row
.
rootId
&&
params
.
row
.
divideMark
!=
0
)
||
params
.
row
.
status
!=
1
?
// ||(params.row.id != params.row.rootId && this.sondeletecheck1(params.row.rootId)>0)
"display:none"
?
"display:none"
:
""
},
"删除"
...
...
@@ -836,12 +835,25 @@ export default {
},
//打开派发
openSendModal
()
{
this
.
actIds
=
[];
this
.
delNum
=
0
;
if
(
this
.
rowDataArry
.
length
>
0
)
{
this
.
sendModal
=
true
;
this
.
actIds
=
[];
this
.
rowDataArry
.
forEach
(
data
=>
{
this
.
actIds
.
push
(
data
.
id
);
if
(
data
.
status
!=
1
)
{
//判断非新建状态的订单
this
.
delNum
+=
1
;
}
});
setTimeout
(()
=>
{
if
(
this
.
delNum
>
0
)
{
this
.
$Message
.
error
(
"所选的订单中有不可派发的订单!"
);
this
.
actIds
=
[];
this
.
sendModal
=
false
;
}
else
{
this
.
sendModal
=
true
;
}
},
400
);
}
else
{
this
.
$Message
.
error
(
"请选择订单"
);
}
...
...
@@ -903,30 +915,27 @@ export default {
let
metCodesSingle
=
[];
//没有子订单的订单
let
metCodesFather
=
[];
//有子订单的原始订单
this
.
actIds
=
[];
//alert(JSON.stringify(this.rowDataArry))
;
this
.
delNum
=
0
;
if
(
this
.
rowDataArry
.
length
>
0
)
{
this
.
rowDataArry
.
forEach
(
data
=>
{
this
.
delNum
=
0
;
this
.
actIds
.
push
(
data
.
id
);
if
(
data
.
id
!=
data
.
rootId
)
{
//this.metCodesSingle.push(data.id);
if
(
data
.
status
!=
1
)
{
//判断非新建状态的订单
this
.
delNum
+=
1
;
}
else
if
(
data
.
id
!=
data
.
rootId
)
{
//判断子订单是否可以删除
this
.
sondeletecheck
(
data
.
rootId
);
}
});
setTimeout
(()
=>
{
if
(
this
.
delNum
>
0
)
{
this
.
$Message
.
error
(
"
删除的原始订单中有非新建状态的子
订单!"
);
this
.
$Message
.
error
(
"
所选的订单中有不可删除的
订单!"
);
this
.
actIds
=
[];
return
false
;
this
.
deletelModal
=
false
;
}
else
{
this
.
deletelModal
=
true
;
}
},
400
);
this
.
deletelModal
=
true
;
// this.actIds = [];
// this.rowDataArry.forEach(data => {
// this.actIds.push(data.id);
// });
}
else
{
this
.
$Message
.
error
(
"请选择订单"
);
}
...
...
@@ -1100,7 +1109,7 @@ export default {
"rootId"
);
this
.
dataT
=
this
.
$u
.
clone
(
this
.
dataT
);
}
,
}
}
};
</
script
>
...
...
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