Commit e42d2b3a authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程十八脚本提交

parent 46b1a8da
...@@ -7,7 +7,7 @@ from air_case.public1.public1.public1 import * ...@@ -7,7 +7,7 @@ from air_case.public1.public1.public1 import *
from common.db.sql.sql_del_branch_info import delData from common.db.sql.sql_del_branch_info import delData
from common.db.sql.sql_tools import check_mcms_dept_buy_sql, get_pick_detail_id, get_mdm_goods_code1, get_goods_code1, \ from common.db.sql.sql_tools import check_mcms_dept_buy_sql, get_pick_detail_id, get_mdm_goods_code1, get_goods_code1, \
get_pkg_def_id, get_login_user_uxid_bydb, check_batch_id, check_barcode_id, get_create_time, get_PICK_id, \ get_pkg_def_id, get_login_user_uxid_bydb, check_batch_id, check_barcode_id, get_create_time, get_PICK_id, \
get_buyBillId, get_PICK_order_no, get_buyOrderNo get_buyBillId, get_PICK_order_no, get_buyOrderNo, get_qty
from common.fileUtls import FileUtils from common.fileUtls import FileUtils
from common.run_cmd_script import execute_command from common.run_cmd_script import execute_command
...@@ -106,197 +106,62 @@ def check_mcms_psi_dept_batch(DR_ID,type,order_no): ...@@ -106,197 +106,62 @@ def check_mcms_psi_dept_batch(DR_ID,type,order_no):
else: else:
print('error') print('error')
commonFuc().check_text_exist_result_text('error', 'succees') commonFuc().check_text_exist_result_text('error', 'succees')
def check_mcms_psi_dept_out_and_in(type1=16,type2=10): def check_mcms_psi_data(type1=10):
branch_id = get_branch_id() branch_id = get_branch_id()
if type1==20: source_dept_name = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid1']
sql = " select * from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_XH' order by CREATE_TIME desc LIMIT 1;" % ( stock_id = get_stockId_fromdb(get_branch_name() + '中心库房')
branch_id, type1)
if type1==10:
sql = " select * from mcms_stockpile where branch_id='%s' and stock_id='%s' and pur_mode='%s' and barcode_flag='1' order by last_modified desc LIMIT 1;" % (
branch_id,stock_id,type1)
else: else:
sql = " select * from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_CB' order by CREATE_TIME desc LIMIT 1;" % ( sql = " select * from mcms_stockpile where branch_id='%s' and stock_id='%s' and pur_mode='%s' and barcode_flag='1' order by last_modified desc LIMIT 1;" % (
branch_id, type1) branch_id, stock_id, type1)
actual = check_mcms_dept_buy_sql(sql) actual = check_mcms_dept_buy_sql(sql)
print(actual) print(actual)
if type1==20:
DR_ID=get_id(" select id from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_XH' order by CREATE_TIME desc LIMIT 1;" % (
branch_id, type1))
else:
DR_ID = get_id(
" select id from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_CB' order by CREATE_TIME desc LIMIT 1;" % (
branch_id, type1))
sql = "select order_no from mcms_psi_dept where id='%s';" % DR_ID
order_no = get_id(sql)
target_corp_id = get_hosid()
target_branch_id = get_branch_id()
target_dept_id = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid2']
target_dept_name = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid2']
target_stock_id = get_stockId_fromdb(target_dept_name + '库房')
target_area_code = get_stockAreaId_new_fromDb(target_dept_name, 2)
PICK_id = get_PICK_id(branch_id, type1)
source_id = PICK_id
source_corp_id = get_hosid()
source_branch_id = get_branch_id()
source_dept_id = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid2']
source_dept_name = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid2']
source_stock_id = get_stockId_fromdb(source_dept_name + '库房')
source_area_code = get_stockAreaId_new_fromDb(source_dept_name, 2)
buyBillId = get_buyBillId(branch_id, type1)
pickOrderNo = get_PICK_order_no(branch_id, type1)
buyOrderNo = get_buyOrderNo(branch_id, type1)
pickBillId = get_PICK_id(branch_id, type1)
psiDeptOutBillId = DR_ID
psiDeptOutOrderNo = order_no
create_user = get_login_user_uxid_bydb(FileUtils().r_info8('b2_herp3_bs', "用户名信息", 'message3')['username1'])
create_time = get_create_time("select create_time from mcms_psi_dept where id='%s';" % DR_ID)
last_modified = get_create_time("select last_modified from mcms_psi_dept where id='%s';" % DR_ID)
last_modified_user = create_user
accounter=create_user
account_date = process_tuple(get_create_time("select account_date from mcms_psi_dept where id='%s';" % DR_ID))
if type1 == 16:
# 子表检查
check_mcms_psi_dept_batch(DR_ID,type1,order_no)
expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
'mcms_psi_dept4', DR_ID, order_no, target_corp_id, target_branch_id,
target_dept_id, target_dept_name, target_stock_id
, target_area_code, source_id, source_corp_id, source_branch_id,
source_dept_id, source_dept_name, source_stock_id, source_area_code,accounter,account_date,
pickOrderNo, pickBillId, psiDeptOutBillId, psiDeptOutOrderNo
, create_user, create_time, last_modified, last_modified_user
) XH_ID=get_id(" select id from mcms_stockpile where branch_id='%s' and stock_id='%s' and pur_mode='%s' and barcode_flag='1' order by last_modified desc LIMIT 1;" % (
elif type1 == 20: branch_id, stock_id,type1))
# 子表检查
check_mcms_psi_dept_batch(DR_ID,type1,order_no)
his_charge_no=get_id(" select his_charge_no from his_order where branch_id='%s' and psi_dept_id='%s' order by create_time desc LIMIT 1;"%(branch_id,DR_ID))
expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
'mcms_psi_dept5', DR_ID, order_no, target_corp_id, target_branch_id,
target_dept_id, target_dept_name, target_stock_id
, target_area_code, source_id, source_corp_id, source_branch_id,
source_dept_id, source_dept_name, source_stock_id, source_area_code,his_charge_no,accounter,account_date,
pickOrderNo, pickBillId, psiDeptOutBillId, psiDeptOutOrderNo
, create_user, create_time, last_modified, last_modified_user)
else:
# 子表检查
check_mcms_psi_dept_batch(DR_ID,type1,order_no)
expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
'mcms_psi_dept6', DR_ID, order_no, target_corp_id, target_branch_id,
target_dept_id, target_dept_name, target_stock_id
, target_area_code, source_id, source_corp_id, source_branch_id,
source_dept_id, source_dept_name, source_stock_id, source_area_code,accounter,account_date,
pickOrderNo, pickBillId, psiDeptOutBillId, psiDeptOutOrderNo
, create_user, create_time, last_modified, last_modified_user
) hos_id= get_hosid()
print('expected', expected) dept_id = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid1']
print('aaaaaaaaaaaaaaaaa') dept_name = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid1']
actual_value1 = get_process_list2(actual) stock_id = get_stockId_fromdb(get_branch_name() + '中心库房')
expected_value1 = get_process_list2(expected) stock_name=dept_name
actual_value2 = actual_value1.replace(" ", "") area_code = get_stockAreaId_new_fromDb(dept_name, 1)
expected_value2 = expected_value1.replace(" ", "") if type1 == 10:
# print('actual_value2',actual_value2) hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message2')["hosGoodsId"]
print('expected_value2') elif type == 20:
print(expected_value2) hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message1')["hosGoodsId"]
print('actual_value2')
print(actual_value2)
print(compare_text_index(actual_value2, expected_value2))
if actual_value2 == expected_value2:
print('ok')
commonFuc().check_text_exist_result_text('succees', 'succees')
else:
print('error')
commonFuc().check_text_exist_result_text('error', 'succees')
#检查拆包后生成的入库单============================================================
branch_id = get_branch_id()
if type1==20:
sql = " select * from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='RK_XH' order by CREATE_TIME desc LIMIT 1;" % (
branch_id, type2)
else:
sql = " select * from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='RK_CB' order by CREATE_TIME desc LIMIT 1;" % (
branch_id, type2)
actual = check_mcms_dept_buy_sql(sql)
print(actual)
if type1==20:
DR_ID1 = get_id(
" select id from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='RK_XH' order by CREATE_TIME desc LIMIT 1;" % (
branch_id, type2))
else: else:
DR_ID1 = get_id( hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message3')["hosGoodsId"]
" select id from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='RK_CB' order by CREATE_TIME desc LIMIT 1;" % ( goods_code=get_goods_code1(hos_goods_id)
branch_id, type2)) expdt_date=get_create_time("select expdt_date from mcms_stockpile where id='%s';" % XH_ID)
sql = "select order_no from mcms_psi_dept where id='%s';" % DR_ID1 hos_batch_id=get_id("select hos_batch_id from mcms_stockpile where id='%s';" % XH_ID)
order_no1 = get_id(sql) qty=get_qty("select qty from mcms_stockpile where id='%s';" % XH_ID)
target_corp_id = get_hosid() version=get_id("select version from mcms_stockpile where id='%s';" % XH_ID)
target_branch_id = get_branch_id()
target_dept_id = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid2']
target_dept_name = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid2']
target_stock_id = get_stockId_fromdb(target_dept_name + '库房')
target_area_code = get_stockAreaId_new_fromDb(target_dept_name, 2)
PICK_id = get_PICK_id(branch_id, type1)
source_id = DR_ID
source_corp_id = get_hosid()
source_branch_id = get_branch_id()
source_dept_id = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid2']
source_dept_name = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid2']
source_stock_id = get_stockId_fromdb(source_dept_name + '库房')
source_area_code = get_stockAreaId_new_fromDb(source_dept_name, 2)
buyBillId = get_buyBillId(branch_id, type1)
pickOrderNo = get_PICK_order_no(branch_id, type1)
buyOrderNo = get_buyOrderNo(branch_id, type1)
pickBillId = get_PICK_id(branch_id, type1)
psiDeptOutBillId = DR_ID
psiDeptOutOrderNo = order_no
psiDeptInBillId=DR_ID1
psiDeptInOrderNo=order_no1
create_user = get_login_user_uxid_bydb(FileUtils().r_info8('b2_herp3_bs', "用户名信息", 'message3')['username1']) create_user = get_login_user_uxid_bydb(FileUtils().r_info8('b2_herp3_bs', "用户名信息", 'message3')['username1'])
create_time = get_create_time("select create_time from mcms_psi_dept where id='%s';" % DR_ID1) create_time = get_create_time("select create_time from mcms_stockpile where id='%s';" % XH_ID)
last_modified = get_create_time("select last_modified from mcms_psi_dept where id='%s';" % DR_ID1) last_modified = get_create_time("select last_modified from mcms_stockpile where id='%s';" % XH_ID)
last_modified_user = create_user last_modified_user = create_user
accounter = create_user if type1 == 10:
source_no=order_no expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
last_auditor=create_user 'mcms_psi_cb1', XH_ID, hos_id, branch_id, dept_id,
last_audit_time= get_create_time("select last_audit_time from mcms_psi_dept where id='%s';" % DR_ID1) dept_name, stock_id, stock_name,area_code,hos_goods_id,
account_date = process_tuple(get_create_time("select account_date from mcms_psi_dept where id='%s';" % DR_ID1)) goods_code,expdt_date,hos_batch_id,qty,create_user,create_time,last_modified,last_modified_user,version
if type2 == 10:
# 子表检查
check_mcms_psi_dept_batch_in(DR_ID1, DR_ID,type2)
expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
'mcms_psi_dept7', DR_ID1, order_no1, target_corp_id, target_branch_id,
target_dept_id, target_dept_name, target_stock_id
, target_area_code, source_id,source_no, source_corp_id, source_branch_id,
source_dept_id, source_dept_name, source_stock_id, source_area_code,
accounter, account_date,
pickOrderNo, pickBillId, psiDeptOutBillId, psiDeptOutOrderNo
, psiDeptInBillId,psiDeptInOrderNo,create_user, create_time, last_modified, last_modified_user,
last_auditor,last_audit_time
) )
elif type2 == 20: elif type1 == 20:
# 子表检查
check_mcms_psi_dept_batch_in(DR_ID1, DR_ID, type2)
his_charge_no = get_id(
" select his_charge_no from his_order where branch_id='%s'order by create_time desc LIMIT 1;" % branch_id)
expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
'mcms_psi_dept8', DR_ID1, order_no1, target_corp_id, target_branch_id, 'mcms_psi_dept5', XH_ID, hos_id, branch_id, dept_id,
target_dept_id, target_dept_name, target_stock_id dept_name, stock_id, stock_name,area_code,hos_goods_id,
, target_area_code, source_corp_id, source_branch_id, goods_code,expdt_date,hos_batch_id,qty,create_user,create_time,last_modified,last_modified_user,version
source_dept_id, source_dept_name, source_stock_id,
his_charge_no,accounter, account_date,
create_user, create_time, last_modified, last_modified_user
) )
else: else:
# 子表检查
check_mcms_psi_dept_batch_in(DR_ID1, DR_ID, type2)
expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
'mcms_psi_dept9', DR_ID1, order_no1, target_corp_id, target_branch_id, 'mcms_psi_cb2',XH_ID, hos_id, branch_id, dept_id,
target_dept_id, target_dept_name, target_stock_id dept_name, stock_id, stock_name,area_code,hos_goods_id,
, target_area_code, source_id,source_no, source_corp_id, source_branch_id, goods_code,expdt_date,hos_batch_id,qty,create_user,create_time,last_modified,last_modified_user,version
source_dept_id, source_dept_name, source_stock_id, source_area_code, )
accounter, account_date,
pickOrderNo, pickBillId, psiDeptOutBillId, psiDeptOutOrderNo
, psiDeptInBillId,psiDeptInOrderNo,create_user, create_time, last_modified, last_modified_user,
last_auditor,last_audit_time)
print('expected', expected) print('expected', expected)
print('aaaaaaaaaaaaaaaaa') print('aaaaaaaaaaaaaaaaa')
actual_value1 = get_process_list2(actual) actual_value1 = get_process_list2(actual)
...@@ -316,6 +181,7 @@ def check_mcms_psi_dept_out_and_in(type1=16,type2=10): ...@@ -316,6 +181,7 @@ def check_mcms_psi_dept_out_and_in(type1=16,type2=10):
print('error') print('error')
commonFuc().check_text_exist_result_text('error', 'succees') commonFuc().check_text_exist_result_text('error', 'succees')
pro_path = commonFuc().get_pro_path2() pro_path = commonFuc().get_pro_path2()
print('pro_path', pro_path) print('pro_path', pro_path)
sys.path.append(pro_path + r'/air_case/b5_spd3_core_business_flow/a_c1流程十八中心库业务_拆包功能.air') sys.path.append(pro_path + r'/air_case/b5_spd3_core_business_flow/a_c1流程十八中心库业务_拆包功能.air')
...@@ -325,12 +191,13 @@ from a_c1流程十八中心库业务_拆包功能 import center_Stock_unpack ...@@ -325,12 +191,13 @@ from a_c1流程十八中心库业务_拆包功能 import center_Stock_unpack
try: try:
updateUserLoginDefaultRange(get_listUserMgrRangePage1(1)) # 设置登录账号默认权限是二级库 # updateUserLoginDefaultRange(get_listUserMgrRangePage1(1)) # 设置登录账号默认权限是二级库
center_Stock_unpack(1) # 低值耗材扫码发放 # center_Stock_unpack(1) # 低值耗材扫码发放
check_mcms_psi_dept_out_and_in(16, 10) # 检查出库单和入库单(包括主表和子表) # check_mcms_psi_data(10) # 检查库存数据(低值)
time.sleep(6) # time.sleep(6)
center_Stock_unpack(3) # 试剂耗材扫码发放 # center_Stock_unpack(3) # 试剂耗材扫码发放
check_mcms_psi_dept_out_and_in(66, 67) # 检查出库单和入库单(包括主表和子表) # time.sleep(6)
check_mcms_psi_data(60) # 检查库存数据(试剂值)
commonFuc().check_text_exist_result_text('succees', 'succees') commonFuc().check_text_exist_result_text('succees', 'succees')
except Exception as e: except Exception as e:
# 打印错误信息 # 打印错误信息
......
...@@ -203,6 +203,19 @@ def set_goods_coding_type(branch_id): # 设置科室产品为赋码管理0为 ...@@ -203,6 +203,19 @@ def set_goods_coding_type(branch_id): # 设置科室产品为赋码管理0为
cursor.close() cursor.close()
db.close() db.close()
def get_qty(sql):
db, cursor = get_sql_conn()
cursor.execute(sql)
results = cursor.fetchone()
str1 = str(results)
new_str1 = str1.replace(',)', '')
new_str1 = new_str1.replace('(D', 'D')
new_str1 = new_str1.replace(',', '')
# new_str1 = new_str1.replace("'", '')
# print(new_str1)
cursor.close()
db.close()
return new_str1
def get_id(sql): def get_id(sql):
db, cursor = get_sql_conn() db, cursor = get_sql_conn()
......
用户名信息: 用户名信息:
username1: 自动化测试lVbzF username1: 自动化测试D5M9c
username2: 自动化测试lVbzF username2: 自动化测试D5M9c
供货关系申请2: 供货关系申请2:
e_corpId: p1e386 e_corpId: p1e3ae
h_corpId: h0347 h_corpId: h0347
e_username: 国药集团公司uAfpK e_username: 国药集团公司lSTdZ
h_name: test001 h_name: test_1
产品审核信息: 产品审核信息:
MSPid: MSP2408060012_1 MSPid: MSP2408220013_1
hosId: h0347 hosId: h0347
hosGoodsId: h034700004777 hosGoodsId: h034700004905
provGoodsid: provGood-99222014 provGoodsid: provGood-99222157
goodsAuditBillId: MSP2408060012 goodsAuditBillId: MSP2408220013
targetId: MSP2408060012_1 targetId: MSP2408220013_1
...@@ -3,27 +3,26 @@ ...@@ -3,27 +3,26 @@
- &id001 - &id001
- id: - id:
hosId: h0347 hosId: h0347
branchId: h0347-3759 branchId: h0347-3764
deptId: deptId:
taskType: 1 taskType: 1
sourceOrgId: p1e37e sourceOrgId: p1e3ae
sourceOrgName: 国药集团公司sya!$ sourceOrgName: 国药集团公司lSTdZ
sourceOrderNo: PSh0347202408060022 sourceOrderNo: PSh0347202408280004
billMode: '66' billMode: '25'
stockKind: stockKind:
purMode: purMode:
sourceId: PSh0347202408060022 sourceId: PSh0347202408280004
sourceDetailId: sourceDetailId:
sourceType: PSD sourceType: PSD
sourceTypeName: 配送单 sourceTypeName: 配送单
sourceVersion: 1 sourceVersion: 1
planOrderNo: PLAN2024080634538 planOrderNo: SSSQ202408280385
purOrderNo: CG2024080622673 purOrderNo: SSTZ202408280363
recOrgId: c30ca7fe7c0f4ba8b6398caeb387bd3b recOrgId: 9e693185220a45c5a9fb8328f4d45b5d
recOrgName: 设备科001 recOrgName: 二级检验科002
billRelationJson: '{"planBillId":"Ph034720240806031183","planOrderNo":"PLAN2024080634538","purOrderNo":"CG2024080622673","purBillId":"Ch034720240806000045","purBillDate":"2024-08-06 billRelationJson: '{"operationApplyOrderNo":"SSSQ202408280385","operationNoticeBillId":"Nh034720240828000001","distrBillId":"PSh0347202408280004","operationNoticeOrderNo":"SSTZ202408280363","distrOrderNo":"PSh0347202408280004","operationApplyBillId":"Oh034720240828000001"}'
13:27:19","distrBillId":"PSh0347202408060022","distrOrderNo":"PSh0347202408060022"}' taskDate: '2024-08-28 16:05:13'
taskDate: '2024-08-06 13:30:29'
taskDateStart: taskDateStart:
taskDateEnd: taskDateEnd:
billModeList: billModeList:
...@@ -32,6 +31,7 @@ ...@@ -32,6 +31,7 @@
tbStatus: 20 tbStatus: 20
remark: remark:
pdaFlag: pdaFlag:
areaCode:
list_b: list_b:
- *id001 - *id001
list_c: list_c:
......
验收单号: 验收单号:
CHECK_NO1: CHECKh03472024080600071 CHECK_NO1: CHECKh03472024082800004
CHECK_NO2: CHECKh03472024080600071 CHECK_NO2: CHECKh03472024082800004
条码信息: 条码信息:
list_a: list_a:
- &id001 - &id001
id: '100000142024080600000776' id: '100000142024082200000877'
snCode: '100000142024080600000776' snCode: '100000142024082200000877'
ssccCode: '010839000192086229' ssccCode: '010839000192616327'
pkgCodeSee: '01376100000477901124080617250212104444241100000142024080600000776' pkgCodeSee: '01376400000490701124082217250228104444241100000142024082200000877'
hosGoodsId: h034700004779 hosGoodsId: h034700004907
hosGoodsCode: '00004779' hosGoodsCode: '00004907'
goodsCode: '00004779' goodsCode: '00004907'
goodsName: 新型冠状病毒检测试剂nDxo8 goodsName: 新型冠状病毒检测试剂C7HGi
goodsSpec: G-31891 goodsSpec: G-31891
goodsMfrsName: 德国歌德公司 Geuder AG goodsMfrsName: 德国歌德公司 Geuder AG
unit: unit:
purMode: 60 purMode: 60
batchCode: '4444' batchCode: '4444'
productDate: '2024-08-06' productDate: '2024-08-22'
expdtDate: '2025-02-12' expdtDate: '2025-02-28'
pkgDefName: '100' pkgDefName: '100'
pkgDefQty: 100.0 pkgDefQty: 100.0
stockId: 42c24f7facba4231aeda83b1348d6d1a stockId: 4188c1ded3aa4c838904ee1cc6013645
stockName: 东土城路院区l7B8J中心库房 stockName: 东土城路院区Hyl74中心库房
areaName: 自动化测试 areaName: 自动化测试
areaCode: areah03472822 areaCode: areah03472838
lockStatus: 0 lockStatus: 0
unitName: 100支/100 unitName: 100支/100
shelfCode: areah03472822-2-01-01 shelfCode: areah03472838-2-01-01
shelfName:
shelfNo: 自动化测试-2-01-01 shelfNo: 自动化测试-2-01-01
pkgDefId: 75012af7fbea44af9dd050857dac199f pkgDefId: 7b0c0e35ef8943abbc87ebd8540e3150
extInfo: '{"pkgDefId": "75012af7fbea44af9dd050857dac199f", "pkgDefQty": 100, "purBillId": extInfo: '{"pkgDefId": "7b0c0e35ef8943abbc87ebd8540e3150", "pkgDefQty": 100, "purBillId":
"CG2024080622677", "pkgDefName": "100", "distrBillId": "PSh0347202408060025", "CG2024082223071", "pkgDefName": "100", "distrBillId": "PSh0347202408220016",
"inStockTime": "2024-08-06 14:17:06", "distrDetailId": "03840788", "certificateCode": "inStockTime": "2024-08-22 14:23:42", "distrDetailId": "03841116", "certificateCode":
""}' ""}'
bottleId: bottleId:
pkgType: '66' pkgType: '66'
...@@ -39,8 +40,8 @@ ...@@ -39,8 +40,8 @@
qty: 1 qty: 1
shelfKind: 0 shelfKind: 0
shelfKindName: 普通货位 shelfKindName: 普通货位
provName: 国药集团公司uAfpK provName: 国药集团公司lSTdZ
provId: p1e386 provId: p1e3ae
inStockDate: inStockDate:
mfrCode: mfrCode:
made: 德国 made: 德国
......
产品审核信息: 产品审核信息:
MSPid: MSP2408060013_1 MSPid: MSP2408220014_1
hosId: h0347 hosId: h0347
hosGoodsId: h034700004778 hosGoodsId: h034700004906
provGoodsid: provGood-99222015 provGoodsid: provGood-99222158
goodsAuditBillId: MSP2408060013 goodsAuditBillId: MSP2408220014
targetId: MSP2408060013_1 targetId: MSP2408220014_1
二级库请领产品信息: 二级库请领产品信息:
list_a: list_a:
- &id001 - &id001
- hosGoodsId: h034700004779 - hosGoodsId: h034700004907
purMode: 60 purMode: 60
grantRule: grantRule:
id: id:
goodsName: 新型冠状病毒检测试剂nDxo8 goodsName: 新型冠状病毒检测试剂C7HGi
goodsSpec: G-31891 goodsSpec: G-31891
mdmGoodsCode: '11661765' mdmGoodsCode: '11661921'
goodsCode: '00004779' goodsCode: '00004907'
unit: unit:
goodsMfrsName: 德国歌德公司 Geuder AG goodsMfrsName: 德国歌德公司 Geuder AG
miDjmc: '' miDjmc: ''
...@@ -16,22 +16,22 @@ ...@@ -16,22 +16,22 @@
pkgDefName: '100' pkgDefName: '100'
pkgDefQty: 100.0 pkgDefQty: 100.0
pkgQty: pkgQty:
qty: 1300.0 qty: 1400.0
goodsImg: [] goodsImg: []
pkgDefId: 75012af7fbea44af9dd050857dac199f pkgDefId: 7b0c0e35ef8943abbc87ebd8540e3150
buyPkgQty: buyPkgQty:
unitName: 100支/100 unitName: 100支/100
price: 99.9999 price: 99.9999
hosId: hosId:
branchId: branchId:
deptId: 924c2c4187334c01a846e1fa2323c5cf deptId: 9e693185220a45c5a9fb8328f4d45b5d
deptName: deptName:
areaCode: areaCode:
areaName: areaName:
targetDeptId: 73235696798d429393a91a28b9467b19 targetDeptId: 0a49aab6160b4c8d98db8773eb69de05
targetDeptName: 设备科001 targetDeptName: 设备科001
targetStockId: 42c24f7facba4231aeda83b1348d6d1a targetStockId: 4188c1ded3aa4c838904ee1cc6013645
targetStockName: 东土城路院区l7B8J中心库房 targetStockName: 东土城路院区Hyl74中心库房
purchaseFlag: 1 purchaseFlag: 1
tempFlag: 0 tempFlag: 0
grantWay: 1 grantWay: 1
...@@ -41,9 +41,9 @@ ...@@ -41,9 +41,9 @@
goodsGeneralName: 检测试剂 goodsGeneralName: 检测试剂
goodsRegCert: '' goodsRegCert: ''
applicationScope: applicationScope:
provName: 国药集团公司uAfpK provName: 国药集团公司lSTdZ
noRecPkgQty: 2.0 noRecPkgQty: 9.0
noRecQty: 200.0 noRecQty: 900.0
autoUnpack: 0 autoUnpack: 0
consumeQty: consumeQty:
consumePkgQty: consumePkgQty:
......
产品审核信息: 产品审核信息:
MSPid: MSP2407090009_1 MSPid: MSP2408220015_1
hosId: h0347 hosId: h0347
hosGoodsId: h034700004512 hosGoodsId: h034700004907
provGoodsid: provGood-99221708 provGoodsid: provGood-99222159
goodsAuditBillId: MSP2407090009 goodsAuditBillId: MSP2408220015
targetId: MSP2407090009_1 targetId: MSP2408220015_1
...@@ -233,4 +233,9 @@ ...@@ -233,4 +233,9 @@
#中心库退供应商主表拣货单主表 #中心库退供应商主表拣货单主表
"mcms_pick1_1": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "order_no": "%s", "source_id": null, "bill_mode": "16", "create_type": "SG", "pick_type": "TH", "dept_id": "%s", "dept_name": "%s", "stock_id": "%s", "area_code": "%s", "area_name": "自动化测试", "area_mgr_id": None, "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": %s, "target_area_name": null, "receiver": None, "reason_kind": "1", "barcode_flag": 1, "pkg_flag": 1, "patient_id": None, "patient_name": None, "remark": "", "tb_status": 40, "reviewer": "%s", "review_date": %s, "bill_relation_json": "{"pickOrderNo":"%s","pickBillId":"%s"}", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "picker": "%s", "picker_name": "%s"}' "mcms_pick1_1": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "order_no": "%s", "source_id": null, "bill_mode": "16", "create_type": "SG", "pick_type": "TH", "dept_id": "%s", "dept_name": "%s", "stock_id": "%s", "area_code": "%s", "area_name": "自动化测试", "area_mgr_id": None, "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": %s, "target_area_name": null, "receiver": None, "reason_kind": "1", "barcode_flag": 1, "pkg_flag": 1, "patient_id": None, "patient_name": None, "remark": "", "tb_status": 40, "reviewer": "%s", "review_date": %s, "bill_relation_json": "{"pickOrderNo":"%s","pickBillId":"%s"}", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "picker": "%s", "picker_name": "%s"}'
"mcms_pick2_1": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "order_no": "%s", "source_id": null, "bill_mode": "20", "create_type": "SG", "pick_type": "TH", "dept_id": "%s", "dept_name": "%s", "stock_id": "%s", "area_code": "%s", "area_name": "自动化测试", "area_mgr_id": None, "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": %s, "target_area_name": null, "receiver": None, "reason_kind": "1", "barcode_flag": 1, "pkg_flag": 0, "patient_id": None, "patient_name": None, "remark": "", "tb_status": 40, "reviewer": "%s", "review_date": %s, "bill_relation_json": "{"pickOrderNo":"%s","pickBillId":"%s"}", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "picker": "%s", "picker_name": "%s"}' "mcms_pick2_1": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "order_no": "%s", "source_id": null, "bill_mode": "20", "create_type": "SG", "pick_type": "TH", "dept_id": "%s", "dept_name": "%s", "stock_id": "%s", "area_code": "%s", "area_name": "自动化测试", "area_mgr_id": None, "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": %s, "target_area_name": null, "receiver": None, "reason_kind": "1", "barcode_flag": 1, "pkg_flag": 0, "patient_id": None, "patient_name": None, "remark": "", "tb_status": 40, "reviewer": "%s", "review_date": %s, "bill_relation_json": "{"pickOrderNo":"%s","pickBillId":"%s"}", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "picker": "%s", "picker_name": "%s"}'
"mcms_pick3_1": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "order_no": "%s", "source_id": null, "bill_mode": "66", "create_type": "SG", "pick_type": "TH", "dept_id": "%s", "dept_name": "%s", "stock_id": "%s", "area_code": "%s", "area_name": "自动化测试", "area_mgr_id": None, "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": %s, "target_area_name": null, "receiver": None, "reason_kind": "1", "barcode_flag": 1, "pkg_flag": 1, "patient_id": None, "patient_name": None, "remark": "", "tb_status": 40, "reviewer": "%s", "review_date": %s, "bill_relation_json": "{"pickOrderNo":"%s","pickBillId":"%s"}", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "picker": "%s", "picker_name": "%s"}' "mcms_pick3_1": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "order_no": "%s", "source_id": null, "bill_mode": "66", "create_type": "SG", "pick_type": "TH", "dept_id": "%s", "dept_name": "%s", "stock_id": "%s", "area_code": "%s", "area_name": "自动化测试", "area_mgr_id": None, "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": %s, "target_area_name": null, "receiver": None, "reason_kind": "1", "barcode_flag": 1, "pkg_flag": 1, "patient_id": None, "patient_name": None, "remark": "", "tb_status": 40, "reviewer": "%s", "review_date": %s, "bill_relation_json": "{"pickOrderNo":"%s","pickBillId":"%s"}", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "picker": "%s", "picker_name": "%s"}'
\ No newline at end of file
#中心库拆包
"mcms_psi_cb1": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "stock_id": "%s", "stock_name": "%s", "area_code": "%s", "area_name": "自动化测试", "pur_mode": 10, "hos_goods_id": "%s", "goods_code": "%s", "batch_code": "333", "expdt_date": %s, "hos_batch_id": "%s", "batch_price": Decimal("99.999900"), "qty": %s, "shelf_code": None, "barcode_flag": 1, "pkg_flag": 1, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": %s}'
"mcms_psi_cb2": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "stock_id": "%s", "stock_name": "%s", "area_code": "%s", "area_name": "自动化测试", "pur_mode": 10, "hos_goods_id": "%s", "goods_code": "%s", "batch_code": "4444", "expdt_date": %s, "hos_batch_id": "%s", "batch_price": Decimal("99.999900"), "qty": %s, "shelf_code": None, "barcode_flag": 1, "pkg_flag": 1, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": %s}'
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment