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
215b9d63
Commit
215b9d63
authored
Apr 21, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备--人员
parent
8b9ea898
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
39 deletions
+39
-39
index.vue
pages/aps/dispatch/index.vue
+39
-39
No files found.
pages/aps/dispatch/index.vue
View file @
215b9d63
...
...
@@ -228,10 +228,10 @@
<UserSelect
ref=
"userSelected"
v-model=
"entity.userIds"
:type=
"3"
:multiple=
"true"
style=
"width: 500px"
/>
<!-- :type="3" -->
</FormItem>
</Col>
<Col
span=
"24"
class=
"drawer_midell"
>
...
...
@@ -546,60 +546,60 @@ export default {
// }
this
.
manModal
=
true
;
}
console
.
log
(
"选中的数据"
,
this
.
newList
);
//
console.log("选中的数据", this.newList);
},
// 设备派工
sendSheBei
()
{
let
item
=
this
.
newList
;
console
.
log
(
item
)
//
console.log(item)
item
.
map
(
u
=>
{
u
.
userIds
=
this
.
entity
.
userIds
;
u
.
remark
=
this
.
entity
.
remark
;
u
.
equipId
=
this
.
shebeiId
;
});
//
this.$refs["formValidate"].validate(valid => {
//
if (valid) {
//
Api.saveTeamentry(item).then(res => {
//
if (res.success) {
//
this.$Message.success("设备派工成功。");
//
this.getUserInfoFn();
//
this.facilityModal = false;
//
} else {
//
this.$Message.error("设备派工失败...");
//
}
//
});
//
} else {
//
this.$Message.error("校验不通过...");
//
}
//
});
this
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
if
(
valid
)
{
Api
.
saveTeamentry
(
item
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$Message
.
success
(
"设备派工成功。"
);
this
.
getUserInfoFn
();
this
.
facilityModal
=
false
;
}
else
{
this
.
$Message
.
error
(
"设备派工失败..."
);
}
});
}
else
{
this
.
$Message
.
error
(
"校验不通过..."
);
}
});
},
// 人员派工
sendUser
()
{
let
item
=
this
.
newList
;
console
.
log
(
"派工的数据"
,
item
)
//
console.log("派工的数据",item)
item
.
map
(
u
=>
{
u
.
userIds
=
this
.
peploeId
;
u
.
remark
=
this
.
pentity
.
remark
;
});
//
this.$refs["formpepole"].validate(valid => {
//
if (valid) {
//
let params = {
//
isDispatch: 1, //派工是1,保存是0
//
entryList: item
//
};
//
Api.saveTeamentry(params).then(res => {
//
if (res.success) {
//
this.$Message.success("人员派工成功。");
//
this.getUserInfoFn();
//
this.manModal = false;
//
} else {
//
this.$Message.error("人员派工失败...");
//
}
//
});
//
} else {
//
this.$Message.error("校验不通过...");
//
}
//
});
this
.
$refs
[
"formpepole"
].
validate
(
valid
=>
{
if
(
valid
)
{
let
params
=
{
isDispatch
:
1
,
//派工是1,保存是0
entryList
:
item
};
Api
.
saveTeamentry
(
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$Message
.
success
(
"人员派工成功。"
);
this
.
getUserInfoFn
();
this
.
manModal
=
false
;
}
else
{
this
.
$Message
.
error
(
"人员派工失败..."
);
}
});
}
else
{
this
.
$Message
.
error
(
"校验不通过..."
);
}
});
},
// 拆分方法
setChai
(
item
,
index
)
{
...
...
@@ -673,7 +673,7 @@ export default {
let
orders
=
this
.
$u
.
group
(
this
.
listTask
,
u
=>
{
return
u
.
mesCode
;
});
console
.
warn
(
"listOrder"
,
orders
);
//
console.warn("listOrder", orders);
return
orders
;
},
peploeId
()
{
...
...
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