|
|
|
|
"""
|
|
|
|
|
# 试剂进行入库时已绑定柜体id,不考虑相同试剂多柜体的情况
|
|
|
|
|
|
|
|
|
|
试剂id、柜体id、
|
|
|
|
|
|
|
|
|
|
## 主概览
|
|
|
|
|
|
|
|
|
|
根据试剂记录展示入库/领用/归还/未归还
|
|
|
|
|
|
|
|
|
|
预警信息 ?
|
|
|
|
|
|
|
|
|
|
## 报表统计---库存信息--总库存减去已绑定柜体的试剂数
|
|
|
|
|
|
|
|
|
|
库存信息总览 展示库存内试剂信息 根据所属终端分组去重
|
|
|
|
|
|
|
|
|
|
入库信息 展示入库试剂信息
|
|
|
|
|
试剂信息 根据试剂名称、规格、纯度进行去重展示 并分页
|
|
|
|
|
|
|
|
|
|
试剂使用统计 根据试剂记录展示信息
|
|
|
|
|
|
|
|
|
|
## 实际入库---未对试剂和柜体进行绑定
|
|
|
|
|
|
|
|
|
|
展示上传excle表格数据/新增模板实际数据
|
|
|
|
|
|
|
|
|
|
选择试剂入库 展示已入库试剂信息---选择按钮,进行编辑试剂信息
|
|
|
|
|
|
|
|
|
|
绑定入库,绑定操作根据前端传递参数进行入库操作
|
|
|
|
|
|
|
|
|
|
新增模板,保存模板基本信息和模板内试剂json字符串信息入库
|
|
|
|
|
|
|
|
|
|
打印条码,?
|
|
|
|
|
|
|
|
|
|
导入入库模板,根据柜体,模板名称进行解析模板内试剂json字符串进行柜体试剂绑定
|
|
|
|
|
|
|
|
|
|
删除模板,
|
|
|
|
|
|
|
|
|
|
试剂归还,根据前端传递参数进行记录数据入库,展示待归还数据列表
|
|
|
|
|
试剂称重, ...
|
|
|
|
|
|
|
|
|
|
## 库存盘点
|
|
|
|
|
|
|
|
|
|
库存盘点,展示试剂库存信息,
|
|
|
|
|
录入库存,添加试剂数量,根据管理人员确定展示校验结果
|
|
|
|
|
历史记录, ?
|
|
|
|
|
|
|
|
|
|
## 试剂管理
|
|
|
|
|
|
|
|
|
|
展示, ?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
报表统计:
|
|
|
|
|
库存信息总览: 分组
|
|
|
|
|
在库剩余数量:count(id)
|
|
|
|
|
剩余总量:sum(remain)
|
|
|
|
|
|
|
|
|
|
入库信息查询:
|
|
|
|
|
默认展示
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
试剂信息详情:
|
|
|
|
|
根据名称、纯度、规格、分组展示
|
|
|
|
|
余量?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
库存消耗: rms_medicament? rms_medicament_variety?
|
|
|
|
|
入库数量 记录表record_type = 1 数量
|
|
|
|
|
借出 记录表record_type = 2 数量
|
|
|
|
|
借出 记录表record_type = 2 数量
|
|
|
|
|
当前库存总量:
|
|
|
|
|
rms_medicament_record record_type=1的 count(id)?
|
|
|
|
|
当前库存数量: status=1的count(id)?
|
|
|
|
|
当前借出数量: status=2的count(id)?
|
|
|
|
|
消耗数量: ?
|
|
|
|
|
|
|
|
|
|
试剂用量消耗:
|
|
|
|
|
库存量 表rms_medicament count(id) status=1
|
|
|
|
|
使用次数 表rms_medicament_record count(record_type=2) 数量
|
|
|
|
|
总用量 表rms_medicament_record sum(use_quantity) record_type=3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remark1 = Column(String(50)) # 备注1
|
|
|
|
|
# Remark2 = Column(String(50)) # 备注2
|
|
|
|
|
# Remark3 = Column(String(50)) # 备注3
|
|
|
|
|
# Remark4 = Column(String(50))
|
|
|
|
|
# Remark5 = Column(String(50))
|
|
|
|
|
# Remark6 = Column(String(50))
|
|
|
|
|
# Remark7 = Column(String(50))
|
|
|
|
|
# Remark8 = Column(String(50))
|
|
|
|
|
# Remark9 = Column(String(50))
|
|
|
|
|
# Remark10 = Column(String(50))
|
|
|
|
|
|
|
|
|
|
# for i in range(30):
|
|
|
|
|
# print(f"remark{i+1} = Column(String(50), comment='扩展字段{i+1}')")
|
|
|
|
|
# import random
|
|
|
|
|
# from string import digits, ascii_letters, punctuation
|
|
|
|
|
|
|
|
|
|
# aaa = digits + ascii_letters+ punctuation
|
|
|
|
|
# # ccc = 'l4wu&yj@=ed^ybmwm&vh0cglcqwagu8&($r5@qsmf(bb93='
|
|
|
|
|
# # print(len(ccc))
|
|
|
|
|
# print(aaa)
|
|
|
|
|
# a = ''
|
|
|
|
|
|
|
|
|
|
# # while True:
|
|
|
|
|
# # c = random.choice(aaa)
|
|
|
|
|
# # if c in ["'", '"', ",", ";", "."]:
|
|
|
|
|
# # continue
|
|
|
|
|
# # # print(c)
|
|
|
|
|
# # a += c
|
|
|
|
|
# # # print(a)
|
|
|
|
|
# # if len(a) >= 50:
|
|
|
|
|
# # break
|
|
|
|
|
# # print(a)
|
|
|
|
|
# import random
|
|
|
|
|
|
|
|
|
|
# # print(random.choice([1,2,3]))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a = """12342525436 %s freqwrqwercqwe"""
|
|
|
|
|
|
|
|
|
|
b = ''
|
|
|
|
|
if b:
|
|
|
|
|
a = a % f"ccccc{b}ccccccc"
|
|
|
|
|
else:
|
|
|
|
|
a = a % ''
|
|
|
|
|
print(a)
|