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

流程十五脚本提交

parent 8c9fc16d
...@@ -28,11 +28,12 @@ def check_mcms_psi_dept_out(type1=16): ...@@ -28,11 +28,12 @@ def check_mcms_psi_dept_out(type1=16):
branch_id = get_branch_id() branch_id = get_branch_id()
sql = " select * from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_TK' order by CREATE_TIME desc LIMIT 1;" % ( sql = " select * from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_TK' order by CREATE_TIME desc LIMIT 1;" % (
branch_id, type1) branch_id, type1)
actual = check_mcms_dept_buy_sql(sql) actual = check_mcms_dept_buy_sql(sql)
print(actual) print(actual)
DR_ID=get_id(" select id from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_TK' order by CREATE_TIME desc LIMIT 1;" % ( DR_ID = get_id(
branch_id, type1)) " select id from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_TK' order by CREATE_TIME desc LIMIT 1;" % (
branch_id, type1))
sql = "select order_no from mcms_psi_dept where id='%s';" % DR_ID sql = "select order_no from mcms_psi_dept where id='%s';" % DR_ID
order_no = get_id(sql) order_no = get_id(sql)
target_corp_id = get_hosid() target_corp_id = get_hosid()
...@@ -59,32 +60,36 @@ def check_mcms_psi_dept_out(type1=16): ...@@ -59,32 +60,36 @@ def check_mcms_psi_dept_out(type1=16):
create_time = get_create_time("select create_time from mcms_psi_dept where id='%s';" % DR_ID) 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 = get_create_time("select last_modified from mcms_psi_dept where id='%s';" % DR_ID)
last_modified_user = create_user last_modified_user = create_user
accounter=create_user accounter = create_user
account_date = process_tuple(get_create_time("select account_date from mcms_psi_dept where id='%s';" % DR_ID)) account_date = process_tuple(get_create_time("select account_date from mcms_psi_dept where id='%s';" % DR_ID))
if type1 == 16: if type1 == 16:
# 子表检查 # 子表检查
check_mcms_psi_dept_batch(DR_ID,type1,order_no) check_mcms_psi_dept_batch(DR_ID, type1, order_no)
target_area_code = None target_area_code = None
accounter = None accounter = None
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_dept_tkck1_1', DR_ID, order_no, target_corp_id, target_branch_id, 'mcms_psi_dept_tkck1_1', DR_ID, order_no, target_corp_id,
target_branch_id,
target_dept_id, target_dept_name, target_stock_id target_dept_id, target_dept_name, target_stock_id
, target_area_code, source_id, source_corp_id, source_branch_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, source_dept_id, source_dept_name, source_stock_id, source_area_code,
accounter, account_date,
pickOrderNo, pickBillId, psiDeptOutBillId, psiDeptOutOrderNo pickOrderNo, pickBillId, psiDeptOutBillId, psiDeptOutOrderNo
, create_user, create_time, last_modified, last_modified_user , create_user, create_time, last_modified, last_modified_user
) )
elif type1 == 20: elif type1 == 20:
# 子表检查 # 子表检查
check_mcms_psi_dept_batch(DR_ID,type1,order_no) check_mcms_psi_dept_batch(DR_ID, type1, order_no)
target_area_code=None target_area_code = None
accounter=None accounter = None
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_dept_tkck1_2', DR_ID, order_no, target_corp_id, target_branch_id, 'mcms_psi_dept_tkck1_2', DR_ID, order_no, target_corp_id,
target_branch_id,
target_dept_id, target_dept_name, target_stock_id target_dept_id, target_dept_name, target_stock_id
, target_area_code, source_id, source_corp_id, source_branch_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, source_dept_id, source_dept_name, source_stock_id, source_area_code,
accounter, account_date,
pickOrderNo, pickBillId, psiDeptOutBillId, psiDeptOutOrderNo pickOrderNo, pickBillId, psiDeptOutBillId, psiDeptOutOrderNo
, create_user, create_time, last_modified, last_modified_user) , create_user, create_time, last_modified, last_modified_user)
else: else:
...@@ -93,10 +98,12 @@ def check_mcms_psi_dept_out(type1=16): ...@@ -93,10 +98,12 @@ def check_mcms_psi_dept_out(type1=16):
target_area_code = None target_area_code = None
accounter = None accounter = None
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_dept_tkck1_3', DR_ID, order_no, target_corp_id, target_branch_id, 'mcms_psi_dept_tkck1_3', DR_ID, order_no, target_corp_id,
target_branch_id,
target_dept_id, target_dept_name, target_stock_id target_dept_id, target_dept_name, target_stock_id
, target_area_code, source_id, source_corp_id, source_branch_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, source_dept_id, source_dept_name, source_stock_id, source_area_code,
accounter, account_date,
pickOrderNo, pickBillId, psiDeptOutBillId, psiDeptOutOrderNo pickOrderNo, pickBillId, psiDeptOutBillId, psiDeptOutOrderNo
, create_user, create_time, last_modified, last_modified_user , create_user, create_time, last_modified, last_modified_user
...@@ -119,7 +126,9 @@ def check_mcms_psi_dept_out(type1=16): ...@@ -119,7 +126,9 @@ def check_mcms_psi_dept_out(type1=16):
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_batch(DR_ID,type,order_no):
def check_mcms_psi_dept_batch(DR_ID, type, order_no):
branch_id = get_branch_id() branch_id = get_branch_id()
sql = " select * from mcms_psi_dept_batch where pid='%s';" % ( sql = " select * from mcms_psi_dept_batch where pid='%s';" % (
DR_ID) DR_ID)
...@@ -128,8 +137,8 @@ def check_mcms_psi_dept_batch(DR_ID,type,order_no): ...@@ -128,8 +137,8 @@ def check_mcms_psi_dept_batch(DR_ID,type,order_no):
batch_main_key = get_id("select id from mcms_psi_dept_batch where pid='%s';" % DR_ID) batch_main_key = get_id("select id from mcms_psi_dept_batch where pid='%s';" % DR_ID)
pid = DR_ID pid = DR_ID
# order_no = get_id("select order_no from mcms_psi_dept_batch where pid='%s';" % DR_ID) # order_no = get_id("select order_no from mcms_psi_dept_batch where pid='%s';" % DR_ID)
source_detail_id = get_pick_detail_id(branch_id,type) source_detail_id = get_pick_detail_id(branch_id, type)
pick_detail_id=source_detail_id pick_detail_id = source_detail_id
if type == 16: if type == 16:
hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message2')["hosGoodsId"] hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message2')["hosGoodsId"]
...@@ -142,47 +151,54 @@ def check_mcms_psi_dept_batch(DR_ID,type,order_no): ...@@ -142,47 +151,54 @@ def check_mcms_psi_dept_batch(DR_ID,type,order_no):
pkg_def_id = get_pkg_def_id(hos_goods_id) pkg_def_id = get_pkg_def_id(hos_goods_id)
picker_name = FileUtils().r_info8("b2_herp3_bs", "用户名信息", 'message3')['username1'] picker_name = FileUtils().r_info8("b2_herp3_bs", "用户名信息", 'message3')['username1']
picker = get_login_user_uxid_bydb(picker_name) picker = get_login_user_uxid_bydb(picker_name)
source_batch_id=get_id("select source_batch_id from mcms_psi_dept_batch where pid='%s';" % DR_ID) source_batch_id = get_id("select source_batch_id from mcms_psi_dept_batch where pid='%s';" % DR_ID)
target_batch_id=source_batch_id target_batch_id = source_batch_id
if check_batch_id(source_batch_id)==True: if check_batch_id(source_batch_id) == True:
print('ok') print('ok')
commonFuc().check_text_exist_result_text('succees', 'succees') commonFuc().check_text_exist_result_text('succees', 'succees')
else: else:
commonFuc().check_text_exist_result_text('error', 'succees') commonFuc().check_text_exist_result_text('error', 'succees')
barcode_id=get_id("select barcode_id from mcms_psi_dept_batch where pid='%s';" % DR_ID) barcode_id = get_id("select barcode_id from mcms_psi_dept_batch where pid='%s';" % DR_ID)
if check_barcode_id(barcode_id)==True: if check_barcode_id(barcode_id) == True:
print('ok') print('ok')
commonFuc().check_text_exist_result_text('succees', 'succees') commonFuc().check_text_exist_result_text('succees', 'succees')
else: else:
commonFuc().check_text_exist_result_text('error', 'succees') commonFuc().check_text_exist_result_text('error', 'succees')
dept_name=FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid2'] dept_name = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid2']
shelf_code= get_stockAreaId_new_fromDb(dept_name, 2) shelf_code = get_stockAreaId_new_fromDb(dept_name, 2)
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_batch where pid='%s';" % DR_ID) create_time = get_create_time("select create_time from mcms_psi_dept_batch where pid='%s';" % DR_ID)
last_modified = get_create_time("select last_modified from mcms_psi_dept_batch where pid='%s';" % DR_ID) last_modified = get_create_time("select last_modified from mcms_psi_dept_batch where pid='%s';" % DR_ID)
last_modified_user = create_user last_modified_user = create_user
if type == 16: if type == 16:
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_dept_batch1', batch_main_key, pid, order_no,source_detail_id 'mcms_psi_dept_batch1', batch_main_key, pid, order_no, source_detail_id
,pick_detail_id,hos_goods_id,mdm_goods_code,goods_code,source_batch_id, , pick_detail_id, hos_goods_id, mdm_goods_code, goods_code,
target_batch_id,barcode_id,shelf_code,create_user,create_time,last_modified, source_batch_id,
last_modified_user target_batch_id, barcode_id, shelf_code, create_user, create_time,
last_modified,
last_modified_user
) )
elif type == 20: elif type == 20:
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_dept_batch2', batch_main_key, pid, order_no,source_detail_id 'mcms_psi_dept_batch2', batch_main_key, pid, order_no, source_detail_id
,pick_detail_id,hos_goods_id,mdm_goods_code,goods_code,source_batch_id, , pick_detail_id, hos_goods_id, mdm_goods_code, goods_code,
target_batch_id,barcode_id,shelf_code,create_user,create_time,last_modified, source_batch_id,
last_modified_user target_batch_id, barcode_id, shelf_code, create_user, create_time,
last_modified,
last_modified_user
) )
else: else:
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_dept_batch3_1',batch_main_key, pid, order_no,source_detail_id 'mcms_psi_dept_batch3_1', batch_main_key, pid, order_no,
,pick_detail_id,hos_goods_id,mdm_goods_code,goods_code,source_batch_id, source_detail_id
target_batch_id,barcode_id,shelf_code,create_user,create_time,last_modified, , pick_detail_id, hos_goods_id, mdm_goods_code, goods_code,
last_modified_user source_batch_id,
target_batch_id, barcode_id, shelf_code, create_user, create_time,
last_modified,
last_modified_user
) )
...@@ -237,11 +253,11 @@ def check_mcms_psi_in(type=1): ...@@ -237,11 +253,11 @@ def check_mcms_psi_in(type=1):
source_no = None source_no = None
source_repl_id = None source_repl_id = None
source_corp_id = get_hosid() source_corp_id = get_hosid()
source_branch_id=get_branch_id() source_branch_id = get_branch_id()
source_dept_id = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid2'] 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_dept_name = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid2']
source_stock_id = get_stockId_fromdb(source_dept_name+'库房') source_stock_id = get_stockId_fromdb(source_dept_name + '库房')
source_area_code=get_stockAreaId_new_fromDb(source_dept_name, 2) source_area_code = get_stockAreaId_new_fromDb(source_dept_name, 2)
accounter = get_login_user_uxid_bydb(FileUtils().r_info8('b2_herp3_bs', "用户名信息", 'message3')['username1']) accounter = get_login_user_uxid_bydb(FileUtils().r_info8('b2_herp3_bs', "用户名信息", 'message3')['username1'])
account_date = get_create_time("select account_date from mcms_psi where id='%s';" % id) account_date = get_create_time("select account_date from mcms_psi where id='%s';" % id)
...@@ -255,10 +271,14 @@ def check_mcms_psi_in(type=1): ...@@ -255,10 +271,14 @@ def check_mcms_psi_in(type=1):
pickOrderNo = get_PICK_order_no(branch_id, bill_mode) pickOrderNo = get_PICK_order_no(branch_id, bill_mode)
pickBillId = get_PICK_id(branch_id, bill_mode) pickBillId = get_PICK_id(branch_id, bill_mode)
planBillId = get_planBillId(hos_goods_id) planBillId = get_planBillId(hos_goods_id)
psiDeptOutBillId=get_id("select id from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_TK' order by CREATE_TIME desc LIMIT 1;"%(branch_id,bill_mode)) psiDeptOutBillId = get_id(
psiDeptOutOrderNo=get_id("select order_no from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_TK' order by CREATE_TIME desc LIMIT 1;"%(branch_id,bill_mode)) "select id from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_TK' order by CREATE_TIME desc LIMIT 1;" % (
branch_id, bill_mode))
psiDeptOutOrderNo = get_id(
"select order_no from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_TK' order by CREATE_TIME desc LIMIT 1;" % (
branch_id, bill_mode))
psiInBillId = id psiInBillId = id
psiInOrderNo=order_no psiInOrderNo = order_no
buyOrderNo = get_buyOrderNo(branch_id, bill_mode) buyOrderNo = get_buyOrderNo(branch_id, bill_mode)
purOrderNo = get_purOrderNo(branch_id, bill_mode) purOrderNo = get_purOrderNo(branch_id, bill_mode)
purBillId = get_purBillId(branch_id, bill_mode) purBillId = get_purBillId(branch_id, bill_mode)
...@@ -282,10 +302,11 @@ def check_mcms_psi_in(type=1): ...@@ -282,10 +302,11 @@ def check_mcms_psi_in(type=1):
order_no, target_corp_id, target_branch_id, target_dept_id, order_no, target_corp_id, target_branch_id, target_dept_id,
target_dept_name, target_stock_id target_dept_name, target_stock_id
, target_area_code, source_id, source_no, source_repl_id, , target_area_code, source_id, source_no, source_repl_id,
source_corp_id,source_branch_id,source_dept_id, source_dept_name source_corp_id, source_branch_id, source_dept_id, source_dept_name
, source_stock_id, source_area_code,accounter, account_date, pickOrderNo, pickBillId, , source_stock_id, source_area_code, accounter, account_date,
pickOrderNo, pickBillId,
psiDeptOutBillId, psiDeptOutOrderNo, psiInBillId, psiInOrderNo, psiDeptOutBillId, psiDeptOutOrderNo, psiInBillId, psiInOrderNo,
create_user create_user
, create_time, last_modified, last_modified_user) , create_time, last_modified, last_modified_user)
elif type == 2: elif type == 2:
check_mcms_psi_batch_in(id, type, order_no, source_id) check_mcms_psi_batch_in(id, type, order_no, source_id)
...@@ -293,10 +314,11 @@ def check_mcms_psi_in(type=1): ...@@ -293,10 +314,11 @@ def check_mcms_psi_in(type=1):
order_no, target_corp_id, target_branch_id, target_dept_id, order_no, target_corp_id, target_branch_id, target_dept_id,
target_dept_name, target_stock_id target_dept_name, target_stock_id
, target_area_code, source_id, source_no, source_repl_id, , target_area_code, source_id, source_no, source_repl_id,
source_corp_id,source_branch_id,source_dept_id, source_dept_name source_corp_id, source_branch_id, source_dept_id, source_dept_name
, source_stock_id, source_area_code,accounter, account_date, pickOrderNo, pickBillId, , source_stock_id, source_area_code, accounter, account_date,
pickOrderNo, pickBillId,
psiDeptOutBillId, psiDeptOutOrderNo, psiInBillId, psiInOrderNo, psiDeptOutBillId, psiDeptOutOrderNo, psiInBillId, psiInOrderNo,
create_user create_user
, create_time, last_modified, last_modified_user) , create_time, last_modified, last_modified_user)
else: else:
check_mcms_psi_batch_in(id, type, order_no, source_id) check_mcms_psi_batch_in(id, type, order_no, source_id)
...@@ -304,10 +326,11 @@ def check_mcms_psi_in(type=1): ...@@ -304,10 +326,11 @@ def check_mcms_psi_in(type=1):
order_no, target_corp_id, target_branch_id, target_dept_id, order_no, target_corp_id, target_branch_id, target_dept_id,
target_dept_name, target_stock_id target_dept_name, target_stock_id
, target_area_code, source_id, source_no, source_repl_id, , target_area_code, source_id, source_no, source_repl_id,
source_corp_id,source_branch_id,source_dept_id, source_dept_name source_corp_id, source_branch_id, source_dept_id, source_dept_name
, source_stock_id, source_area_code,accounter, account_date, pickOrderNo, pickBillId, , source_stock_id, source_area_code, accounter, account_date,
pickOrderNo, pickBillId,
psiDeptOutBillId, psiDeptOutOrderNo, psiInBillId, psiInOrderNo, psiDeptOutBillId, psiDeptOutOrderNo, psiInBillId, psiInOrderNo,
create_user create_user
, create_time, last_modified, last_modified_user) , create_time, last_modified, last_modified_user)
# 对比预期值和实际值是否一致 # 对比预期值和实际值是否一致
actual_value1 = get_process_list2(actual) actual_value1 = get_process_list2(actual)
...@@ -328,6 +351,7 @@ def check_mcms_psi_in(type=1): ...@@ -328,6 +351,7 @@ def check_mcms_psi_in(type=1):
print('error') print('error')
commonFuc().check_text_exist_result_text('error', 'succees') commonFuc().check_text_exist_result_text('error', 'succees')
def check_mcms_psi_batch_in(DR_ID, type, order_no, source_id1): def check_mcms_psi_batch_in(DR_ID, type, order_no, source_id1):
if type == 1: if type == 1:
bill_mode = 16 bill_mode = 16
...@@ -421,40 +445,39 @@ def check_mcms_psi_batch_in(DR_ID, type, order_no, source_id1): ...@@ -421,40 +445,39 @@ def check_mcms_psi_batch_in(DR_ID, type, order_no, source_id1):
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_b9流程十六退库业务_二级库向一级库退库.air') sys.path.append(pro_path + r'/air_case/b5_spd3_core_business_flow/a_b9流程十六退库业务_二级库向一级库退库.air')
using(pro_path + r'//air_case/b5_spd3_core_business_flow/a_b9流程十六退库业务_二级库向一级库退库.air') using(pro_path + r'//air_case/b5_spd3_core_business_flow/a_b9流程十六退库业务_二级库向一级库退库.air')
from a_b9流程十六退库业务_二级库向一级库退库 import second_dept_return_Out_Stock,putaway from a_b9流程十六退库业务_二级库向一级库退库 import second_dept_return_Out_Stock, putaway
try: try:
# updateUserLoginDefaultRange(get_listUserMgrRangePage1(2))#设置登录账号默认权限是二级库
# second_dept_return_Out_Stock(2)#高值耗材退货出库
# time.sleep(6)
# check_mcms_psi_dept_out(20)#检查出库单数据库数据
# approval_center()#审批
# putaway()#中心库上架
# time.sleep(6)
check_mcms_psi_in(2)#检查中心单入库单数据库数据
updateUserLoginDefaultRange(get_listUserMgrRangePage1(2))#设置登录账号默认权限是二级库 updateUserLoginDefaultRange(get_listUserMgrRangePage1(2))#设置登录账号默认权限是二级库
second_dept_return_Out_Stock(1)#低值耗材退货出库 second_dept_return_Out_Stock(2)#高值耗材退货出库
time.sleep(6)
check_mcms_psi_dept_out(20)#检查出库单数据库数据
approval_center()#审批
putaway()#中心库上架
time.sleep(6)
check_mcms_psi_in(2) # 检查中心单入库单数据库数据
updateUserLoginDefaultRange(get_listUserMgrRangePage1(2)) # 设置登录账号默认权限是二级库
second_dept_return_Out_Stock(1) # 低值耗材退货出库
time.sleep(6) time.sleep(6)
check_mcms_psi_dept_out(16) # 检查出库单数据库数据 check_mcms_psi_dept_out(16) # 检查出库单数据库数据
approval_center() # 审批 approval_center() # 审批
putaway() # 中心库上架 putaway() # 中心库上架
time.sleep(6) time.sleep(6)
check_mcms_psi_in(1) # 检查中心单入库单数据库数据 check_mcms_psi_in(1) # 检查中心单入库单数据库数据
updateUserLoginDefaultRange(get_listUserMgrRangePage1(2))#设置登录账号默认权限是二级库 updateUserLoginDefaultRange(get_listUserMgrRangePage1(2)) # 设置登录账号默认权限是二级库
second_dept_return_Out_Stock(3)#试剂耗材退货出库 second_dept_return_Out_Stock(3) # 试剂耗材退货出库
check_mcms_psi_dept_out(66) # 检查出库单数据库数据 check_mcms_psi_dept_out(66) # 检查出库单数据库数据
approval_center()#审批 approval_center() # 审批
putaway()#中心库上架 putaway() # 中心库上架
time.sleep(6)
check_mcms_psi_in(3) # 检查中心单入库单数据库数据
# ===============上面调通了================================ # ===============上面调通了================================
commonFuc().check_text_exist_result_text('succees', 'succees') commonFuc().check_text_exist_result_text('succees', 'succees')
except Exception as e: except Exception as e:
# 打印错误信息 # 打印错误信息
print(f"发生错误: {e}") print(f"发生错误: {e}")
commonFuc().check_text_exist_result_text('error', 'SUCCESS') commonFuc().check_text_exist_result_text('error', 'SUCCESS')
\ No newline at end of file
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
#二级库退货中心库入库单 #二级库退货中心库入库单
"check_mcms_psi1_1": '{"id": "%s", "order_no": "%s", "bill_mode": "16", "rec_type": "YND", "psi_flag": 1, "psi_kind": "103", "stock_kind": "RK_TK", "target_corp_id": "%s", "target_branch_id": "%s", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": "%s", "target_area_name": "自动化测试", "source_id": "%s", "source_no": %s, "source_repl_id": %s, "source_corp_id": "%s", "source_branch_id": "%s", "source_dept_id": "%s", "source_dept_name": "%s", "source_stock_id": "%s", "source_area_code": "%s", "source_area_name": "默认库区", "remark": None, "tb_status": 30, "accounter": "%s", "account_date": %s, "bill_relation_json": "{"pickOrderNo":"%s","pickBillId":"%s","psiDeptOutBillId":"%s","psiDeptOutOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s"}", "reject_time": None, "reject_remark": None, "create_user": "%s","create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "reject_user": None, "initial_order": None, "source_type": "SG", "reject_reason": None, "receipt_status": 0}' "check_mcms_psi1_1": '{"id": "%s", "order_no": "%s", "bill_mode": "16", "rec_type": "YND", "psi_flag": 1, "psi_kind": "103", "stock_kind": "RK_TK", "target_corp_id": "%s", "target_branch_id": "%s", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": "%s", "target_area_name": "自动化测试", "source_id": "%s", "source_no": %s, "source_repl_id": %s, "source_corp_id": "%s", "source_branch_id": "%s", "source_dept_id": "%s", "source_dept_name": "%s", "source_stock_id": "%s", "source_area_code": "%s", "source_area_name": "默认库区", "remark": None, "tb_status": 30, "accounter": "%s", "account_date": %s, "bill_relation_json": "{"pickOrderNo":"%s","pickBillId":"%s","psiDeptOutBillId":"%s","psiDeptOutOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s"}", "reject_time": None, "reject_remark": None, "create_user": "%s","create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "reject_user": None, "initial_order": None, "source_type": "SG", "reject_reason": None, "receipt_status": 0}'
"check_mcms_psi1_2": '{"id": "%s", "order_no": "%s", "bill_mode": "20", "rec_type": "YND", "psi_flag": 1, "psi_kind": "103", "stock_kind": "RK_TK", "target_corp_id": "%s", "target_branch_id": "%s", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": "%s", "target_area_name": "自动化测试", "source_id": "%s", "source_no": %s, "source_repl_id": %s, "source_corp_id": "%s", "source_branch_id": "%s", "source_dept_id": "%s", "source_dept_name": "%s", "source_stock_id": "%s", "source_area_code": "%s", "source_area_name": "默认库区", "remark": None, "tb_status": 30, "accounter": "%s", "account_date": %s, "bill_relation_json": "{"pickOrderNo":"%s","pickBillId":"%s","psiDeptOutBillId":"%s","psiDeptOutOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s"}", "reject_time": None, "reject_remark": None, "create_user": "%s","create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "reject_user": None, "initial_order": None, "source_type": "SG", "reject_reason": None, "receipt_status": 0}' "check_mcms_psi1_2": '{"id": "%s", "order_no": "%s", "bill_mode": "20", "rec_type": "YND", "psi_flag": 1, "psi_kind": "103", "stock_kind": "RK_TK", "target_corp_id": "%s", "target_branch_id": "%s", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": "%s", "target_area_name": "自动化测试", "source_id": "%s", "source_no": %s, "source_repl_id": %s, "source_corp_id": "%s", "source_branch_id": "%s", "source_dept_id": "%s", "source_dept_name": "%s", "source_stock_id": "%s", "source_area_code": "%s", "source_area_name": "默认库区", "remark": None, "tb_status": 30, "accounter": "%s", "account_date": %s, "bill_relation_json": "{"pickOrderNo":"%s","pickBillId":"%s","psiDeptOutBillId":"%s","psiDeptOutOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s"}", "reject_time": None, "reject_remark": None, "create_user": "%s","create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "reject_user": None, "initial_order": None, "source_type": "SG", "reject_reason": None, "receipt_status": 0}'
"check_mcms_psi1_3": '{"id": "%s", "order_no": "%s", "bill_mode": "66", "rec_type": "YND", "psi_flag": 1, "psi_kind": "103", "stock_kind": "RK_TK", "target_corp_id": "%s", "target_branch_id": "%s", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": "%s", "target_area_name": "自动化测试", "source_id": "%s", "source_no": %s, "source_repl_id": %s, "source_corp_id": "%s", "source_branch_id": "%s", "source_dept_id": "%s", "source_dept_name": "%s", "source_stock_id": "%s", "source_area_code": "%s", "source_area_name": "默认库区", "remark": None, "tb_status": 30, "accounter": "%s", "account_date": %s, "bill_relation_json": "{"pickOrderNo":"%s","pickBillId":"%s","psiDeptOutBillId":"%s","psiDeptOutOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s"}", "reject_time": None, "reject_remark": None, "create_user": "%s","create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "reject_user": None, "initial_order": None, "source_type": "SG "reject_reason": None, "receipt_status": 0}' "check_mcms_psi1_3": '{"id": "%s", "order_no": "%s", "bill_mode": "66", "rec_type": "YND", "psi_flag": 1, "psi_kind": "103", "stock_kind": "RK_TK", "target_corp_id": "%s", "target_branch_id": "%s", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": "%s", "target_area_name": "自动化测试", "source_id": "%s", "source_no": %s, "source_repl_id": %s, "source_corp_id": "%s", "source_branch_id": "%s", "source_dept_id": "%s", "source_dept_name": "%s", "source_stock_id": "%s", "source_area_code": "%s", "source_area_name": "默认库区", "remark": None, "tb_status": 30, "accounter": "%s", "account_date": %s, "bill_relation_json": "{"pickOrderNo":"%s","pickBillId":"%s","psiDeptOutBillId":"%s","psiDeptOutOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s"}", "reject_time": None, "reject_remark": None, "create_user": "%s","create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "reject_user": None, "initial_order": None, "source_type": "SG", "reject_reason": None, "receipt_status": 0}'
#二级库退货中心库入库单子表 #二级库退货中心库入库单子表
......
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