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
65b3e897
Commit
65b3e897
authored
Jan 06, 2022
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 业务请款详情修改字段
parent
91106b1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
index.tsx
src/pages/balance/businessRequestFunds/detail/index.tsx
+15
-15
No files found.
src/pages/balance/businessRequestFunds/detail/index.tsx
View file @
65b3e897
import
React
,
{
Fragment
,
useEffect
,
useState
,
useMemo
,
useRef
}
from
'react'
;
import
{
B
adge
,
Popconfirm
,
B
utton
}
from
'antd'
;
import
{
Button
}
from
'antd'
;
import
{
getIntl
,
history
,
Link
}
from
'umi'
;
import
{
CheckCircleOutlined
}
from
'@ant-design/icons'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
StandardTable
}
from
'@linkseeks/god'
;
import
{
GlobalConfig
}
from
'@/global/config'
import
{
formatTimeString
}
from
'@/utils'
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
import
StatusTag
from
'@/components/StatusTag'
;
...
...
@@ -38,6 +36,7 @@ const SearchDetail = () => {
const
[
dataSource
,
setDataSource
]
=
useState
<
any
>
({});
const
currentRef
=
useRef
({});
const
[
basicEffect
,
setBasicEffect
]
=
useState
<
any
>
([]);
const
[
writeOffRecord
,
setWriteOffRecord
]
=
useState
<
any
>
({});
const
_tabs
=
useMemo
(()
=>
{
let
_list
=
[];
...
...
@@ -62,12 +61,12 @@ const SearchDetail = () => {
col
:
[
{
label
:
'请款单号'
,
extra
:
data
.
applyNo
,
type
:
'text'
},
{
label
:
'请款摘要'
,
extra
:
data
.
applyAbstract
,
type
:
'text'
},
{
label
:
'请款类型'
,
extra
:
data
.
applyType
,
type
:
'text'
},
{
label
:
'支付方式'
,
extra
:
data
.
moneyPayWay
,
type
:
'text'
},
{
label
:
'请款类型'
,
extra
:
data
.
applyType
Name
,
type
:
'text'
},
{
label
:
'支付方式'
,
extra
:
data
.
moneyPayWay
Name
,
type
:
'text'
},
{
label
:
'请款备注'
,
extra
:
data
.
remark
,
type
:
'text'
},
{
label
:
'对账单号'
,
extra
:
<
Link
to=
{
`/memberCenter/balance/businessReconciliation/search/preview?id=${data.reconciliationId}&no=${data.reconciliationNo}`
}
>
{
data
.
reconciliationNo
}
</
Link
>,
type
:
'text'
},
{
label
:
'发票号码'
,
extra
:
'40122826 (2020-08-25)'
,
type
:
'text'
},
{
label
:
'状态'
,
extra
:
<
StatusTag
type=
'primary'
title=
{
data
.
status
}
/>,
type
:
'text'
},
{
label
:
'状态'
,
extra
:
<
StatusTag
type=
'primary'
title=
{
data
.
status
Name
}
/>,
type
:
'text'
},
{
label
:
'单据时间'
,
extra
:
data
.
createTime
,
type
:
'text'
},
]
},
...
...
@@ -78,9 +77,9 @@ const SearchDetail = () => {
{
label
:
'银行账号'
,
extra
:
data
.
bankAccount
,
type
:
'text'
},
{
label
:
'开户行'
,
extra
:
data
.
bankDeposit
,
type
:
'text'
},
{
label
:
'请款金额'
,
extra
:
`¥
${
priceFormat
(
data
.
applyAmount
)}
`
,
type
:
'text'
},
{
label
:
'核销金额'
,
extra
:
`¥
${
priceFormat
(
data
.
apply
Amount
)}
`
,
type
:
'text'
},
{
label
:
'预计付款日期'
,
extra
:
data
.
expectPayTime
,
type
:
'text'
},
{
label
:
'付款方式'
,
extra
:
data
.
payWay
,
type
:
'text'
},
{
label
:
'核销金额'
,
extra
:
`¥
${
priceFormat
(
data
.
writeOff
Amount
)}
`
,
type
:
'text'
},
{
label
:
'预计付款日期'
,
extra
:
formatTimeString
(
data
.
expectPayTime
,
'YYYY-MM-DD'
)
,
type
:
'text'
},
{
label
:
'付款方式'
,
extra
:
data
.
payWay
Name
,
type
:
'text'
},
]
},
]
...
...
@@ -89,7 +88,8 @@ const SearchDetail = () => {
})
}
const
_openWriteOff
=
()
=>
{
const
_openWriteOff
=
(
record
)
=>
{
setWriteOffRecord
(
record
)
setWriteOffVisible
(
true
)
}
...
...
@@ -166,13 +166,13 @@ const SearchDetail = () => {
title
:
'核销金额'
,
key
:
'writeOffAmount'
,
dataIndex
:
'writeOffAmount'
,
render
:
(
text
:
any
)
=>
<
Button
type=
'link'
onClick=
{
()
=>
{
_openWriteOff
(
)
}
}
>
¥ $
{
priceFormat
(
text
)
}
</
Button
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Button
type=
'link'
onClick=
{
()
=>
{
_openWriteOff
(
record
)
}
}
>
¥ $
{
priceFormat
(
text
)
}
</
Button
>
},
{
title
:
'可核销金额'
,
key
:
'
reconciliationQuantity
'
,
dataIndex
:
'
reconciliationQuantity
'
,
render
:
(
text
:
any
)
=>
<
Button
type=
'link'
onClick=
{
()
=>
{
_openWriteOff
(
)
}
}
>
¥ $
{
priceFormat
(
text
)
}
</
Button
>
key
:
'
canWriteOffAmount
'
,
dataIndex
:
'
canWriteOffAmount
'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Button
type=
'link'
onClick=
{
()
=>
{
_openWriteOff
(
record
)
}
}
>
¥ $
{
priceFormat
(
text
)
}
</
Button
>
},
];
...
...
@@ -205,7 +205,7 @@ const SearchDetail = () => {
</
Fragment
>
}
/>
{
/* <WriteOffDrawer visible={writeOffVisible} onClose={() => { setWriteOffVisible(false) }} /> */
}
<
WriteOffDrawer
visible=
{
writeOffVisible
}
record=
{
writeOffRecord
}
onClose=
{
()
=>
{
setWriteOffVisible
(
false
)
}
}
/>
</>
)
}
...
...
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