feat: 添加不合格项目 炸头
This commit is contained in:
parent
1311217668
commit
bf524286c1
|
@ -9,6 +9,7 @@ from django.utils.translation import gettext_lazy as _
|
||||||
class NotOkOption(models.TextChoices):
|
class NotOkOption(models.TextChoices):
|
||||||
# 不合格项
|
# 不合格项
|
||||||
zw = "zw", _("炸纹")
|
zw = "zw", _("炸纹")
|
||||||
|
zt = "zt", _("炸头")
|
||||||
tw = "tw", _("条纹")
|
tw = "tw", _("条纹")
|
||||||
qp = "qp", _("气泡")
|
qp = "qp", _("气泡")
|
||||||
wq = "wq", _("弯曲")
|
wq = "wq", _("弯曲")
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
# Generated by Django 3.2.12 on 2024-11-28 01:09
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('wpm', '0072_handover_note'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='mlog',
|
||||||
|
name='count_n_zt',
|
||||||
|
field=models.PositiveIntegerField(default=0, verbose_name='炸头'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='mlogb',
|
||||||
|
name='count_n_zt',
|
||||||
|
field=models.PositiveIntegerField(default=0, verbose_name='炸头'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -235,6 +235,7 @@ class Mlog(CommonADModel):
|
||||||
count_n_yd = models.PositiveIntegerField('圆度', default=0)
|
count_n_yd = models.PositiveIntegerField('圆度', default=0)
|
||||||
count_n_txd = models.PositiveIntegerField('同心度', default=0)
|
count_n_txd = models.PositiveIntegerField('同心度', default=0)
|
||||||
count_n_hd = models.PositiveIntegerField('厚度', default=0)
|
count_n_hd = models.PositiveIntegerField('厚度', default=0)
|
||||||
|
count_n_zt = models.PositiveIntegerField('炸头', default=0)
|
||||||
count_n_qt = models.PositiveIntegerField('其他', default=0)
|
count_n_qt = models.PositiveIntegerField('其他', default=0)
|
||||||
|
|
||||||
handle_date = models.DateField('操作日期', null=True, blank=True)
|
handle_date = models.DateField('操作日期', null=True, blank=True)
|
||||||
|
@ -316,6 +317,7 @@ class Mlogb(BaseModel):
|
||||||
count_n_yd = models.PositiveIntegerField('圆度', default=0)
|
count_n_yd = models.PositiveIntegerField('圆度', default=0)
|
||||||
count_n_txd = models.PositiveIntegerField('同心度', default=0)
|
count_n_txd = models.PositiveIntegerField('同心度', default=0)
|
||||||
count_n_hd = models.PositiveIntegerField('厚度', default=0)
|
count_n_hd = models.PositiveIntegerField('厚度', default=0)
|
||||||
|
count_n_zt = models.PositiveIntegerField('炸头', default=0)
|
||||||
count_n_qt = models.PositiveIntegerField('其他', default=0)
|
count_n_qt = models.PositiveIntegerField('其他', default=0)
|
||||||
count_notok_json = models.JSONField('不合格情况', default=list, blank=True)
|
count_notok_json = models.JSONField('不合格情况', default=list, blank=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue