feat: 增加加工前不良的不合格项
This commit is contained in:
parent
cff14fa042
commit
91add9ec1d
|
@ -0,0 +1,23 @@
|
||||||
|
# Generated by Django 3.2.12 on 2024-09-02 06:11
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('wpm', '0063_wmaterial_supplier'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='mlog',
|
||||||
|
name='count_n_jgqbl',
|
||||||
|
field=models.PositiveIntegerField(default=0, verbose_name='加工前不良'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='mlogb',
|
||||||
|
name='count_n_jgqbl',
|
||||||
|
field=models.PositiveIntegerField(default=0, verbose_name='加工前不良'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -155,6 +155,7 @@ class Mlog(CommonADModel):
|
||||||
count_notok = models.PositiveIntegerField('不合格数', default=0)
|
count_notok = models.PositiveIntegerField('不合格数', default=0)
|
||||||
count_break_t = models.PositiveIntegerField('检验碎料数', default=0)
|
count_break_t = models.PositiveIntegerField('检验碎料数', default=0)
|
||||||
|
|
||||||
|
count_n_jgqbl = models.PositiveIntegerField('加工前不良', default=0)
|
||||||
count_n_zw = models.PositiveIntegerField('炸纹', default=0)
|
count_n_zw = models.PositiveIntegerField('炸纹', default=0)
|
||||||
count_n_tw = models.PositiveIntegerField('条纹', default=0)
|
count_n_tw = models.PositiveIntegerField('条纹', default=0)
|
||||||
count_n_qp = models.PositiveIntegerField('气泡', default=0)
|
count_n_qp = models.PositiveIntegerField('气泡', default=0)
|
||||||
|
@ -246,6 +247,7 @@ class Mlogb(BaseModel):
|
||||||
count_ok = models.PositiveIntegerField('合格数量', default=0)
|
count_ok = models.PositiveIntegerField('合格数量', default=0)
|
||||||
count_notok = models.PositiveIntegerField('不合格数', default=0)
|
count_notok = models.PositiveIntegerField('不合格数', default=0)
|
||||||
|
|
||||||
|
count_n_jgqbl = models.PositiveIntegerField('加工前不良', default=0)
|
||||||
# 添加不合格字段后需要更改cal_mlog_count_from_mlogb
|
# 添加不合格字段后需要更改cal_mlog_count_from_mlogb
|
||||||
count_n_hs = models.PositiveIntegerField('划伤', default=0)
|
count_n_hs = models.PositiveIntegerField('划伤', default=0)
|
||||||
count_n_qp = models.PositiveIntegerField('气泡', default=0)
|
count_n_qp = models.PositiveIntegerField('气泡', default=0)
|
||||||
|
|
Loading…
Reference in New Issue