diff --git a/apps/mtm/migrations/0061_material_img.py b/apps/mtm/migrations/0061_material_img.py new file mode 100644 index 00000000..fb56bbd9 --- /dev/null +++ b/apps/mtm/migrations/0061_material_img.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2025-08-21 09:34 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('mtm', '0060_route_params_json'), + ] + + operations = [ + migrations.AddField( + model_name='material', + name='img', + field=models.TextField(blank=True, null=True, verbose_name='图片'), + ), + ] diff --git a/apps/mtm/models.py b/apps/mtm/models.py index 0c57aaf5..f880a664 100644 --- a/apps/mtm/models.py +++ b/apps/mtm/models.py @@ -108,6 +108,7 @@ class Material(CommonAModel): unit_price = models.DecimalField('单价', max_digits=14, decimal_places=2, null=True, blank=True) into_wm = models.BooleanField('是否进入车间库存', default=True) bin_number_main = models.CharField('主库位号', max_length=50, null=True, blank=True) + img = models.TextField('图片', null=True, blank=True) class Meta: verbose_name = '物料表'