Beispiel #1
0
def cancel_CG(driver):  # 新增收费标准单 撤销并删除
    choice_CG(driver)
    start_CG(driver)
    edit_CG(driver)
    submit(driver)
    cancel(driver)
    delete_bill(driver)
Beispiel #2
0
def cancel_RE(driver):  # 新增收费审批单 撤销并删除
    choice_RE(driver)
    start_RE(driver)
    edit_RE(driver)
    submit(driver)
    cancel(driver)
    delete_bill(driver)
Beispiel #3
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 #4
0
def cancel_MA(driver):  # 新增申请,撤销删除
    choiceMA(driver)
    startMA(driver)
    editMA(driver)
    submit(driver)
    cancel(driver)
    delete_bill(driver)
Beispiel #5
0
def cancel_MA(driver):  # 撤销删除
    choice_menu(driver, '重要事项', '事项申请')
    start_add(driver, '发起申请')
    enter_apartment(driver)
    driver.find_element(By.XPATH, "//input[@id='amount']").send_keys('100')
    edit_matter(driver, '事项申请')
    submit(driver)
    cancel(driver)
    delete_bill(driver)
Beispiel #6
0
def cancel_IC(driver):  # 撤销并删除收入登记
    choice_IC(driver)
    start_IC(driver)
    choice_acount(driver)
    choice_budget(driver)
    choice_ICRE(driver)
    edit_IC(driver)
    submit(driver)
    time.sleep(5)
    cancel(driver)
    delete_bill(driver)
Beispiel #7
0
def budget_up2(driver):     # 撤销删除
    choice_menu(driver, '预算管理', '调整申请')
    start_add(driver, '+ 发起预算调整 ')
    time.sleep(0.1)
    driver.find_element(By.XPATH, "//li[text()='预算追加']").click()
    choice_budget(driver)
    time.sleep(0.5)
    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)
    time.sleep(0.5)
    delete_bill(driver)
Beispiel #8
0
def budget_down3(driver):     # 驳回删除
    choice_menu(driver, '预算管理', '调整申请')
    start_add(driver, '+ 发起预算调整 ')
    time.sleep(0.1)
    driver.find_element(By.XPATH, "//li[text()='预算追加']").click()
    choice_budget(driver)
    time.sleep(0.5)
    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)
    refuse(driver)
    time.sleep(0.5)
    choice_menu(driver, '预算管理', '调整申请')
    time.sleep(1)
    driver.find_element(By.XPATH, "//div[@class='ant-table-body']/table/tbody/tr[1]/td[1]/div").click()
    time.sleep(0.5)
    delete_bill(driver)