feat: equipment增加精度等级字段

This commit is contained in:
caoqianming 2023-11-22 09:55:46 +08:00
parent 6263960a7c
commit 6f058dc757
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2023-11-22 01:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('em', '0007_auto_20231121_1852'),
]
operations = [
migrations.AddField(
model_name='equipment',
name='accuracy_level',
field=models.CharField(blank=True, default='', max_length=10, verbose_name='精度等级'),
),
]

View File

@ -72,6 +72,8 @@ class Equipment(CommonBModel):
meter_type = models.CharField(
'仪表类型', max_length=100, null=True, blank=True)
management_level = models.CharField('管理等级', max_length=10, default='A')
accuracy_level = models.CharField(
'精度等级', max_length=10, default='', blank=True)
measurement_range = models.CharField(
'量程范围', max_length=100, default='', blank=True)
use_date = models.DateField('启用日期', null=True, blank=True)