9.28 修改procurementTypeDict
This commit is contained in:
@ -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])
|
||||
// }
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user