Commit 5c835241 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程十五脚本编写

parent ee414d9a
...@@ -426,21 +426,42 @@ def pick_execute(): ...@@ -426,21 +426,42 @@ def pick_execute():
print('提交拣货执行单=================', url) print('提交拣货执行单=================', url)
if billMode == '16': if billMode == '16':
request_body = commonFuc().get_business_data(module, "payload51_1_1", targetAreaCode,sourceId) request_body = commonFuc().get_business_data(module, "payload51_1_1", targetAreaCode,sourceId)
print('提交拣货执行单', 'request_body', request_body)
result = commonFuc().http_post(url, request_body, headers)
print('提交拣货执行单,result1', result)
DR_id = commonFuc().analysis_json('data', result)
# 将拣货单id写入文件
info1 = (DR_id, DR_id)
titlename = ('DR_NO1低值', 'DR_NO1低值')
FileUtils().w_info8(info1, 'b5_spd3_core_business_flow', '拣货单低值id', titlename, 'message26')
elif billMode == '20': elif billMode == '20':
request_body = commonFuc().get_business_data(module, "payload51_1_2", targetAreaCode,sourceId) request_body = commonFuc().get_business_data(module, "payload51_1_2", targetAreaCode,sourceId)
print('提交拣货执行单', 'request_body', request_body)
result = commonFuc().http_post(url, request_body, headers)
print('提交拣货执行单,result1', result)
DR_id = commonFuc().analysis_json('data', result)
info1 = (DR_id, DR_id)
titlename = ('DR_NO1高值', 'DR_NO1高值')
FileUtils().w_info8(info1, 'b5_spd3_core_business_flow', '拣货单高值id', titlename, 'message26')
elif billMode == '66': elif billMode == '66':
request_body = commonFuc().get_business_data(module, "payload51_1_3", targetAreaCode,sourceId) request_body = commonFuc().get_business_data(module, "payload51_1_3", targetAreaCode,sourceId)
print('提交拣货执行单', 'request_body', request_body)
print('提交拣货执行单', 'request_body', request_body) result = commonFuc().http_post(url, request_body, headers)
result = commonFuc().http_post(url, request_body, headers) print('提交拣货执行单,result1', result)
print(' 提交拣货执行单,result1', result) DR_id = commonFuc().analysis_json('data', result)
DR_id=commonFuc().analysis_json('data',result) info1 = (DR_id, DR_id)
titlename = ('DR_NO1试剂', 'DR_NO1试剂')
DRNo_list.append(DR_id) FileUtils().w_info8(info1, 'b5_spd3_core_business_flow', '拣货单试剂id', titlename, 'message26')
# 将拣货单id写入文件 # print('提交拣货执行单', 'request_body', request_body)
info = (DRNo_list[0], DRNo_list[1], DRNo_list[2]) # result = commonFuc().http_post(url, request_body, headers)
titlename = ('DR_NO1', 'DR_NO2', 'DR_NO3') # print(' 提交拣货执行单,result1', result)
FileUtils().w_info8(info, 'b5_spd3_core_business_flow', '拣货单id', titlename, 'message26') # DR_id=commonFuc().analysis_json('data',result)
# DRNo_list.append(DR_id)
# # 将拣货单id写入文件
# info = (DRNo_list[0], DRNo_list[1], DRNo_list[2])
# titlename = ('DR_NO1', 'DR_NO2', 'DR_NO3')
# FileUtils().w_info8(info, 'b5_spd3_core_business_flow', '拣货单id', titlename, 'message26')
# 复核=================================== # 复核===================================
......
...@@ -386,15 +386,18 @@ def check_mcms_psi_dept(type=16): ...@@ -386,15 +386,18 @@ def check_mcms_psi_dept(type=16):
branch_id, type) branch_id, type)
actual = check_mcms_dept_buy_sql(sql) actual = check_mcms_dept_buy_sql(sql)
print(actual) print(actual)
info = FileUtils().r_info8('b5_spd3_core_business_flow', "拣货单id", 'message26') # info = FileUtils().r_info8('b5_spd3_core_business_flow', "拣货单id", 'message26')
# print(info) # print(info)
if type == 16: if type == 16:
DR_ID = info['DR_NO2'] info = FileUtils().r_info8('b5_spd3_core_business_flow', "拣货单低值id", 'message26')
DR_ID = info['DR_NO1低值']
elif type == 20: elif type == 20:
DR_ID = info['DR_NO3'] info = FileUtils().r_info8('b5_spd3_core_business_flow', "拣货单高值id", 'message26')
DR_ID = info['DR_NO1高值']
else: else:
DR_ID = info['DR_NO1'] info = FileUtils().r_info8('b5_spd3_core_business_flow', "拣货单试剂id", 'message28')
DR_ID = info['DR_NO1试剂']
DR_ID = ''.join(DR_ID) 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) order_no = get_id(sql)
......
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