Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-convertor-view
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
station
amos-convertor-view
Commits
dd689d87
Commit
dd689d87
authored
May 18, 2021
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug-1523
parent
116f6f61
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
EquipmentModel.js
src/view/bizview/equipmentLedger/Equipment/EquipmentModel.js
+6
-0
No files found.
src/view/bizview/equipmentLedger/Equipment/EquipmentModel.js
View file @
dd689d87
...
@@ -110,6 +110,7 @@ class EquipmentModel extends Component {
...
@@ -110,6 +110,7 @@ class EquipmentModel extends Component {
};
};
onInputChange
=
(
key
,
value
)
=>
{
onInputChange
=
(
key
,
value
)
=>
{
console
.
log
(
key
,
value
);
const
{
form
}
=
this
.
state
;
const
{
form
}
=
this
.
state
;
let
reg
=
/
[\u
4E00-
\u
9FA5
]
/g
;
let
reg
=
/
[\u
4E00-
\u
9FA5
]
/g
;
if
(
key
===
'code'
)
{
if
(
key
===
'code'
)
{
...
@@ -121,7 +122,12 @@ class EquipmentModel extends Component {
...
@@ -121,7 +122,12 @@ class EquipmentModel extends Component {
return
;
return
;
}
}
}
}
if
(
typeof
value
!==
'boolean'
)
{
form
[
key
]
=
value
.
trim
();
form
[
key
]
=
value
.
trim
();
}
else
{
form
[
key
]
=
value
;
}
this
.
setState
({
form
});
this
.
setState
({
form
});
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment