feat: equipment增加启用日期
This commit is contained in:
parent
9ad37f41fd
commit
d6a9a683f1
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.2.12 on 2023-09-05 09:29
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('em', '0002_equipment_power_kw'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='equipment',
|
||||
name='use_date',
|
||||
field=models.DateField(blank=True, null=True, verbose_name='启用日期'),
|
||||
),
|
||||
]
|
|
@ -60,6 +60,7 @@ class Equipment(CommonBModel):
|
|||
# usetype = models.IntegerField('使用类别', choices=usetype_choices, default=1)
|
||||
# way = models.IntegerField('校准或检定方式', choices=way_choices, default=1)
|
||||
# standard = models.CharField('溯源标准或依据', max_length=200, default='', blank=True)
|
||||
use_date = models.DateField('启用日期', null=True, blank=True)
|
||||
cycle = models.PositiveSmallIntegerField('校准或检定周期(月)', null=True, blank=True)
|
||||
check_date = models.DateField('最近校准检查日期', blank=True, null=True)
|
||||
next_check_date = models.DateField('预计下次校准检查日期',blank=True, null=True)
|
||||
|
|
Loading…
Reference in New Issue