diff --git a/apps/qm/migrations/0015_ftestwork_count_ok.py b/apps/qm/migrations/0015_ftestwork_count_ok.py new file mode 100644 index 00000000..92f0ada5 --- /dev/null +++ b/apps/qm/migrations/0015_ftestwork_count_ok.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2024-07-23 04:55 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('qm', '0014_alter_ftest_test_group'), + ] + + operations = [ + migrations.AddField( + model_name='ftestwork', + name='count_ok', + field=models.IntegerField(default=0, verbose_name='合格数量'), + ), + ] diff --git a/apps/qm/models.py b/apps/qm/models.py index c60d3aa7..a9db0077 100644 --- a/apps/qm/models.py +++ b/apps/qm/models.py @@ -47,6 +47,7 @@ class FtestWork(CommonBDModel): batch = models.CharField('生产批次', max_length=20) count = models.IntegerField('总数量') count_sampling = models.IntegerField('抽检数量', default=0) + count_ok = models.IntegerField('合格数量', default=0) class Ftest(CommonBDModel):