Commit c92ce9d0 authored by 卢均锐's avatar 卢均锐

fix: 修复业务对账-待对账列表子表单选择问题

parent fadd269b
......@@ -184,9 +184,11 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
if (item.products.find((d) => d.productId === record.productId)) {
let parentArr = [...selectedRowKeys];
let parentRowArr = [...selectedRows];
if (item.products.length === selectedRow.length) {
parentArr.push(item.billId);
parentRowArr.push(item)
if (selectedRow.length > 0) {
if (!parentArr.includes(item.billId)) {
parentArr.push(item.billId);
parentRowArr.push(item)
}
} else {
if (parentArr.length && parentArr.find((d) => d === item.billId)) {
parentArr.splice(
......
......@@ -188,9 +188,11 @@ const ReadyReconciliation: React.FC = () => {
if (item.products.find((d) => d.productId === record.productId)) {
let parentArr = [...selectedRowKeys];
let parentRowArr = [...selectedRows];
if (item.products.length === selectedRow.length) {
parentArr.push(item.billId);
parentRowArr.push(item)
if (selectedRow.length > 0) {
if (!parentArr.includes(item.billId)) {
parentArr.push(item.billId);
parentRowArr.push(item)
}
} else {
if (parentArr.length && parentArr.find((d) => d === item.billId)) {
parentArr.splice(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment