fix: hrm-用人需求修改标题模板

This commit is contained in:
TianyangZhang 2025-12-16 10:35:13 +08:00
parent 190f2f047d
commit d3c5358d2c
2 changed files with 5 additions and 1 deletions

View File

@ -344,6 +344,7 @@ class ResignationSerializer(CustomModelSerializer):
class EmpNeedSerializer(CustomModelSerializer):
dept_need_name = serializers.CharField(source='dept_need.name', read_only=True)
ticket_ = TicketSimpleSerializer(source='ticket', read_only=True)
class Meta:
model = EmpNeed
fields = '__all__'

View File

@ -427,4 +427,7 @@ class EmpNeedViewSet(TicketMixin, EuModelViewSet):
serializer_class = EmpNeedSerializer
filterset_fields = ['dept_need']
search_fields = ["dept_need__name", "post_need"]
workflow_key = "wf_empneed"
workflow_key = "wf_empneed"
def gen_other_ticket_data(self, instance):
return {"post_need": instance.post_need}