From 133e99d55663b1fbed023bf98ba61bce4ebc643a Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 1 Dec 2021 10:37:35 +0800 Subject: [PATCH] =?UTF-8?q?material=E5=A2=9E=E5=8A=A0piece=5Fcount?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0040_material_piece_count.py | 18 ++++++++++++++++++ hb_server/apps/mtm/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 hb_server/apps/mtm/migrations/0040_material_piece_count.py diff --git a/hb_server/apps/mtm/migrations/0040_material_piece_count.py b/hb_server/apps/mtm/migrations/0040_material_piece_count.py new file mode 100644 index 0000000..04a0360 --- /dev/null +++ b/hb_server/apps/mtm/migrations/0040_material_piece_count.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.9 on 2021-12-01 02:37 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('mtm', '0039_auto_20211201_1016'), + ] + + operations = [ + migrations.AddField( + model_name='material', + name='piece_count', + field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='单片玻璃数量'), + ), + ] diff --git a/hb_server/apps/mtm/models.py b/hb_server/apps/mtm/models.py index dccb4d0..a131e3d 100644 --- a/hb_server/apps/mtm/models.py +++ b/hb_server/apps/mtm/models.py @@ -40,6 +40,7 @@ class Material(CommonAModel): sort_str = models.CharField('排序字符', max_length=100, null=True, blank=True) unit = models.CharField('基准计量单位', choices=unit_choices, default='块', max_length=10) count = models.IntegerField('物料总数', default=0) + piece_count = models.PositiveSmallIntegerField('单片玻璃数量', null=True, blank=True) class Meta: verbose_name = '物料表' verbose_name_plural = verbose_name