feat: qm 合格率设置阈值

This commit is contained in:
zty 2025-01-21 15:15:24 +08:00
parent 4254e226d3
commit e0f7ce4636
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2025-01-21 06:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('qm', '0039_ftest_defect_main'),
]
operations = [
migrations.AddField(
model_name='quastat',
name='rate_pass_t',
field=models.FloatField(blank=True, null=True, verbose_name='合格率目标值'),
),
]

View File

@ -201,6 +201,7 @@ class QuaStat(CommonBDModel):
num_test = models.PositiveSmallIntegerField('检测次数', null=True, blank=True)
num_ok = models.PositiveSmallIntegerField('合格次数', null=True, blank=True)
rate_pass = models.FloatField('合格率', null=True, blank=True)
rate_pass_t = models.FloatField('合格率目标值', null=True, blank=True)
class FtestWork(CommonBDModel):