示例#1
0
def reject_CG(driver):  # 新增收费标准单 驳回复制 复制单据
    choice_CG(driver)
    start_CG(driver)
    edit_CG(driver)
    submit(driver)
    refuse(driver)
    copy_CG(driver)
    submit(driver)
示例#2
0
def reject_MA(driver):  # 新增申请,驳回复制
    choiceMA(driver)
    startMA(driver)
    editMA(driver)
    submit(driver)
    refuse(driver)
    copyMA(driver)
    submit(driver)
示例#3
0
def reject_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)
    refuse(driver)
示例#4
0
def copy_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)
    refuse(driver)
    time.sleep(0.1)
    choice_menu(driver, '重要事项', '事项申请')
    time.sleep(0.5)
    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()
    edit_matter(driver, '驳回复制')
    submit(driver)
    agree(driver)
示例#5
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)
示例#6
0
def budget_ri_down3(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)
    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)
示例#7
0
def reject_RE(driver):  # 新增收费审批单 驳回
    choice_RE(driver)
    start_RE(driver)
    edit_RE(driver)
    submit(driver)
    refuse(driver)