From 096ad540d48e357f5b7c611926372f30b05c2906 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 12 Aug 2024 17:21:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20qm=20batch=E5=A2=9E=E5=8A=A0=E9=95=BF?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0019_alter_ftestwork_batch.py | 18 ++++++++++++++++++ apps/qm/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 apps/qm/migrations/0019_alter_ftestwork_batch.py diff --git a/apps/qm/migrations/0019_alter_ftestwork_batch.py b/apps/qm/migrations/0019_alter_ftestwork_batch.py new file mode 100644 index 00000000..ec4e2b62 --- /dev/null +++ b/apps/qm/migrations/0019_alter_ftestwork_batch.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2024-08-12 09:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('qm', '0018_auto_20240812_1048'), + ] + + operations = [ + migrations.AlterField( + model_name='ftestwork', + name='batch', + field=models.CharField(max_length=50, verbose_name='生产批次'), + ), + ] diff --git a/apps/qm/models.py b/apps/qm/models.py index fa2ec254..409c3c6f 100644 --- a/apps/qm/models.py +++ b/apps/qm/models.py @@ -107,7 +107,7 @@ class FtestWork(CommonBDModel): test_date = models.DateField('检验日期') material = models.ForeignKey( Material, verbose_name='产品', on_delete=models.CASCADE) - batch = models.CharField('生产批次', max_length=20) + batch = models.CharField('生产批次', max_length=50) count = models.IntegerField('检验数量') count_sampling = models.IntegerField('抽检数量', default=0) count_ok = models.IntegerField('合格数量', default=0)