duizhaopin
13507605001 2 years ago
parent bafcd72481
commit 8c44c9065f

@ -1,2 +1,26 @@
# RMS后台管理系统4.0 # RMS后台管理系统4.0
# # 待入库接口
/api/drug/stay_putin_return_list
client_id
page
page_size
status
根据status判断是待入库还是待归还接口
返回类型{"data":{"data_list":[{试剂表内所有字段}], total_count:总数}, "status":0}}
# # 待领用接口
/api/temporary_auth/get_stay_use_list
client_id
返回类型{"data":[
{'name': '氨水', 'num': '2', 'client_id':'1c39cb24-07f8-11ed-abd4-f47b094925e1', 'purity': '25~28%', 'speci': '500', 'stay_use_num':1},
{'name': '硫酸', 'num': '2', 'client_id': '1c39cb24-07f8-11ed-abd4-f47b094925e1', 'purity': '26~29%', 'speci': '500','stay_use_num':1}] "status":0}}
# # 修改试剂状态
/api/drug/update_drug_status
bar_code
status
返回类型{"data":"", "msg":"修改成功", "status":0}

@ -31,12 +31,12 @@ def picture_shoot(image_name='img.png', image_path=r'C:/local_project/imgs') ->
# if __name__ == '__main__': # if __name__ == '__main__':
# picture_shoot() # picture_shoot()
# from db_logic.module import BllModule # from db_logic.module import BllModule
from Common.Utils import Utils # from Common.Utils import Utils
data = BllModule().findList(EntityModule.module_type=='4') # data = BllModule().findList(EntityModule.module_type=='4')
for i in data: # for i in data:
i.module_name = str(i.module_name).replace("耗材", "对照品") # i.module_name = str(i.module_name).replace("耗材", "对照品")
BllModule().update(i) # BllModule().update(i)
# data = BllModule().execute("select * from rms_module where module_type=2 order by sort_index").fetchall() # data = BllModule().execute("select * from rms_module where module_type=2 order by sort_index").fetchall()
# data_list = Utils.msyql_table_model(data) # data_list = Utils.msyql_table_model(data)
@ -54,4 +54,8 @@ for i in data:
# inster_list.append(EntityModule(**d)) # inster_list.append(EntityModule(**d))
# ind += 1 # ind += 1
# print(11111) # print(11111)
# BllModule().insert_many(inster_list) # BllModule().insert_many(inster_list)
a = "[{\"name\":\"\u6c28\u6c34\",\"num\":\"2\",\"client_id\":\"1c39cb24-07f8-11ed-abd4-f47b094925e1\",\"purity\":\"25~28%\",\"speci\":\"500\"},{\"name\":\"\u786b\u9178\",\"num\":\"2\",\"client_id\":\"1c39cb24-07f8-11ed-abd4-f47b094925e1\",\"purity\":\"26~29%\",\"speci\":\"500\"}]"
import json
print(json.loads(a))
Loading…
Cancel
Save