fix download KP!!!
This commit is contained in:
parent
d9ef0f3971
commit
269ba20489
@ -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}
|
||||
|
||||
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user