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
3aae4873
Commit
3aae4873
authored
Aug 07, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
9a63c3ad
991a98fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
11 deletions
+93
-11
index.vue
pages/aps/dispatch/index.vue
+93
-11
No files found.
pages/aps/dispatch/index.vue
View file @
3aae4873
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
<Radio
label=
"2"
>
已排产
</Radio>
<Radio
label=
"2"
>
已排产
</Radio>
</RadioGroup>
</RadioGroup>
共
{{
listTask
.
length
}}
条
共
{{
listTask
.
length
}}
条
<!--
<Button
:disabled=
"disablFlag"
@
click=
"allCheack"
class=
"ml10"
>
全选
</Button>
<Button
:disabled=
"disablFlager"
@
click=
"uncheack"
class=
"ml10"
>
全不选
</Button>
-->
<span
class=
"check"
>
<span
class=
"check"
>
<RadioGroup
v-model=
"listShow"
type=
"button"
size=
"small"
>
<RadioGroup
v-model=
"listShow"
type=
"button"
size=
"small"
>
<Radio
label=
"订单"
title=
"订单分类"
>
<Radio
label=
"订单"
title=
"订单分类"
>
...
@@ -305,6 +307,8 @@ export default {
...
@@ -305,6 +307,8 @@ export default {
button2
:
"设备"
,
button2
:
"设备"
,
listShow
:
"订单"
,
listShow
:
"订单"
,
shebei
:
""
,
shebei
:
""
,
disablFlag
:
false
,
//全选
disablFlager
:
true
,
//不选
curTask
:
null
,
curTask
:
null
,
dateRange
:
{
//禁选工时时间区间
dateRange
:
{
//禁选工时时间区间
disabledDate
(
date
)
{
disabledDate
(
date
)
{
...
@@ -412,6 +416,9 @@ export default {
...
@@ -412,6 +416,9 @@ export default {
setShebeiId
(
id
)
{
setShebeiId
(
id
)
{
this
.
shebeiId
=
id
;
this
.
shebeiId
=
id
;
this
.
footerToolbar
=
true
;
this
.
footerToolbar
=
true
;
// console.log(this.showOperate)
// console.log(this.ids.length)
// console.log(this.shebeiId)
},
},
// 获取查询人员
// 获取查询人员
getselectuser
(
id
)
{
getselectuser
(
id
)
{
...
@@ -468,6 +475,11 @@ export default {
...
@@ -468,6 +475,11 @@ export default {
savedUl
.
push
(
detailnew
);
savedUl
.
push
(
detailnew
);
});
});
this
.
listTask
=
savedUl
;
this
.
listTask
=
savedUl
;
// if(savedUl.length
<
1
){
// this.disablFlag = true
// }else{
// this.disablFlag = false
// }
});
});
},
},
// 时间改变方法
// 时间改变方法
...
@@ -487,6 +499,43 @@ export default {
...
@@ -487,6 +499,43 @@ export default {
changeStatus
(
a
)
{
changeStatus
(
a
)
{
this
.
getUserInfoFn
();
this
.
getUserInfoFn
();
},
},
// 全选、全不选切换
allCheack
(){
let
fameData
=
this
.
listTask
console
.
log
(
fameData
)
this
.
listTask
.
map
(
u
=>
{
u
.
checked
=
true
this
.
ids
.
push
(
u
.
id
);
})
this
.
ids
.
length
=
this
.
listTask
.
length
this
.
showOperate
=
true
console
.
log
(
this
.
listTask
)
// console.log(this.ids.length)
// console.log(this.shebeiId)
// console.log(this.footerToolbar)
// console.log(this.showOperate)
this
.
footerToolbar
=
true
this
.
disablFlag
=
true
this
.
disablFlager
=
false
},
uncheack
(){
console
.
log
(
this
.
listTask
)
this
.
listTask
.
map
(
u
=>
{
u
.
checked
=
false
})
if
(
this
.
ids
.
length
>
0
){
// this.ids = this.ids.splice(0, this.ids.length)
this
.
ids
.
length
=
0
}
console
.
log
(
this
.
listTask
)
// console.log(this.footerToolbar)
// console.log(this.showOperate)
// console.log(this.shebeiId)
// console.log(this.ids)
this
.
footerToolbar
=
false
this
.
disablFlag
=
false
this
.
disablFlager
=
true
},
// 打开抽屉
// 打开抽屉
openDrawer
()
{
openDrawer
()
{
let
chekids
=
this
.
ids
;
let
chekids
=
this
.
ids
;
...
@@ -508,7 +557,8 @@ export default {
...
@@ -508,7 +557,8 @@ export default {
}
else
{
}
else
{
this
.
pentity
.
taskTime
=
[
timebegin
,
timend
];
this
.
pentity
.
taskTime
=
[
timebegin
,
timend
];
this
.
manModal
=
true
;
this
.
manModal
=
true
;
}
// console.log("选中的数据", this.newList);
}
console
.
log
(
"选中的数据"
,
this
.
newList
);
},
},
// 设备派工
// 设备派工
sendSheBei
()
{
sendSheBei
()
{
...
@@ -614,13 +664,26 @@ export default {
...
@@ -614,13 +664,26 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
ids
()
{
ids
(){
let
ids
=
[];
// get(){
this
.
listTask
.
map
(
u
=>
{
// console.warn("oldids");
if
(
u
.
checked
)
{
ids
.
push
(
u
.
id
);}
let
ids
=
[];
});
this
.
listTask
.
map
(
u
=>
{
if
(
ids
.
length
>
0
)
{
this
.
footerToolbar
=
true
;}
if
(
u
.
checked
)
{
ids
.
push
(
u
.
id
);}
return
ids
;
});
if
(
ids
.
length
>
0
)
{
this
.
footerToolbar
=
true
;}
return
ids
;
// },
// set(newVal){
// console.warn("newids");
// let ids = [];
// this.listTask.map(u => {
// if (u.checked) { ids.push(u.id);}
// });
// if (ids.length > 0) {this.footerToolbar = true;}
// return ids;
// this.ids = newVal
// }
},
},
listOrder
()
{
listOrder
()
{
let
orders
=
this
.
$u
.
group
(
this
.
listTask
,
u
=>
{
let
orders
=
this
.
$u
.
group
(
this
.
listTask
,
u
=>
{
...
@@ -638,12 +701,31 @@ export default {
...
@@ -638,12 +701,31 @@ export default {
this
.
footerToolbar
=
true
;
this
.
footerToolbar
=
true
;
return
peploeId
;
return
peploeId
;
},
},
showOperate
()
{
showOperate
(){
// get(){
// console.info(this.ids.length)
// console.info(this.shebeiId)
// debugger
return
(
return
(
this
.
ids
.
length
>
0
&&
(
this
.
shebeiId
>
0
||
this
.
peploeId
.
length
>
0
)
this
.
ids
.
length
>
0
&&
(
this
.
shebeiId
>
0
||
this
.
peploeId
.
length
>
0
)
);
)
// },
// set(newVal){
// console.log("newVal")
// this.showOperate = newVal;
// return (
// this.ids.length > 0 && (this.shebeiId > 0 || this.peploeId.length > 0)
// )
// }
}
}
},
},
watch
:
{}
watch
:
{
// ids(n,o){
// console.info(n)
// console.info(o)
// console.warn(this.listTask);
// console.info(this.shebeiId)
// }
}
};
};
</
script
>
</
script
>
\ No newline at end of file
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