|
|
@@ -347,6 +347,7 @@
|
|
|
|
|
|
//
|
|
|
calculate(list) {
|
|
|
+
|
|
|
if (list.length == 0) {
|
|
|
this.form.sampleQuantity = 0;
|
|
|
this.form.sampleWeight = 0;
|
|
|
@@ -416,6 +417,7 @@
|
|
|
this.$set(this.form, 'qualifiedNumber', this.form.total);
|
|
|
this.$set(this.form, 'noQualifiedNumber', 0);
|
|
|
} else {
|
|
|
+
|
|
|
this.$set(this.form, 'qualificationRate', '0');
|
|
|
this.$set(this.form, 'noQualificationRate', '100%');
|
|
|
this.$set(this.form, 'qualityResults', 2);
|
|
|
@@ -466,6 +468,7 @@
|
|
|
if (showArrange != '1') {
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
this.$set(
|
|
|
this.form,
|
|
|
'qualificationRate',
|
|
|
@@ -1494,10 +1497,10 @@
|
|
|
this.activeName = '2';
|
|
|
// *** 选完批量质检调用
|
|
|
// this.countQualityResults();
|
|
|
- this.$refs.baseInfoRefs.quantityCalculation(
|
|
|
- 'noQualifiedNumber',
|
|
|
- 'noSetSampleList'
|
|
|
- );
|
|
|
+ // this.$refs.baseInfoRefs.quantityCalculation(
|
|
|
+ // 'noQualifiedNumber',
|
|
|
+ // 'noSetSampleList'
|
|
|
+ // );
|
|
|
console.log('质检没有 2');
|
|
|
},
|
|
|
// 批量质检
|