纸通宝交易版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
1.6 KiB

*** Settings ***
Library Collections
Library DateTime
Library RequestsLibrary
*** Variables ***
${URL1} http://api-ops-ztb-test.qniao.cn
${url} http://api-ops-psc-test.qniao.cn
${header} {'X-APP-ID':'470236309865238555','Authorization':'${gettoken}','Content-Type':'application/json'}
*** Keywords ***
获取财务审核列表
#获取财务审核列表
Create Session ZTBT ${url} ${header}
${reps} Get On Session ZTBT payment-settlement-center/admin/paper-mill-order-receipt-proof-request/get/list params=pageNum=1&pageSize=10&status=&orderId=&orderItemId=${orderItemId}
#${auditedTime} Get From Dictionary ${reps.json()["data"]["records"][0]} auditedTime #财务第一次确认结算时间
${staus} Get From Dictionary ${reps.json()["data"]["records"][0]} status #获取审核状态
${auditRequestId} Get From Dictionary ${reps.json()["data"]["records"][0]} auditRequestId
Should Be Equal As Strings ${reps.json()["message"]} successful
#Set Global Variable ${auditedTime}
Set Global Variable ${staus}
Set Global Variable ${auditRequestId}
财务驳回
#财务审核驳回
Create Session ZTBT ${url} ${header}
${data} Set Variable {"auditRequestId":"${auditRequestId}","adminId":null,"isPass":2,"remark":"${datatime}" }
${reps} Post On Session ZTBT payment-settlement-center/admin/paper-mill-order-receipt-proof-request/audit ${data.encode('utf-8')}
log ${reps.json()}
sleep 1