feat: 新建审批单的时候要设置 apply_id

This commit is contained in:
martsforever
2025-08-24 23:17:32 +08:00
parent 963578d8a0
commit 2cf70c689b
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -33,6 +33,7 @@ def add_hotel_route(app: FastAPI):
"amount": hotel_cls.discount_price,
"logs": "[]",
"user_id": body.user_id, # 先把审批人的id设置为申请人
"apply_user_id": body.user_id,
"proj_id": body.proj_id,
"approve_from": "book_hotel",
}
+1
View File
@@ -46,6 +46,7 @@ def add_reimburse_route(app: FastAPI):
"amount": reimburse_cls.amount,
"logs": "[]",
"user_id": reimburse_cls.user_id, # 先把审批人的id设置为申请人
"apply_user_id": reimburse_cls.user_id,
"proj_id": reimburse_cls.proj_id,
"approve_from": "reimburse",
}
+1
View File
@@ -14,3 +14,4 @@ class PublicApproveModel(BasicModel):
approve_from: str = Field(default=None, description="审批来源")
user_id: str = Field(default=None, description="当前审批人id")
apply_user_id: str = Field(default=None, description="申请人id")