deal contract status on phase 3 message
This commit is contained in:
parent
498f2335f7
commit
3a8adce223
@ -256,38 +256,49 @@ export default class SignPlannedContract extends React.Component
|
||||
</>
|
||||
) }
|
||||
{ contract.sign_type === "EDO" && (
|
||||
<div className="actions">
|
||||
{ status === 1 && (
|
||||
<button className="button blue" style={{ minWidth: "130px", }} disabled={ disabled } onClick={ () => this._handle_downloadFile() }>
|
||||
{ loading_download_file ? (
|
||||
<SpinnerCircular size={ 22 } thickness={ 100 } speed={ 100 } color="rgba(236, 239, 244, 1)" secondaryColor="rgba(28, 1, 169, 1)" />
|
||||
) : (
|
||||
"Скачать проект"
|
||||
<>
|
||||
{ status === 3 ? (
|
||||
<div className="actions actions_with_status">
|
||||
<div className="status_icon success"></div>
|
||||
<div className="status_title">
|
||||
<i>Подписанный договор будет доступен для скачивания в течение 1-2 минут.</i>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<div className="actions">
|
||||
{ status === 1 && (
|
||||
<button className="button blue" style={{ minWidth: "130px", }} disabled={ disabled } onClick={ () => this._handle_downloadFile() }>
|
||||
{ loading_download_file ? (
|
||||
<SpinnerCircular size={ 22 } thickness={ 100 } speed={ 100 } color="rgba(236, 239, 244, 1)" secondaryColor="rgba(28, 1, 169, 1)" />
|
||||
) : (
|
||||
"Скачать проект"
|
||||
) }
|
||||
</button>
|
||||
) }
|
||||
</button>
|
||||
) }
|
||||
{ status === 1 && (
|
||||
<button className="button blue" style={{ minWidth: "175px", }} disabled={ disabled } onClick={ () => this._handle_cancelSign() }>
|
||||
{ loading_cancel_sign ? (
|
||||
<SpinnerCircular size={ 22 } thickness={ 100 } speed={ 100 } color="rgba(236, 239, 244, 1)" secondaryColor="rgba(28, 1, 169, 1)" />
|
||||
) : (
|
||||
"Отменить подписание"
|
||||
{ status === 1 && (
|
||||
<button className="button blue" style={{ minWidth: "175px", }} disabled={ disabled } onClick={ () => this._handle_cancelSign() }>
|
||||
{ loading_cancel_sign ? (
|
||||
<SpinnerCircular size={ 22 } thickness={ 100 } speed={ 100 } color="rgba(236, 239, 244, 1)" secondaryColor="rgba(28, 1, 169, 1)" />
|
||||
) : (
|
||||
"Отменить подписание"
|
||||
) }
|
||||
</button>
|
||||
)}
|
||||
{ status === 1 && (
|
||||
<button className="button blue" style={{ minWidth: "144px", }} disabled={ disabled } onClick={ () => this._handle_sendToEDO() }>
|
||||
{ loading_signing ? (
|
||||
<SpinnerCircular size={ 22 } thickness={ 100 } speed={ 100 } color="rgba(236, 239, 244, 1)" secondaryColor="rgba(28, 1, 169, 1)" />
|
||||
) : (
|
||||
"Отправить в ЭДО"
|
||||
) }
|
||||
</button>
|
||||
) }
|
||||
</button>
|
||||
)}
|
||||
{ status === 1 && (
|
||||
<button className="button blue" style={{ minWidth: "144px", }} disabled={ disabled } onClick={ () => this._handle_sendToEDO() }>
|
||||
{ loading_signing ? (
|
||||
<SpinnerCircular size={ 22 } thickness={ 100 } speed={ 100 } color="rgba(236, 239, 244, 1)" secondaryColor="rgba(28, 1, 169, 1)" />
|
||||
) : (
|
||||
"Отправить в ЭДО"
|
||||
{ status === 2 && (
|
||||
<button className="button blue" onClick={ () => this._handle_onGoToEDO() }>Перейти в ЭДО</button>
|
||||
) }
|
||||
</button>
|
||||
</div>
|
||||
) }
|
||||
{ status >= 2 && (
|
||||
<button className="button blue" onClick={ () => this._handle_onGoToEDO() }>Перейти в ЭДО</button>
|
||||
) }
|
||||
</div>
|
||||
</>
|
||||
) }
|
||||
</>
|
||||
) }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user