|
@@ -609,14 +609,20 @@
|
|
|
this.$message.warning('请至少选择一条计划!');
|
|
this.$message.warning('请至少选择一条计划!');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- // for(let item of this.selection){
|
|
|
|
|
- // for(let )
|
|
|
|
|
- // }
|
|
|
|
|
- if(this.selection.length > 0){
|
|
|
|
|
- this.$refs.homogeneityInspectDialog.open(this.selection);
|
|
|
|
|
- } else {
|
|
|
|
|
-
|
|
|
|
|
|
|
+ let flag = false;
|
|
|
|
|
+ for(let item of this.selection){
|
|
|
|
|
+ for(let ele of this.selection){
|
|
|
|
|
+ if(item.produceType != ele.produceType){
|
|
|
|
|
+ flag = true;
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if(flag){
|
|
|
|
|
+ this.$message.warning('请选择加工方式相同的计划!');
|
|
|
|
|
+ return;
|
|
|
}
|
|
}
|
|
|
|
|
+ this.$refs.homogeneityInspectDialog.open(this.selection);
|
|
|
},
|
|
},
|
|
|
statusFormatter(status) {
|
|
statusFormatter(status) {
|
|
|
const obj = this.statusOpt[this.activeName].find(
|
|
const obj = this.statusOpt[this.activeName].find(
|