From 69d7c615133c63292367e3a1b2fa29dd017ded5c Mon Sep 17 00:00:00 2001 From: 13507605001 Date: Tue, 3 Jan 2023 11:03:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=B7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/drug_template/views.py | 1 - apps/temporary_auth/views.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/drug_template/views.py b/apps/drug_template/views.py index db6cf6a..2c0e84a 100644 --- a/apps/drug_template/views.py +++ b/apps/drug_template/views.py @@ -335,7 +335,6 @@ def print_code_data(): # end = request.values.get("end_code") # temp_obj_list = BllMedicamentTemplate().findList(EntityMedicamentTemplate.template_id._in(template_id_list)).all() obj = CreateBarcode() - print(template_id) temp = BllMedicamentTemplate().findEntity(EntityMedicamentTemplate.template_id == template_id) for i in range(int(temp.start_bar_code), int(temp.start_bar_code) + int(temp.bar_code_count)): obj.create_Code128_img(str(i)) diff --git a/apps/temporary_auth/views.py b/apps/temporary_auth/views.py index e6191bd..be1669d 100644 --- a/apps/temporary_auth/views.py +++ b/apps/temporary_auth/views.py @@ -39,8 +39,9 @@ def get_use_drug_list(): # 创建申请记录 @temporary_bp.route("/add", methods=["POST"]) +@token_auth.login_required def user_apply_log(): - user_id = request.values.get("user_id") + # user_id = request.values.get("user_id") user_id_pt = request.values.get("user_id_pt") func_type = request.values.get("func_type") use_doc = request.values.get("use_doc") @@ -56,7 +57,7 @@ def user_apply_log(): if not use_content: return jsonify(Utils.false_return(msg='内容为空,无需提交')) obj = EntityUserApply( - user_id = user_id, + user_id = g.current_user.user_id, user_id_pt = user_id_pt, # drug_name = drug_name, # drug_num = drug_num,