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
c43459ff
Commit
c43459ff
authored
Jan 06, 2023
by
shenshaokai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 结算-待审核请款单-新增三四级审核流程
parent
f1629505
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
190 additions
and
0 deletions
+190
-0
balanceRoute.ts
config/routes/balanceRoute.ts
+50
-0
index.tsx
src/pages/balance/businessRequestFunds/four/index.tsx
+70
-0
index.tsx
src/pages/balance/businessRequestFunds/three/index.tsx
+70
-0
No files found.
config/routes/balanceRoute.ts
View file @
c43459ff
...
...
@@ -506,6 +506,56 @@ const BalancedRoute = {
noMargin
:
true
,
},
{
path
:
'/memberCenter/balance/businessRequestFunds/three'
,
component
:
'@/pages/balance/businessRequestFunds/three'
,
relationParentCode
:
'balance'
,
name
:
'待审核请款单 (三级)'
,
icon
:
'smile'
,
},
{
path
:
'/memberCenter/balance/businessRequestFunds/three/preview'
,
component
:
'@/pages/balance/businessRequestFunds/detail'
,
relationParentCode
:
'balance'
,
name
:
'待审核请款单 (三级)-详情'
,
icon
:
'smile'
,
hideInMenu
:
true
,
noMargin
:
true
,
},
{
path
:
'/memberCenter/balance/businessRequestFunds/three/detail'
,
component
:
'@/pages/balance/businessRequestFunds/detail'
,
relationParentCode
:
'balance'
,
name
:
'待审核请款单 (三级)-详情'
,
icon
:
'smile'
,
hideInMenu
:
true
,
noMargin
:
true
,
},
{
path
:
'/memberCenter/balance/businessRequestFunds/four'
,
component
:
'@/pages/balance/businessRequestFunds/four'
,
relationParentCode
:
'balance'
,
name
:
'待审核请款单 (四级)'
,
icon
:
'smile'
,
},
{
path
:
'/memberCenter/balance/businessRequestFunds/four/preview'
,
component
:
'@/pages/balance/businessRequestFunds/detail'
,
relationParentCode
:
'balance'
,
name
:
'待审核请款单 (四级)-详情'
,
icon
:
'smile'
,
hideInMenu
:
true
,
noMargin
:
true
,
},
{
path
:
'/memberCenter/balance/businessRequestFunds/four/detail'
,
component
:
'@/pages/balance/businessRequestFunds/detail'
,
relationParentCode
:
'balance'
,
name
:
'待审核请款单 (四级)-详情'
,
icon
:
'smile'
,
hideInMenu
:
true
,
noMargin
:
true
,
},
{
path
:
'/memberCenter/balance/businessRequestFunds/submit'
,
component
:
'@/pages/balance/businessRequestFunds/submit'
,
relationParentCode
:
'balance'
,
...
...
src/pages/balance/businessRequestFunds/four/index.tsx
0 → 100644
View file @
c43459ff
import
React
,
{
useRef
}
from
'react'
;
import
Table
from
'@/components/TableLayout'
;
import
{
Tag
,
Badge
,
Button
}
from
'antd'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
moment
from
'moment'
;
import
{
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getIntl
,
Link
}
from
'umi'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
applyAbstract
,
applyAmount
,
applyNo
,
applyType
,
createTime
,
expectPayTime
,
interiorStateName
,
operation
,
payee
}
from
'../columns'
;
import
{
schema
}
from
'../sechma'
;
import
{
getSettleAccountsBusinessApplyAmountToAddApplyAmountExamine2List
}
from
'@/services/SettleV2Api'
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
const
intl
=
getIntl
();
const
FourList
=
()
=>
{
const
format
=
(
text
,
fmt
?:
string
)
=>
{
return
<>
{
moment
(
text
).
format
(
fmt
||
"YYYY-MM-DD HH:mm:ss"
)
}
</>
}
const
columns
:
any
[]
=
[
{
...
applyNo
,
render
:
(
_text
,
record
)
=>
<>
{
AuthUrl
(
'four.detail'
)
?
<
Link
to=
{
`four/preview?id=${record.id}&no=${record.applyNo}`
}
>
{
_text
}
</
Link
>
:
_text
}
</>
},
{
...
applyAbstract
},
{
...
applyType
,
},
{
...
payee
,
},
{
...
applyAmount
,
render
:
(
_text
)
=>
`
${
intl
.
formatMessage
({
id
:
'common.money'
,
defaultMessage
:
'¥'
})}${
priceFormat
(
_text
)}
`
,
},
{
...
expectPayTime
,
render
:
(
_text
)
=>
format
(
_text
,
'YYYY-MM-DD'
),
},
{
...
createTime
,
render
:
(
_text
)
=>
format
(
_text
,
'YYYY-MM-DD HH:mm'
),
},
{
...
interiorStateName
,
render
:
(
_text
,
_record
)
=>
<
Tag
color=
{
INTERNALSTATE_COLOR
[
_record
.
interiorState
]
}
>
{
_text
}
</
Tag
>
},
{
...
operation
,
render
:
(
_text
,
record
)
=>
<
AuthButton
btnCode=
'four.audit'
><
Button
type=
'link'
href=
{
`/memberCenter/balance/businessRequestFunds/four/detail?id=${record.id}&no=${record.applyNo}`
}
>
{
intl
.
formatMessage
({
id
:
'dealAbility.shenhe'
,
defaultMessage
:
'审核'
})
}
</
Button
></
AuthButton
>,
},
]
return
(
<
Table
columns=
{
columns
}
effects=
"applyNo"
fetch=
{
getSettleAccountsBusinessApplyAmountToAddApplyAmountExamine2List
}
schema=
{
schema
}
/>
)
}
export
default
FourList
src/pages/balance/businessRequestFunds/three/index.tsx
0 → 100644
View file @
c43459ff
import
React
,
{
useRef
}
from
'react'
;
import
Table
from
'@/components/TableLayout'
;
import
{
Tag
,
Badge
,
Button
}
from
'antd'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
moment
from
'moment'
;
import
{
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getIntl
,
Link
}
from
'umi'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
applyAbstract
,
applyAmount
,
applyNo
,
applyType
,
createTime
,
expectPayTime
,
interiorStateName
,
operation
,
payee
}
from
'../columns'
;
import
{
schema
}
from
'../sechma'
;
import
{
getSettleAccountsBusinessApplyAmountToAddApplyAmountExamine2List
}
from
'@/services/SettleV2Api'
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
const
intl
=
getIntl
();
const
ThreeList
=
()
=>
{
const
format
=
(
text
,
fmt
?:
string
)
=>
{
return
<>
{
moment
(
text
).
format
(
fmt
||
"YYYY-MM-DD HH:mm:ss"
)
}
</>
}
const
columns
:
any
[]
=
[
{
...
applyNo
,
render
:
(
_text
,
record
)
=>
<>
{
AuthUrl
(
'three.detail'
)
?
<
Link
to=
{
`three/preview?id=${record.id}&no=${record.applyNo}`
}
>
{
_text
}
</
Link
>
:
_text
}
</>
},
{
...
applyAbstract
},
{
...
applyType
,
},
{
...
payee
,
},
{
...
applyAmount
,
render
:
(
_text
)
=>
`
${
intl
.
formatMessage
({
id
:
'common.money'
,
defaultMessage
:
'¥'
})}${
priceFormat
(
_text
)}
`
,
},
{
...
expectPayTime
,
render
:
(
_text
)
=>
format
(
_text
,
'YYYY-MM-DD'
),
},
{
...
createTime
,
render
:
(
_text
)
=>
format
(
_text
,
'YYYY-MM-DD HH:mm'
),
},
{
...
interiorStateName
,
render
:
(
_text
,
_record
)
=>
<
Tag
color=
{
INTERNALSTATE_COLOR
[
_record
.
interiorState
]
}
>
{
_text
}
</
Tag
>
},
{
...
operation
,
render
:
(
_text
,
record
)
=>
<
AuthButton
btnCode=
'three.audit'
><
Button
type=
'link'
href=
{
`/memberCenter/balance/businessRequestFunds/three/detail?id=${record.id}&no=${record.applyNo}`
}
>
{
intl
.
formatMessage
({
id
:
'dealAbility.shenhe'
,
defaultMessage
:
'审核'
})
}
</
Button
></
AuthButton
>,
},
]
return
(
<
Table
columns=
{
columns
}
effects=
"applyNo"
fetch=
{
getSettleAccountsBusinessApplyAmountToAddApplyAmountExamine2List
}
schema=
{
schema
}
/>
)
}
export
default
ThreeList
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