Commit c43459ff authored by shenshaokai's avatar shenshaokai

feat: 结算-待审核请款单-新增三四级审核流程

parent f1629505
......@@ -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',
......
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
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment