项目监督列表、项目委托列表项目名称列宽优化
This commit is contained in:
@ -18,9 +18,9 @@ const Complete: React.FC<{}> = () => {
|
||||
|
||||
const columnsComplete: ProColumns<any>[] = [
|
||||
//已完成表格
|
||||
{ title: '项目名称', dataIndex: 'projectName', width: 200 },
|
||||
{ title: '项目名称', dataIndex: 'projectName', width: '35%' },
|
||||
{
|
||||
title: '费用类型', width: 100, render: (_, record) => {
|
||||
title: '费用类型', width: '5%', render: (_, record) => {
|
||||
let val = '-';
|
||||
if (record.expensesType == '1') {//标书费 采购文件费用 招募文件费用
|
||||
if (record.bidMethodDict === 'procurement_mode_1' || record.bidMethodDict === 'procurement_mode_2') {
|
||||
@ -40,14 +40,14 @@ const Complete: React.FC<{}> = () => {
|
||||
return val;
|
||||
}
|
||||
},
|
||||
{ title: '费用内容描述', dataIndex: 'commodityDescribe' },
|
||||
{ title: '下单时间', dataIndex: 'createDate', width: 100, valueType: 'dateTime' },
|
||||
{ title: '支付时间', dataIndex: 'paymentTime', width: 100, valueType: 'dateTime' },
|
||||
{ title: '金额(元)', dataIndex: 'amount', width: 80 },
|
||||
{ title: '费用内容描述', dataIndex: 'commodityDescribe', width: '25%' },
|
||||
{ title: '下单时间', dataIndex: 'createDate', width: '10%', valueType: 'dateTime' },
|
||||
{ title: '支付时间', dataIndex: 'paymentTime', width: '10%', valueType: 'dateTime' },
|
||||
{ title: '金额(元)', dataIndex: 'amount', width: '4%' },
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'option',
|
||||
width: 150,
|
||||
width: '3%',
|
||||
valueType: 'option',
|
||||
render: (_, record) => {
|
||||
if (record.bidInvoice == null) {
|
||||
@ -99,6 +99,8 @@ const Complete: React.FC<{}> = () => {
|
||||
getCheckboxProps: (record) => ({
|
||||
disabled: record.bidInvoice == null ? false : true
|
||||
}),
|
||||
columnWidth: '1px',
|
||||
fixed: true,
|
||||
}}
|
||||
pagination={{ defaultPageSize: 10 }} //默认显示条数
|
||||
// bordered
|
||||
|
@ -30,11 +30,16 @@ const finance: React.FC<{}> = () => {
|
||||
setActiveKey(key);
|
||||
}
|
||||
const columns: ProColumns<any>[] = [//未支付
|
||||
{ title: '序号', valueType: 'index', width: 60, hideInTable: true },
|
||||
{ title: '项目名称', dataIndex: 'projectName', },
|
||||
{ title: '订单号', dataIndex: 'orderNumber', width: 100, },
|
||||
{ title: '序号', valueType: 'index', width: 0, hideInTable: true },
|
||||
{ title: '项目名称', dataIndex: 'projectName', width: '25%', },
|
||||
{
|
||||
title: '费用类型', width: 100, render: (_, record) => {
|
||||
title: '订单号', dataIndex: 'orderNumber', width: '9.3%',
|
||||
render: (record) => {
|
||||
return <span style={{ wordBreak: 'break-all', wordWrap: 'break-word' }}>{record}</span>
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '费用类型', width: '5%', render: (_, record) => {
|
||||
let val = '-';
|
||||
if (record.expensesType == '1') {//标书费 采购文件费用 招募文件费用
|
||||
if (record.bidMethodDict === 'procurement_mode_1' || record.bidMethodDict === 'procurement_mode_2') {
|
||||
@ -54,11 +59,11 @@ const finance: React.FC<{}> = () => {
|
||||
return val;
|
||||
}
|
||||
},
|
||||
{ title: '费用内容描述', dataIndex: 'commodityDescribe', },
|
||||
{ title: '下单时间', dataIndex: 'createDate', width: 100, valueType: 'dateTime', },
|
||||
{ title: '金额(元)', dataIndex: 'amount', width: 100, },
|
||||
{ title: '费用内容描述', dataIndex: 'commodityDescribe', width: '25%', },
|
||||
{ title: '下单时间', dataIndex: 'createDate', width: '6%', valueType: 'dateTime', },
|
||||
{ title: '金额(元)', dataIndex: 'amount', width: '4%', },
|
||||
{
|
||||
title: '状态', dataIndex: 'state', width: 80,
|
||||
title: '状态', dataIndex: 'state', width: '3%',
|
||||
valueEnum: {
|
||||
"0": { text: '未支付', },
|
||||
"1": { text: '支付中', },
|
||||
@ -69,7 +74,7 @@ const finance: React.FC<{}> = () => {
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '操作', dataIndex: 'option', width: 150,
|
||||
title: '操作', dataIndex: 'option', width: '5%',
|
||||
valueType: 'option',
|
||||
render: (_, record) => {
|
||||
return (
|
||||
|
@ -22,13 +22,13 @@ const AlreadyConfirmed: React.FC<{}> = () => {
|
||||
title: '项目名称',
|
||||
dataIndex: 'projectName',
|
||||
key: 'projectName',
|
||||
width: '15%',
|
||||
width: '25%',
|
||||
},
|
||||
{
|
||||
title: '订单编号',
|
||||
dataIndex: 'orderNumber',
|
||||
key: 'orderNumber',
|
||||
width:140,
|
||||
width: '9.3%',
|
||||
render: (record) => {
|
||||
return <span style={{wordBreak:'break-all',wordWrap:'break-word'}}>{record}</span>
|
||||
}
|
||||
@ -37,7 +37,7 @@ const AlreadyConfirmed: React.FC<{}> = () => {
|
||||
title: '费用类别',
|
||||
dataIndex: 'expensesType',
|
||||
key: 'expensesType',
|
||||
width: '10%',
|
||||
width: '6.1%',
|
||||
valueType: 'select',
|
||||
valueEnum: {
|
||||
'1': '标书费',
|
||||
@ -68,35 +68,35 @@ const AlreadyConfirmed: React.FC<{}> = () => {
|
||||
title: '缴费单位',
|
||||
dataIndex: 'payerName',
|
||||
key: 'payerName',
|
||||
width: '12%',
|
||||
width: '15%',
|
||||
search: false,
|
||||
},
|
||||
{
|
||||
title: '订单金额(元)',
|
||||
title: '订单金额(元)',
|
||||
dataIndex: 'cartAmount',
|
||||
key: 'cartAmount',
|
||||
width: '10%',
|
||||
width: '6%',
|
||||
search: false,
|
||||
},
|
||||
{
|
||||
title: '实际支付金额(元)',
|
||||
title: '实际支付金额(元)',
|
||||
dataIndex: 'amount',
|
||||
key: 'amount',
|
||||
width: '10%',
|
||||
width: '5%',
|
||||
search: false,
|
||||
},
|
||||
{
|
||||
title: '付款人',
|
||||
dataIndex: 'payerUserName',
|
||||
key: 'payerUserName',
|
||||
width: '8%',
|
||||
width: '3.6%',
|
||||
search: false,
|
||||
},
|
||||
{
|
||||
title: '付款时间',
|
||||
dataIndex: 'paymentTime',
|
||||
key: 'paymentTime',
|
||||
width: '10%',
|
||||
width: '9.5%',
|
||||
valueType: 'dateTime',
|
||||
search: false,
|
||||
},
|
||||
@ -104,7 +104,7 @@ const AlreadyConfirmed: React.FC<{}> = () => {
|
||||
title: '支付方式',
|
||||
dataIndex: 'paymentMethod',
|
||||
key: 'paymentMethod',
|
||||
width: '8%',
|
||||
width: '5%',
|
||||
valueType: 'select',
|
||||
valueEnum: {
|
||||
'0': '线上支付',
|
||||
@ -115,7 +115,7 @@ const AlreadyConfirmed: React.FC<{}> = () => {
|
||||
title: '支付状态',
|
||||
dataIndex: 'state',
|
||||
key: 'state',
|
||||
width: '10%',
|
||||
width: '5%',
|
||||
valueType: 'select',
|
||||
valueEnum: {
|
||||
'2': '支付成功',
|
||||
@ -139,7 +139,7 @@ const AlreadyConfirmed: React.FC<{}> = () => {
|
||||
{
|
||||
title: '操作',
|
||||
valueType: 'option',
|
||||
width: '5%',
|
||||
width: '3.5%',
|
||||
render: (text, record, _, action) => (
|
||||
<a key="view" onClick={() => toView(record)} className="operation">
|
||||
查看
|
||||
|
@ -26,13 +26,13 @@ const WaitConfirmed: React.FC<{}> = () => {
|
||||
title: '项目名称',
|
||||
dataIndex: 'projectName',
|
||||
key: 'projectName',
|
||||
width: '20%',
|
||||
width: '25%',
|
||||
},
|
||||
{
|
||||
title: '订单编号',
|
||||
dataIndex: 'orderNumber',
|
||||
key: 'orderNumber',
|
||||
width: 140,
|
||||
width: '9.3%',
|
||||
render: (record) => {
|
||||
return <span style={{ wordBreak: 'break-all', wordWrap: 'break-word' }}>{record}</span>
|
||||
}
|
||||
@ -41,7 +41,7 @@ const WaitConfirmed: React.FC<{}> = () => {
|
||||
title: '费用类别',
|
||||
dataIndex: 'expensesType',
|
||||
key: 'expensesType',
|
||||
width: '10%',
|
||||
width: '6.1%',
|
||||
valueType: 'select',
|
||||
valueEnum: {
|
||||
'1': '标书费',
|
||||
@ -72,28 +72,28 @@ const WaitConfirmed: React.FC<{}> = () => {
|
||||
title: '缴费单位',
|
||||
dataIndex: 'payerName',
|
||||
key: 'payerName',
|
||||
width: '12%',
|
||||
width: '15%',
|
||||
search: false,
|
||||
},
|
||||
{
|
||||
title: '订单金额(元)',
|
||||
title: '订单金额(元)',
|
||||
dataIndex: 'cartAmount',
|
||||
key: 'cartAmount',
|
||||
width: '12%',
|
||||
width: '6.9%',
|
||||
search: false,
|
||||
},
|
||||
{
|
||||
title: '下单人',
|
||||
dataIndex: 'payerUserName',
|
||||
key: 'payerUserName',
|
||||
width: '8%',
|
||||
width: '3.6%',
|
||||
search: false,
|
||||
},
|
||||
{
|
||||
title: '付款时间',
|
||||
dataIndex: 'paymentTime',
|
||||
key: 'paymentTime',
|
||||
width: '10%',
|
||||
width: '9.5%',
|
||||
valueType: 'dateTime',
|
||||
search: false,
|
||||
},
|
||||
@ -101,7 +101,7 @@ const WaitConfirmed: React.FC<{}> = () => {
|
||||
title: '支付方式',
|
||||
dataIndex: 'paymentMethod',
|
||||
key: 'paymentMethod',
|
||||
width: '8%',
|
||||
width: '5%',
|
||||
valueType: 'select',
|
||||
valueEnum: {
|
||||
'0': '线上支付',
|
||||
@ -112,7 +112,7 @@ const WaitConfirmed: React.FC<{}> = () => {
|
||||
title: '支付状态',
|
||||
dataIndex: 'state',
|
||||
key: 'state',
|
||||
width: '10%',
|
||||
width: '5%',
|
||||
valueType: 'select',
|
||||
valueEnum: {
|
||||
'0': '待支付',
|
||||
@ -137,7 +137,7 @@ const WaitConfirmed: React.FC<{}> = () => {
|
||||
{
|
||||
title: '操作',
|
||||
valueType: 'option',
|
||||
width: '15%',
|
||||
width: '10%',
|
||||
render: (text, record, _, action) => {
|
||||
return (
|
||||
<>
|
||||
|
@ -46,12 +46,12 @@ const Invoice: React.FC<any> = (props) => {
|
||||
title: '项目名称',
|
||||
dataIndex: 'projectName',
|
||||
valueType: 'text',
|
||||
width: '12%',
|
||||
width: '25%',
|
||||
},
|
||||
{
|
||||
title: '费用名称',
|
||||
dataIndex: 'commodityName',
|
||||
width: '8%',
|
||||
width: '6.1%',
|
||||
valueType: 'text',
|
||||
hideInSearch: true,//列表中显示,查询条件中不显示
|
||||
render: (_, record) => {
|
||||
@ -78,14 +78,14 @@ const Invoice: React.FC<any> = (props) => {
|
||||
title: '支付单位',
|
||||
valueType: 'text',
|
||||
hideInSearch: true,//列表中显示,查询条件中不显示
|
||||
width: '10%',
|
||||
width: '15%',
|
||||
dataIndex: 'payerName',
|
||||
},
|
||||
{
|
||||
title: '支付方式',
|
||||
valueType: 'text',
|
||||
hideInSearch: true,//列表中显示,查询条件中不显示
|
||||
width: '8%',
|
||||
width: '5%',
|
||||
dataIndex: 'paymentMethod',
|
||||
valueEnum: {
|
||||
"0": { text: '线上', status: '' },
|
||||
@ -103,7 +103,7 @@ const Invoice: React.FC<any> = (props) => {
|
||||
title: '付款状态',
|
||||
valueType: 'text',
|
||||
hideInSearch: true,//列表中显示,查询条件中不显示
|
||||
width: '8%',
|
||||
width: '5%',
|
||||
dataIndex: 'payState',
|
||||
valueEnum: {
|
||||
"0": { text: '未支付', status: '' },
|
||||
@ -119,14 +119,14 @@ const Invoice: React.FC<any> = (props) => {
|
||||
title: '金额',
|
||||
valueType: 'money',
|
||||
hideInSearch: true,//列表中显示,查询条件中不显示
|
||||
width: '8%',
|
||||
width: '4%',
|
||||
dataIndex: 'amount',
|
||||
},
|
||||
{
|
||||
title: '发票状态',
|
||||
valueType: 'select',
|
||||
dataIndex: 'invoiceState',
|
||||
width: '8%',
|
||||
width: '4.8%',
|
||||
valueEnum: {
|
||||
"0": { text: '未开', status: '' },
|
||||
"1": { text: '已开', status: '' },
|
||||
@ -136,7 +136,7 @@ const Invoice: React.FC<any> = (props) => {
|
||||
title: '需要邮寄',
|
||||
valueType: 'text',
|
||||
hideInSearch: true,//列表中显示,查询条件中不显示
|
||||
width: '8%',
|
||||
width: '4.8%',
|
||||
dataIndex: 'mail',
|
||||
valueEnum: {
|
||||
"0": { text: '不需要', status: '' },
|
||||
@ -147,7 +147,7 @@ const Invoice: React.FC<any> = (props) => {
|
||||
title: '邮寄状态',
|
||||
valueType: 'text',
|
||||
dataIndex: 'mailState',
|
||||
width: '8%',
|
||||
width: '4.8%',
|
||||
valueEnum: {
|
||||
"0": { text: '未邮寄', status: '' },
|
||||
"1": { text: '已邮寄', status: '' },
|
||||
@ -158,7 +158,7 @@ const Invoice: React.FC<any> = (props) => {
|
||||
dataIndex: 'type',
|
||||
hideInSearch: true,//列表中显示,查询条件中不显示
|
||||
valueType: 'text',
|
||||
width: '8%',
|
||||
width: '5%',
|
||||
valueEnum: {
|
||||
"0": { text: '增值税普通发票' },
|
||||
"1": { text: '增值税专用发票' },
|
||||
|
@ -37,7 +37,7 @@ const InvoiceSupplier: React.FC<{}> = () => {
|
||||
title: '序号',
|
||||
dataIndex: 'key',
|
||||
key: 'key',
|
||||
width: 60,
|
||||
width: 50,
|
||||
search: false,
|
||||
},
|
||||
{
|
||||
@ -55,6 +55,7 @@ const InvoiceSupplier: React.FC<{}> = () => {
|
||||
dataIndex: 'type',
|
||||
key: 'type',
|
||||
valueType: 'select',
|
||||
width: 115,
|
||||
valueEnum: {
|
||||
'0': '增值税普通发票',
|
||||
'1': '增值税专用发票',
|
||||
@ -65,6 +66,7 @@ const InvoiceSupplier: React.FC<{}> = () => {
|
||||
title: '发票状态',
|
||||
dataIndex: 'state',
|
||||
valueType: 'select',
|
||||
width: 75,
|
||||
valueEnum: {
|
||||
'0': '未开',
|
||||
'1': '已开',
|
||||
@ -72,13 +74,14 @@ const InvoiceSupplier: React.FC<{}> = () => {
|
||||
},
|
||||
{
|
||||
title: '是否需要邮寄',
|
||||
width: 100,
|
||||
render:(_: any,record: any) => record.isMail == -1 ? '无需邮寄' : '需要邮寄',
|
||||
search: false,
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'option',
|
||||
width: 80,
|
||||
width: 70,
|
||||
valueType: 'option',
|
||||
search: false,
|
||||
render: (_, record) =>
|
||||
|
@ -147,17 +147,17 @@ const entrust: React.FC<{}> = () => {
|
||||
//委托列表
|
||||
const columns: ProColumns<any>[] = [
|
||||
{
|
||||
title: '序号', valueType: 'index', width: 60,
|
||||
title: '序号', valueType: 'index', width: 50,
|
||||
// render: (text: any, record: any, index: number,) => index + (pageData.pageNo - 1) * 10
|
||||
},
|
||||
{ title: '委托方', dataIndex: 'purchaser', width: '10%', search: false },
|
||||
{ title: '项目名称', dataIndex: 'projectName', },
|
||||
{ title: '方案编号', dataIndex: 'projectNumber', width: '10%', search: false },
|
||||
{ title: '委托方', dataIndex: 'purchaser', width: '15%', search: false },//, ellipsis: true
|
||||
{ title: '项目名称', dataIndex: 'projectName', width: 400, },
|
||||
{ title: '方案编号', dataIndex: 'projectNumber', width: '6%', search: false },
|
||||
{ title: '接收时间', dataIndex: 'createDate', width: '10%', valueType: 'dateTime', search: false },
|
||||
{ title: '采购方式', dataIndex: 'procurementMode', width: '10%', valueEnum: proTableValueEnum(dictData['procurement_mode=entrust']) },
|
||||
{ title: '标的类型', dataIndex: 'procurementType', width: '10%', hideInTable: typeVisible, search: false, valueEnum: proTableValueEnum(dictData['procurement_type=entrust']) },
|
||||
{ title: '采购方式', dataIndex: 'procurementMode', width: '6%', valueEnum: proTableValueEnum(dictData['procurement_mode=entrust']) },
|
||||
{ title: '标的类型', dataIndex: 'procurementType', width: '5%', hideInTable: typeVisible, search: false, valueEnum: proTableValueEnum(dictData['procurement_type=entrust']) },
|
||||
{
|
||||
title: '状态', dataIndex: 'status', width: '10%',
|
||||
title: '状态', dataIndex: 'status', width: '4%',
|
||||
valueEnum: {
|
||||
1: { text: '已拒收', status: 'Processing' },
|
||||
2: { text: '未接受', status: 'Warning' },
|
||||
@ -174,7 +174,7 @@ const entrust: React.FC<{}> = () => {
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '操作', width: '12%',
|
||||
title: '操作', width: '9%',
|
||||
valueType: 'option',
|
||||
render: (_, record) => {
|
||||
if (record.status === 1) {
|
||||
|
@ -40,15 +40,15 @@ const entrust: React.FC<{}> = () => {
|
||||
//委托列表
|
||||
const columns: ProColumns<any>[] = [
|
||||
{ title: '序号', valueType: 'index', width: 60, },
|
||||
{ title: '委托方', dataIndex: 'purchaser', width: '10%', search: false },
|
||||
{ title: '项目名称', dataIndex: 'projectName', },
|
||||
{ title: '方案编号', dataIndex: 'projectNumber', width: '10%', search: false },
|
||||
{ title: '委托方', dataIndex: 'purchaser', width: '15%', search: false },
|
||||
{ title: '项目名称', dataIndex: 'projectName', width: 400, },
|
||||
{ title: '方案编号', dataIndex: 'projectNumber', width: '6%', search: false },
|
||||
{ title: '接收时间', dataIndex: 'receiveTime', width: '10%', valueType: 'dateTime', search: false },
|
||||
{ title: '撤回时间', dataIndex: 'createDate', width: '10%', valueType: 'dateTime', search: false },
|
||||
{ title: '采购方式', dataIndex: 'procurementMode', width: '10%', valueEnum: proTableValueEnum(dictData['procurement_mode=entrust']) },
|
||||
{ title: '标的类型', dataIndex: 'procurementType', width: '10%', search: false, valueEnum: proTableValueEnum(dictData['procurement_type=entrust']) },
|
||||
{ title: '采购方式', dataIndex: 'procurementMode', width: '6%', valueEnum: proTableValueEnum(dictData['procurement_mode=entrust']) },
|
||||
{ title: '标的类型', dataIndex: 'procurementType', width: '5%', search: false, valueEnum: proTableValueEnum(dictData['procurement_type=entrust']) },
|
||||
{
|
||||
title: '操作', width: '12%',
|
||||
title: '操作', width: '4%',
|
||||
valueType: 'option',
|
||||
render: (_, record) => {
|
||||
return <Button type='text' onClick={() => recordIdSet(record.id)}>查看</Button>
|
||||
|
@ -45,7 +45,8 @@ const ProjectManage: React.FC<ProjectManageProps> = (props) => {
|
||||
{
|
||||
title: '采购方式',
|
||||
dataIndex: 'bidMethodDict',
|
||||
width: '8%',
|
||||
|
||||
width: '7.5%',
|
||||
valueEnum: proTableValueEnum(dictData[procurementModeEntrust]),
|
||||
initialValue: isNotEmpty(bidMethodDict) ? bidMethodDict : null ,
|
||||
},
|
||||
@ -58,7 +59,7 @@ const ProjectManage: React.FC<ProjectManageProps> = (props) => {
|
||||
title: '项目编号',
|
||||
dataIndex: 'ebpProjectNumber',
|
||||
search: false,
|
||||
width: '10%',
|
||||
width: '8%',
|
||||
},
|
||||
{
|
||||
title: '采购人',
|
||||
@ -70,12 +71,12 @@ const ProjectManage: React.FC<ProjectManageProps> = (props) => {
|
||||
title: '建档时间',
|
||||
dataIndex: 'createDate',
|
||||
search: false,
|
||||
width: '10%',
|
||||
width: '9.5%',
|
||||
},
|
||||
{
|
||||
title: '标的类型',
|
||||
dataIndex: 'procurementType',
|
||||
width: '8%',
|
||||
width: '5%',
|
||||
search: false,
|
||||
valueEnum: proTableValueEnum(dictData[procurementTypeEntrust]),
|
||||
},
|
||||
@ -83,12 +84,12 @@ const ProjectManage: React.FC<ProjectManageProps> = (props) => {
|
||||
title: '所属区域',
|
||||
dataIndex: 'regionDictName',
|
||||
search: false,
|
||||
width: '10%',
|
||||
width: '12%',
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
valueType: 'option',
|
||||
width: 150,
|
||||
width: '5%',
|
||||
render: (_: any, record: any) =>
|
||||
(
|
||||
<>
|
||||
|
@ -45,7 +45,7 @@ const FavoritesList: React.FC<FavoritesListProps> = (props) => {
|
||||
{
|
||||
title: '采购方式',
|
||||
dataIndex: 'bidMethodDict',
|
||||
width: '8%',
|
||||
width: '5%',
|
||||
valueEnum: proTableValueEnum(dictData[procurementModeEntrust]),
|
||||
initialValue: tabs === 'favoritesList' ? isNotEmpty(bidMethodDict) ? bidMethodDict : null : null,
|
||||
},
|
||||
@ -91,12 +91,12 @@ const FavoritesList: React.FC<FavoritesListProps> = (props) => {
|
||||
title: '建档时间',
|
||||
dataIndex: 'createDate',
|
||||
search: false,
|
||||
width: '10%',
|
||||
width: '9.5%',
|
||||
},
|
||||
{
|
||||
title: '标的类型',
|
||||
dataIndex: 'procurementType',
|
||||
width: '8%',
|
||||
width: '5%',
|
||||
search: false,
|
||||
valueEnum: proTableValueEnum(dictData[procurementTypeEntrust]),
|
||||
},
|
||||
@ -109,7 +109,7 @@ const FavoritesList: React.FC<FavoritesListProps> = (props) => {
|
||||
{
|
||||
title: '公开状态',
|
||||
dataIndex: 'isPublic',
|
||||
width: '10%',
|
||||
width: '4.5%',
|
||||
valueEnum: {
|
||||
0: {
|
||||
text: <Tag color='green'>未公开</Tag>
|
||||
@ -123,31 +123,33 @@ const FavoritesList: React.FC<FavoritesListProps> = (props) => {
|
||||
{
|
||||
title: '操作',
|
||||
valueType: 'option',
|
||||
width: 150,
|
||||
render: (_: any, record: any) => [
|
||||
<Button
|
||||
key="followUpProject"
|
||||
type="text"
|
||||
onClick={() =>
|
||||
followUpProject(record)
|
||||
}
|
||||
>
|
||||
项目跟进
|
||||
</Button>,
|
||||
<Popconfirm
|
||||
title="您确定要移除收藏吗?"
|
||||
onConfirm={() => removeFavorites(record)}
|
||||
okText="确定"
|
||||
cancelText="取消"
|
||||
>
|
||||
width: '4.5%',
|
||||
render: (text: any, record: any) => {
|
||||
return (<>
|
||||
<Button
|
||||
key="remove"
|
||||
key="followUpProject"
|
||||
type="text"
|
||||
onClick={() =>
|
||||
followUpProject(record)
|
||||
}
|
||||
>
|
||||
移除收藏
|
||||
项目跟进
|
||||
</Button>
|
||||
</Popconfirm>,
|
||||
]
|
||||
<Popconfirm
|
||||
title="您确定要移除收藏吗?"
|
||||
onConfirm={() => removeFavorites(record)}
|
||||
okText="确定"
|
||||
cancelText="取消"
|
||||
>
|
||||
<Button
|
||||
key="remove"
|
||||
type="text"
|
||||
>
|
||||
移除收藏
|
||||
</Button>
|
||||
</Popconfirm>
|
||||
</>)
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
@ -260,6 +262,8 @@ const FavoritesList: React.FC<FavoritesListProps> = (props) => {
|
||||
onReset={() => { pageDataSet({ pageNo: 1, pageSize: 10 }) }}
|
||||
rowKey={"id"}
|
||||
rowSelection={{
|
||||
columnWidth: '1px',
|
||||
fixed: true,
|
||||
selectedRowKeys: selectedRows,
|
||||
onChange: (_, selectedRows) => setSelectedRows(_),
|
||||
}}
|
||||
|
@ -45,7 +45,7 @@ const ProjectManage: React.FC<ProjectManageProps> = (props) => {
|
||||
{
|
||||
title: '采购方式',
|
||||
dataIndex: 'bidMethodDict',
|
||||
width: '8%',
|
||||
width: '7%',
|
||||
valueEnum: proTableValueEnum(dictData[procurementModeEntrust]),
|
||||
initialValue: tabs === 'projectList' ? isNotEmpty(bidMethodDict) ? bidMethodDict : null : null,
|
||||
},
|
||||
@ -77,12 +77,12 @@ const ProjectManage: React.FC<ProjectManageProps> = (props) => {
|
||||
title: '建档时间',
|
||||
dataIndex: 'createDate',
|
||||
search: false,
|
||||
width: '10%',
|
||||
width: '9.5%',
|
||||
},
|
||||
{
|
||||
title: '标的类型',
|
||||
dataIndex: 'procurementType',
|
||||
width: '8%',
|
||||
width: '5%',
|
||||
search: false,
|
||||
valueEnum: proTableValueEnum(dictData[procurementTypeEntrust]),
|
||||
},
|
||||
@ -95,7 +95,7 @@ const ProjectManage: React.FC<ProjectManageProps> = (props) => {
|
||||
{
|
||||
title: '公开状态',
|
||||
dataIndex: 'isPublic',
|
||||
width: '10%',
|
||||
width: '4.5%',
|
||||
valueEnum: {
|
||||
0: {
|
||||
text: <Tag color='green'>未公开</Tag>
|
||||
@ -109,7 +109,7 @@ const ProjectManage: React.FC<ProjectManageProps> = (props) => {
|
||||
{
|
||||
title: '操作',
|
||||
valueType: 'option',
|
||||
width: 150,
|
||||
width: '4.5%',
|
||||
render: (_: any, record: any) =>
|
||||
(
|
||||
<>
|
||||
@ -216,6 +216,8 @@ const ProjectManage: React.FC<ProjectManageProps> = (props) => {
|
||||
onReset={() => { pageDataSet({ pageNo: 1, pageSize: 10 }) }}
|
||||
rowKey={"id"}
|
||||
rowSelection={{
|
||||
columnWidth: '1px',
|
||||
fixed: true,
|
||||
selectedRowKeys: selectedRows,
|
||||
onChange: (_, selectedRows) => setSelectedRows(_),
|
||||
}}
|
||||
|
@ -101,7 +101,7 @@ const Index: React.FC<{}> = () => {
|
||||
search: proTypeCode?.length > 1 ? null : false,
|
||||
initialValue: bidMethodDict ? bidMethodDict : void 0,
|
||||
valueEnum: proTableValueEnumOther(dictData['procurement_mode=entrust'], proTypeCode),
|
||||
width: '10%',
|
||||
width: '7%',
|
||||
render: (_: any, record: any) => {
|
||||
if (proTypeCode.indexOf("procurement_mode_4") !== -1) {
|
||||
const recruitmentMethod = getDictName(dictData[recruitmentMethodRecord], record.examinationMethodDict)
|
||||
@ -124,7 +124,7 @@ const Index: React.FC<{}> = () => {
|
||||
title: proTypeCode.indexOf("procurement_mode_4") !== -1 ? '招募人' : '采购人',
|
||||
dataIndex: 'tendereeOrgName',
|
||||
search: false,
|
||||
width: '10%'
|
||||
width: '15%'
|
||||
},
|
||||
{
|
||||
title: '代理机构',
|
||||
@ -137,17 +137,17 @@ const Index: React.FC<{}> = () => {
|
||||
dataIndex: 'procurementType',
|
||||
valueEnum: proTableValueEnum(dictData['procurement_type=entrust']),
|
||||
search: false,
|
||||
width: '8%'
|
||||
width: '5%'
|
||||
},
|
||||
{
|
||||
title: '所属区域',
|
||||
dataIndex: 'regionDictName',
|
||||
search: false,
|
||||
width: '10%'
|
||||
width: '15%'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
width: '15%',
|
||||
width: '7%',
|
||||
search: false,
|
||||
render: (text: any, record: any) => {
|
||||
if (MethodDict == "procurement_mode_7") {
|
||||
@ -156,11 +156,11 @@ const Index: React.FC<{}> = () => {
|
||||
)
|
||||
} else {
|
||||
return (
|
||||
<Space>
|
||||
<>
|
||||
<Button hidden={btnAuthority(['ebtp-supplier'])} type="text" onClick={() => saveProject(record)} danger>项目跟进</Button>
|
||||
<Button hidden={btnAuthority(['ebtp-supplier'])} type="text" danger onClick={() => changePerson(record)} >修改负责人</Button>
|
||||
<Button hidden={btnAuthority(['ebtp-supplier'])} type="text" danger onClick={() => quitProject(record.id)} >退出项目</Button>
|
||||
</Space>
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -182,31 +182,33 @@ const Index: React.FC<{}> = () => {
|
||||
title: '采购类型',
|
||||
dataIndex: 'procurementTypeDict',
|
||||
search: false,
|
||||
width: '8%',
|
||||
width: '5%',
|
||||
valueEnum: proTableValueEnum(dictData['procurement_type=entrust'])
|
||||
},
|
||||
{
|
||||
title: '采购方式',
|
||||
dataIndex: 'bidMethodDict',
|
||||
search: false,
|
||||
width: '10%',
|
||||
width: '7%',
|
||||
valueEnum: proTableValueEnum(dictData['procurement_mode=entrust'])
|
||||
},
|
||||
{
|
||||
title: '已报名标段名称',
|
||||
dataIndex: 'bidSectName',
|
||||
width: '20%',
|
||||
search: false
|
||||
},
|
||||
{
|
||||
title: '已报名标段编号',
|
||||
dataIndex: 'bidSectBizNum',
|
||||
width: '10%',
|
||||
search: false
|
||||
},
|
||||
{
|
||||
title: '项目负责人',
|
||||
dataIndex: 'projectBidUser',
|
||||
search: false,
|
||||
width: '10%'
|
||||
width: '7%'
|
||||
},
|
||||
];
|
||||
const dataSource = [
|
||||
|
@ -123,7 +123,7 @@ const LookingForBusinessOpportunitiesList: React.FC = () => {
|
||||
title: '代理机构',
|
||||
dataIndex: 'tenderAgencyName',
|
||||
search: false,
|
||||
width: '10%',
|
||||
width: '15%',
|
||||
},
|
||||
{
|
||||
title: '项目分类',
|
||||
@ -136,12 +136,12 @@ const LookingForBusinessOpportunitiesList: React.FC = () => {
|
||||
title: '所属区域',
|
||||
dataIndex: 'regionDictName',
|
||||
search: false,
|
||||
width: '10%',
|
||||
width: '15%',
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
valueType: 'option',
|
||||
width: '15%',
|
||||
width: '8%',
|
||||
render: (text: any, record: any, index: number) => {
|
||||
return <>
|
||||
<Button key="participation" hidden={btnAuthority(["ebtp-supplier"])} type="text" danger onClick={() => participation(record)}>我要参与</Button>
|
||||
|
@ -132,6 +132,7 @@ const LookingForBusinessOpportunitiesList: React.FC<{}> = () => {
|
||||
title: bidMethodDict.indexOf("procurement_mode_4") !== -1 ? '招募方式' : '采购方式',
|
||||
dataIndex: 'bidMethodDict',
|
||||
search: bidMethodDict?.length > 1 ? void 0 : false,
|
||||
width: '7%',
|
||||
valueEnum: proTableValueEnumOther(dictData[procurementModeEntrust], bidMethodDict),
|
||||
render: (_: any, record: any) => {
|
||||
if (bidMethodDict.indexOf("procurement_mode_4") !== -1) {
|
||||
@ -154,16 +155,18 @@ const LookingForBusinessOpportunitiesList: React.FC<{}> = () => {
|
||||
title: bidMethodDict.indexOf("procurement_mode_4") !== -1 ? '招募人' : '采购人',
|
||||
dataIndex: 'tendereeOrgName',
|
||||
search: false,
|
||||
width: '15%'
|
||||
},
|
||||
{
|
||||
title: '代理机构',
|
||||
dataIndex: 'tenderAgencyName',
|
||||
search: false,
|
||||
width: '15%'
|
||||
},
|
||||
{
|
||||
title: '项目分类',
|
||||
dataIndex: 'procurementType',
|
||||
width: 80,
|
||||
width: '5%',
|
||||
valueEnum: proTableValueEnum(dictData[procurementTypeEntrust]),
|
||||
search: false,
|
||||
},
|
||||
@ -171,11 +174,12 @@ const LookingForBusinessOpportunitiesList: React.FC<{}> = () => {
|
||||
title: '所属区域',
|
||||
dataIndex: 'regionDictName',
|
||||
search: false,
|
||||
width: '15%'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
valueType: 'option',
|
||||
width: 150,
|
||||
width: '7%',
|
||||
render: (text: any, record: any, index: number) => {
|
||||
return <>
|
||||
<Button key="participation" hidden={btnAuthority(["ebtp-supplier"])} type="text" danger onClick={() => participation(record)}>我要参与</Button>
|
||||
|
Reference in New Issue
Block a user