${printing_packaging_factory_locdistrictname} Set Variable 天河区
${printing_packaging_factory_locstreetname} Set Variable 车陂街道
${body} Set Variable {"name":"${printing_packaging_factory_name}","type":${printing_packaging_factory_type},"shortName":"${printing_packaging_factory_shortname}","uniformSocialCreditCode":"${printing_packaging_factory_uniformsocialcreditcode}","locDetail":"${printing_packaging_factory_locdetail}","legalPersonName":"${printing_packaging_factory_legalpersonname}","legalPersonIdCardNo":"${printing_packaging_factory_legalpersonidcardno}","locProvinceId":${printing_packaging_factory_locprovinceid},"locCityId":${printing_packaging_factory_loccityid},"locDistrictId":${printing_packaging_factory_locdistrictid},"locStreetId":${printing_packaging_factory_locstreetid},"locProvinceName":"${printing_packaging_factory_locprovincename}","locCityName":"${printing_packaging_factory_loccityname}","locDistrictName":"${printing_packaging_factory_locdistrictname}","locStreetName":"${printing_packaging_factory_locstreetname}"}
Set Suite Variable ${printing_packaging_factory_name}
Set Global Variable ${printing_packaging_factory_name}
Set Suite Variable ${printing_packaging_factory_shortname}
Set Suite Variable ${printing_packaging_factory_legalpersonname}
Set Global Variable ${printing_packaging_factory_legalpersonname}
Set Global Variable ${printing_packaging_factory_legalpersonidcardno}
${response} POST On Session yytops /cloud-print-user-center/admin/save/enterprise ${body.encode("utf8")}
${printing_packaging_factory_purpose} Set Variable 1 #授信类型 1采购原纸
${printing_packaging_factory_creditLine} Set Variable 990000
${printing_packaging_factory_paperSettlementIntervalTypeId} Set Variable 11 #结算周期 11月结30天 12月结45天 13月结60天 14月结75天 15月结90天
${printing_packaging_factory_remark} Set Variable autotest_remark
${body} Set Variable {"creditLine":${printing_packaging_factory_creditLine},"enterpriseId":"${printing_packaging_factory_id}","enterpriseName":"${printing_packaging_factory_name}","enterpriseType":${printing_packaging_factory_type},"legalpersonIdNo":"${printing_packaging_factory_legalpersonidcardno}","legalpersonMobile":null,"legalpersonName":"${printing_packaging_factory_legalpersonname}","purpose":${printing_packaging_factory_purpose},"remark":"${printing_packaging_factory_remark}","paperSettlementIntervalTypeId":"${printing_packaging_factory_paperSettlementIntervalTypeId}"}
${response} POST On Session yytops /cloud-print-user-center/admin/credit/application/save/application ${body.encode("utf8")}
Log ${response.status_code}
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
${printing_packaging_factory_verify_status} Set Variable 2 #审核状态 1审核通过 2审核驳回
${body} Set Variable {"status":${printing_packaging_factory_verify_status}}
${response} Put On Session yytops /cloud-print-user-center/admin/credit/application/verify/application-order/${printing_packaging_factory_credit_id} ${body.encode("utf8")}
Log ${response.status_code}
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
${printing_packaging_factory_purpose} Set Variable 1 #授信类型 1采购原纸
${printing_packaging_factory_creditLine} Set Variable 990000
${printing_packaging_factory_paperSettlementIntervalTypeId} Set Variable 11 #结算周期 11月结30天 12月结45天 13月结60天 14月结75天 15月结90天
${printing_packaging_factory_remark} Set Variable autotest_remark
${body} Set Variable {"id":"${printing_packaging_factory_credit_id}","creditLine":${printing_packaging_factory_creditLine},"enterpriseId":"${printing_packaging_factory_id}","enterpriseName":"${printing_packaging_factory_name}","enterpriseType":${printing_packaging_factory_type},"legalpersonIdNo":"${printing_packaging_factory_legalpersonidcardno}","legalpersonMobile":null,"legalpersonName":"${printing_packaging_factory_legalpersonname}","purpose":${printing_packaging_factory_purpose},"remark":"${printing_packaging_factory_remark}","paperSettlementIntervalTypeId":"${printing_packaging_factory_paperSettlementIntervalTypeId}"}
${response} POST On Session yytops /cloud-print-user-center/admin/credit/application/save/application ${body.encode("utf8")}
Log ${response.status_code}
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}
${printing_packaging_factory_verify_status} Set Variable 1 #审核状态 1审核通过 2审核驳回
${body} Set Variable {"status":${printing_packaging_factory_verify_status}}
${response} Put On Session yytops /cloud-print-user-center/admin/credit/application/verify/application-order/${printing_packaging_factory_credit_id} ${body.encode("utf8")}
Log ${response.status_code}
log ${response.json()}
Should Be Equal As Numbers 200 ${response.status_code}
Should Be Equal As Strings successful ${response.json()["message"]}