From 41a34181109a94285a6bb05a16a9991f1a2248cc Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 21 Aug 2025 17:34:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20material=E6=B7=BB=E5=8A=A0img=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/mtm/migrations/0061_material_img.py | 18 ++++++++++++++++++ apps/mtm/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 apps/mtm/migrations/0061_material_img.py 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 = '物料表'