|
|
|
@ -174,9 +174,7 @@ def add_tmp_info():
|
|
|
|
|
# 获取最大的条形码和条形码数量
|
|
|
|
|
tmp_obj = BllMedicamentTemplate().execute(sql_all).fetchone()
|
|
|
|
|
if tmp_obj:
|
|
|
|
|
max_barcode = tmp_obj.start_bar_code
|
|
|
|
|
bar_code_count = tmp_obj.bar_code_count
|
|
|
|
|
max_barcode = int(max_barcode) + int(bar_code_count)
|
|
|
|
|
max_barcode = int(tmp_obj.start_bar_code) + int(tmp_obj.bar_code_count)
|
|
|
|
|
else:
|
|
|
|
|
max_barcode = 100001
|
|
|
|
|
start_bar_code = max_barcode
|
|
|
|
@ -189,9 +187,9 @@ def add_tmp_info():
|
|
|
|
|
if isinstance(tmp_content, str):
|
|
|
|
|
# tmp_content = eval(tmp_content)
|
|
|
|
|
tmp_content = json.loads(tmp_content)
|
|
|
|
|
# total_count = 0
|
|
|
|
|
# for i in tmp_content:
|
|
|
|
|
# total_count += int(i['export_count'])
|
|
|
|
|
bar_code_count = 0
|
|
|
|
|
for i in tmp_content:
|
|
|
|
|
bar_code_count += int(i['export_count'])
|
|
|
|
|
|
|
|
|
|
obj = EntityMedicamentTemplate(
|
|
|
|
|
customer_id=client.customer_id,
|
|
|
|
|