申请修改

duizhaopin
13507605001 2 years ago
parent 8c44c9065f
commit 69d7c61513

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

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

Loading…
Cancel
Save