|
|
|
@ -23,6 +23,7 @@ from db_logic.meidcament_variety import BllMedicamentVariety
|
|
|
|
|
from models.client_models import EntityClient
|
|
|
|
|
from models.medicament_models import EntityMedicament, EntityMedicamentTemplate
|
|
|
|
|
from Common.auth import token_auth
|
|
|
|
|
from Common.create_barcode import CreateBarcode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tmp_router = Blueprint("drug_tmplate", __name__)
|
|
|
|
@ -314,15 +315,15 @@ def get_file_list():
|
|
|
|
|
# return jsonify(Utils.true_return(data=os.listdir(file_path)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# @tmp_router.route("/pring_bar_code", methods=["POST"])
|
|
|
|
|
# @token_auth.login_required
|
|
|
|
|
# def print_code_data():
|
|
|
|
|
# start = request.values.get("start_code")
|
|
|
|
|
# end = request.values.get("end_code")
|
|
|
|
|
# obj = CreateBarcode()
|
|
|
|
|
# for i in range(int(start), int(end)):
|
|
|
|
|
# obj.create_Code128_img(str(i))
|
|
|
|
|
# return jsonify(Utils.true_return(msg="成功"))
|
|
|
|
|
@tmp_router.route("/pring_bar_code", methods=["POST"])
|
|
|
|
|
@token_auth.login_required
|
|
|
|
|
def print_code_data():
|
|
|
|
|
start = request.values.get("start_code")
|
|
|
|
|
end = request.values.get("end_code")
|
|
|
|
|
obj = CreateBarcode()
|
|
|
|
|
for i in range(int(start), int(end)):
|
|
|
|
|
obj.create_Code128_img(str(i))
|
|
|
|
|
return jsonify(Utils.true_return(msg="成功"))
|
|
|
|
|
|
|
|
|
|
# # 获取所有导入模板信息
|
|
|
|
|
# @tmp_router.route("/all_tmp", methods=["GET"])
|
|
|
|
|