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

流程十一脚本编写

parent 43dad629
...@@ -323,32 +323,6 @@ def edit_goods_target(currentDeptId, targetDeptId): ...@@ -323,32 +323,6 @@ def edit_goods_target(currentDeptId, targetDeptId):
print('编辑产品请领渠道result', result) print('编辑产品请领渠道result', result)
def get_centeStock_pick_list_counts():
module = "b5_spd3_core_business_flow"
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info = FileUtils().r_info8('b2_herp3_bs', "用户名信息", 'message3')
username = info['username1']
password = commonFuc().get_business_data("b2_herp3_bs", "password")
print('username,password', username, password)
# # 获取token和projectCode
token, projectCode, uxid, corpId, info = login(username, password, 2)
# 登录获取用户id等信息,使用创建的用户登录============结束
# 生成拣货单列表查询===============================================
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
commonFuc().get_business_data(module, "X-APP-CODE"))
url1 = commonFuc().get_api_add_port_url() + commonFuc().get_business_data(module,
"herpService_stock_out_buyPage_url")
print('领用出库列表查询=================', url1)
request_body1 = commonFuc().get_business_data(module, "payload46_1", get_branch_id())
print('领用出库列表查询', 'request_body', request_body1)
result1 = commonFuc().http_post(url1, request_body1, headers)
print('领用出库列表查询,result1', result1)
total1 = commonFuc().analysis_json('total', commonFuc().analysis_json('data', result1))
return total1
def pick_execute(): def pick_execute():
module = "b5_spd3_core_business_flow" module = "b5_spd3_core_business_flow"
# # 登录获取用户id等信息,使用创建的用户登录===========开始 # # 登录获取用户id等信息,使用创建的用户登录===========开始
......
...@@ -65,13 +65,13 @@ def second_dept_Request(hosGoodsId, type): ...@@ -65,13 +65,13 @@ def second_dept_Request(hosGoodsId, type):
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_buy_queryGoodsInfoPage_url") "herpService_buy_queryGoodsInfoPage_url")
print('我要请领_手工请领_列表查询=================', url) print('我要请领_手工请领_列表查询=================', url)
deptid2 = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid5'] deptid3 = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid3']
deptname2 = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid5'] deptname3 = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid3']
# 高值 # 高值
# hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId'] # hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId']
GoodsId = hosGoodsId.replace(get_hosid(), '') GoodsId = hosGoodsId.replace(get_hosid(), '')
areaCode = get_stockAreaId_new(deptid2, deptname2, 2) areaCode = get_stockAreaId_new(deptid3, deptname3, 3)
request_body = commonFuc().get_business_data(module, "payload39", GoodsId, get_hosid(), deptid2, areaCode) request_body = commonFuc().get_business_data(module, "payload39", GoodsId, get_hosid(), deptid3, areaCode)
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('我要请领_手工请领_列表查询,result', result) print('我要请领_手工请领_列表查询,result', result)
...@@ -106,7 +106,7 @@ def second_dept_Request(hosGoodsId, type): ...@@ -106,7 +106,7 @@ def second_dept_Request(hosGoodsId, type):
# print('list_a', len(list_a), list_a) # print('list_a', len(list_a), list_a)
info = (list_a, list_b, list_c) info = (list_a, list_b, list_c)
titlename = ('list_a', 'list_b', 'list_c') titlename = ('list_a', 'list_b', 'list_c')
FileUtils().w_info8(info, module, '级库向二级库请领产品信息', titlename, 'message23') FileUtils().w_info8(info, module, '级库向二级库请领产品信息', titlename, 'message24')
# 我要请领_手工请领_列表查询=========================== # 我要请领_手工请领_列表查询===========================
# 添加到请领车============================================= # 添加到请领车=============================================
url = commonFuc().get_api_add_port_url() + commonFuc().get_business_data(module, url = commonFuc().get_api_add_port_url() + commonFuc().get_business_data(module,
...@@ -253,32 +253,6 @@ def edit_goods_target(currentDeptId, targetDeptId): ...@@ -253,32 +253,6 @@ def edit_goods_target(currentDeptId, targetDeptId):
print('编辑产品请领渠道result', result) print('编辑产品请领渠道result', result)
def get_centeStock_pick_list_counts():
module = "b5_spd3_core_business_flow"
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info = FileUtils().r_info8('b2_herp3_bs', "用户名信息", 'message3')
username = info['username1']
password = commonFuc().get_business_data("b2_herp3_bs", "password")
print('username,password', username, password)
# # 获取token和projectCode
token, projectCode, uxid, corpId, info = login(username, password, 2)
# 登录获取用户id等信息,使用创建的用户登录============结束
# 生成拣货单列表查询===============================================
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
commonFuc().get_business_data(module, "X-APP-CODE"))
url1 = commonFuc().get_api_add_port_url() + commonFuc().get_business_data(module,
"herpService_stock_out_buyPage_url")
print('领用出库列表查询=================', url1)
request_body1 = commonFuc().get_business_data(module, "payload46_1", get_branch_id())
print('领用出库列表查询', 'request_body', request_body1)
result1 = commonFuc().http_post(url1, request_body1, headers)
print('领用出库列表查询,result1', result1)
total1 = commonFuc().analysis_json('total', commonFuc().analysis_json('data', result1))
return total1
def pick_execute(): def pick_execute():
module = "b5_spd3_core_business_flow" module = "b5_spd3_core_business_flow"
# # 登录获取用户id等信息,使用创建的用户登录===========开始 # # 登录获取用户id等信息,使用创建的用户登录===========开始
......
条码信息: 条码信息:
list_a: list_a:
- &id001 - &id001
id: UT240604000203 id: UT240604000801
snCode: UT240604000203 snCode: UT240604000801
ssccCode: '010839000182861720' ssccCode: '010839000182951629'
pkgCodeSee: 013651000003975010333112406041724121121UT240604000203 pkgCodeSee: 013651000003975010333112406041724121121UT240604000801
hosGoodsId: h034700003975 hosGoodsId: h034700003975
hosGoodsCode: '00003975' hosGoodsCode: '00003975'
goodsCode: '00003975' goodsCode: '00003975'
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
shelfNo: A01-A-01-01 shelfNo: A01-A-01-01
pkgDefId: 99ff61b624d544dfb4c563de0140fb75 pkgDefId: 99ff61b624d544dfb4c563de0140fb75
extInfo: '{"pkgDefId": "99ff61b624d544dfb4c563de0140fb75", "pkgDefQty": 100, "purBillId": extInfo: '{"pkgDefId": "99ff61b624d544dfb4c563de0140fb75", "pkgDefQty": 100, "purBillId":
"CG2024060417689", "pkgDefName": "100", "distrBillId": "PSh0347202406040005", "CG2024060417717", "pkgDefName": "100", "distrBillId": "PSh0347202406040015",
"inStockTime": "2024-06-04 07:30:01", "distrDetailId": "03838005", "certificateCode": "inStockTime": "2024-06-04 07:35:38", "distrDetailId": "03838015", "certificateCode":
""}' ""}'
bottleId: bottleId:
pkgType: '16' pkgType: '16'
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
shelfKindName: 普通货位 shelfKindName: 普通货位
provName: 国药集团公司*0SeL provName: 国药集团公司*0SeL
provId: p1e26b provId: p1e26b
inStockDate: '2024-06-04 07:30:01' inStockDate: '2024-06-04 07:35:38'
mfrCode: mfrCode:
made: 德国 made: 德国
price: price:
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
list_a: list_a:
- &id001 - &id001
- id: 478cb7e75b6b473cb0702cccf4e19f83 - id: 478cb7e75b6b473cb0702cccf4e19f83
lastModified: '2024-06-04 09:01:46' lastModified: '2024-06-04 09:27:52'
version: 1 version: 2
createTime: '2024-06-04 09:01:30' createTime: '2024-06-04 09:01:30'
createUser: h0347_UID-051312 createUser: h0347_UID-051312
lastModifiedUser: h0347_UID-051312 lastModifiedUser: h0347_UID-051312
......
...@@ -77,7 +77,7 @@ setInterval(updateTime, 1000); // 每秒更新一次时间 ...@@ -77,7 +77,7 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
<tr width="600"> <tr width="600">
<td class='details-col-elapsed'>1</td> <td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>1</td> <td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>2分2</td> <td class='details-col-elapsed'>2分0</td>
<td class="details-col-elapsed">100.0%</td> <td class="details-col-elapsed">100.0%</td>
</tr> </tr>
</table> </table>
...@@ -95,7 +95,7 @@ setInterval(updateTime, 1000); // 每秒更新一次时间 ...@@ -95,7 +95,7 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b5流程十二请领业务流_二级库向二级库/log.html' target='_blank'>a_b5流程十二请领业务流_二级库向二级库</a></td> <td class="details-col-elapsed"><a href='../log/a_b5流程十二请领业务流_二级库向二级库/log.html' target='_blank'>a_b5流程十二请领业务流_二级库向二级库</a></td>
<td class="success">成功</td> <td class="success">成功</td>
<td class="details-col-elapsed">122.777</td> <td class="details-col-elapsed">119.869</td>
<td class="details-col-elapsed">xiaohesheng</td> <td class="details-col-elapsed">xiaohesheng</td>
</tr> </tr>
......
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