@ -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)
@ -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),