feat: ftestwork添加抽检合格数
This commit is contained in:
parent
78dc923305
commit
cff14fa042
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.2.12 on 2024-08-30 05:34
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('qm', '0021_ftestwork_mb'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='ftestwork',
|
||||
name='count_sampling_ok',
|
||||
field=models.IntegerField(default=0, verbose_name='抽检合格数量'),
|
||||
),
|
||||
]
|
|
@ -56,6 +56,8 @@ class NotOkOption(models.TextChoices):
|
|||
z = "z", _("脏")
|
||||
zhg = "zhg", _("准合格")
|
||||
yz = "yz", _("圆准")
|
||||
|
||||
jgqbl = "jgqbl", _("加工前不良")
|
||||
|
||||
qt = "qt", _("其它")
|
||||
|
||||
|
@ -117,6 +119,7 @@ class FtestWork(CommonBDModel):
|
|||
batch = models.CharField('生产批次', max_length=50)
|
||||
count = models.IntegerField('检验数量')
|
||||
count_sampling = models.IntegerField('抽检数量', default=0)
|
||||
count_sampling_ok = models.IntegerField('抽检合格数量', default=0)
|
||||
count_ok = models.IntegerField('合格数量', default=0)
|
||||
count_notok = models.IntegerField('不合格数量', default=0)
|
||||
count_notok_json = models.JSONField('不合格项数量统计', default=dict, null=False, blank=True)
|
||||
|
|
Loading…
Reference in New Issue