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
29a50c01
Commit
29a50c01
authored
Feb 08, 2022
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改开票管理税率小数点问题
parent
b0f1f83a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
index.tsx
src/pages/balance/accountsReceivable/invoice/index.tsx
+9
-8
No files found.
src/pages/balance/accountsReceivable/invoice/index.tsx
View file @
29a50c01
...
...
@@ -14,7 +14,7 @@ import { schema } from './schema';
import
StatusTag
,
{
STATUS_TYPE
}
from
'@/components/StatusTag'
import
{
fetchOptions
}
from
'../../common'
;
import
useSetSearchValueInTable
from
'@/hooks/useSetSearchValueInTable'
;
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
import
{
numFormat
,
priceFormat
}
from
'@/utils/numberFomat'
;
import
{
getSettleAccountsCommonGetPayStatus
,
getSettleAccountsCommonGetReceiptInvoiceStatus
,
...
...
@@ -143,9 +143,6 @@ const SettlementList: React.FC = () => {
return
{
...
rest
,
// TODO, 修改
// kind: kindName == intl.formatMessage({id: 'balance.zengzhishuiputongfapiao'}) ? 1 : 2,
// type: typeName == intl.formatMessage({id: 'balance.qiye'}) ? 1 : 2,
proveList
:
res
[
`list-
${
key
}
`
]
}
})
...
...
@@ -166,8 +163,6 @@ const SettlementList: React.FC = () => {
const
defaultPostData
=
{
receiptInvoiceId
:
activeData
.
id
,
...
rest
,
// kind: kindName == intl.formatMessage({id: 'balance.zengzhishuiputongfapiao'}) ? 1 : 2,
// type: typeName == intl.formatMessage({id: 'balance.qiye'}) ? 1 : 2,
proveList
:
res
[
`list-0`
]
}
setSubmitLoading
(
true
);
...
...
@@ -236,7 +231,7 @@ const SettlementList: React.FC = () => {
title
:
intl
.
formatMessage
({
id
:
'balance.accountsReceivable.invoice.columns.tax'
}),
dataIndex
:
'tax'
,
render
:
(
text
,
record
)
=>
{
return
record
.
isHasTax
?
`
${
record
.
isHasTaxName
}
/
${
record
.
taxRate
*
100
}
%`
:
intl
.
formatMessage
({
id
:
'balance.accountsReceivable.invoice.columns.tax.none'
});
return
record
.
isHasTax
?
`
${
record
.
isHasTaxName
}
/
${
priceFormat
(
record
.
taxRate
*
100
)
}
%`
:
intl
.
formatMessage
({
id
:
'balance.accountsReceivable.invoice.columns.tax.none'
});
}
},
{
...
...
@@ -294,7 +289,13 @@ const SettlementList: React.FC = () => {
title
:
intl
.
formatMessage
({
id
:
'balance.accountsReceivable.invoice.columns.operation'
}),
render
:
(
text
,
record
)
=>
{
return
(
<
a
onClick=
{
()
=>
handleShow
(
record
)
}
>
{
record
.
invoiceStatus
==
1
?
intl
.
formatMessage
({
id
:
'balance.accountsReceivable.invoice.columns.operation.1'
})
:
intl
.
formatMessage
({
id
:
'balance.accountsReceivable.invoice.columns.operation.2'
})
}
</
a
>
<
a
onClick=
{
()
=>
handleShow
(
record
)
}
>
{
record
.
invoiceStatus
==
1
?
intl
.
formatMessage
({
id
:
'balance.accountsReceivable.invoice.columns.operation.1'
})
:
intl
.
formatMessage
({
id
:
'balance.accountsReceivable.invoice.columns.operation.2'
})
}
</
a
>
)
}
}
...
...
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