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
586c1966
Commit
586c1966
authored
Dec 27, 2021
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 缓存业务请款相关
-业务对账协同列表字段修改
parent
0ffb4659
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
167 additions
and
99 deletions
+167
-99
index.tsx
...ance/businessReconciliationCollaboration/detail/index.tsx
+9
-6
index.tsx
...ce/businessReconciliationCollaboration/readyPay/index.tsx
+1
-1
index.tsx
src/pages/balance/businessRequestFunds/admin/index.tsx
+95
-44
index.tsx
src/pages/balance/businessRequestFunds/search/index.tsx
+62
-48
No files found.
src/pages/balance/businessReconciliationCollaboration/detail/index.tsx
View file @
586c1966
...
...
@@ -243,12 +243,15 @@ const SearchDetail = () => {
case
'readyConfirm'
:
return
<
Button
type=
'primary'
icon=
{
<
CheckCircleOutlined
/>
}
onClick=
{
()
=>
{
setModalVisible
(
true
)
}
}
>
确认对账单
</
Button
>
case
'readyPay'
:
<
Popconfirm
title
=
{
intl
.
formatMessage
({
id
:
'balance.quedingyaotijiaoma'
})}
okText
=
{
intl
.
formatMessage
({
id
:
'balance.shi'
})}
cancelText
=
{
intl
.
formatMessage
({
id
:
'balance.fou'
})}
>
<
Button
type=
'primary'
icon=
{
<
CheckCircleOutlined
/>
}
>
{
intl
.
formatMessage
({
id
:
'balance.tijiao'
})
}
</
Button
>
<
/
Popconfirm
>
break;
return
(
<
Popconfirm
title=
{
intl
.
formatMessage
({
id
:
'balance.quedingyaotijiaoma'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'balance.shi'
})
}
cancelText=
{
intl
.
formatMessage
({
id
:
'balance.fou'
})
}
>
<
Button
type=
'primary'
icon=
{
<
CheckCircleOutlined
/>
}
>
{
intl
.
formatMessage
({
id
:
'balance.tijiao'
})
}
</
Button
>
</
Popconfirm
>
)
default
:
return
null
}
}
...
...
src/pages/balance/businessReconciliationCollaboration/readyPay/index.tsx
View file @
586c1966
...
...
@@ -78,7 +78,7 @@ const ReadyPay: React.FC = () => {
title
:
intl
.
formatMessage
({
id
:
'balance.caozuo'
}),
key
:
'operate'
,
dataIndex
:
'operate'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Link
to=
{
`readyPay/detail?id=${record.reconciliationId}&no=${
text
}`
}
>
{
intl
.
formatMessage
({
id
:
'balance.qingkuan'
})
}
</
Link
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Link
to=
{
`readyPay/detail?id=${record.reconciliationId}&no=${
record.reconciliationNo
}`
}
>
{
intl
.
formatMessage
({
id
:
'balance.qingkuan'
})
}
</
Link
>
}];
return
(
...
...
src/pages/balance/businessRequestFunds/admin/index.tsx
View file @
586c1966
This diff is collapsed.
Click to expand it.
src/pages/balance/businessRequestFunds/search/index.tsx
View file @
586c1966
...
...
@@ -5,18 +5,21 @@ import StandardTable from '@/components/StandardTable';
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
Submit
from
'@/components/NiceForm/components/Submit'
import
NiceForm
from
'@/components/NiceForm'
import
StatusTag
from
'@/components/StatusTag'
;
import
{
formatTimeString
}
from
'@/utils'
import
{
priceFormat
}
from
'@/utils/numberFomat'
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
;
import
{
getSettleAccountsBusinessApplyAmountBuyerApplyAmountList
,
getSettleAccountsBusinessApplyAmountItemApplyAmountStatus
}
from
'@/services/SettleV2Api'
import
{
createFormActions
}
from
'@formily/antd'
import
{
getIntl
}
from
'umi'
;
import
{
getIntl
,
Link
}
from
'umi'
;
import
{
fetchOptions
}
from
'../../common'
;
const
intl
=
getIntl
();
const
{
Link
,
Text
}
=
Typography
;
const
{
Text
}
=
Typography
;
// 请款单查询
...
...
@@ -24,65 +27,72 @@ const formActions = createFormActions();
const
Search
:
React
.
FC
=
()
=>
{
const
ref
=
useRef
<
any
>
({})
// const loadingTableData = (params) => {
// const { data } = await getPurchaseRequisitionPage(params)
// return data
// }
const
loadingTableData
=
async
(
params
)
=>
{
const
_params
=
{
...
params
};
if
(
params
.
createTimeStart
)
{
_params
.
createTimeStart
=
formatTimeString
(
Number
(
params
.
createTimeStart
),
'YYYY-MM-DD'
);
}
if
(
params
.
createTimeEnd
)
{
_params
.
createTimeEnd
=
formatTimeString
(
Number
(
params
.
createTimeEnd
),
'YYYY-MM-DD'
);
}
const
{
data
}
=
await
getSettleAccountsBusinessApplyAmountBuyerApplyAmountList
(
_params
)
return
data
}
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
intl
.
formatMessage
({
id
:
'balance.qingkuandanhao'
}),
key
:
'
order
No'
,
dataIndex
:
'
order
No'
,
title
:
intl
.
formatMessage
({
id
:
'balance.qingkuandanhao'
}),
key
:
'
apply
No'
,
dataIndex
:
'
apply
No'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Link
>
{
text
}
</
Link
>
<
Link
to=
{
`search/preivew?id=${record.id}&no=${text}`
}
>
{
text
}
</
Link
>
)
},
{
title
:
intl
.
formatMessage
({
id
:
'balance.danjuzhaiyao'
}),
key
:
'
details
'
,
dataIndex
:
'
details
'
,
title
:
intl
.
formatMessage
({
id
:
'balance.danjuzhaiyao'
}),
key
:
'
applyAbstract
'
,
dataIndex
:
'
applyAbstract
'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
style=
{
{
width
:
300
}
}
>
<
Text
type=
'secondary'
>
{
text
}
</
Text
>
</
Space
>
)
},
{
title
:
intl
.
formatMessage
({
id
:
'balance.qingkuanleixing'
}),
key
:
'
t
ype'
,
dataIndex
:
'
t
ype'
,
title
:
intl
.
formatMessage
({
id
:
'balance.qingkuanleixing'
}),
key
:
'
applyT
ype'
,
dataIndex
:
'
applyT
ype'
,
},
{
title
:
intl
.
formatMessage
({
id
:
'balance.qingkuanfang'
}),
title
:
intl
.
formatMessage
({
id
:
'balance.qingkuanfang'
}),
key
:
'payee'
,
dataIndex
:
'payee'
,
},
{
title
:
intl
.
formatMessage
({
id
:
'balance.qingkuanjine'
}),
key
:
'
total
'
,
dataIndex
:
'
total
'
,
title
:
intl
.
formatMessage
({
id
:
'balance.qingkuanjine'
}),
key
:
'
applyAmount
'
,
dataIndex
:
'
applyAmount
'
,
render
:
(
text
:
any
,
record
:
any
)
=>
`¥
${
priceFormat
(
text
)}
`
,
width
:
180
},
{
title
:
intl
.
formatMessage
({
id
:
'balance.yujifukuanriqi'
}),
key
:
'
p
ayTime'
,
dataIndex
:
'
p
ayTime'
,
title
:
intl
.
formatMessage
({
id
:
'balance.yujifukuanriqi'
}),
key
:
'
expectP
ayTime'
,
dataIndex
:
'
expectP
ayTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
formatTimeString
(
text
,
'YYYY-MM-DD HH:mm'
),
width
:
180
},
{
title
:
intl
.
formatMessage
({
id
:
'balance.danjushijian'
}),
title
:
intl
.
formatMessage
({
id
:
'balance.danjushijian'
}),
key
:
'createTime'
,
dataIndex
:
'createTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
formatTimeString
(
text
,
'YYYY-MM-DD HH:mm'
),
width
:
180
},
{
title
:
intl
.
formatMessage
({
id
:
'balance.waibuzhuangtai'
}),
key
:
'
externalState
'
,
dataIndex
:
'
externalState
'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
StatusTag
type=
'default'
title=
{
record
.
externalStateName
}
/>
title
:
intl
.
formatMessage
({
id
:
'balance.waibuzhuangtai'
}),
key
:
'
status
'
,
dataIndex
:
'
status
'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
StatusTag
type=
'default'
title=
{
record
.
status
}
/>
}];
return
(
<
PageHeaderWrapper
>
<
Card
>
<
StandardTable
//
fetchTableData={params => loadingTableData(params)}
fetchTableData=
{
params
=>
loadingTableData
(
params
)
}
columns=
{
columns
}
currentRef=
{
ref
}
rowKey=
"id"
...
...
@@ -94,9 +104,13 @@ const Search: React.FC = () => {
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'
order
No'
,
'
apply
No'
,
FORM_FILTER_PATH
,
)
useAsyncSelect
(
'status'
,
fetchOptions
(
getSettleAccountsBusinessApplyAmountItemApplyAmountStatus
),
);
}
}
schema=
{
{
type
:
'object'
,
...
...
@@ -108,12 +122,13 @@ const Search: React.FC = () => {
grid
:
true
},
properties
:
{
order
No
:
{
apply
No
:
{
type
:
'string'
,
"x-component"
:
'Search'
,
'x-component-props'
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'balance.qingshuruqingkuandanhao'
}),
placeholder
:
intl
.
formatMessage
({
id
:
'balance.qingshuruqingkuandanhao'
}),
align
:
'flex-start'
,
allowClear
:
true
,
},
},
}
...
...
@@ -131,42 +146,41 @@ const Search: React.FC = () => {
},
},
properties
:
{
"
diges
t"
:
{
"
applyAbstrac
t"
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'balance.qingshuruqingkuandanzhaiyao'
}),
placeholder
:
intl
.
formatMessage
({
id
:
'balance.qingshuruqingkuandanzhaiyao'
}),
allowClear
:
true
,
}
},
"
innerS
tatus"
:
{
"
s
tatus"
:
{
type
:
'string'
,
"x-component-props"
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'balance.qingxuanzezhuangtai'
})
placeholder
:
intl
.
formatMessage
({
id
:
'balance.qingxuanzezhuangtai'
}),
allowClear
:
true
,
},
enum
:
[
{
label
:
intl
.
formatMessage
({
id
:
'balance.suoyou'
}),
value
:
''
},
{
label
:
intl
.
formatMessage
({
id
:
'balance.daitijiao'
}),
value
:
1
},
{
label
:
intl
.
formatMessage
({
id
:
'balance.yitijiao'
}),
value
:
2
},
{
label
:
intl
.
formatMessage
({
id
:
'balance.yifukuan'
}),
value
:
3
},
]
enum
:
[]
},
"[
startDate,endDate
]"
:
{
"[
createTimeStart,createTimeEnd
]"
:
{
type
:
'string'
,
"x-component"
:
"dateSelect"
,
"x-component-props"
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'balance.danjushijianquanbu'
}),
placeholder
:
intl
.
formatMessage
({
id
:
'balance.danjushijianquanbu'
}),
allowClear
:
true
,
}
},
"[
startPayDate,endPayDate
]"
:
{
"[
expectPayTimeStart,expectPayTimeEnd
]"
:
{
type
:
'string'
,
"x-component"
:
"daterange"
,
"x-component-props"
:
{
placeholder
:
[
intl
.
formatMessage
({
id
:
'balance.yujifukuankaishishijian'
}),
intl
.
formatMessage
({
id
:
'balance.yujifukuanjieshushijian'
})],
placeholder
:
[
intl
.
formatMessage
({
id
:
'balance.yujifukuankaishishijian'
}),
intl
.
formatMessage
({
id
:
'balance.yujifukuanjieshushijian'
})],
allowClear
:
true
,
}
},
submit
:
{
'x-component'
:
'Submit'
,
'x-component-props'
:
{
children
:
intl
.
formatMessage
({
id
:
'balance.chaxun'
}),
children
:
intl
.
formatMessage
({
id
:
'balance.chaxun'
}),
},
},
},
...
...
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