diff --git a/src/views/wpm_bx/mlogbw_check_table.vue b/src/views/wpm_bx/mlogbw_check_table.vue index 7eaa429a..37a8cc28 100644 --- a/src/views/wpm_bx/mlogbw_check_table.vue +++ b/src/views/wpm_bx/mlogbw_check_table.vue @@ -24,7 +24,10 @@
| + | + + | +序号 | 物料批次 | 物料编号 | {{ item.testitem_name }} | @@ -38,6 +41,9 @@+ | + {{ index + 1 }} + | {{ row.mlogb__batch }} @@ -66,7 +72,7 @@ {{ row.note }} |
-
+
@@ -318,6 +324,7 @@ export default {
route_code:"",
wprInputText:"",
canMultiple:false,
+ selectedAll:false,
checkAll: false,
hideAdd: false,
visible: false,
@@ -402,17 +409,23 @@ export default {
selectChange(){
let that = this;
that.selectWprList = [];
- console.log('selectedindexes',that.selectedindexes);
that.mlogbwlist.forEach((item) => {
if(that.selectedindexes.indexOf(item.id)>-1){
that.selectWprList.push(item);
}
})
- console.log('selectWprList',that.selectWprList);
},
- selectAllChange(datas){
+ selectAllChange(){
let that = this;
- that.selectWprList = datas;
+ if(that.selectedAll){
+ that.mlogbwlist.forEach((item) => {
+ that.selectedindexes.push(item.id);
+ that.selectWprList.push(item);
+ })
+ }else{
+ that.selectedindexes=[];
+ that.selectWprList=[];
+ }
},
getEquipment4() {
let that = this;
@@ -527,7 +540,6 @@ export default {
}
that.mlogbwlist.push(obj);
})
- // console.log('that.mlogbwlist',that.mlogbwlist);
}
})
},
@@ -624,7 +636,7 @@ export default {
let getEd = false;
if(that.qct_testitems.length>0){
for(let i=0;i |
|---|