From bc465df806eafd7825934e514bed51347039680d Mon Sep 17 00:00:00 2001 From: xiao-hesheng Date: Wed, 24 Jul 2024 15:14:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E5=8D=81=E4=BA=8C=E8=84=9A=E6=9C=AC=E7=BC=96?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...56\345\272\223\351\252\214\350\257\201.py" | 297 ++++++++++++++---- common/db/sql/sql_tools.py | 1 + .../data | 10 + 3 files changed, 239 insertions(+), 69 deletions(-) diff --git "a/air_case/b6_spd3_core_business_flow_database_check/a_b5\346\265\201\347\250\213\345\215\201\344\272\214\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\344\272\214\347\272\247\345\272\223_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.air/a_b5\346\265\201\347\250\213\345\215\201\344\272\214\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\344\272\214\347\272\247\345\272\223_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.py" "b/air_case/b6_spd3_core_business_flow_database_check/a_b5\346\265\201\347\250\213\345\215\201\344\272\214\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\344\272\214\347\272\247\345\272\223_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.air/a_b5\346\265\201\347\250\213\345\215\201\344\272\214\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\344\272\214\347\272\247\345\272\223_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.py" index e4ecd8de..a22c3455 100644 --- "a/air_case/b6_spd3_core_business_flow_database_check/a_b5\346\265\201\347\250\213\345\215\201\344\272\214\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\344\272\214\347\272\247\345\272\223_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.air/a_b5\346\265\201\347\250\213\345\215\201\344\272\214\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\344\272\214\347\272\247\345\272\223_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.py" +++ "b/air_case/b6_spd3_core_business_flow_database_check/a_b5\346\265\201\347\250\213\345\215\201\344\272\214\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\344\272\214\347\272\247\345\272\223_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.air/a_b5\346\265\201\347\250\213\345\215\201\344\272\214\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\344\272\214\347\272\247\345\272\223_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.py" @@ -105,6 +105,7 @@ def check_mcms_dept_buy_car(type=1): print('error') commonFuc().check_text_exist_result_text('error', 'succees') + # 检查二级库请领单审批前的子表数据 def mcms_dept_buy_detail(type=16): branch_id = get_branch_id() @@ -245,7 +246,7 @@ def check_mcms_dept_buy(type=16): branch_id, type)) rec_addr = deptname2 dept_id1 = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid2'] - dept_name1=FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid2'] + dept_name1 = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid2'] stock_name = dept_name1 + "库房" target_stock_id = get_stockId_fromdb(stock_name) if type == 16: @@ -292,28 +293,27 @@ def check_mcms_dept_buy(type=16): print('error') commonFuc().check_text_exist_result_text('error', 'succees') -def check_mcms_psi_dept_batch(type,DR_ID): + +def check_mcms_psi_dept_batch(type, DR_ID): sql = " select * from mcms_psi_dept_batch where pid='%s';" % ( - DR_ID) + DR_ID) actual = check_mcms_dept_buy_sql(sql) - print('actual',actual) - batch_main_key=get_id("select id from mcms_psi_dept_batch where pid='%s';" % DR_ID) - pid=DR_ID - order_no=get_id("select order_no from mcms_psi_dept_batch where pid='%s';" % DR_ID) - source_detail_id='source_detail_id' + print('actual', actual) + batch_main_key = get_id("select id from mcms_psi_dept_batch where pid='%s';" % DR_ID) + pid = DR_ID + order_no = get_id("select order_no from mcms_psi_dept_batch where pid='%s';" % DR_ID) + source_detail_id = 'source_detail_id' if type == 16: expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', - 'mcms_psi_dept_batch1',batch_main_key,pid,order_no - - + 'mcms_psi_dept_batch1', batch_main_key, pid, order_no ) elif type == 20: expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', - 'mcms_psi_dept_batch2',batch_main_key,pid) + 'mcms_psi_dept_batch2', batch_main_key, pid) else: expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', - 'mcms_psi_dept_batch3',batch_main_key,pid) + 'mcms_psi_dept_batch3', batch_main_key, pid) print('expected', expected) print('aaaaaaaaaaaaaaaaa') @@ -334,72 +334,80 @@ def check_mcms_psi_dept_batch(type,DR_ID): print('error') commonFuc().check_text_exist_result_text('error', 'succees') + def check_mcms_psi_dept(type=16): - branch_id=get_branch_id() - sql=" select * from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_SL' order by CREATE_TIME desc LIMIT 1;"%(branch_id,type) + branch_id = get_branch_id() + sql = " select * from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_SL' order by CREATE_TIME desc LIMIT 1;" % ( + branch_id, type) actual = check_mcms_dept_buy_sql(sql) print(actual) info = FileUtils().r_info8('b5_spd3_core_business_flow', "拣货单id", 'message26') # print(info) - if type==16: - DR_ID=info['DR_NO2'] - elif type==20: + if type == 16: + DR_ID = info['DR_NO2'] + elif type == 20: DR_ID = info['DR_NO3'] else: DR_ID = info['DR_NO1'] DR_ID = ''.join(DR_ID) - 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) - target_corp_id=get_hosid() - target_branch_id=get_branch_id() - target_dept_id=FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid5'] - target_dept_name=FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid5'] - 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,type) - 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,type) - pickOrderNo=get_PICK_order_no(branch_id,type) - buyOrderNo=get_buyOrderNo(branch_id,type) - pickBillId=get_PICK_id(branch_id,type) - 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 + target_corp_id = get_hosid() + target_branch_id = get_branch_id() + target_dept_id = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid5'] + target_dept_name = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid5'] + 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, type) + 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, type) + pickOrderNo = get_PICK_order_no(branch_id, type) + buyOrderNo = get_buyOrderNo(branch_id, type) + pickBillId = get_PICK_id(branch_id, type) + 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 if type == 16: - #子表检查 - check_mcms_psi_dept_batch(type,DR_ID) + # 子表检查 + check_mcms_psi_dept_batch(type, DR_ID) expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', - 'mcms_psi_dept1',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, - buyBillId,pickOrderNo,buyOrderNo,pickBillId,psiDeptOutBillId,psiDeptOutOrderNo - ,create_user,create_time,last_modified,last_modified_user + 'mcms_psi_dept1', 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, + buyBillId, pickOrderNo, buyOrderNo, pickBillId, psiDeptOutBillId, + psiDeptOutOrderNo + , create_user, create_time, last_modified, last_modified_user ) elif type == 20: expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', - 'mcms_psi_dept2',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, - buyBillId,pickOrderNo,buyOrderNo,pickBillId,psiDeptOutBillId,psiDeptOutOrderNo - ,create_user,create_time,last_modified,last_modified_user) + 'mcms_psi_dept2', 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, + buyBillId, pickOrderNo, buyOrderNo, pickBillId, psiDeptOutBillId, + psiDeptOutOrderNo + , create_user, create_time, last_modified, last_modified_user) else: expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', - 'mcms_psi_dept3',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, - buyBillId,pickOrderNo,buyOrderNo,pickBillId,psiDeptOutBillId,psiDeptOutOrderNo - ,create_user,create_time,last_modified,last_modified_user) + 'mcms_psi_dept3', 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, + buyBillId, pickOrderNo, buyOrderNo, pickBillId, psiDeptOutBillId, + psiDeptOutOrderNo + , create_user, create_time, last_modified, last_modified_user) print('expected', expected) print('aaaaaaaaaaaaaaaaa') @@ -420,13 +428,161 @@ def check_mcms_psi_dept(type=16): print('error') commonFuc().check_text_exist_result_text('error', 'succees') +def check_mcms_pick_detail(pid,type,order_no): + branch_id = get_branch_id() + print('拣货单子表检查') + sql = " select * from mcms_pick_detail where pid='%s';" % ( + pid) + actual = check_mcms_dept_buy_sql(sql) + print(actual) + id=get_id("select id from mcms_pick_detail where pid='%s';" % ( pid)) + source_id=get_buyBillId(branch_id,type) + if type == 16: + hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message2')["hosGoodsId"] + elif type == 20: + hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message1')["hosGoodsId"] + else: + hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message3')["hosGoodsId"] + mdm_goods_code=get_mdm_goods_code1(hos_goods_id) + goods_code=get_goods_code1(hos_goods_id) + pkg_def_id=get_pkg_def_id(hos_goods_id) + picker_name=FileUtils().r_info8("b2_herp3_bs", "用户名信息", 'message3')['username1'] + picker=get_login_user_uxid_bydb(picker_name) + create_user=picker + create_time=get_create_time("select create_time from mcms_pick_detail where pid='%s';" % (pid)) + last_modified=get_create_time("select last_modified from mcms_pick_detail where pid='%s';" % (pid)) + last_modified_user=create_user + if type == 16: + + expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', + 'mcms_pick_detail1', id,pid,order_no,source_id,hos_goods_id + ,mdm_goods_code,goods_code,pkg_def_id,picker,picker_name, + create_user,create_time,last_modified,last_modified_user + + ) + elif type == 20: + expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', + 'mcms_pick_detail2', id,pid,order_no,source_id,hos_goods_id + ,mdm_goods_code,goods_code,pkg_def_id,picker,picker_name, + create_user,create_time,last_modified,last_modified_user + + ) + else: + expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', + 'mcms_pick_detail3', id,pid,order_no,source_id,hos_goods_id + ,mdm_goods_code,goods_code,pkg_def_id,picker,picker_name, + create_user,create_time,last_modified,last_modified_user + + ) + + print('expected', expected) + print('aaaaaaaaaaaaaaaaa') + actual_value1 = get_process_list2(actual) + expected_value1 = get_process_list2(expected) + actual_value2 = actual_value1.replace(" ", "") + expected_value2 = expected_value1.replace(" ", "") + # print('actual_value2',actual_value2) + print('expected_value2') + print(expected_value2) + 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') def check_mcms_pick(type=16): - branch_id=get_branch_id() + branch_id = get_branch_id() print('拣货单验证') - sql = " select * from mcms_pick where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_SL' order by CREATE_TIME desc LIMIT 1;" % ( - branch_id, type) + sql = " select * from mcms_pick where branch_id='%s' and bill_mode='%s' order by CREATE_TIME desc LIMIT 1;" % ( + branch_id, type) actual = check_mcms_dept_buy_sql(sql) print(actual) + id = get_id( + "select id from mcms_pick where branch_id='%s' and bill_mode='%s' order by CREATE_TIME desc LIMIT 1;" % ( + branch_id, type)) + order_no = get_id( + "select order_no from mcms_pick where branch_id='%s' and bill_mode='%s' order by CREATE_TIME desc LIMIT 1;" % ( + branch_id, type)) + source_id = get_buyBillId(branch_id, type) + dept_id = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid2'] + dept_name = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid2'] + stock_id = get_stockId_fromdb(dept_name + '库房') + area_code = get_stockAreaId_new_fromDb(dept_name, 2) + target_dept_id = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid5'] + target_dept_name = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid5'] + target_stock_id = get_stockId_fromdb(target_dept_name + '库房') + target_area_code = get_stockAreaId_new_fromDb(target_dept_name, 2) + username = FileUtils().r_info8("b2_herp3_bs", "用户名信息", 'message3')['username1'] + reviewer = get_login_user_uxid_bydb(username) + review_date = get_expdt_date( + "select review_date from mcms_pick where branch_id='%s' and bill_mode='%s' order by CREATE_TIME desc LIMIT 1;" % ( + branch_id, type)) + buyBillId = get_buyBillId(branch_id, type) + pickOrderNo = order_no + buyOrderNo = get_buyOrderNo(branch_id, type) + pickBillId = id + create_user = reviewer + create_time = get_expdt_date( + "select create_time from mcms_pick where branch_id='%s' and bill_mode='%s' order by CREATE_TIME desc LIMIT 1;" % ( + branch_id, type)) + last_modified = get_expdt_date( + "select last_modified from mcms_pick where branch_id='%s' and bill_mode='%s' order by CREATE_TIME desc LIMIT 1;" % ( + branch_id, type)) + last_modified_user=create_user + picker = create_user + picker_name = username + if type == 16: + check_mcms_pick_detail(id,type,order_no) + expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', + 'mcms_pick1', id, get_hosid(), get_branch_id(), order_no, source_id, + dept_id, + dept_name, stock_id, area_code, target_dept_id, target_dept_name, + target_stock_id, target_area_code, reviewer, + review_date, buyBillId, pickOrderNo, buyOrderNo, pickBillId, + create_user, create_time, last_modified, last_modified_user,picker, picker_name + ) + elif type == 20: + expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', + 'mcms_pick2', id, get_hosid(), get_branch_id(), order_no, source_id, + dept_id, + dept_name, stock_id, area_code, target_dept_id, target_dept_name, + target_stock_id, target_area_code, reviewer, + review_date, buyBillId, pickOrderNo, buyOrderNo, pickBillId, + create_user, create_time, last_modified, last_modified_user,picker, picker_name + ) + else: + expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', + 'mcms_pick3', id, get_hosid(), get_branch_id(), order_no, source_id, + dept_id, + dept_name, stock_id, area_code, target_dept_id, target_dept_name, + target_stock_id, target_area_code, reviewer, + review_date, buyBillId, pickOrderNo, buyOrderNo, pickBillId, + create_user, create_time, last_modified, last_modified_user,picker, picker_name + ) + + print('expected', expected) + print('aaaaaaaaaaaaaaaaa') + actual_value1 = get_process_list2(actual) + expected_value1 = get_process_list2(expected) + actual_value2 = actual_value1.replace(" ", "") + expected_value2 = expected_value1.replace(" ", "") + # print('actual_value2',actual_value2) + print('expected_value2') + print(expected_value2) + 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') + + try: pro_path = commonFuc().get_pro_path2() print('pro_path', pro_path) @@ -435,9 +591,10 @@ try: from a_b5流程十二请领业务流_二级库向二级库 import add_dept2 - from a_b5流程十二请领业务流_二级库向二级库 import add_new_deptinfo,edit_goods_target,second_dept_Request - from a_b5流程十二请领业务流_二级库向二级库 import BuyCarSubmit,pick_execute - #========下面暂时注释 + from a_b5流程十二请领业务流_二级库向二级库 import add_new_deptinfo, edit_goods_target, second_dept_Request + from a_b5流程十二请领业务流_二级库向二级库 import BuyCarSubmit, pick_execute + + # ========下面暂时注释 # add_dept2() # 新增一个二级科室 # add_new_deptinfo() # 写入科室信息到文件中 # grants_user_new() # 新增授权 @@ -488,9 +645,11 @@ try: # # # 低值拣货执行 # pick_execute() # 上面暂时注释======================== - #检查拣货单 - check_mcms_pick(16) - #检查出库单 + # 检查拣货单 + list_data = ['16', '20', '66'] + for i in list_data: + check_mcms_pick(int(i)) + # 检查出库单 check_mcms_psi_dept(16) check_mcms_psi_dept(20) check_mcms_psi_dept(66) diff --git a/common/db/sql/sql_tools.py b/common/db/sql/sql_tools.py index f208d284..839734f5 100644 --- a/common/db/sql/sql_tools.py +++ b/common/db/sql/sql_tools.py @@ -283,6 +283,7 @@ def get_buyBillId(branch_id,bill_mode): branch_id, bill_mode) print(sql) return process_tuple(get_dept_buy_id(sql)) + def get_buyOrderNo(branch_id,bill_mode): sql = "select order_no from spd3_herp_test2.mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;" % ( branch_id, bill_mode) diff --git a/data/b6_spd3_core_business_flow_database_check/data b/data/b6_spd3_core_business_flow_database_check/data index 5de192b7..793dd167 100644 --- a/data/b6_spd3_core_business_flow_database_check/data +++ b/data/b6_spd3_core_business_flow_database_check/data @@ -1,3 +1,4 @@ +#请领单请领车 "check_mcms_dept_buy_car_low_value": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pur_mode": %s, "pkg_def_id": "%s", "pkg_def_name": "%s", "pkg_def_qty": Decimal("100.00"), "buy_pkg_qty": Decimal("1.00"), "buy_qty": Decimal("100.00"), "tb_status": 0, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "coding_type": 0}' "check_mcms_dept_buy_car_high_value": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pur_mode": %s, "pkg_def_id": null, "pkg_def_name": null, "pkg_def_qty": Decimal("1.00"), "buy_pkg_qty": Decimal("1.00"), "buy_qty": Decimal("1.00"), "tb_status": 0, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "coding_type": 0}' @@ -77,5 +78,14 @@ "mcms_psi_dept2": '{"id": "%s", "order_no": "%s", "bill_mode": "20", "rec_type": "YND", "psi_flag": -1, "psi_kind": "204", "stock_kind": "CK_SL", "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": None, "source_repl_id": None, "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": "默认库区", "consume_type": 0, "patient_id": "", "patient_name": "", "machine_id": None, "machine_name": None, "his_charge_no": None, "remark": "", "tb_status": 20, "accounter": None, "account_date": None, "bill_relation_json": "{"buyBillId":"%s","pickOrderNo":"%s","buyOrderNo":"%s","pickBillId":"%s","psiDeptOutBillId":"%s","psiDeptOutOrderNo":"%s"}", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "last_auditor": None, "last_audit_time": None, "reject_reason": None, "reject_user": None, "reject_time": None, "initial_order": None, "source_type": "SG", "target_coding_type": None}' "mcms_psi_dept3": '{"id": "%s", "order_no": "%s", "bill_mode": "66", "rec_type": "YND", "psi_flag": -1, "psi_kind": "204", "stock_kind": "CK_SL", "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": None, "source_repl_id": None, "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": "默认库区", "consume_type": 0, "patient_id": "", "patient_name": "", "machine_id": None, "machine_name": None, "his_charge_no": None, "remark": "", "tb_status": 20, "accounter": None, "account_date": None, "bill_relation_json": "{"buyBillId":"%s","pickOrderNo":"%s","buyOrderNo":"%s","pickBillId":"%s","psiDeptOutBillId":"%s","psiDeptOutOrderNo":"%s"}", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "last_auditor": None, "last_audit_time": None, "reject_reason": None, "reject_user": None, "reject_time": None, "initial_order": None, "source_type": "SG", "target_coding_type": None}' +#拣货单 +"mcms_pick1": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "order_no": "%s", "source_id": "%s", "bill_mode": "16", "create_type": "ZD", "pick_type": "KS_SL", "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": "默认库区", "receiver": None, "reason_kind": None, "barcode_flag": 1, "pkg_flag": 1, "patient_id": None, "patient_name": None, "remark": "", "tb_status": 40, "reviewer": "%s", "review_date": %s, "bill_relation_json": "{"buyBillId":"%s","pickOrderNo":"%s","buyOrderNo":"%s","pickBillId":"%s"}", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 4, "last_auditor": None, "last_audit_time": None, "picker": "%s", "picker_name": "%s"}' +"mcms_pick2": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "order_no": "%s", "source_id": "%s", "bill_mode": "20", "create_type": "ZD", "pick_type": "KS_SL", "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": "默认库区", "receiver": None, "reason_kind": None, "barcode_flag": 1, "pkg_flag": 0, "patient_id": None, "patient_name": None, "remark": "", "tb_status": 40, "reviewer": "%s", "review_date": %s, "bill_relation_json": "{"buyBillId":"%s","pickOrderNo":"%s","buyOrderNo":"%s","pickBillId":"%s"}", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 4, "last_auditor": None, "last_audit_time": None, "picker": "%s", "picker_name": "%s"}' +"mcms_pick3": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "order_no": "%s", "source_id": "%s", "bill_mode": "66", "create_type": "ZD", "pick_type": "KS_SL", "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": "默认库区", "receiver": None, "reason_kind": None, "barcode_flag": 1, "pkg_flag": 1, "patient_id": None, "patient_name": None, "remark": "", "tb_status": 40, "reviewer": "%s", "review_date": %s, "bill_relation_json": "{"buyBillId":"%s","pickOrderNo":"%s","buyOrderNo":"%s","pickBillId":"%s"}", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 4, "last_auditor": None, "last_audit_time": None, "picker": "%s", "picker_name": "%s"}' +#拣货单子表 +"mcms_pick_detail1": '{"id": "%s", "pid": "%s", "order_no": "%s", "source_id": "%s", "pur_mode": 10, "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pkg_def_type": None, "pkg_base_mirror": None, "pkg_def_id": "%s", "pkg_def_name": "100", "pkg_def_qty": Decimal("100.00"), "apply_qty": Decimal("1.00"), "qty": Decimal("1.00"), "picked_qty": Decimal("1.00"), "picker": "%s", "picker_name": "%s", "tb_status": 20, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 2, "plan_flag": None}' +"mcms_pick_detail2": '{"id": "%s", "pid": "%s", "order_no": "%s", "source_id": "%s", "pur_mode": 10, "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pkg_def_type": None, "pkg_base_mirror": None, "pkg_def_id": "%s", "pkg_def_name": "100", "pkg_def_qty": Decimal("100.00"), "apply_qty": Decimal("1.00"), "qty": Decimal("1.00"), "picked_qty": Decimal("1.00"), "picker": "%s", "picker_name": "%s", "tb_status": 20, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 2, "plan_flag": None}' +"mcms_pick_detail3": '{"id": "%s", "pid": "%s", "order_no": "%s", "source_id": "%s", "pur_mode": 10, "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pkg_def_type": None, "pkg_base_mirror": None, "pkg_def_id": "%s", "pkg_def_name": "100", "pkg_def_qty": Decimal("100.00"), "apply_qty": Decimal("1.00"), "qty": Decimal("1.00"), "picked_qty": Decimal("1.00"), "picker": "%s", "picker_name": "%s", "tb_status": 20, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 2, "plan_flag": None}' +#出库单 "mcms_psi_dept_batch1": '{"id": "%s", "pid": "%s", "order_no": "%s", "source_detail_id": "5ec2e516d7b4420ca2557eb44b7b03ca", "pick_detail_id": "5ec2e516d7b4420ca2557eb44b7b03ca", "pur_mode": 10, "hos_goods_id": "h034700004601", "mdm_goods_code": "11661563", "goods_code": "00004601", "source_batch_id": "Ph034724071800020", "target_batch_id": "Ph034724071800020", "settle_flag": 0, "psi_price": Decimal("99.9999"), "qty": Decimal("100.00"), "unit_name": "100支/100", "barcode_id": "100000142024071800000628", "sub_barcode_id": None, "shelf_code": "areah03472781-A-01-01", "tb_status": 0, "charge_flag": 1, "create_user": "h0347_UID-051420", "create_time": datetime.datetime(2024, 7, 23, 15, 58, 32), "last_modified": datetime.datetime(2024, 7, 23, 15, 58, 32), "last_modified_user": "h0347_UID-051420", "version": 0}' \ No newline at end of file -- GitLab