feat: 供应商增加字段number

This commit is contained in:
caoqianming 2024-07-31 16:29:11 +08:00
parent 821d7613d1
commit 93b1a80cfb
2 changed files with 19 additions and 0 deletions

View File

@ -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='供应商编号'),
),
]

View File

@ -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)