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
b0d1be16
Commit
b0d1be16
authored
May 19, 2021
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug-1467
parent
7bd365f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
16 deletions
+5
-16
EditableCell.js
src/view/bizview/common/editableCell/EditableCell.js
+4
-14
EquipmentFireEquipmentAdd.js
...ew/equipmentLedger/Equipment/EquipmentFireEquipmentAdd.js
+1
-2
No files found.
src/view/bizview/common/editableCell/EditableCell.js
View file @
b0d1be16
...
@@ -18,31 +18,21 @@ class EditableCell extends Component {
...
@@ -18,31 +18,21 @@ class EditableCell extends Component {
handleChange
=
e
=>
{
handleChange
=
e
=>
{
debugger
const
{
num
}
=
this
.
state
;
const
{
num
}
=
this
.
state
;
const
value
=
e
.
target
.
value
;
const
value
=
e
.
target
.
value
;
if
(
value
&&
!
AmosValidate
.
isNum
(
value
))
{
if
(
value
&&
!
AmosValidate
.
isNum
(
value
))
{
AmosAlert
.
warning
(
'提示'
,
'只能输入数字'
);
AmosAlert
.
warning
(
'提示'
,
'只能输入数字'
);
return
null
;
return
null
;
}
else
{
}
else
{
if
(
Number
(
value
)
>
Number
(
num
)){
if
(
value
>
num
){
AmosAlert
.
warning
(
'提示'
,
'不能大于剩余数量!'
);
AmosAlert
.
warning
(
'提示'
,
'不能大于剩余数量!'
);
}
else
{
}
else
{
this
.
setState
({
value
});
this
.
setState
({
value
});
if
(
this
.
props
.
onChange
)
{
if
(
this
.
props
.
onChange
)
{
this
.
props
.
onChange
(
value
);
this
.
props
.
onChange
(
value
);
}
}
}
}
}
}
};
};
check
=
()
=>
{
check
=
()
=>
{
...
...
src/view/bizview/equipmentLedger/Equipment/EquipmentFireEquipmentAdd.js
View file @
b0d1be16
...
@@ -68,9 +68,8 @@ const fireEquipmentTableColumns = self => {
...
@@ -68,9 +68,8 @@ const fireEquipmentTableColumns = self => {
dataIndex
:
'single'
,
dataIndex
:
'single'
,
key
:
'single'
,
key
:
'single'
,
width
:
'10%'
,
width
:
'10%'
,
render
:
(
text
,
record
,
index
)
=>
record
.
single
===
0
?
''
:
(
render
:
(
text
,
record
,
index
)
=>
<
EditableCell
value
=
{
text
}
num
=
{
record
.
amount
}
onChange
=
{(
text
)
=>
self
.
onCellChange
(
record
,
text
,
index
)}
/
>
<
EditableCell
value
=
{
text
}
num
=
{
record
.
amount
}
onChange
=
{(
text
)
=>
self
.
onCellChange
(
record
,
text
,
index
)}
/
>
)
}
}
];
];
};
};
...
...
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