update for PDF generation

This commit is contained in:
merelendor 2023-04-12 14:17:32 +03:00
parent 23451d83db
commit 2b88437b14
3 changed files with 9 additions and 7 deletions

View File

@ -57,10 +57,12 @@ export default class AddressSuggests extends React.Component
const { fias, focused } = this.state;
const { onChange } = this.props;
this.setState({ focused: false }, () =>
onChange({ name: value, fias_id: fias[value] });
setTimeout(() =>
{
onChange({ name: value, fias_id: fias[value] });
});
this.setState({ focused: false });
}, 200);
}
_handle_onFocus = (event) =>
@ -79,7 +81,7 @@ export default class AddressSuggests extends React.Component
setTimeout(() =>
{
this.setState({ focused: false });
}, 100);
}, 200);
}
_getAddress = (text) =>
@ -147,7 +149,7 @@ export default class AddressSuggests extends React.Component
<div className="react-select__menu-list">
{ options.map((option, index) =>
(
<div className="react-select__option" style={{ minHeight: "26px", background: "#FFF", lineHeight: "18px", }} key={ `${ index }_${ option.value }` } onClick={ (event) => { event.preventDefault(); this._handle_onSelect(option.value); } }><span>{ option.value }</span></div>
<div className="react-select__option" style={{ minHeight: "26px", background: "#FFF", lineHeight: "18px", margin: "0px", padding: "5px 5px 5px 5px", }} key={ `${ index }_${ option.value }` } onClick={ (event) => { event.preventDefault(); this._handle_onSelect(option.value); } }><span>{ option.value }</span></div>
)) }
</div>
</div>

View File

@ -439,7 +439,7 @@ class Shareholder extends React.Component
name={ `founder_persons[${ index }].founder_part` }
value={ this._checkStrValue(shareholder.founder_part) }
placeholder="Укажите размер доли"
onChange={ (event) => { this._removeError("founder_part"); this._handle_onTextFieldChange(event.target.name, event.target.value > 100 ? 100 : event.target.value); } }
onChange={ (event) => { this._removeError("founder_part"); this._handle_onTextFieldChange(event.target.name, parseInt(event.target.value, 10) > 100 ? 100 : parseInt(event.target.value, 10)); } }
required={ true }
disabled={ checking }
/>

View File

@ -37,7 +37,7 @@ const fields = {
collective_executive: { name: "execution_team", type: "text", bind: null, size: 6 },
individual_executive: { name: "execution_sole", type: "text", bind: null, size: 6 },
other_control: { name: "execution_another", type: "text", bind: null, size: 6 },
mail_delivery_address_type: { name: "mail_delivery_address_type", type: "radio", bind: null },
mail_delivery_address_type: { name: "address_type", type: "radio", bind: null },
},
contacts: {
fact_address: { name: "address_fact", type: "text", bind: null },