feat: 检测编号改为textfield

This commit is contained in:
caoqianming 2025-01-07 15:37:14 +08:00
parent 7c9feb23ac
commit 38aa64df12
2 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2025-01-02 07:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('qm', '0032_defect_note'),
]
operations = [
migrations.AlterField(
model_name='ftest',
name='test_numer',
field=models.TextField(default='', verbose_name='检测编号'),
),
]

View File

@ -174,7 +174,8 @@ class QctDefect(BaseModel):
class QctMat(BaseModel):
qct = models.ForeignKey(Qct, verbose_name="质检模板", on_delete=models.CASCADE, related_name="qctmat")
material = models.ForeignKey(Material, verbose_name="物料", on_delete=models.CASCADE)
tracing = models.CharField('追溯层级', default=QC_T, choices=QC_TRACE_CHOICES, max_length=20, help_text=str(QC_TRACE_CHOICES))
tracing = models.CharField('追溯层级', default=QC_T, choices=QC_TRACE_CHOICES,
max_length=20, help_text=str(QC_TRACE_CHOICES))
class QuaStat(CommonBDModel):
@ -239,7 +240,7 @@ class Ftest(CommonBDModel):
"""
type = models.CharField('检验类型', max_length=20, choices=FTEST_TYPE_CHOICES)
test_date = models.DateField('检验日期')
test_numer = models.CharField('检测编号', max_length=20, default='')
test_numer = models.TextField('检测编号', default='')
test_group = models.CharField(
'检验工序集', max_length=20, default='', blank=True)
test_user = models.ForeignKey(