diff --git a/apps/pum/migrations/0007_supplier_number.py b/apps/pum/migrations/0007_supplier_number.py new file mode 100644 index 00000000..ae691ecc --- /dev/null +++ b/apps/pum/migrations/0007_supplier_number.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2024-07-31 08:26 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('pum', '0006_supplier_can_outsource'), + ] + + operations = [ + migrations.AddField( + model_name='supplier', + name='number', + field=models.CharField(blank=True, max_length=20, null=True, verbose_name='供应商编号'), + ), + ] diff --git a/apps/pum/models.py b/apps/pum/models.py index c95e01c3..f88ae489 100644 --- a/apps/pum/models.py +++ b/apps/pum/models.py @@ -9,6 +9,7 @@ class Supplier(CommonBModel): 供应商 """ name = models.CharField('供应商名称', max_length=50) + number= models.CharField('供应商编号', max_length=20, null=True, blank=True) contact = models.CharField('联系人', max_length=20, default='', blank=True) contact_phone = models.CharField('联系电话', max_length=11, default='', blank=True) address = models.CharField('地址', max_length=200, default='', blank=True)