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