feat: inm mioitem同步数据库
This commit is contained in:
parent
7e18ea572a
commit
7d5b1223d5
|
@ -0,0 +1,28 @@
|
||||||
|
# Generated by Django 3.2.12 on 2024-04-02 03:39
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('inm', '0014_auto_20240322_1451'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='mioitem',
|
||||||
|
name='count_n_ysq',
|
||||||
|
field=models.PositiveIntegerField(default=0, verbose_name='颜色青'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='mioitem',
|
||||||
|
name='count_n_zz',
|
||||||
|
field=models.PositiveIntegerField(default=0, verbose_name='杂质'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='mioitem',
|
||||||
|
name='test_note',
|
||||||
|
field=models.TextField(blank=True, default='', verbose_name='检验备注'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -244,7 +244,7 @@ class MIOItemTestSerializer(CustomModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = MIOItem
|
model = MIOItem
|
||||||
fields = ['id', 'test_date', 'test_user', 'count_notok', 'count_n_zw', 'count_n_tw',
|
fields = ['id', 'test_date', 'test_user', 'count_notok', 'count_n_zw', 'count_n_tw',
|
||||||
'count_n_qp', 'count_n_wq', 'count_n_dl', 'count_n_pb', 'count_n_dxt', 'count_n_js', 'count_n_qx', 'count_n_qt']
|
'count_n_qp', 'count_n_wq', 'count_n_dl', 'count_n_pb', 'count_n_dxt', 'count_n_js', 'count_n_qx', 'count_n_zz', 'count_n_ysq', 'count_n_qt', 'test_note']
|
||||||
extra_kwargs = {
|
extra_kwargs = {
|
||||||
'test_date': {'required': True},
|
'test_date': {'required': True},
|
||||||
'test_user': {'required': True}
|
'test_user': {'required': True}
|
||||||
|
@ -261,7 +261,7 @@ class MIOItemPurInTestSerializer(CustomModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = MIOItem
|
model = MIOItem
|
||||||
fields = ['id', 'test_date', 'test_user',
|
fields = ['id', 'test_date', 'test_user',
|
||||||
'count_bag', 'weight_kgs', 'is_testok']
|
'count_bag', 'weight_kgs', 'is_testok', 'test_note']
|
||||||
extra_kwargs = {
|
extra_kwargs = {
|
||||||
'test_date': {'required': True},
|
'test_date': {'required': True},
|
||||||
'test_user': {'required': True}
|
'test_user': {'required': True}
|
||||||
|
|
Loading…
Reference in New Issue