Commit da292250 authored by XieZhiXiong's avatar XieZhiXiong

feat: 添加采购商内部状态相关

parent e28d6cb4
......@@ -1240,7 +1240,7 @@ export const BILL_TRADE_OPERATION = {
[BILL_TRADE_OPERATION_REPAYMENT]: '还款',
};
// 授信内部状态
// 授信内部状态(上级)
/**
* 待提交审核
*/
......@@ -1299,6 +1299,20 @@ export const CREDIT_INNER_STATUS = {
[CREDIT_INNER_STATUS_CONFIRM_SUCCESS]: '审核通过',
};
// 授信内部状态(下级)
/**
* 待提交
*/
export const CREDIT_INNER_STATUS_UNCOMMITTED_PURCHASER = 1;
/**
* 已提交
*/
export const CREDIT_INNER_STATUS_COMMITTED_PURCHASER = 2;
export const CREDIT_INNER_STATUS_PURCHASER = {
[CREDIT_INNER_STATUS_UNCOMMITTED_PURCHASER]: '待提交',
[CREDIT_INNER_STATUS_COMMITTED_PURCHASER]: '已提交',
};
// 授信外部状态
/**
* 待提交
......
......@@ -31,6 +31,9 @@ import {
CREDIT_STATUS_APPLYING,
CREDIT_STATUS_NORMAL,
CREDIT_STATUS_FROZEN,
CREDIT_INNER_STATUS_UNCOMMITTED_PURCHASER,
CREDIT_INNER_STATUS_COMMITTED_PURCHASER,
} from '@/constants';
// 授信状态 Badge map
......@@ -95,6 +98,12 @@ export const CREDIT_INNER_STATUS_BADGE_MAP = {
[CREDIT_INNER_STATUS_FAILED]: '#EF6260',
};
// 授信内部部状态 Badge map
export const CREDIT_INNER_STATUS_BADGE_MAP_PURCHASER = {
[CREDIT_INNER_STATUS_UNCOMMITTED_PURCHASER]: '#669EDE',
[CREDIT_INNER_STATUS_COMMITTED_PURCHASER]: '#41CC9E',
};
/**
* 资金账户相关常量
......
......@@ -18,7 +18,7 @@ import { CREDIT_INNER_STATUS, CREDIT_OUTER_STATUS, CREDIT_STATUS } from '@/const
import { normalizeFiledata, FileData } from '@/utils';
import AvatarWrap from '@/components/AvatarWrap';
import StatusTag from '@/components/StatusTag';
import { CREDIT_STATUS_TAG_MAP, CREDIT_OUTER_STATUS_TAG_MAP, CREDIT_INNER_STATUS_BADGE_MAP } from '../../../constant';
import { CREDIT_STATUS_TAG_MAP, CREDIT_OUTER_STATUS_TAG_MAP, CREDIT_INNER_STATUS_BADGE_MAP_PURCHASER } from '../../../constant';
const OuterCirculation = React.lazy(() => import('../OuterCirculation'));
const QuotaApplicationInfo = React.lazy(() => import('../QuotaApplicationInfo'));
......@@ -170,7 +170,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
<StatusTag type={CREDIT_OUTER_STATUS_TAG_MAP[quotaInfo?.member.outerStatus]} title={CREDIT_OUTER_STATUS[quotaInfo?.member.outerStatus]} />
</Descriptions.Item>
<Descriptions.Item label="内部状态">
<Badge color={CREDIT_INNER_STATUS_BADGE_MAP[quotaInfo?.member.innerStatus] || '#606266'} text={CREDIT_INNER_STATUS[quotaInfo?.member.innerStatus]} />
<Badge color={CREDIT_INNER_STATUS_BADGE_MAP_PURCHASER[quotaInfo?.member.innerStatus] || '#606266'} text={CREDIT_INNER_STATUS[quotaInfo?.member.innerStatus]} />
</Descriptions.Item>
</Descriptions>
</PageHeader>
......
......@@ -19,7 +19,7 @@ import StatusTag from '@/components/StatusTag';
import { listSearchSchema } from './schema';
import {
CREDIT_OUTER_STATUS_TAG_MAP,
CREDIT_INNER_STATUS_BADGE_MAP,
CREDIT_INNER_STATUS_BADGE_MAP_PURCHASER,
} from '../../constant';
import styles from './index.less';
......@@ -94,7 +94,7 @@ const QuotaFormQuery: React.FC = () => {
align: 'center',
filters: [],
onFilter: (value, record) => record.innerStatus === value,
render: (text, record) => <Badge color={CREDIT_INNER_STATUS_BADGE_MAP[record.innerStatus] || '#606266'} text={text} />,
render: (text, record) => <Badge color={CREDIT_INNER_STATUS_BADGE_MAP_PURCHASER[record.innerStatus] || '#606266'} text={text} />,
},
];
......
......@@ -29,7 +29,7 @@ import {
} from '@/constants';
import {
CREDIT_OUTER_STATUS_TAG_MAP,
CREDIT_INNER_STATUS_BADGE_MAP,
CREDIT_INNER_STATUS_BADGE_MAP_PURCHASER,
} from '../../constant';
import styles from './index.less';
......@@ -136,7 +136,7 @@ const QuotaPrSubmit: React.FC = () => {
title: '内部状态',
dataIndex: 'innerStatus',
align: 'center',
render: (text, record) => <Badge color={CREDIT_INNER_STATUS_BADGE_MAP[record.innerStatus] || '#606266'} text={record.innerStatusName} />,
render: (text, record) => <Badge color={CREDIT_INNER_STATUS_BADGE_MAP_PURCHASER[record.innerStatus] || '#606266'} text={record.innerStatusName} />,
},
{
title: '操作',
......
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