*** Settings *** Library Collections Library RequestsLibrary *** Variables *** ${URL} http://api-ops-ztb-test.qniao.cn ${header} {'X-APP-ID':'470236309865238555','Authorization':'${gettoken}','Content-Type':'application/json'} *** Test Cases *** get_order-receipt-audit-details #获取运营审核详情 Create Session ZTBT ${URL} ${header} ${reps} Post On Session ZTBT recycle-service/admin/operation/get/order-receipt-audit-details/${auditRequestId}/${weightNoteId} ${auditRequestItemId} Get From Dictionary ${reps.json()["data"]["items"][0]} auditRequestItemId #审核项id ${categoryName} Get From Dictionary ${reps.json()["data"]["items"][0]} categoryName #纸品品类名称 ${paperCategoryId} Get From Dictionary ${reps.json()["data"]["items"][0]} paperCategoryId #纸厂品类id ${netWeight} Get From Dictionary ${reps.json()["data"]["items"][0]} netWeight #净重 ${paperMillPayAt} Get From Dictionary ${reps.json()["data"]["items"][0]} paperMillPayAt #计划回款日期 ${plateNumber} Get From Dictionary ${reps.json()["data"]["items"][0]} plateNumber #车牌号 ${settleWeight} Get From Dictionary ${reps.json()["data"]["items"][0]} settleWeight #结算重量 ${surcharge1} Evaluate ${unitSurcharge}*${netWeight} ${surcharge2} Evaluate ${unitSurcharge}*${settleWeight} ${surcharge} Set Variable If '${proxySellerSettleType}'=='0' ${surcharge1} ${surcharge2} #代卖费总额 ${paperMillPayAt} Set Variable If '${paperMillPayAt}'=='无账期' null ${paperMillPayAt} #纸厂账期 ${settleWeight} Set Variable If '${settleWeight}'=='None' 0 ${settleWeight} ${activitySettleType} Get From Dictionary ${reps.json()["data"]} activitySettleType #活动类型 ${isSubsidyAndDeductIncludeTax} Get From Dictionary ${reps.json()["data"]["items"][0]} isSubsidyAndDeductIncludeTax #结算单价是否含税 ${运费补贴} Get From Dictionary ${reps.json()["data"]["items"][0]["otherAmountList"][0]} amount #运费补贴总额 ${其他补贴} Get From Dictionary ${reps.json()["data"]["items"][0]["otherAmountList"][1]} amount #其他补贴费用总额 ${违禁物品扣款} Get From Dictionary ${reps.json()["data"]["items"][0]["otherAmountList"][2]} amount #违禁物品扣款总额 ${装车不规范扣款} Get From Dictionary ${reps.json()["data"]["items"][0]["otherAmountList"][3]} amount #装车不规范扣款总额 ${其他扣款} Get From Dictionary ${reps.json()["data"]["items"][0]["otherAmountList"][4]} amount #其他扣款总额 ${返还补贴} Get From Dictionary ${reps.json()["data"]["items"][0]} refundSubsidy #返还补贴 ${调节费} Get From Dictionary ${reps.json()["data"]["items"][0]} adjustmentFee #调节费 ${垫资费} Get From Dictionary ${reps.json()["data"]["items"][0]} advanceFund #垫资费 ${代收费} Get From Dictionary ${reps.json()["data"]["items"][0]} collectionCharges #代收费 Set Global Variable ${auditRequestItemId} Set Global Variable ${categoryName} Set Global Variable ${netWeight} Set Global Variable ${paperMillPayAt} Set Global Variable ${plateNumber} Set Global Variable ${settleWeight} Set Global Variable ${paperCategoryId} Set Global Variable ${surcharge} Set Global Variable ${activitySettleType} Set Global Variable ${运费补贴} Set Global Variable ${其他补贴} Set Global Variable ${违禁物品扣款} Set Global Variable ${装车不规范扣款} Set Global Variable ${其他扣款} Set Global Variable ${返还补贴} Set Global Variable ${垫资费} Set Global Variable ${调节费} Set Global Variable ${代收费} Set Global Variable ${isSubsidyAndDeductIncludeTax} get_parameter #获取台账列表 Create Session ZTBT ${URL} ${header} ${reps} Get On Session ZTBT recycle-service/admin/parameter/get/parameter params=pageNum=1&pageSize=10&withdrawState=&state=&orderItemId=${orderItemId} ${台账列表数据} Get From List ${reps.json()["data"]["records"]} 0 #获取台账列表数据 ${settlementType} Get From Dictionary ${台账列表数据} settlementType #获取结算类型 ${firstPayPercent} Get From Dictionary ${台账列表数据} firstPayPercent #获取付款比例 Set Global Variable ${settlementType} Set Global Variable ${firstPayPercent}