feat: material添加img字段
This commit is contained in:
parent
05955abd9c
commit
41a3418110
|
|
@ -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='图片'),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
@ -108,6 +108,7 @@ class Material(CommonAModel):
|
||||||
unit_price = models.DecimalField('单价', max_digits=14, decimal_places=2, null=True, blank=True)
|
unit_price = models.DecimalField('单价', max_digits=14, decimal_places=2, null=True, blank=True)
|
||||||
into_wm = models.BooleanField('是否进入车间库存', default=True)
|
into_wm = models.BooleanField('是否进入车间库存', default=True)
|
||||||
bin_number_main = models.CharField('主库位号', max_length=50, null=True, blank=True)
|
bin_number_main = models.CharField('主库位号', max_length=50, null=True, blank=True)
|
||||||
|
img = models.TextField('图片', null=True, blank=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = '物料表'
|
verbose_name = '物料表'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue