9.28 修改procurementTypeDict

This commit is contained in:
jl-zhoujl2
2022-09-28 09:52:13 +08:00
parent 566ebae68b
commit aa36a2bf94
3 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@ import { getPayandreply, getDetail } from './service';
import '@/assets/ld_style.less';
import { getProId, getProMethod, getDicData } from '@/utils/session';
import FileDown from '@/utils/Download';
import { getURLInformation, proTableValueEnum } from '@/utils/CommonUtils';
import { getURLInformation, multipleTypeTransform, proTableValueEnum } from '@/utils/CommonUtils';
import { btnAuthority } from '@/utils/authority';
import ProTable from '@ant-design/pro-table';
@ -235,7 +235,7 @@ const Index: React.FC<{}> = () => {
{
title: bidSectTypeDict,
dataIndex: 'procurementTypeDict',
valueEnum: proTableValueEnum(dictData['procurement_type=entrust']),
render: (_: any, record: any) => multipleTypeTransform(record.procurementTypeDict, proTableValueEnum(dictData['procurement_type=entrust'])),
},
{
title: bidcontactName,

View File

@ -193,7 +193,7 @@ const Index: React.FC<{}> = () => {
dataIndex: 'procurementTypeDict',
search: false,
width: '5%',
valueEnum: proTableValueEnum(dictData['procurement_type=entrust'])
render: (_: any, record: any) => multipleTypeTransform(record.procurementTypeDict, proTableValueEnum(dictData['procurement_type=entrust'])),
},
{
title: '采购方式',

View File

@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
import { Button, Table, Space, Modal, Collapse, Pagination } from 'antd';
import FileDown from '@/utils/Download';
import { getDicData } from '@/utils/session';
import { getURLInformation, proTableValueEnum } from '@/utils/CommonUtils';
import { getURLInformation, multipleTypeTransform, proTableValueEnum } from '@/utils/CommonUtils';
import { getDetail, getOpen } from './service';
import { btnAuthority } from '@/utils/authority';
import ProTable from '@ant-design/pro-table';
@ -114,7 +114,7 @@ const Index: React.FC<IndexProps> = (props) => {
{
title: '包件分类',
dataIndex: 'procurementTypeDict',
valueEnum: proTableValueEnum(dictData['procurement_type=entrust']),
render: (_: any, record: any) => multipleTypeTransform(record.procurementTypeDict, proTableValueEnum(dictData['procurement_type=entrust'])),
},
{
title: '包件联系人',
@ -190,7 +190,7 @@ const Index: React.FC<IndexProps> = (props) => {
getOpen(messProp.id).then((res) => {
if (res.code == 200) {
// if (res.data.length > 0) {
setDateList(res?.data[0])
setDateList(res?.data[0])
// }
}
})