Commit 03e92d9d authored by 章 登恒's avatar 章 登恒
Browse files

commit

parent f21050dc
......@@ -228,17 +228,33 @@ class SalesOrder():
if __name__ == '__main__':
try:
step1 = LoginSys()
step2_1 = QuickPurchase()
step2_2 = PurchaseOrder()
step3 = SalesOrder()
step1.loginsys(SIT_URL,usr2,pwd2)
step2_1.data_add_quickpurchase()
qkpchno = step2_1.return_qkpchno()
step2_2.button_click1()
print("快速采购单提交成功,订单号为:",qkpchno)
step2_2.switch_loggin(usr1,pwd1)
step2_2.query_click('快速采购订单',qkpchno,'vxe-body--column col_19 col--ellipsis dw-click-cell')
step2_2.button_click2()
step3.push_wms(qkpchno)
except Exception as e:
print('errmsg')
traceback.print_exc()
pro_path = get_pro_path()
imgInfo = getErrorPhoto(chrome)
imgName = imgInfo[0]
image_path = imgInfo[1]
print(imgName, image_path)
print(repr(e))
info = errmsg+repr(e)
now = get_time()
writeFile_append(pro_path + '/logs/logerror%s.txt' % now, info)
send_email1(image_path, info)
finally:
chrome.quit()
step1 = LoginSys()
step2_1 = QuickPurchase()
step2_2 = PurchaseOrder()
step3 = SalesOrder()
step1.loginsys(SIT_URL,usr2,pwd2)
step2_1.data_add_quickpurchase()
qkpchno = step2_1.return_qkpchno()
step2_2.button_click1()
print("快速采购单提交成功,订单号为:",qkpchno)
step2_2.switch_loggin(usr1,pwd1)
step2_2.query_click('快速采购订单',qkpchno,'vxe-body--column col_19 col--ellipsis dw-click-cell')
step2_2.button_click2()
step3.push_wms(qkpchno)
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