|
|
|
@ -228,7 +228,7 @@ class BllMedicament(Repository):
|
|
|
|
|
return self.queryPage(orm_query, pageParam)
|
|
|
|
|
|
|
|
|
|
# 试剂管理
|
|
|
|
|
def get_drug_list(self, client_id, seach_word, b_code, func_type, page_param):
|
|
|
|
|
def get_drug_list(self, client_id, seach_word, b_code, func_type, page_param, search_status):
|
|
|
|
|
filter_base = ""
|
|
|
|
|
if client_id:
|
|
|
|
|
filter_base += f" client_id='{client_id}' "
|
|
|
|
@ -237,6 +237,10 @@ class BllMedicament(Repository):
|
|
|
|
|
if filter_base:
|
|
|
|
|
filter_base += " and "
|
|
|
|
|
filter_base += f" (`name` like '{seach_word}' or english_name like '{seach_word}') "
|
|
|
|
|
if search_status and int(search_status):
|
|
|
|
|
if filter_base:
|
|
|
|
|
filter_base += " and "
|
|
|
|
|
filter_base += f" status='{search_status}'"
|
|
|
|
|
# 搜索bar_code
|
|
|
|
|
if b_code:
|
|
|
|
|
if len(b_code) > 10 and str(func_type) == "1":
|
|
|
|
@ -985,7 +989,7 @@ class BllMedicament(Repository):
|
|
|
|
|
:return: {"is_liquid": 是否为液体, "use_volume": 液体用量, "use_quality": 固体用量, "net_weight_unit": 单位}
|
|
|
|
|
"""
|
|
|
|
|
if not drug.remain:
|
|
|
|
|
return
|
|
|
|
|
return
|
|
|
|
|
medicament_variety_obj = BllMedicamentVariety().findEntity(
|
|
|
|
|
EntityMedicamentVariety.variety_id == drug.variety_id)
|
|
|
|
|
remain_result = {
|
|
|
|
|