duizhaopin
duizhaoproduction 2 years ago
parent 95f63eafc4
commit 0d5bf3b3d6

@ -326,7 +326,7 @@ def update_drug_remain():
remain = request.values.get("remain") remain = request.values.get("remain")
obj = BllMedicament().findEntity(EntityMedicament.medicament_id==drug_id) obj = BllMedicament().findEntity(EntityMedicament.medicament_id==drug_id)
if obj: if obj:
if not obj.remain: if not remain:
setattr(obj, "status", "3") setattr(obj, "status", "3")
else: else:
setattr(obj, "remain", remain) setattr(obj, "remain", remain)

@ -169,8 +169,8 @@ def bind_tmp_input_db():
"client_name": client_obj.client_name "client_name": client_obj.client_name
}) })
# 打印标签 # 打印标签
obj = CreateBarcode() # obj = CreateBarcode()
obj.create_drug_lobel_code(**new_dict) # obj.create_drug_lobel_code(**new_dict)
BllMedicament().drugPutIn( BllMedicament().drugPutIn(
drug_entity, drug_entity,
BllClient().findEntity(EntityClient.client_id==drug_entity.client_id), BllClient().findEntity(EntityClient.client_id==drug_entity.client_id),

Loading…
Cancel
Save