|
|
@ -131,10 +131,10 @@ def get_drug_user_use_expend():
|
|
|
|
# 使用频率
|
|
|
|
# 使用频率
|
|
|
|
@report_router.route("/use_frequency", methods=["GET", "POST"])
|
|
|
|
@report_router.route("/use_frequency", methods=["GET", "POST"])
|
|
|
|
def drug_use_frequency():
|
|
|
|
def drug_use_frequency():
|
|
|
|
seach_word = request.values.get('seach_word', None)
|
|
|
|
seach_word = request.values.get('seach_word')
|
|
|
|
client_id = request.values.get("client_id", None)
|
|
|
|
client_id = request.values.get("client_id")
|
|
|
|
page = request.values.get("page", 1)
|
|
|
|
page = int(request.values.get("page", 1))
|
|
|
|
page_size = request.values.get("page_size", 10)
|
|
|
|
page_size = int(request.values.get("page_size", 10))
|
|
|
|
page_param = PageParam(page, page_size)
|
|
|
|
page_param = PageParam(page, page_size)
|
|
|
|
data = BllMedicamentRecord().use_frequency(seach_word=seach_word, client_id=client_id, page_param=page_param)
|
|
|
|
data = BllMedicamentRecord().use_frequency(seach_word=seach_word, client_id=client_id, page_param=page_param)
|
|
|
|
return jsonify(Utils.true_return(data={"total_count": page_param.totalRecords, "data": data}))
|
|
|
|
return jsonify(Utils.true_return(data={"total_count": page_param.totalRecords, "data": data}))
|
|
|
@ -143,17 +143,21 @@ def drug_use_frequency():
|
|
|
|
# 入库、领用、归还记录
|
|
|
|
# 入库、领用、归还记录
|
|
|
|
@report_router.route("/drug_log_type_info", methods=["GET", "POST"])
|
|
|
|
@report_router.route("/drug_log_type_info", methods=["GET", "POST"])
|
|
|
|
def drug_log_type_info():
|
|
|
|
def drug_log_type_info():
|
|
|
|
page = request.values.get("page", 1)
|
|
|
|
page = int(request.values.get("page", 1))
|
|
|
|
page_size = request.values.get("page_size", 10)
|
|
|
|
page_size = int(request.values.get("page_size", 10))
|
|
|
|
|
|
|
|
statue_type = request.values.get("status")
|
|
|
|
record_type = request.values.get("record_type")
|
|
|
|
record_type = request.values.get("record_type")
|
|
|
|
put_in_user_name = request.values.get("put_in_user_name")
|
|
|
|
put_in_user_name = request.values.get("user_name")
|
|
|
|
name = request.values.get("name")
|
|
|
|
name = request.values.get("name")
|
|
|
|
start_time = request.values.get("start_time")
|
|
|
|
# start_time = request.values.get("start_time")
|
|
|
|
end_time = request.values.get("end_time")
|
|
|
|
# end_time = request.values.get("end_time")
|
|
|
|
page_param = PageParam(page, page_size)
|
|
|
|
page_param = PageParam(page, page_size)
|
|
|
|
|
|
|
|
|
|
|
|
data_list = BllMedicament().drug_show_type_info(
|
|
|
|
data_list = BllMedicament().drug_show_type_info(
|
|
|
|
record_type=record_type, put_in_user_name=put_in_user_name,
|
|
|
|
record_type=record_type, put_in_user_name=put_in_user_name, statue_type=statue_type,
|
|
|
|
name=name, start_time=start_time, end_time=end_time, page_param=page_param
|
|
|
|
name=name,
|
|
|
|
|
|
|
|
# start_time=start_time, end_time=end_time,
|
|
|
|
|
|
|
|
page_param=page_param
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
data_list = Utils.msyql_table_model(data_list)
|
|
|
|
return jsonify(Utils.true_return(data={"total_count": page_param.totalRecords, "data": data_list}))
|
|
|
|
return jsonify(Utils.true_return(data={"total_count": page_param.totalRecords, "data": data_list}))
|
|
|
|