Commit 8b067d9b authored by xiao-hesheng's avatar xiao-hesheng
Browse files

脚本优化

parent 5175351a
...@@ -175,7 +175,7 @@ def center_Stock_unpack(type): # 扫码发放(高值不能扫码发放) ...@@ -175,7 +175,7 @@ def center_Stock_unpack(type): # 扫码发放(高值不能扫码发放)
purBillId, pkgDefName, distrBillId, inStockTime,distrDetailId, purBillId, pkgDefName, distrBillId, inStockTime,distrDetailId,
purMode, price, purMode, price,
goodsMfrsName, goodsSpec, unit, goodsName, pkgDefId, pkgDefQty, goodsMfrsName, goodsSpec, unit, goodsName, pkgDefId, pkgDefQty,
pkgDefName, printNum, made, unitName, hosGoodsCode, purModeText) pkgDefName, printNum, made, unitName, hosGoodsCode, purModeText,tbStatus)
print('request_body', 'ccccccc', request_body) print('request_body', 'ccccccc', request_body)
# # # # 发送请求 # # # # 发送请求
result = commonFuc().http_post(url, request_body, headers) result = commonFuc().http_post(url, request_body, headers)
...@@ -321,7 +321,7 @@ def center_Stock_unpack(type): # 扫码发放(高值不能扫码发放) ...@@ -321,7 +321,7 @@ def center_Stock_unpack(type): # 扫码发放(高值不能扫码发放)
purBillId, pkgDefName, distrBillId, inStockTime, distrDetailId, purBillId, pkgDefName, distrBillId, inStockTime, distrDetailId,
purMode, price, purMode, price,
goodsMfrsName, goodsSpec, unit, goodsName, pkgDefId, pkgDefQty, goodsMfrsName, goodsSpec, unit, goodsName, pkgDefId, pkgDefQty,
pkgDefName, printNum, made, unitName, hosGoodsCode, purModeText) pkgDefName, printNum, made, unitName, hosGoodsCode, purModeText,tbStatus)
print('request_body', 'ccccccc', request_body) print('request_body', 'ccccccc', request_body)
# # # # 发送请求 # # # # 发送请求
result = commonFuc().http_post(url, request_body, headers) result = commonFuc().http_post(url, request_body, headers)
......
...@@ -522,7 +522,7 @@ json_headers2: { ...@@ -522,7 +522,7 @@ json_headers2: {
} }
], ],
"pickType": "CB", "pickType": "CB",
"tbStatus": 20 "tbStatus": "%s"
} }
"payload69": { "payload69": {
"stockId": "%s", "stockId": "%s",
...@@ -647,7 +647,7 @@ json_headers2: { ...@@ -647,7 +647,7 @@ json_headers2: {
} }
], ],
"pickType": "CB", "pickType": "CB",
"tbStatus": 20 "tbStatus": "%s"
} }
"expected_value": "('00004260', 'h0347', 'p1e2ca', '177df1fadf39415ea5ce40e64edf449d', None, '11661208', '11661208', '11661208', '一次性注射器_低值hMY2F','一次性注射器', 'mfrs-11229', '德国歌德公司 Geuder AG', '', None, '', 'ycxzsq_dzhMY2F', None, '支', 'G-31891', Decimal('1.000000'), 2, '3', 10, None, None, '', None, Decimal('99.9999'), None, '德国', None, None, '', 1, None, 0, None, 0, '', '', None, None, 1, 0, 1, 'p1e2ca:UID-051951', datetime.datetime(2024, 6, 26, 7, 1, 39), 'p1e2ca:UID-051951', 0, 0, 1, None)" "expected_value": "('00004260', 'h0347', 'p1e2ca', '177df1fadf39415ea5ce40e64edf449d', None, '11661208', '11661208', '11661208', '一次性注射器_低值hMY2F','一次性注射器', 'mfrs-11229', '德国歌德公司 Geuder AG', '', None, '', 'ycxzsq_dzhMY2F', None, '支', 'G-31891', Decimal('1.000000'), 2, '3', 10, None, None, '', None, Decimal('99.9999'), None, '德国', None, None, '', 1, None, 0, None, 0, '', '', None, None, 1, 0, 1, 'p1e2ca:UID-051951', datetime.datetime(2024, 6, 26, 7, 1, 39), 'p1e2ca:UID-051951', 0, 0, 1, None)"
"expected_value2": '{"hos_goods_code": "00004249","hos_id": "h0347","prov_id": "p1e2c6","prov_hos_goods_id": "%s","srv_id": null,"mdm_goods_code": "11661197","mdm_goods_spec_code": "11661197","spd_goods_code": "11661197","goods_name": "一次性注射器_低值qPW6a","goods_general_name": "一次性注射器","goods_mfrs_id": "mfrs-11229","goods_mfrs_name": "德国歌德公司 Geuder AG","goods_reg_cert": "","goods_agent_mfrs_id": null,"brand": "","short_pinyin": "ycxzsq_dzqPW6a","kind_sixtyeight_code": null,"unit": "支","goods_spec": "G-31891","goods_package": Decimal("1.000000"),"bar_code_mng": 2,"unique_code_strategy": "3","pur_mode": 10,"sub_pur_mode": null,"erp_code": null,"herp_code": "","hrp": null,"price": Decimal("99.9999"),"abroad_flag": null,"made": "德国","property": null,"mgr_level": null,"goods_desc": "","charge_flag": 1,"focus_control_type": null,"temp_flag": 0,"official_status": null,"focus_control": 0,"storage_conditions": "","transport_conditions": "","into_cost_flag": null,"rfid_flag": null,"purchase_flag": 1,"tb_status": 0,"version": 1,"create_user": "p1e2c6:UID-051946","create_time": datetime.datetime(2024,6,25,7,1,34),"last_modified_user": "p1e2c6:UID-051946","sterilize_flag": 0,"multi_charge_flag": 0,"use_frequency": 1,"charge_unit": null}' "expected_value2": '{"hos_goods_code": "00004249","hos_id": "h0347","prov_id": "p1e2c6","prov_hos_goods_id": "%s","srv_id": null,"mdm_goods_code": "11661197","mdm_goods_spec_code": "11661197","spd_goods_code": "11661197","goods_name": "一次性注射器_低值qPW6a","goods_general_name": "一次性注射器","goods_mfrs_id": "mfrs-11229","goods_mfrs_name": "德国歌德公司 Geuder AG","goods_reg_cert": "","goods_agent_mfrs_id": null,"brand": "","short_pinyin": "ycxzsq_dzqPW6a","kind_sixtyeight_code": null,"unit": "支","goods_spec": "G-31891","goods_package": Decimal("1.000000"),"bar_code_mng": 2,"unique_code_strategy": "3","pur_mode": 10,"sub_pur_mode": null,"erp_code": null,"herp_code": "","hrp": null,"price": Decimal("99.9999"),"abroad_flag": null,"made": "德国","property": null,"mgr_level": null,"goods_desc": "","charge_flag": 1,"focus_control_type": null,"temp_flag": 0,"official_status": null,"focus_control": 0,"storage_conditions": "","transport_conditions": "","into_cost_flag": null,"rfid_flag": null,"purchase_flag": 1,"tb_status": 0,"version": 1,"create_user": "p1e2c6:UID-051946","create_time": datetime.datetime(2024,6,25,7,1,34),"last_modified_user": "p1e2c6:UID-051946","sterilize_flag": 0,"multi_charge_flag": 0,"use_frequency": 1,"charge_unit": null}'
条码信息: 条码信息:
list_a: list_a:
- &id001 - &id001
id: UT240628001106 id: UT240628001107
snCode: UT240628001106 snCode: UT240628001107
ssccCode: '010839000186052025' ssccCode: '010839000186052124'
pkgCodeSee: 0137030000043000104444112406281725010421UT240628001106 pkgCodeSee: 0137030000043000104444112406281725010421UT240628001107
hosGoodsId: h034700004300 hosGoodsId: h034700004300
hosGoodsCode: '00004300' hosGoodsCode: '00004300'
goodsCode: '00004300' goodsCode: '00004300'
......
...@@ -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'>0分20</td> <td class='details-col-elapsed'>0分19</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_c1流程十八中心库业务_拆包功能/log.html' target='_blank'>a_c1流程十八中心库业务_拆包功能</a></td> <td class="details-col-elapsed"><a href='../log/a_c1流程十八中心库业务_拆包功能/log.html' target='_blank'>a_c1流程十八中心库业务_拆包功能</a></td>
<td class="success">成功</td> <td class="success">成功</td>
<td class="details-col-elapsed">20.166</td> <td class="details-col-elapsed">19.178</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