feat: ftest增加type选项

This commit is contained in:
caoqianming 2025-01-15 15:20:12 +08:00
parent a2a89a0785
commit 84e1aca814
2 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,23 @@
# Generated by Django 3.2.12 on 2025-01-15 07:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('qm', '0036_auto_20250113_1130'),
]
operations = [
migrations.AlterField(
model_name='ftest',
name='type',
field=models.CharField(choices=[('purin', '入厂检验'), ('first', '首件检验'), ('process', '过程检验'), ('prod', '成品检验'), ('performance', '性能检验')], max_length=20, verbose_name='检验类型'),
),
migrations.AlterField(
model_name='ftestwork',
name='type',
field=models.CharField(choices=[('purin', '入厂检验'), ('first', '首件检验'), ('process', '过程检验'), ('prod', '成品检验'), ('performance', '性能检验')], default='prod', max_length=20, verbose_name='检验类型'),
),
]

View File

@ -101,9 +101,11 @@ class NotOkOption(models.TextChoices):
return extra_info.get(value, {"cate": "notok"})
FTEST_TYPE_CHOICES = (
('purin', '入厂检验'),
('first', '首件检验'),
('process', '过程检验'),
('prod', '成品检验')
('prod', '成品检验'),
('performance', '性能检验')
)
class TestItem(CommonAModel):