Beispiel #1
0
def change_CT_RI(driver):  # 无申请合同变更后进行报销
    no_ct_for_RI(driver)
    driver.find_element(By.XPATH, '//span[text()="合同管理"]/..').click()
    time.sleep(0.5)
    driver.find_element(By.XPATH, "//a[text()='合同管理']").click()
    driver.refresh()
    time.sleep(0.1)
    driver.find_element(
        By.XPATH,
        "//div[@class='ant-table-body']/table/tbody/tr[1]/td[1]/div").click()
    time.sleep(0.5)
    driver.find_element(By.XPATH, "//button[text()='更多']").click()
    time.sleep(0.1)
    driver.find_element(By.XPATH, "//button[text()='合同变更']").click()
    time.sleep(0.5)
    driver.find_element(By.XPATH, "//button[@id='nextBtn']").click()
    driver.find_element(
        By.XPATH,
        "//textarea[@id='description']").send_keys('变更' +
                                                   time.strftime('%m%d%H%M%S'))
    submit(driver)
    agree(driver)
    start_CT_RI(driver)
    choice_budget(driver)
    time.sleep(0.5)
    driver.find_element(By.XPATH, "//span[text()='下一步']/..").click()
    enter_apartment(driver)
    choice_path(driver, "报销申请单自审")
    edit_matter1(driver, "一期报销")
    pay_setting(driver)
    RIsubmit(driver)
    agree(driver)
    write_off(driver)
Beispiel #2
0
def budget_ri_down2(driver):
    choice_menu(driver, '支出管理', '报销申请')
    start_NORI(driver)
    choice_budget(driver)
    edit_money1(driver, '500')
    enter_apartment(driver)
    choice_path(driver, '报销申请单自审')
    driver.find_element(By.XPATH, "//input[@id='attachmentNumber']").send_keys(5)
    edit_matter1(driver, '核销调减使用')
    pay_setting(driver)
    RIsubmit(driver)
    agree(driver)
    write_off(driver)
    time.sleep(0.5)
    choice_menu(driver, '预算管理', '调整申请')
    time.sleep(3)
    start_add(driver, '+ 发起核销金额调整 ')
    time.sleep(0.1)
    driver.find_element(By.XPATH, "//li[text()='核销金额调减']").click()
    time.sleep(0.5)
    driver.find_element(By.XPATH, "//div[@id='globalLayoutContent']/div/div/div[3]/div[3]/div/div["
                                  "2]/div/div/div/div/div[1]/div[2]/table/tbody/tr[1]").click()
    driver.find_element(By.XPATH, "//span[text()='下一步']/..").click()
    time.sleep(0.1)
    driver.find_element(By.XPATH, "//span[text()='下一步']/..").click()
    time.sleep(0.1)
    driver.find_element(By.XPATH, "//input[@placeholder='请输入调整已核销金额']").send_keys('100')
    driver.find_element(By.XPATH, "//span[text()='下一步']/..").click()
    enter_apartment(driver)
    choice_path(driver, '预算调整单自审')
    edit_matter(driver, '核销调减发起、撤销')
    submit(driver)
    cancel(driver)
    delete_bill(driver)
Beispiel #3
0
def NO_CT_RI(driver):  # 无申请合同报销
    no_ct_for_RI(driver)
    start_CT_RI(driver)
    choice_budget(driver)
    time.sleep(0.5)
    driver.find_element(By.XPATH, "//span[text()='下一步']/..").click()
    enter_apartment(driver)
    choice_path(driver, "报销申请单自审")
    edit_matter1(driver, "一期报销")
    pay_setting(driver)
    RIsubmit(driver)
    agree(driver)
    write_off(driver)
Beispiel #4
0
def CS(driver):  # 发起议事会签
    choice_menu(driver, '重要事项', '议事会签')
    start_add(driver, "+ 发起会签")
    cs_date(driver)
    driver.find_element(
        By.XPATH,
        "//input[@id='location']").send_keys('地点' +
                                             time.strftime('%m%d%H%M%S'))
    cs_date(driver)
    enter_host_user(driver)
    enter_record_user(driver)
    enter_cs_type(driver)
    edit_matter1(driver, '会签测试')
    choice_user(driver)
    driver.find_element(By.XPATH, "//span[text()='下一步']/..").click()
    time.sleep(0.5)
    driver.find_element(
        By.XPATH, "//textarea").send_keys('测试' + time.strftime('%m%d%H%M%S'))
    submit(driver)
Beispiel #5
0
def BA_CT_RI(driver):  # 事前-合同-报销-核销
    BA_for_CT(driver)
    start_BA_CT(driver)
    pay_1plan(driver)
    enter_apartment(driver)
    enter_sign_user(driver)
    enter_pc_type(driver)
    enter_b_supplier(driver)
    enter_ct_type(driver)
    choice_path(driver, "合同审批单自审")
    edit_ct(driver, '测试合同')
    submit(driver)
    agree(driver)
    start_CT_RI(driver)
    enter_apartment(driver)
    choice_path(driver, '报销申请单自审')
    edit_matter1(driver, '一期报销')
    pay_setting(driver)
    RIsubmit(driver)
    agree(driver)
    write_off(driver)