Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
fe62980e
Commit
fe62980e
authored
Jan 20, 2022
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 待对账列表更换选择key->id
parent
1f548f13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
34 deletions
+34
-34
index.tsx
.../businessReconciliation/components/detailDrawer/index.tsx
+17
-17
index.tsx
...ance/businessReconciliation/readyReconciliation/index.tsx
+17
-17
No files found.
src/pages/balance/businessReconciliation/components/detailDrawer/index.tsx
View file @
fe62980e
...
@@ -185,18 +185,18 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
...
@@ -185,18 +185,18 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
let
parentArr
=
[...
selectedRowKeys
];
let
parentArr
=
[...
selectedRowKeys
];
let
parentRowArr
=
[...
selectedRows
];
let
parentRowArr
=
[...
selectedRows
];
if
(
selectedRow
.
length
>
0
)
{
if
(
selectedRow
.
length
>
0
)
{
if
(
!
parentArr
.
includes
(
item
.
billI
d
))
{
if
(
!
parentArr
.
includes
(
item
.
i
d
))
{
parentArr
.
push
(
item
.
billI
d
);
parentArr
.
push
(
item
.
i
d
);
parentRowArr
.
push
(
item
)
parentRowArr
.
push
(
item
)
}
}
}
else
{
}
else
{
if
(
parentArr
.
length
&&
parentArr
.
find
((
d
)
=>
d
===
item
.
billI
d
))
{
if
(
parentArr
.
length
&&
parentArr
.
find
((
d
)
=>
d
===
item
.
i
d
))
{
parentArr
.
splice
(
parentArr
.
splice
(
parentArr
.
findIndex
((
item1
)
=>
item1
===
item
.
billI
d
),
parentArr
.
findIndex
((
item1
)
=>
item1
===
item
.
i
d
),
1
1
);
);
parentRowArr
.
splice
(
parentRowArr
.
splice
(
parentRowArr
.
findIndex
((
item1
)
=>
item1
.
billId
===
item
.
billI
d
),
parentRowArr
.
findIndex
((
item1
)
=>
item1
.
id
===
item
.
i
d
),
1
1
);
);
}
}
...
@@ -233,15 +233,15 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
...
@@ -233,15 +233,15 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
let
parentArr
=
[...
selectedRowKeys
];
let
parentArr
=
[...
selectedRowKeys
];
let
parentRowArr
=
[...
selectedRows
];
let
parentRowArr
=
[...
selectedRows
];
if
(
selected
)
{
if
(
selected
)
{
parentArr
.
push
(
item
.
billI
d
);
parentArr
.
push
(
item
.
i
d
);
parentRowArr
.
push
(
item
);
parentRowArr
.
push
(
item
);
}
else
{
}
else
{
parentArr
.
splice
(
parentArr
.
splice
(
parentArr
.
findIndex
((
item
)
=>
item
===
item
.
billI
d
),
parentArr
.
findIndex
((
item
)
=>
item
===
item
.
i
d
),
1
1
);
);
parentRowArr
.
splice
(
parentRowArr
.
splice
(
parentRowArr
.
findIndex
((
item
)
=>
item
.
billId
===
item
.
billI
d
),
parentRowArr
.
findIndex
((
item
)
=>
item
.
id
===
item
.
i
d
),
1
1
);
);
}
}
...
@@ -260,23 +260,23 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
...
@@ -260,23 +260,23 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
let
childArr
=
[...
childSelectedRowKeys
];
let
childArr
=
[...
childSelectedRowKeys
];
let
childRowArr
=
[...
childSelectedRows
];
let
childRowArr
=
[...
childSelectedRows
];
let
setChildArr
=
dataSource
.
data
let
setChildArr
=
dataSource
.
data
.
find
((
d
)
=>
d
.
billId
===
record
.
billI
d
)
.
find
((
d
)
=>
d
.
id
===
record
.
i
d
)
.
products
.
map
((
item
)
=>
item
.
productId
);
.
products
.
map
((
item
)
=>
item
.
productId
);
let
setChildRowArr
=
dataSource
.
data
let
setChildRowArr
=
dataSource
.
data
.
find
((
d
)
=>
d
.
billId
===
record
.
billI
d
)
.
find
((
d
)
=>
d
.
id
===
record
.
i
d
)
.
products
;
.
products
;
if
(
selected
)
{
if
(
selected
)
{
patentArr
.
push
(
record
.
billI
d
);
patentArr
.
push
(
record
.
i
d
);
patentRowArr
.
push
(
record
);
patentRowArr
.
push
(
record
);
childArr
=
Array
.
from
(
new
Set
([...
setChildArr
,
...
childArr
]));
childArr
=
Array
.
from
(
new
Set
([...
setChildArr
,
...
childArr
]));
childRowArr
=
Array
.
from
(
new
Set
([...
setChildRowArr
,
...
childRowArr
]));
childRowArr
=
Array
.
from
(
new
Set
([...
setChildRowArr
,
...
childRowArr
]));
}
else
{
}
else
{
patentArr
.
splice
(
patentArr
.
splice
(
patentArr
.
findIndex
((
item
)
=>
item
===
record
.
billI
d
),
patentArr
.
findIndex
((
item
)
=>
item
===
record
.
i
d
),
1
1
);
);
patentRowArr
.
splice
(
patentRowArr
.
splice
(
patentRowArr
.
findIndex
((
item
)
=>
item
.
billId
===
record
.
billI
d
),
patentRowArr
.
findIndex
((
item
)
=>
item
.
id
===
record
.
i
d
),
1
1
);
);
childArr
=
childArr
.
filter
(
childArr
=
childArr
.
filter
(
...
@@ -303,7 +303,7 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
...
@@ -303,7 +303,7 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
});
});
if
(
selected
)
{
if
(
selected
)
{
patentArr
=
Array
.
from
(
patentArr
=
Array
.
from
(
new
Set
([...
patentArr
,
...
changeRows
.
map
((
item
)
=>
item
.
billI
d
)])
new
Set
([...
patentArr
,
...
changeRows
.
map
((
item
)
=>
item
.
i
d
)])
);
);
patentRowArr
=
Array
.
from
(
patentRowArr
=
Array
.
from
(
new
Set
([...
patentRowArr
,
...
changeRows
])
new
Set
([...
patentRowArr
,
...
changeRows
])
...
@@ -312,10 +312,10 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
...
@@ -312,10 +312,10 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
setChildSelectedRowKeys
(
setChildArr
);
setChildSelectedRowKeys
(
setChildArr
);
}
else
{
}
else
{
patentArr
=
patentArr
.
filter
(
patentArr
=
patentArr
.
filter
(
(
item
)
=>
!
changeRows
.
some
((
e
)
=>
e
.
billI
d
===
item
)
(
item
)
=>
!
changeRows
.
some
((
e
)
=>
e
.
i
d
===
item
)
);
);
patentRowArr
=
patentRowArr
.
filter
(
patentRowArr
=
patentRowArr
.
filter
(
(
item
)
=>
!
changeRows
.
some
((
e
)
=>
e
.
billId
===
item
.
billI
d
)
(
item
)
=>
!
changeRows
.
some
((
e
)
=>
e
.
id
===
item
.
i
d
)
);
);
setChildSelectedRows
([]);
setChildSelectedRows
([]);
setChildSelectedRowKeys
([]);
setChildSelectedRowKeys
([]);
...
@@ -406,7 +406,7 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
...
@@ -406,7 +406,7 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
fetchTableData=
{
params
=>
loadingTableData
(
params
)
}
fetchTableData=
{
params
=>
loadingTableData
(
params
)
}
columns=
{
columns
}
columns=
{
columns
}
currentRef=
{
ref
}
currentRef=
{
ref
}
rowKey=
"
billI
d"
rowKey=
"
i
d"
tableProps=
{
{
tableProps=
{
{
expandable
:
{
expandable
:
{
expandedRowRender
:
childRenderTable
,
expandedRowRender
:
childRenderTable
,
...
...
src/pages/balance/businessReconciliation/readyReconciliation/index.tsx
View file @
fe62980e
...
@@ -189,18 +189,18 @@ const ReadyReconciliation: React.FC = () => {
...
@@ -189,18 +189,18 @@ const ReadyReconciliation: React.FC = () => {
let
parentArr
=
[...
selectedRowKeys
];
let
parentArr
=
[...
selectedRowKeys
];
let
parentRowArr
=
[...
selectedRows
];
let
parentRowArr
=
[...
selectedRows
];
if
(
selectedRow
.
length
>
0
)
{
if
(
selectedRow
.
length
>
0
)
{
if
(
!
parentArr
.
includes
(
item
.
billI
d
))
{
if
(
!
parentArr
.
includes
(
item
.
i
d
))
{
parentArr
.
push
(
item
.
billI
d
);
parentArr
.
push
(
item
.
i
d
);
parentRowArr
.
push
(
item
)
parentRowArr
.
push
(
item
)
}
}
}
else
{
}
else
{
if
(
parentArr
.
length
&&
parentArr
.
find
((
d
)
=>
d
===
item
.
billI
d
))
{
if
(
parentArr
.
length
&&
parentArr
.
find
((
d
)
=>
d
===
item
.
i
d
))
{
parentArr
.
splice
(
parentArr
.
splice
(
parentArr
.
findIndex
((
item1
)
=>
item1
===
item
.
billI
d
),
parentArr
.
findIndex
((
item1
)
=>
item1
===
item
.
i
d
),
1
1
);
);
parentRowArr
.
splice
(
parentRowArr
.
splice
(
parentRowArr
.
findIndex
((
item1
)
=>
item1
.
billId
===
item
.
billI
d
),
parentRowArr
.
findIndex
((
item1
)
=>
item1
.
id
===
item
.
i
d
),
1
1
);
);
}
}
...
@@ -237,15 +237,15 @@ const ReadyReconciliation: React.FC = () => {
...
@@ -237,15 +237,15 @@ const ReadyReconciliation: React.FC = () => {
let
parentArr
=
[...
selectedRowKeys
];
let
parentArr
=
[...
selectedRowKeys
];
let
parentRowArr
=
[...
selectedRows
];
let
parentRowArr
=
[...
selectedRows
];
if
(
selected
)
{
if
(
selected
)
{
parentArr
.
push
(
item
.
billI
d
);
parentArr
.
push
(
item
.
i
d
);
parentRowArr
.
push
(
item
);
parentRowArr
.
push
(
item
);
}
else
{
}
else
{
parentArr
.
splice
(
parentArr
.
splice
(
parentArr
.
findIndex
((
item
)
=>
item
===
item
.
billI
d
),
parentArr
.
findIndex
((
item
)
=>
item
===
item
.
i
d
),
1
1
);
);
parentRowArr
.
splice
(
parentRowArr
.
splice
(
parentRowArr
.
findIndex
((
item
)
=>
item
.
billId
===
item
.
billI
d
),
parentRowArr
.
findIndex
((
item
)
=>
item
.
id
===
item
.
i
d
),
1
1
);
);
}
}
...
@@ -264,23 +264,23 @@ const ReadyReconciliation: React.FC = () => {
...
@@ -264,23 +264,23 @@ const ReadyReconciliation: React.FC = () => {
let
childArr
=
[...
childSelectedRowKeys
];
let
childArr
=
[...
childSelectedRowKeys
];
let
childRowArr
=
[...
childSelectedRows
];
let
childRowArr
=
[...
childSelectedRows
];
let
setChildArr
=
dataSource
.
data
let
setChildArr
=
dataSource
.
data
.
find
((
d
)
=>
d
.
billId
===
record
.
billI
d
)
.
find
((
d
)
=>
d
.
id
===
record
.
i
d
)
.
products
.
map
((
item
)
=>
item
.
productId
);
.
products
.
map
((
item
)
=>
item
.
productId
);
let
setChildRowArr
=
dataSource
.
data
let
setChildRowArr
=
dataSource
.
data
.
find
((
d
)
=>
d
.
billId
===
record
.
billI
d
)
.
find
((
d
)
=>
d
.
id
===
record
.
i
d
)
.
products
;
.
products
;
if
(
selected
)
{
if
(
selected
)
{
patentArr
.
push
(
record
.
billI
d
);
patentArr
.
push
(
record
.
i
d
);
patentRowArr
.
push
(
record
);
patentRowArr
.
push
(
record
);
childArr
=
Array
.
from
(
new
Set
([...
setChildArr
,
...
childArr
]));
childArr
=
Array
.
from
(
new
Set
([...
setChildArr
,
...
childArr
]));
childRowArr
=
Array
.
from
(
new
Set
([...
setChildRowArr
,
...
childRowArr
]));
childRowArr
=
Array
.
from
(
new
Set
([...
setChildRowArr
,
...
childRowArr
]));
}
else
{
}
else
{
patentArr
.
splice
(
patentArr
.
splice
(
patentArr
.
findIndex
((
item
)
=>
item
===
record
.
billI
d
),
patentArr
.
findIndex
((
item
)
=>
item
===
record
.
i
d
),
1
1
);
);
patentRowArr
.
splice
(
patentRowArr
.
splice
(
patentRowArr
.
findIndex
((
item
)
=>
item
.
billId
===
record
.
billI
d
),
patentRowArr
.
findIndex
((
item
)
=>
item
.
id
===
record
.
i
d
),
1
1
);
);
childArr
=
childArr
.
filter
(
childArr
=
childArr
.
filter
(
...
@@ -307,7 +307,7 @@ const ReadyReconciliation: React.FC = () => {
...
@@ -307,7 +307,7 @@ const ReadyReconciliation: React.FC = () => {
});
});
if
(
selected
)
{
if
(
selected
)
{
patentArr
=
Array
.
from
(
patentArr
=
Array
.
from
(
new
Set
([...
patentArr
,
...
changeRows
.
map
((
item
)
=>
item
.
billI
d
)])
new
Set
([...
patentArr
,
...
changeRows
.
map
((
item
)
=>
item
.
i
d
)])
);
);
patentRowArr
=
Array
.
from
(
patentRowArr
=
Array
.
from
(
new
Set
([...
patentRowArr
,
...
changeRows
])
new
Set
([...
patentRowArr
,
...
changeRows
])
...
@@ -316,10 +316,10 @@ const ReadyReconciliation: React.FC = () => {
...
@@ -316,10 +316,10 @@ const ReadyReconciliation: React.FC = () => {
setChildSelectedRowKeys
(
setChildArr
);
setChildSelectedRowKeys
(
setChildArr
);
}
else
{
}
else
{
patentArr
=
patentArr
.
filter
(
patentArr
=
patentArr
.
filter
(
(
item
)
=>
!
changeRows
.
some
((
e
)
=>
e
.
billI
d
===
item
)
(
item
)
=>
!
changeRows
.
some
((
e
)
=>
e
.
i
d
===
item
)
);
);
patentRowArr
=
patentRowArr
.
filter
(
patentRowArr
=
patentRowArr
.
filter
(
(
item
)
=>
!
changeRows
.
some
((
e
)
=>
e
.
billId
===
item
.
billI
d
)
(
item
)
=>
!
changeRows
.
some
((
e
)
=>
e
.
id
===
item
.
i
d
)
);
);
setChildSelectedRows
([]);
setChildSelectedRows
([]);
setChildSelectedRowKeys
([]);
setChildSelectedRowKeys
([]);
...
@@ -391,7 +391,7 @@ const ReadyReconciliation: React.FC = () => {
...
@@ -391,7 +391,7 @@ const ReadyReconciliation: React.FC = () => {
fetchTableData=
{
params
=>
loadingTableData
(
params
)
}
fetchTableData=
{
params
=>
loadingTableData
(
params
)
}
columns=
{
columns
}
columns=
{
columns
}
currentRef=
{
ref
}
currentRef=
{
ref
}
rowKey=
"
billI
d"
rowKey=
"
i
d"
tableProps=
{
{
tableProps=
{
{
expandable
:
{
expandable
:
{
expandedRowRender
:
childRenderTable
,
expandedRowRender
:
childRenderTable
,
...
...
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