From 851164ff4672c1aa8571ef9324775ee22f569844 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Tue, 12 Nov 2019 14:09:19 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../Bankcardnumberverification.js              | 18 +++++++++++++++---
 .../CompetitionContentspdfpeopledata.js        |  1 +
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Bankcardnumberverification.js b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Bankcardnumberverification.js
index 27db5d3db..4d9279546 100644
--- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Bankcardnumberverification.js
+++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/Bankcardnumberverification.js
@@ -60,6 +60,18 @@ class Bankcardnumberverification extends Component {
 
 			}
 
+			try {
+				if(prevProps.bank_account){
+					this.props.form.setFieldsValue({
+						openingbank:prevProps.bank_account.bank,
+						subbranch: prevProps.bank_account.second_bank,
+						subbranchs: prevProps.bank_account.card_no,
+					})
+				}
+			}catch (e) {
+
+			}
+
 
 		}
 
@@ -176,7 +188,7 @@ class Bankcardnumberverification extends Component {
 								>
 									{getFieldDecorator('openingbank', {
 										rules: [{
-											// initialValue: this.state.cityDefaultValue,
+										  initialValue: this.state.openingbank,
 											required: true,
 											message: '请输入开户行',
 										}],
@@ -191,7 +203,7 @@ class Bankcardnumberverification extends Component {
 								>
 									{getFieldDecorator('subbranch', {
 										rules: [{
-											// initialValue: this.state.cityDefaultValue,
+											 initialValue: this.state.subbranch,
 											required: true,
 											message: '请输入支行',
 										}],
@@ -206,7 +218,7 @@ class Bankcardnumberverification extends Component {
 								>
 									{getFieldDecorator('subbranchs', {
 										rules: [{
-											// initialValue: this.state.cityDefaultValue,
+										  initialValue: this.state.subbranchs,
 											required: true,
 											message: '请输入账号',
 										}],
diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js
index 3fc03dfe4..3f015a3bc 100644
--- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js
+++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js
@@ -528,6 +528,7 @@ class CompetitionContentspdfpeopledata extends Component {
 						<div>
 							{
 								bank_account_editable === true ?
+
 									<Bankcardnumberverifications {...this.props} {...this.state} basicInfo={userdata}
 																							 hideUpdating={(i) => this.hideUpdating(i)}
 																							 getdata={(id) => this.getdata(id)}