|
|
@ -143,15 +143,19 @@ def solve_apply():
|
|
|
|
if obj.is_solve == 1:
|
|
|
|
if obj.is_solve == 1:
|
|
|
|
return jsonify(Utils.false_return(msg="已受理,无需重复受理"))
|
|
|
|
return jsonify(Utils.false_return(msg="已受理,无需重复受理"))
|
|
|
|
# obj.is_solve = 1
|
|
|
|
# obj.is_solve = 1
|
|
|
|
if not obj.solve_user_id:
|
|
|
|
if str(request.values.get('result')) == "0":
|
|
|
|
obj.solve_user_id = user_id
|
|
|
|
obj.information = request.values.get("information")
|
|
|
|
|
|
|
|
obj.is_solve = 2
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
if user_id == obj.solve_user_id:
|
|
|
|
if not obj.solve_user_id:
|
|
|
|
return jsonify(Utils.false_return(msg="不能位同一人审批"))
|
|
|
|
obj.solve_user_id = user_id
|
|
|
|
obj.solve_user_id_pt=user_id
|
|
|
|
else:
|
|
|
|
obj.is_solve = 1
|
|
|
|
if user_id == obj.solve_user_id:
|
|
|
|
obj.time_hour=t
|
|
|
|
return jsonify(Utils.false_return(msg="不能位同一人审批"))
|
|
|
|
BllUserTemporaryAuth().create_temporary_auth(user_ids=[obj.user_id, obj.user_id_pt], auth_type=2, t=t)
|
|
|
|
obj.solve_user_id_pt=user_id
|
|
|
|
|
|
|
|
obj.is_solve = 1
|
|
|
|
|
|
|
|
obj.time_hour=t
|
|
|
|
|
|
|
|
BllUserTemporaryAuth().create_temporary_auth(user_ids=[obj.user_id, obj.user_id_pt], auth_type=2, t=t)
|
|
|
|
obj.solve_date = Utils.get_str_datetime()
|
|
|
|
obj.solve_date = Utils.get_str_datetime()
|
|
|
|
# obj.solve_user_id = user_id
|
|
|
|
# obj.solve_user_id = user_id
|
|
|
|
# obj.solve_user_id_pt = user_id_pt
|
|
|
|
# obj.solve_user_id_pt = user_id_pt
|
|
|
|