|
|
|
@ -40,7 +40,30 @@ class Bankcardnumberverification extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentDidUpdate = (prevProps) => {
|
|
|
|
|
if (prevProps.bank_account != this.props.bank_account) {
|
|
|
|
|
console.log("componentDidUpdate");
|
|
|
|
|
console.log(this.props);
|
|
|
|
|
console.log(prevProps);
|
|
|
|
|
////console.log("Registration");
|
|
|
|
|
////console.log("componentDidUpdate");
|
|
|
|
|
////console.log(this.props.user.admin);
|
|
|
|
|
try {
|
|
|
|
|
if(this.props.bank_account){
|
|
|
|
|
this.props.form.setFieldsValue({
|
|
|
|
|
openingbank: this.props.bank_account.bank,
|
|
|
|
|
subbranch: this.props.bank_account.second_bank,
|
|
|
|
|
subbranchs: this.props.bank_account.card_no,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
yhBankstrue = () => {
|
|
|
|
|
this.props.form.validateFieldsAndScroll((err, values) => {
|
|
|
|
|
if (!err) {
|
|
|
|
|