3.24 黑名单等级逻辑

This commit is contained in:
jl-zhoujl2
2022-03-24 14:13:54 +08:00
parent dc5f496bfe
commit 15fd10746d
2 changed files with 88 additions and 76 deletions

View File

@ -2,8 +2,8 @@ import React, { useEffect,useState } from 'react';
import { Tabs, Collapse, Form, Input, Modal, Col, Row, Divider, Table, Button } from 'antd';
import ProTable, { ProColumns } from "@ant-design/pro-table";
import ExtendUpload from "@/utils/ExtendUpload";
import { getBlackList,getBlackListOld} from '../service';
import {} from '@/utils/CommonUtils'
import { getBlackList } from '../service';
import { isEmpty } from '@/utils/CommonUtils'
import { getRoomId, getSessionProjectData, getSessionRoleData, getSessionUserData } from '@/utils/session';
import ViewInvoiceFormModal from './ViewInvoiceFormModal';
@ -59,7 +59,8 @@ const ViewBlacklistFormModal: React.FC<ViewBlacklistFormModalProps> = (props) =>
const companyBlacklistColumns: ProColumns<any>[] = [
{ title: '序号', dataIndex: 'num', width: 60, render: (text: any, record: any, index: any) => `${index + 1}` },
{ title: '供应商名称', dataIndex: 'provinceName', },
{ title: '是否被列入黑名单', dataIndex: 'isBlack',render: (_, record) => {
{
title: '是否被列入黑名单', dataIndex: 'isBlack', render: (_, record) => {
let a = "";
if (record !== null) {
a = isBlackValue(record.isBlack);
@ -67,11 +68,19 @@ const ViewBlacklistFormModal: React.FC<ViewBlacklistFormModalProps> = (props) =>
return a;
}
},
{ title: '黑名单等级', dataIndex: 'lv', },
{
title: '黑名单等级', dataIndex: 'lv', render: (_, record) => {
if (record.isBlack == "1") {
return isEmpty(record.lv) || '1' ? '一级' : '二级';
}
return '';
}
},
{ title: '黑名单开始时间', dataIndex: 'startTime', },
{ title: '黑名单结束时间', dataIndex: 'endTime', },
{ title: '黑名单期限', dataIndex: 'term', },
{ title: '历史黑名单记录', dataIndex: 'hmdjl',render: (_, record) => {
{
title: '历史黑名单记录', dataIndex: 'hmdjl', render: (_, record) => {
return (
<>
{record.isBlack === "1" ?

View File

@ -2,7 +2,7 @@ import React, { useEffect,useState } from 'react';
import { Tabs, Collapse, Form, Input, Modal, Col, Row, Divider, Table } from 'antd';
import ProTable from "@ant-design/pro-table";
import ExtendUpload from "@/utils/ExtendUpload";
import {} from '@/utils/CommonUtils'
import { isEmpty } from '@/utils/CommonUtils'
interface ViewInvoiceFormModalProps {
@ -33,6 +33,9 @@ const ViewInvoiceFormModal: React.FC<ViewInvoiceFormModalProps> = (props) => {
}, {
title: '黑名单等级',
dataIndex: 'lv',
render: (_: any, record: any) => {
return isEmpty(record.lv) || '1' ? '一级' : '二级';
}
}, {
title: '黑名单开始时间',
dataIndex: 'startTime',