|
|
@ -18,7 +18,7 @@ drug_form_router = Blueprint("drug_form", __name__)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@drug_form_router.route("/getlist", methods=["GET", "POST"])
|
|
|
|
@drug_form_router.route("/getlist", methods=["GET", "POST"])
|
|
|
|
# @token_auth.login_required
|
|
|
|
@token_auth.login_required
|
|
|
|
def get_drug_form():
|
|
|
|
def get_drug_form():
|
|
|
|
page = request.values.get("page", 1)
|
|
|
|
page = request.values.get("page", 1)
|
|
|
|
page_size = request.values.get("page_size", 10)
|
|
|
|
page_size = request.values.get("page_size", 10)
|
|
|
@ -28,7 +28,7 @@ def get_drug_form():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@drug_form_router.route("/add_update", methods=["GET", "POST"])
|
|
|
|
@drug_form_router.route("/add_update", methods=["GET", "POST"])
|
|
|
|
# @token_auth.login_required
|
|
|
|
@token_auth.login_required
|
|
|
|
def add_update_drug_form():
|
|
|
|
def add_update_drug_form():
|
|
|
|
drug_form_id = request.values.get("drug_form_id")
|
|
|
|
drug_form_id = request.values.get("drug_form_id")
|
|
|
|
bll_obj = BllMedicamentExtend()
|
|
|
|
bll_obj = BllMedicamentExtend()
|
|
|
@ -64,7 +64,7 @@ def add_update_drug_form():
|
|
|
|
return jsonify(Utils.true_return())
|
|
|
|
return jsonify(Utils.true_return())
|
|
|
|
|
|
|
|
|
|
|
|
@drug_form_router.route("/del", methods=["GET", "POST"])
|
|
|
|
@drug_form_router.route("/del", methods=["GET", "POST"])
|
|
|
|
# @token_auth.login_required
|
|
|
|
@token_auth.login_required
|
|
|
|
def del_drug_form():
|
|
|
|
def del_drug_form():
|
|
|
|
drug_form_id = request.values.get("drug_form_id")
|
|
|
|
drug_form_id = request.values.get("drug_form_id")
|
|
|
|
obj = BllMedicamentExtend().findEntity(EntityMedicamentExtend.id==drug_form_id)
|
|
|
|
obj = BllMedicamentExtend().findEntity(EntityMedicamentExtend.id==drug_form_id)
|
|
|
|