|
@@ -1700,7 +1700,7 @@ class CustomerProfile extends Component {
|
|
|
)}
|
|
|
</View>
|
|
|
|
|
|
- <AtModal
|
|
|
+ { this.state.isOpened && <AtModal
|
|
|
isOpened={this.state.isOpened}
|
|
|
onClose={() => {
|
|
|
this.setState({
|
|
@@ -1757,9 +1757,13 @@ class CustomerProfile extends Component {
|
|
|
type='number'
|
|
|
value={info.inventionPatentCount}
|
|
|
onChange={e => {
|
|
|
+ let val = e;
|
|
|
+ if (val.toString().length > 1) {
|
|
|
+ val = val.toString().replace(/^0+/, '');
|
|
|
+ }
|
|
|
this.setState({
|
|
|
info: Object.assign(info, {
|
|
|
- inventionPatentCount: e,
|
|
|
+ inventionPatentCount: val,
|
|
|
})
|
|
|
})
|
|
|
}}
|
|
@@ -1771,9 +1775,13 @@ class CustomerProfile extends Component {
|
|
|
type='number'
|
|
|
value={info.utilityModelCount}
|
|
|
onChange={e => {
|
|
|
+ let val = e;
|
|
|
+ if (val.toString().length > 1) {
|
|
|
+ val = val.toString().replace(/^0+/, '');
|
|
|
+ }
|
|
|
this.setState({
|
|
|
info: Object.assign(info, {
|
|
|
- utilityModelCount: e,
|
|
|
+ utilityModelCount: val,
|
|
|
})
|
|
|
})
|
|
|
}}
|
|
@@ -1785,9 +1793,13 @@ class CustomerProfile extends Component {
|
|
|
type='number'
|
|
|
value={info.appearancePatentCount}
|
|
|
onChange={e => {
|
|
|
+ let val = e;
|
|
|
+ if (val.toString().length > 1) {
|
|
|
+ val = val.toString().replace(/^0+/, '');
|
|
|
+ }
|
|
|
this.setState({
|
|
|
info: Object.assign(info, {
|
|
|
- appearancePatentCount: e,
|
|
|
+ appearancePatentCount: val,
|
|
|
})
|
|
|
})
|
|
|
}}
|
|
@@ -1799,9 +1811,13 @@ class CustomerProfile extends Component {
|
|
|
type='number'
|
|
|
value={info.softwareWorksCount}
|
|
|
onChange={e => {
|
|
|
+ let val = e;
|
|
|
+ if (val.toString().length > 1) {
|
|
|
+ val = val.toString().replace(/^0+/, '');
|
|
|
+ }
|
|
|
this.setState({
|
|
|
info: Object.assign(info, {
|
|
|
- softwareWorksCount: e,
|
|
|
+ softwareWorksCount: val,
|
|
|
})
|
|
|
})
|
|
|
}}
|
|
@@ -1830,9 +1846,13 @@ class CustomerProfile extends Component {
|
|
|
type='number'
|
|
|
value={info.otherCount}
|
|
|
onChange={e => {
|
|
|
+ let val = e;
|
|
|
+ if (val.toString().length > 1) {
|
|
|
+ val = val.toString().replace(/^0+/, '');
|
|
|
+ }
|
|
|
this.setState({
|
|
|
info: Object.assign(info, {
|
|
|
- otherCount: e,
|
|
|
+ otherCount: val,
|
|
|
})
|
|
|
})
|
|
|
}}
|
|
@@ -2092,8 +2112,9 @@ class CustomerProfile extends Component {
|
|
|
<Button type='primary' onClick={this.update}>确定修改</Button>
|
|
|
</AtModalAction>
|
|
|
</AtModal>
|
|
|
-
|
|
|
- <AtModal
|
|
|
+ }
|
|
|
+
|
|
|
+ { this.state.isAdd && <AtModal
|
|
|
isOpened={this.state.isAdd}
|
|
|
onClose={() => {
|
|
|
this.setState({
|
|
@@ -2199,8 +2220,8 @@ class CustomerProfile extends Component {
|
|
|
<Button type='primary' onClick={this.add}>保存</Button>
|
|
|
</AtModalAction>
|
|
|
</AtModal>
|
|
|
-
|
|
|
- <AtModal
|
|
|
+ }
|
|
|
+ {/* <AtModal
|
|
|
isOpened={this.state.addItemShow}
|
|
|
onClose={this.handleCloseAddItemDialog}
|
|
|
>
|
|
@@ -2220,7 +2241,7 @@ class CustomerProfile extends Component {
|
|
|
<Button type='secondary' onClick={this.handleCloseAddItemDialog}>取消</Button>
|
|
|
<Button type='primary' onClick={this.handleAddItemSave}>保存</Button>
|
|
|
</AtModalAction>
|
|
|
- </AtModal>
|
|
|
+ </AtModal> */}
|
|
|
|
|
|
|
|
|
{/* 多选框 */}
|