|
@@ -84,9 +84,8 @@
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="form.sampleQualificationRate"
|
|
v-model="form.sampleQualificationRate"
|
|
|
disabled
|
|
disabled
|
|
|
- type="number"
|
|
|
|
|
|
|
+ type="text"
|
|
|
>
|
|
>
|
|
|
- <template slot="append">%</template>
|
|
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -98,9 +97,8 @@
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="form.sampleNoQualificationRate"
|
|
v-model="form.sampleNoQualificationRate"
|
|
|
disabled
|
|
disabled
|
|
|
- type="number"
|
|
|
|
|
|
|
+ type="text"
|
|
|
>
|
|
>
|
|
|
- <template slot="append">%</template>
|
|
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -437,11 +435,11 @@
|
|
|
this.form.sampleNoQualificationRate = (
|
|
this.form.sampleNoQualificationRate = (
|
|
|
(num / total) *
|
|
(num / total) *
|
|
|
100
|
|
100
|
|
|
- ).toFixed(2);
|
|
|
|
|
|
|
+ ).toFixed(2)+'%';
|
|
|
this.form.sampleQualificationRate = (
|
|
this.form.sampleQualificationRate = (
|
|
|
(this.form.sampleQualifiedNumber / total) *
|
|
(this.form.sampleQualifiedNumber / total) *
|
|
|
100
|
|
100
|
|
|
- ).toFixed(2);
|
|
|
|
|
|
|
+ ).toFixed(2)+'%';
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
this.quantityAssignment();
|
|
this.quantityAssignment();
|
|
@@ -757,6 +755,7 @@
|
|
|
// });
|
|
// });
|
|
|
|
|
|
|
|
// this.$set(this.form, 'resultsTotal', resultsTotal);
|
|
// this.$set(this.form, 'resultsTotal', resultsTotal);
|
|
|
|
|
+ console.log(sampleQualificationRate, 'sampleQualificationRate');
|
|
|
this.$set(
|
|
this.$set(
|
|
|
this.form,
|
|
this.form,
|
|
|
'sampleQualificationRate',
|
|
'sampleQualificationRate',
|
|
@@ -776,6 +775,7 @@
|
|
|
sampleNoQualifiedNumber
|
|
sampleNoQualifiedNumber
|
|
|
);
|
|
);
|
|
|
// 数量赋值
|
|
// 数量赋值
|
|
|
|
|
+ console.log(this.form, 'this.form');
|
|
|
|
|
|
|
|
this.quantityAssignment();
|
|
this.quantityAssignment();
|
|
|
},
|
|
},
|