feat: 工序增加字段batch_append_equip
This commit is contained in:
parent
93b1a80cfb
commit
9dcc4c0910
|
@ -5,7 +5,7 @@ from apps.mtm.models import Material, Shift, Mgroup, Process
|
|||
|
||||
@admin.register(Process)
|
||||
class ProcessAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'name', 'cate', 'sort', 'into_wm_mgroup', 'store_notok')
|
||||
list_display = ('id', 'name', 'cate', 'sort', 'into_wm_mgroup', 'store_notok', 'batch_append_equip')
|
||||
|
||||
|
||||
@admin.register(Material)
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.2.12 on 2024-07-31 08:26
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('mtm', '0037_material_into_wm'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='process',
|
||||
name='batch_append_equip',
|
||||
field=models.BooleanField(default=False, verbose_name='批号追加设备'),
|
||||
),
|
||||
]
|
|
@ -17,6 +17,7 @@ class Process(CommonBModel):
|
|||
instruction_content = models.TextField('指导书内容', null=True, blank=True)
|
||||
into_wm_mgroup = models.BooleanField('交接到工段', default=False)
|
||||
store_notok = models.BooleanField('不合格品是否入库', default=False)
|
||||
batch_append_equip = models.BooleanField('批号追加设备', default=False)
|
||||
|
||||
class Meta:
|
||||
verbose_name = '工序'
|
||||
|
|
Loading…
Reference in New Issue