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

流程十二脚本编写

parent 5acad283
...@@ -200,10 +200,6 @@ def BuyCarSubmit(): ...@@ -200,10 +200,6 @@ def BuyCarSubmit():
currentTaskList = commonFuc().analysis_json('currentTaskList', commonFuc().analysis_json('data', result)) currentTaskList = commonFuc().analysis_json('currentTaskList', commonFuc().analysis_json('data', result))
def edit_goods_target(currentDeptId, targetDeptId): def edit_goods_target(currentDeptId, targetDeptId):
module = "b2_herp3_bs" module = "b2_herp3_bs"
# # 登录获取用户id等信息,使用创建的用户登录===========开始 # # 登录获取用户id等信息,使用创建的用户登录===========开始
...@@ -307,24 +303,24 @@ def pick_execute(): ...@@ -307,24 +303,24 @@ def pick_execute():
udi_code = 'udi_code' udi_code = 'udi_code'
print('udi_code', udi_code) print('udi_code', udi_code)
if purMode == 10: if purMode == 10:
targetAreaCode,sourceId=pickScan2(BH_ID, udi_code, 1) # 低值 targetAreaCode, sourceId = pickScan2(BH_ID, udi_code, 1) # 低值
elif purMode == 20: elif purMode == 20:
targetAreaCode,sourceId=pickScan2(BH_ID, udi_code, 2) # 高值 targetAreaCode, sourceId = pickScan2(BH_ID, udi_code, 2) # 高值
elif purMode == 60: elif purMode == 60:
targetAreaCode,sourceId= pickScan2(BH_ID, udi_code, 3) # 试剂 targetAreaCode, sourceId = pickScan2(BH_ID, udi_code, 3) # 试剂
else: else:
targetAreaCode='targetAreaCode' targetAreaCode = 'targetAreaCode'
sourceId='sourceId' sourceId = 'sourceId'
# 提交领用出库单 # 提交领用出库单
url = commonFuc().get_api_add_port_url() + commonFuc().get_business_data(module, url = commonFuc().get_api_add_port_url() + commonFuc().get_business_data(module,
"herpService_stock_out_use_submit_url") "herpService_stock_out_use_submit_url")
print('提交拣货执行单=================', url) print('提交拣货执行单=================', url)
if purMode == 10: if purMode == 10:
request_body = commonFuc().get_business_data(module, "payload51_1_1", targetAreaCode,sourceId) request_body = commonFuc().get_business_data(module, "payload51_1_1", targetAreaCode, sourceId)
elif purMode == 20: elif purMode == 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)
elif purMode == 60: elif purMode == 60:
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)
...@@ -339,8 +335,8 @@ try: ...@@ -339,8 +335,8 @@ try:
set_dept_lead_new(FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid3"]) # 设置二级科室负责人 set_dept_lead_new(FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid3"]) # 设置二级科室负责人
get_stockAreaId_new(FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid3'], get_stockAreaId_new(FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid3'],
FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid3'], 3) FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid3'], 3)
set_stockShelf_Linkman()#设置库区联系人 set_stockShelf_Linkman() # 设置库区联系人
#三级科室产品分配 # 三级科室产品分配
dept_goods_distribute(FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid3']) dept_goods_distribute(FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid3'])
updateUserLoginDefaultRange(get_listUserMgrRangePage1(3)) # 设置登录账号默认权限是三级库 updateUserLoginDefaultRange(get_listUserMgrRangePage1(3)) # 设置登录账号默认权限是三级库
......
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