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
shenshaokai
jinfa-platform
Commits
7ccd0e08
Commit
7ccd0e08
authored
Jan 18, 2022
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: [19761] 对账单明细不能选择不同的税率
parent
8787f73f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
index.tsx
.../businessReconciliation/components/detailDrawer/index.tsx
+19
-2
No files found.
src/pages/balance/businessReconciliation/components/detailDrawer/index.tsx
View file @
7ccd0e08
import
React
,
{
useState
,
useEffect
,
use
Memo
,
useRef
,
useCallback
}
from
'react'
;
import
{
Row
,
Col
,
Input
,
Drawer
,
Table
,
Spac
e
,
Typography
,
message
,
Button
}
from
'antd'
;
import
React
,
{
useState
,
useEffect
,
use
Ref
}
from
'react'
;
import
{
Drawer
,
Tabl
e
,
Typography
,
message
,
Button
}
from
'antd'
;
import
{
CaretRightOutlined
,
CaretDownOutlined
}
from
'@ant-design/icons'
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
StandardTable
from
'@/components/StandardTable'
;
...
...
@@ -342,6 +342,22 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
}
const
_onOk
=
()
=>
{
if
(
selectedRowKeys
.
length
<=
0
)
{
message
.
error
(
'请选择需要生成对账单的数据。'
);
return
;
}
for
(
let
item
of
selectedRows
)
{
if
(
item
.
payer
!==
selectedRows
[
0
].
payer
)
{
message
.
error
(
'请选择相同付款方或相同税率的订单'
);
return
;
}
}
for
(
let
child
of
childSelectedRows
)
{
if
(
child
.
taxRate
!==
childSelectedRows
[
0
].
taxRate
)
{
message
.
error
(
'请选择相同付款方或相同税率的订单'
);
return
;
}
}
const
_rows
=
[];
selectedRows
.
forEach
((
item
)
=>
{
item
.
products
.
forEach
((
child
)
=>
{
...
...
@@ -350,6 +366,7 @@ const DetailDrawer: React.FC<DetailDrawerProps> = (props: DetailDrawerProps) =>
}
})
})
console
.
log
(
_rows
)
onOk
?.(
_rows
);
}
...
...
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