diff --git a/apps/shengou/views.py b/apps/shengou/views.py index c52a543..7ba7595 100644 --- a/apps/shengou/views.py +++ b/apps/shengou/views.py @@ -134,3 +134,12 @@ def dowload_shengou(): print(error) return jsonify(Utils.false_return(msg=f"导出错误:{error}")) return jsonify(Utils.false_return(msg="申购单导出错误")) + + +# 删除消息 +@shengou_bp.route("/del", methods=["POST"]) +@token_auth.login_required +def del_shengou(): + shengou_id =request.values.get("id") + BllMedicamntShenGou().delete(EntityMedicamntShenGou.id==shengou_id) + return jsonify(Utils.true_return()) \ No newline at end of file