From 3d2b8e22cef50312160bbb395bc280ab553c75dd Mon Sep 17 00:00:00 2001 From: 13507605001 Date: Fri, 6 Jan 2023 17:44:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=A0=E9=99=A4=E8=AF=B7?= =?UTF-8?q?=E8=B4=AD=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/shengou/views.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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