feat: 新建审批单的时候要设置 apply_id
This commit is contained in:
@@ -33,6 +33,7 @@ def add_hotel_route(app: FastAPI):
|
|||||||
"amount": hotel_cls.discount_price,
|
"amount": hotel_cls.discount_price,
|
||||||
"logs": "[]",
|
"logs": "[]",
|
||||||
"user_id": body.user_id, # 先把审批人的id设置为申请人
|
"user_id": body.user_id, # 先把审批人的id设置为申请人
|
||||||
|
"apply_user_id": body.user_id,
|
||||||
"proj_id": body.proj_id,
|
"proj_id": body.proj_id,
|
||||||
"approve_from": "book_hotel",
|
"approve_from": "book_hotel",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ def add_reimburse_route(app: FastAPI):
|
|||||||
"amount": reimburse_cls.amount,
|
"amount": reimburse_cls.amount,
|
||||||
"logs": "[]",
|
"logs": "[]",
|
||||||
"user_id": reimburse_cls.user_id, # 先把审批人的id设置为申请人
|
"user_id": reimburse_cls.user_id, # 先把审批人的id设置为申请人
|
||||||
|
"apply_user_id": reimburse_cls.user_id,
|
||||||
"proj_id": reimburse_cls.proj_id,
|
"proj_id": reimburse_cls.proj_id,
|
||||||
"approve_from": "reimburse",
|
"approve_from": "reimburse",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,3 +14,4 @@ class PublicApproveModel(BasicModel):
|
|||||||
approve_from: str = Field(default=None, description="审批来源")
|
approve_from: str = Field(default=None, description="审批来源")
|
||||||
|
|
||||||
user_id: str = Field(default=None, description="当前审批人id")
|
user_id: str = Field(default=None, description="当前审批人id")
|
||||||
|
apply_user_id: str = Field(default=None, description="申请人id")
|
||||||
|
|||||||
Reference in New Issue
Block a user