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

流程十二脚本编写

parent b1fe2ea9
......@@ -143,7 +143,7 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
# import pdb
# pdb.set_trace()
request_body = commonFuc().get_business_data(module, "payload50_2_3", stockId, stockName2, areaCode,
request_body = commonFuc().get_business_data(module, "payload50_2_3", stockId, deptId3, areaCode,
areaName,targetStockId,targetDeptId,
uxid, userLoginCode, cname, get_hosid(), get_branch_id(),
deptid1,
......@@ -271,7 +271,7 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
orgCode1 = get_orgCode()
orgName1 = get_orgName()
request_body = commonFuc().get_business_data(module, "payload50_2_4", stockId, stockName2, areaCode,
request_body = commonFuc().get_business_data(module, "payload50_2_4", stockId, deptId3, areaCode,
areaName,targetStockId,targetDeptId,
uxid, userLoginCode, cname, get_hosid(), get_branch_id(),
deptid1,
......@@ -398,7 +398,7 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
orgCode1 = get_orgCode()
orgName1 = get_orgName()
request_body = commonFuc().get_business_data(module, "payload50_2_4", stockId, stockName2, areaCode,
request_body = commonFuc().get_business_data(module, "payload50_2_4", stockId, deptId3, areaCode,
areaName, targetStockId, targetDeptId,
uxid, userLoginCode, cname, get_hosid(), get_branch_id(),
deptid1,
......
......@@ -22,7 +22,7 @@ python runner_test.py tag id2302-19 debug mdm3
def second_dept_return_Out_Stock(type): # 级库退库出库
def second_dept_return_Out_Stock(type): # 级库退库出库
module = "b5_spd3_core_business_flow"
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info = FileUtils().r_info8('b2_herp3_bs', "用户名信息", 'message3')
......@@ -51,12 +51,12 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
stockName = commonFuc().analysis_json('stockName', list_a)
areaCode = commonFuc().analysis_json('areaCode', list_a)
areaName = commonFuc().analysis_json('areaName', list_a)
deptId3= FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid3"]
targetDeptId= FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid2"]
deptName = FileUtils().r_info8('b2_herp3_bs', '所有科室name', 'message6')["deptid2"]
targetStockId =get_stockId(deptName+'库房',2)
deptId2= FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid2"]
targetDeptId= FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid1"]
deptName = get_branch_name()
targetStockId =get_stockId(deptName+'中心库房',1)
request_body = commonFuc().get_business_data(module, "payload65", udi_code, stockId, deptId3,areaCode, areaName,
request_body = commonFuc().get_business_data(module, "payload65", udi_code, stockId, deptId2,areaCode, areaName,
targetStockId,targetDeptId)
print('request_body',request_body)
result = commonFuc().http_post(url, request_body, headers)
......@@ -150,7 +150,7 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
orgCode1, orgName1, get_hosid(), get_hosid(), mgrCorpName,
get_branch_id(),
get_branch_name(), mgrRangeId, mgrRangeName, extStr1, extStr3,
get_hosid(), stockId,deptId3,
get_hosid(), stockId,deptId2,
areaCode, areaName, targetStockId, targetDeptId, UTid,createTime,snCode,
get_hosid(), stockId, areaCode, areaName, shelfCode,
codeType, hosGoodsId, mdmGoodsCode, goodsCode, goodsDi,
......@@ -181,12 +181,12 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
stockName = commonFuc().analysis_json('stockName', list_a)
areaCode = commonFuc().analysis_json('areaCode', list_a)
areaName = commonFuc().analysis_json('areaName', list_a)
deptId3 = FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid3"]
targetDeptId = FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid2"]
deptName = FileUtils().r_info8('b2_herp3_bs', '所有科室name', 'message6')["deptid2"]
targetStockId = get_stockId(deptName + '库房', 2)
deptId2 = FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid2"]
targetDeptId = FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid1"]
deptName = get_branch_name()
targetStockId = get_stockId(deptName + '中心库房', 1)
request_body = commonFuc().get_business_data(module, "payload65", udi_code, stockId, deptId3, areaCode,
request_body = commonFuc().get_business_data(module, "payload65", udi_code, stockId, deptId2, areaCode,
areaName,
targetStockId, targetDeptId)
print('request_body', request_body)
......@@ -278,7 +278,7 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
orgCode1, orgName1, get_hosid(), get_hosid(), mgrCorpName,
get_branch_id(),
get_branch_name(), mgrRangeId, mgrRangeName, extStr1, extStr3,
get_hosid(), stockId,deptId3,
get_hosid(), stockId,deptId2,
areaCode, areaName, targetStockId, targetDeptId, UTid,createTime,snCode,
get_hosid(), stockId, areaCode, areaName, shelfCode,
codeType, hosGoodsId, mdmGoodsCode, goodsCode, goodsDi,
......@@ -308,12 +308,12 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
stockName = commonFuc().analysis_json('stockName', list_a)
areaCode = commonFuc().analysis_json('areaCode', list_a)
areaName = commonFuc().analysis_json('areaName', list_a)
deptId3 = FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid3"]
targetDeptId = FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid2"]
deptName = FileUtils().r_info8('b2_herp3_bs', '所有科室name', 'message6')["deptid2"]
targetStockId = get_stockId(deptName + '库房', 2)
deptId2 = FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid2"]
targetDeptId = FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid1"]
deptName = get_branch_name()
targetStockId = get_stockId(deptName + '中心库房', 1)
request_body = commonFuc().get_business_data(module, "payload65", udi_code, stockId, deptId3, areaCode,
request_body = commonFuc().get_business_data(module, "payload65", udi_code, stockId, deptId2, areaCode,
areaName,
targetStockId, targetDeptId)
print('request_body', request_body)
......@@ -405,7 +405,7 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
orgCode1, orgName1, get_hosid(), get_hosid(), mgrCorpName,
get_branch_id(),
get_branch_name(), mgrRangeId, mgrRangeName, extStr1, extStr3,
get_hosid(), stockId, deptId3,
get_hosid(), stockId, deptId2,
areaCode, areaName, targetStockId, targetDeptId, UTid, createTime,
snCode,
get_hosid(), stockId, areaCode, areaName, shelfCode,
......@@ -426,13 +426,13 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
try:
updateUserLoginDefaultRange(get_listUserMgrRangePage1(3)) # 设置登录账号默认权限是三级库
updateUserLoginDefaultRange(get_listUserMgrRangePage1(2)) # 设置登录账号默认权限是三级库
second_dept_return_Out_Stock(2) # 高值耗材退货出库
second_dept_return_Out_Stock(1) # 低值耗材退货出库
second_dept_return_Out_Stock(3) # 低值耗材退货出库
second_dept_one_key_in(2)
second_dept_one_key_in(2)
second_dept_one_key_in(2)
# second_dept_return_Out_Stock(1) # 低值耗材退货出库
# second_dept_return_Out_Stock(3) # 低值耗材退货出库
# second_dept_one_key_in(2)
# second_dept_one_key_in(2)
# second_dept_one_key_in(2)
commonFuc().check_text_exist_result_text('succees', 'succees')
except:
commonFuc().check_text_exist_result_text('error', '1')
条码信息:
list_a:
- &id001
id: UT240612000802
snCode: UT240612000802
ssccCode: '010839000184006129'
pkgCodeSee: 0136670000040760104444112406121724121921UT240612000802
hosGoodsId: h034700004076
hosGoodsCode: '00004076'
goodsCode: '00004076'
goodsName: 新型冠状病毒检测试剂DJUhI
id: UT240612000805
snCode: UT240612000805
ssccCode: '010839000184006525'
pkgCodeSee: 013667000004075010333112406121724121921UT240612000805
hosGoodsId: h034700004075
hosGoodsCode: '00004075'
goodsCode: '00004075'
goodsName: 一次性注射器_低值xaYjQ
goodsSpec: G-31891
goodsMfrsName: 德国歌德公司 Geuder AG
unit:
purMode: 60
batchCode: '4444'
purMode: 10
batchCode: '333'
productDate: '2024-06-12'
expdtDate: '2024-12-19'
pkgDefName: '100'
......@@ -26,13 +26,13 @@
unitName: 100支/100
shelfCode: areah03472290-A-01-01
shelfNo: A01-A-01-01
pkgDefId: 0d3db4404bcb46b9b80830502f069b4f
extInfo: '{"pkgDefId": "0d3db4404bcb46b9b80830502f069b4f", "pkgDefQty": 100, "purBillId":
"CG2024061218547", "pkgDefName": "100", "distrBillId": "PSh0347202406120017",
"inStockTime": "2024-06-12 09:27:01", "distrDetailId": "03838381", "certificateCode":
pkgDefId: 192b76e92d77496294bb16d04feeecc4
extInfo: '{"pkgDefId": "192b76e92d77496294bb16d04feeecc4", "pkgDefQty": 100, "purBillId":
"CG2024061218552", "pkgDefName": "100", "distrBillId": "PSh0347202406120021",
"inStockTime": "2024-06-12 13:40:49", "distrDetailId": "03838385", "certificateCode":
""}'
bottleId:
pkgType: '66'
pkgType: '16'
miDjmc: ''
miCode: ''
transferRatio: 1.0
......@@ -41,13 +41,13 @@
shelfKindName: 普通货位
provName: 国药集团公司2u7a4
provId: p1e28e
inStockDate: '2024-06-12 09:27:01'
inStockDate: '2024-06-12 13:40:48'
mfrCode:
made: 德国
price:
barName: 100支/100
purModeText: 检验试剂
codeType: 66
purModeText: 低值耗材
codeType: 16
list_b:
- *id001
list_c:
......
......@@ -77,7 +77,7 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
<tr width="600">
<td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>0分21</td>
<td class='details-col-elapsed'>0分44</td>
<td class="details-col-elapsed">100.0%</td>
</tr>
</table>
......@@ -95,7 +95,7 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b8流程十五退库业务_三级库向二级库退库/log.html' target='_blank'>a_b8流程十五退库业务_三级库向二级库退库</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">21.376</td>
<td class="details-col-elapsed">44.287</td>
<td class="details-col-elapsed">xiaohesheng</td>
</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