feat: inm 和 wpm添加wpr number的查询条件
This commit is contained in:
parent
11f06c36f7
commit
77c4c54eb1
|
@ -35,6 +35,7 @@ class MioFilter(filters.FilterSet):
|
|||
"order": ["exact"],
|
||||
"item_mio__test_date": ["isnull"],
|
||||
"item_mio__test_user": ["isnull"],
|
||||
"item_mio__w_mioitem__number": ["exact"],
|
||||
"mgroup": ["exact"],
|
||||
"item_mio__batch": ["exact"]
|
||||
}
|
||||
|
|
|
@ -110,7 +110,8 @@ class MlogFilter(filters.FilterSet):
|
|||
"mgroup__name": ["exact", "in", "contains"],
|
||||
"submit_time": ["isnull"],
|
||||
"fmlog": ["exact"],
|
||||
"b_mlog__batch": ["exact"]
|
||||
"b_mlog__batch": ["exact"],
|
||||
"b_mlog__w_mlogb__number": ["exact"],
|
||||
}
|
||||
|
||||
def filter_cbatch(self, queryset, name, value):
|
||||
|
@ -158,7 +159,8 @@ class HandoverFilter(filters.FilterSet):
|
|||
"recive_mgroup__name": ["exact"],
|
||||
"type": ["exact", "in"],
|
||||
"mtype": ["exact", "in"],
|
||||
"b_handover__batch": ["exact"]
|
||||
"b_handover__batch": ["exact"],
|
||||
"b_handover__w_handoverb__number": ["exact"]
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
# Generated by Django 3.2.12 on 2025-06-09 05:24
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wpm', '0116_auto_20250523_0922'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='handoverbw',
|
||||
name='handoverb',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='w_handoverb', to='wpm.handoverb', verbose_name='关联交接记录'),
|
||||
),
|
||||
]
|
|
@ -592,7 +592,7 @@ class Handoverb(BaseModel):
|
|||
class Handoverbw(BaseModel):
|
||||
"""TN: 单个产品交接记录
|
||||
"""
|
||||
handoverb = models.ForeignKey(Handoverb, verbose_name='关联交接记录', on_delete=models.CASCADE)
|
||||
handoverb = models.ForeignKey(Handoverb, verbose_name='关联交接记录', on_delete=models.CASCADE, related_name="w_handoverb")
|
||||
number = models.TextField('单个编号')
|
||||
wpr = models.ForeignKey("wpmw.wpr", verbose_name='关联产品', on_delete=models.CASCADE
|
||||
, related_name='wpr_handoverbw', null=True, blank=True)
|
||||
|
|
Loading…
Reference in New Issue