From 0d5bf3b3d6be5e2289b15c087e1bfe3819e0dbb9 Mon Sep 17 00:00:00 2001 From: duizhaoproduction Date: Tue, 28 Mar 2023 22:07:40 +0800 Subject: [PATCH] 111 --- apps/drug/views.py | 2 +- apps/drug_template/views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/drug/views.py b/apps/drug/views.py index 6c9c2e9..f4f53bb 100644 --- a/apps/drug/views.py +++ b/apps/drug/views.py @@ -326,7 +326,7 @@ def update_drug_remain(): remain = request.values.get("remain") obj = BllMedicament().findEntity(EntityMedicament.medicament_id==drug_id) if obj: - if not obj.remain: + if not remain: setattr(obj, "status", "3") else: setattr(obj, "remain", remain) diff --git a/apps/drug_template/views.py b/apps/drug_template/views.py index b59d751..9627aa5 100644 --- a/apps/drug_template/views.py +++ b/apps/drug_template/views.py @@ -169,8 +169,8 @@ def bind_tmp_input_db(): "client_name": client_obj.client_name }) # 打印标签 - obj = CreateBarcode() - obj.create_drug_lobel_code(**new_dict) + # obj = CreateBarcode() + # obj.create_drug_lobel_code(**new_dict) BllMedicament().drugPutIn( drug_entity, BllClient().findEntity(EntityClient.client_id==drug_entity.client_id),