fix: swagger bug

This commit is contained in:
caoqianming 2023-09-19 15:35:06 +08:00
parent 16e4d85f5d
commit 85ac0d077f
3 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class PuPlanSerializer(CustomModelSerializer):
class PuPlanItemSerializer(CustomModelSerializer):
material_ = MaterialSerializer(source='material', read_only=True)
belong_dept_name = serializers.CharField(source='belong_dept.name', read_only=True)
class Meata:
class Meta:
model = PuPlanItem
fields = '__all__'
read_only_fields = EXCLUDE_FIELDS_DEPT + ['pu_order']

View File

@ -49,7 +49,7 @@ class Order(CommonBModel):
ORDER_DELIVERED = 40
ORDER_STATES = (
(10, '创建中'),
(20, '已提交')
(20, '已提交'),
(30, '已排产'),
(40, '已交付')
)

View File

@ -106,6 +106,7 @@ INSTALLED_APPS = [
'apps.enm',
'apps.fim',
'apps.inm',
'apps.sam',
'apps.pum'
]