from testcase.test_scene3.scene3_mainflow import *

def test_scene3_mainflow():

    print('\n流程三：经销商向总代采购，货从供应商发（经销商快采快销场景）平台端流程开始！！！')
    # step1 = LoginSys()
    step2_1 = QuickPurchase()
    step2_2 = PurchaseOrder()
    step3 = SalesOrder()
    # step1.loginsys(SIT_URL,usr2,pwd2)
    step2_2.switch_loggin(usr2,pwd2)
    step2_1.data_add_quickpurchase()
    owtorder = step2_1.return_owtorder()
    step2_2.button_click1()
    print("快速采购单提交成功,订单号为:",owtorder)
    step2_2.switch_loggin(usr1,pwd1)
    step2_2.query_click('快速采购订单',owtorder,'vxe-body--column col_19 col--ellipsis dw-click-cell')
    step2_2.button_click2()
    step3.push_wms(owtorder)
    print('流程三：经销商向总代采购，货从供应商发（经销商快采快销场景）平台端流程结束！！！')



