添加预备入库类型

duizhaopin
13507605001 2 years ago
parent 3b9900d183
commit 8f7650b44d

@ -126,10 +126,14 @@ def bind_tmp_input_db():
"put_in_date": Utils.get_str_datetime(),
"put_in_user_id": user_info.user_id,
"put_in_user_name": user_info.real_name,
"status":1,
# "status":1,
"remain": remain_num,
"func_type": func_type,
}
if len(bar_code) > 10:
new_dict["status"] = 5
else:
new_dict["status"] = 1
finds_list = dir(EntityMedicament())
for i in finds_list:
if i in new_dict.keys():

@ -219,7 +219,8 @@ class BllMedicament(Repository):
# 创建事务
self.beginTrans()
self.session.add(entityDrug)
self.session.add(entityDrugRecord)
if entityDrug.status == 1:
self.session.add(entityDrugRecord)
boolean_ = self.commitTrans()
if boolean_ is None:
return True

Loading…
Cancel
Save