Commit 7853854f authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程十二脚本编写

parent 4f6b34ba
...@@ -302,8 +302,10 @@ def second_dept_consume_Out_Stock(type): # 二级库消耗出库 ...@@ -302,8 +302,10 @@ def second_dept_consume_Out_Stock(type): # 二级库消耗出库
print('result', result) print('result', result)
elif type == 3: elif type == 3:
print('检验试剂消耗出库') print('检验试剂消耗出库')
udi_code = get_udi2(4)#试剂单瓶条码 udi_code = get_udi2(3) # 试剂单瓶条码
data1 = pickScan4(udi_code) data1 = pickScan4(udi_code)
udi_code1 = get_udi2(4,udi_code)
print('试剂data1',data1) print('试剂data1',data1)
# 获取必要信息 # 获取必要信息
...@@ -438,7 +440,7 @@ def sCan_grant(type=1): # 获取条码and扫码发放高值不能发放 ...@@ -438,7 +440,7 @@ def sCan_grant(type=1): # 获取条码and扫码发放高值不能发放
try: try:
updateUserLoginDefaultRange(get_listUserMgrRangePage1(2)) # 设置登录账号默认权限是二级库 updateUserLoginDefaultRange(get_listUserMgrRangePage1(2)) # 设置登录账号默认权限是二级库
# sCan_grant(1)#低值扫码发放 # sCan_grant(1)#低值扫码发放
# sCan_grant(3) # 试剂扫码发放 sCan_grant(3) # 试剂扫码发放
# second_dept_consume_Out_Stock(2)#高值消耗出库 # second_dept_consume_Out_Stock(2)#高值消耗出库
# second_dept_consume_Out_Stock(1) # 低值消耗出库 # second_dept_consume_Out_Stock(1) # 低值消耗出库
second_dept_consume_Out_Stock(3) # 试剂消耗出库 second_dept_consume_Out_Stock(3) # 试剂消耗出库
......
...@@ -596,7 +596,7 @@ def get_udi1(type=1): # 库存明细查询获取条码 ...@@ -596,7 +596,7 @@ def get_udi1(type=1): # 库存明细查询获取条码
# return pkgcode # return pkgcode
def get_udi2(type=1): # 二级科室库存明细查询获取条码 def get_udi2(type=1,udi_code=None): # 二级科室库存明细查询获取条码
# type=1低值 2高值 3试剂 # type=1低值 2高值 3试剂
module = "b5_spd3_core_business_flow" module = "b5_spd3_core_business_flow"
token, projectCode1, uxid1, corpId1, info1 = call_login() token, projectCode1, uxid1, corpId1, info1 = call_login()
...@@ -627,7 +627,8 @@ def get_udi2(type=1): # 二级科室库存明细查询获取条码 ...@@ -627,7 +627,8 @@ def get_udi2(type=1): # 二级科室库存明细查询获取条码
elif type == 4:#试剂单瓶条码 elif type == 4:#试剂单瓶条码
hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message3')['hosGoodsId'] hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message3')['hosGoodsId']
GoodsId = hosGoodsId.replace(get_hosid(), '') GoodsId = hosGoodsId.replace(get_hosid(), '')
request_body = commonFuc().get_business_data(module, "payload17_3", GoodsId, get_branch_id(), deptid2) ssccCode=udi_code
request_body = commonFuc().get_business_data(module, "payload17_3", GoodsId, get_branch_id(),ssccCode, deptid2)
print('getudi_request_body', request_body) print('getudi_request_body', request_body)
# # # # 发送请求 # # # # 发送请求
......
...@@ -106,7 +106,7 @@ json_headers2: { ...@@ -106,7 +106,7 @@ json_headers2: {
"payload17": {"pageNum":1,"pageSize":50,"queryObject":{"areacodelist":["","","","","",""],"goodsName":"%s","branchId":"%s","purModes":[],"ssccCode":"","deptId":"","deptQuery":false,"bottleId":"","billModes":null,"provId":"","goodsSpec":"","batchCode":"","mfrCode":""}} "payload17": {"pageNum":1,"pageSize":50,"queryObject":{"areacodelist":["","","","","",""],"goodsName":"%s","branchId":"%s","purModes":[],"ssccCode":"","deptId":"","deptQuery":false,"bottleId":"","billModes":null,"provId":"","goodsSpec":"","batchCode":"","mfrCode":""}}
"payload17_1": {"pageNum":1,"pageSize":50,"queryObject":{"goodsName":"%s","branchId":"%s","purModes":[""],"ssccCode":"","deptId":"","deptQuery":false,"stockId":"","bottleId":"","billModes":null,"provId":"","goodsSpec":"","batchCode":"","mfrCode":"","jskFlag":0}} "payload17_1": {"pageNum":1,"pageSize":50,"queryObject":{"goodsName":"%s","branchId":"%s","purModes":[""],"ssccCode":"","deptId":"","deptQuery":false,"stockId":"","bottleId":"","billModes":null,"provId":"","goodsSpec":"","batchCode":"","mfrCode":"","jskFlag":0}}
"payload17_2": {"pageNum":1,"pageSize":50,"queryObject":{"areacodelist":["",""],"goodsName":"%s","branchId":"%s","ssccCode":"","deptId":"%s","deptQuery":true,"bottleId":"","billModes":["66"],"provId":"","goodsSpec":"","batchCode":"","mfrCode":"","jskFlag":0}} "payload17_2": {"pageNum":1,"pageSize":50,"queryObject":{"areacodelist":["",""],"goodsName":"%s","branchId":"%s","ssccCode":"","deptId":"%s","deptQuery":true,"bottleId":"","billModes":["66"],"provId":"","goodsSpec":"","batchCode":"","mfrCode":"","jskFlag":0}}
"payload17_3": {"pageNum":1,"pageSize":50,"queryObject":{"areacodelist":["",""],"goodsName":"%s","branchId":"%s","ssccCode":"","deptId":"%s","deptQuery":true,"bottleId":"","billModes":["67"],"provId":"","goodsSpec":"","batchCode":"","mfrCode":"","jskFlag":0}} "payload17_3": {"pageNum":1,"pageSize":50,"queryObject":{"areacodelist":["",""],"goodsName":"%s","branchId":"%s","ssccCode":"%s","deptId":"%s","deptQuery":true,"bottleId":"","billModes":["67"],"provId":"","goodsSpec":"","batchCode":"","mfrCode":"","jskFlag":0}}
"payload17_2_1": {"pageNum":1,"pageSize":50,"queryObject":{"areacodelist":["",""],"goodsName":"%s","branchId":"%s","ssccCode":"","deptId":"%s","deptQuery":true,"bottleId":"","billModes":["20"],"provId":"","goodsSpec":"","batchCode":"","mfrCode":"","jskFlag":0}} "payload17_2_1": {"pageNum":1,"pageSize":50,"queryObject":{"areacodelist":["",""],"goodsName":"%s","branchId":"%s","ssccCode":"","deptId":"%s","deptQuery":true,"bottleId":"","billModes":["20"],"provId":"","goodsSpec":"","batchCode":"","mfrCode":"","jskFlag":0}}
......
...@@ -8,22 +8,22 @@ ...@@ -8,22 +8,22 @@
taskType: 1 taskType: 1
sourceOrgId: p1e276 sourceOrgId: p1e276
sourceOrgName: 国药集团公司LK05j sourceOrgName: 国药集团公司LK05j
sourceOrderNo: PSh0347202406060059 sourceOrderNo: PSh0347202406060061
billMode: '16' billMode: '66'
stockKind: stockKind:
purMode: purMode:
sourceId: PSh0347202406060059 sourceId: PSh0347202406060061
sourceDetailId: sourceDetailId:
sourceType: PSD sourceType: PSD
sourceTypeName: 配送单 sourceTypeName: 配送单
sourceVersion: 1 sourceVersion: 1
planOrderNo: PLAN2024060625837 planOrderNo: PLAN2024060625839
purOrderNo: CG2024060618004 purOrderNo: CG2024060618002
recOrgId: 82394e14fcd94eb6ad2474304cb2a808 recOrgId: 82394e14fcd94eb6ad2474304cb2a808
recOrgName: 二级检验科002 recOrgName: 二级检验科002
billRelationJson: '{"buyBillId":"Bh03472024060600055","planBillId":"Ph034720240606022482","planOrderNo":"PLAN2024060625837","buyOrderNo":"BUY2024060604777","purOrderNo":"CG2024060618004","purBillId":"Ch034720240606000119","purBillDate":"2024-06-06 billRelationJson: '{"buyBillId":"Bh03472024060600056","planBillId":"Ph034720240606022484","planOrderNo":"PLAN2024060625839","buyOrderNo":"BUY2024060604778","purOrderNo":"CG2024060618002","purBillId":"Ch034720240606000117","purBillDate":"2024-06-06
16:04:54","distrBillId":"PSh0347202406060059","distrOrderNo":"PSh0347202406060059"}' 16:04:49","distrBillId":"PSh0347202406060061","distrOrderNo":"PSh0347202406060061"}'
taskDate: '2024-06-06 16:05:16' taskDate: '2024-06-06 16:05:23'
taskDateStart: taskDateStart:
taskDateEnd: taskDateEnd:
billModeList: billModeList:
......
验收单详情信息: 验收单详情信息:
list_a: list_a:
- &id001 - &id001
- purMode: 10 - purMode: 60
unitName: 100支/100 unitName: 100支/100
hosGoodsId: h034700004009 hosGoodsId: h034700004010
mdmGoodsCode: mdmGoodsCode:
spdGoodsCode: '11660957' spdGoodsCode: '11660958'
goodsCode: '00004009' goodsCode: '00004010'
goodsName: 一次性注射器_低值vYh04 goodsName: 新型冠状病毒检测试剂20zyQ
goodsGg: G-31891 goodsGg: G-31891
mfrsId: mfrsId:
mfrsName: 德国歌德公司 Geuder AG mfrsName: 德国歌德公司 Geuder AG
...@@ -21,17 +21,17 @@ ...@@ -21,17 +21,17 @@
pkgDefId: pkgDefId:
pkgDefName: '100' pkgDefName: '100'
pkgDefQty: 100.0 pkgDefQty: 100.0
batchCode: '333' batchCode: '4444'
expdtDate: '2024-12-13' expdtDate: '2024-12-13'
productDate: '2024-06-06' productDate: '2024-06-06'
provName: 国药集团公司LK05j provName: 国药集团公司LK05j
provId: provId:
viewId: '03838195' viewId: '03838197'
verifyFlag: 0 verifyFlag: 0
hasSterilize: 0 hasSterilize: 0
id: '03838195' id: '03838197'
detailRelationJson: detailRelationJson:
extInfo: '{"goodsGg":"G-31891","goodsCode":"00004009","purMode":10,"goodsName":"一次性注射器_低值vYh04","ygptCode":"","transCond":"","storageCond":"","erpCode":"11660957","ybDefId":""}' extInfo: '{"goodsGg":"G-31891","goodsCode":"00004010","purMode":60,"goodsName":"新型冠状病毒检测试剂20zyQ","ygptCode":"","transCond":"","storageCond":"","erpCode":"11660958","ybDefId":""}'
recTemperature: 20 recTemperature: 20
recHumidity: 30 recHumidity: 30
distrPrice: 99.9999 distrPrice: 99.9999
......
验收单号: 验收单号:
CHECK_NO1: CHECKh03472024060600051 CHECK_NO1: CHECKh03472024060600054
CHECK_NO2: CHECKh03472024060600051 CHECK_NO2: CHECKh03472024060600054
...@@ -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'>0</td> <td class='details-col-elapsed'>0</td>
<td class='details-col-elapsed'>2分50</td> <td class='details-col-elapsed'>0分48</td>
<td class="details-col-elapsed">0.0%</td> <td class="details-col-elapsed">0.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_b7流程十四退库业务_消耗退库/log.html' target='_blank'>a_b7流程十四退库业务_消耗退库</a></td> <td class="details-col-elapsed"><a href='../log/a_b7流程十四退库业务_消耗退库/log.html' target='_blank'>a_b7流程十四退库业务_消耗退库</a></td>
<td class="fail">失败</td> <td class="fail">失败</td>
<td class="details-col-elapsed">170.653</td> <td class="details-col-elapsed">48.507</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