yee 7 yıl önce
ebeveyn
işleme
5b0cbf52de

+ 4 - 2
js/component/account/services/orgTechCenter.jsx

@@ -9,7 +9,8 @@ import $ from 'jquery/src/ajax';
 const CenterListDescFrom = Form.create()(React.createClass({
     getInitialState() {
         return {
-            loading: false
+            loading: false,
+            fileList_protocol: []
         };
     },
     handleSubmit(e) {
@@ -48,7 +49,8 @@ const CenterListDescFrom = Form.create()(React.createClass({
     componentWillReceiveProps(nextProps) {
         if (!this.props.visible && nextProps.visible) {
             this.props.form.resetFields();
-            this.state.fileList = [];
+            this.state.fileList_protocol = [];
+            this.state.protocolUrl = undefined;
         };
     },
     render() {

+ 1 - 0
js/component/account/services/ratepay.jsx

@@ -109,6 +109,7 @@ const RatepayDescFrom = Form.create()(React.createClass({
             this.state.researchCost = undefined;
             this.state.grossProfit = undefined;
             this.state.operatingProfit = undefined;
+            this.state.taxReturnUrl = undefined;
         };
     },
     render() {

+ 1 - 0
js/component/account/services/standard.jsx

@@ -84,6 +84,7 @@ const StandardDesc = React.createClass({
                 this.state.enclosureUrl = nextProps.data.enclosureUrl;
             };
             this.state.fileList = [];
+            this.state.enclosureUrl = undefined;
         };
         this.state.visible = nextProps.showDesc;
     },

+ 0 - 4
js/component/account/set/base.jsx

@@ -198,7 +198,6 @@ const BaseFrom = Form.create()(React.createClass({
                     label="出生日期"
                 >
                     {getFieldDecorator('birth', {
-                        rules: [{ type: 'object', message: '请选择日期!' }],
                         initialValue: !this.state.birth ? null : moment(this.state.birth, 'YYYY/MM')
                     })(
                         <MonthPicker />
@@ -209,9 +208,6 @@ const BaseFrom = Form.create()(React.createClass({
                     label="身份证号"
                 >
                     {getFieldDecorator('idcardnum', {
-                        rules: [{
-                            validator: this.checkIdcardnum,
-                        }],
                         initialValue: this.state.idnumber || null
                     })(
                         this.state.auditStatus == 5 ? <span>{this.state.idnumber}</span> : <Input />

+ 5 - 4
js/component/account/set/person.jsx

@@ -80,7 +80,7 @@ class PicturesWall extends React.Component {
     }
     componentWillReceiveProps(nextProps) {
         if (nextProps.lifePhotoList && this.state.propsbool) {
-            this.state.fileList = nextProps.lifePhotoList;
+            this.state.fileList = nextProps.lifePhotoList || [];
             this.state.propsbool = false;
         }
     }
@@ -134,7 +134,7 @@ const PersonFrom = Form.create()(React.createClass({
                         personPortraitUrl: data.data.personPortraitUrl,
                         address: data.data.postalAddress,
                         postcode: data.data.postcode,
-                        lifePhotoList: theArr
+                        lifePhotoList: theArr || []
                     });
                 }
             }.bind(this),
@@ -145,7 +145,8 @@ const PersonFrom = Form.create()(React.createClass({
     getInitialState() {
         return {
             loading: false,
-            livePicUrlArr: []
+            livePicUrlArr: [],
+            lifePhotoList: []
         };
     },
     handleSubmit(e) {
@@ -242,7 +243,7 @@ const PersonFrom = Form.create()(React.createClass({
                     label="居住地"
                 >
                     {getFieldDecorator('theAddress', {
-                        initialValue: this.state.theAddress || null
+                        initialValue: this.state.theAddress || []
                     })(
                         <Cascader options={areaSelect()} />
                         )}

+ 1 - 0
js/component/manageCenter/servicesManage/highTech/fosterDesc/orgTechCenter.jsx

@@ -50,6 +50,7 @@ const CenterListDescFrom = Form.create()(React.createClass({
         if (!this.props.visible && nextProps.visible) {
             this.props.form.resetFields();
             this.state.fileList = [];
+            this.state.protocolUrl= undefined;
         };
     },
     render() {

+ 1 - 0
js/component/manageCenter/servicesManage/highTech/fosterDesc/ratepay.jsx

@@ -111,6 +111,7 @@ const RatepayDescFrom = Form.create()(React.createClass({
             this.state.researchCost = undefined;
             this.state.grossProfit = undefined;
             this.state.operatingProfit = undefined;
+            this.state.taxReturnUrl = undefined;
         };
     },
     render() {

+ 1 - 0
js/component/manageCenter/servicesManage/highTech/fosterDesc/standard.jsx

@@ -84,6 +84,7 @@ const StandardDesc = React.createClass({
                 this.state.enclosureUrl = nextProps.data.enclosureUrl;
             };
             this.state.fileList = [];
+            this.state.enclosureUrl = undefined;
         };
         this.state.visible = nextProps.showDesc;
     },

+ 7 - 0
js/component/manageCenter/userManage/userList.jsx

@@ -37,6 +37,7 @@ const OrgAdd = React.createClass({
             url: globalConfig.context + "/api/admin/addNewUser",
             data: {
                 mobile: this.state.mobile,
+                username:this.state.username,
                 type: 0
             }
         }).done(function (data) {
@@ -72,6 +73,12 @@ const OrgAdd = React.createClass({
                             value={this.state.mobile}
                             onChange={(e) => { this.setState({ mobile: e.target.value }); }} />
                     </div>
+                    <div className='orgAdd-input'>
+                        <span>用户名称:</span>
+                        <Input
+                            value={this.state.username}
+                            onChange={(e) => { this.setState({ username: e.target.value }); }} />
+                    </div>
                 </Modal>
             </div>
         );