fix download KP!!!

This commit is contained in:
Chika 2020-12-28 17:26:15 +03:00
parent d9ef0f3971
commit 269ba20489
3 changed files with 5 additions and 2 deletions

View File

@ -6,6 +6,7 @@ const Download = ({ status, url, text, icon: Icon, ...props }) => {
return (
<AntButton
{...props}
rel="noopener"
target="_blank"
href={url}
disabled={status === ElementStatus.Disabled || !url}

View File

@ -64,6 +64,7 @@ export default async () => {
query($quoteid: Uuid!) {
quote(quoteId: $quoteid) {
offerprintform
offerprintformapi
evo_quotename
}
}
@ -78,10 +79,10 @@ export default async () => {
content: `КП ${quote?.evo_quotename || ''} создано!`,
});
if (quote?.offerprintform) {
if (quote?.offerprintformapi) {
calculationUrls.setUrl({
name: 'kpUrl',
url: quote.offerprintform,
url: '/proxy/crmgraphql' + quote.offerprintformapi,
});
}
}

View File

@ -55,6 +55,7 @@ export interface IQuote {
evo_statuscode?: IEvoStatusCode;
evo_quotename?: string;
offerprintform?: string;
offerprintformapi?: string;
evo_object_count?: number;
evo_osago_accountid?: string;
evo_kasko_accountid?: string;