Merge branch 'master' of http://10.124.128.2:8888/eshop/fe_service_ebtp_frontend into 20220613-将PUT和DELETE请求更改成POST请求

This commit is contained in:
jl-zhoujl2
2022-07-26 15:08:55 +08:00
162 changed files with 6179 additions and 1956 deletions

View File

@ -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 = [

View File

@ -335,8 +335,8 @@ const DownloadPurchasingDocuments: React.FC<{}> = () => {
} else {
Modal.warning({
title: <>
<p style={{ color: "#b30000" }}></p>
<p>---</p>
<p style={{ color: "#b30000" }}></p>
<p>---</p>
</>,
onOk() {
reject('下载失败');

View File

@ -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>

View File

@ -95,6 +95,8 @@ const LookingForBusinessOpportunitiesList: React.FC<{}> = () => {
}
const docSaveBtn = "compact";//保存按钮是否展示
//项目编号
const ebpProjectNumber = getURLInformation('number');
function getBsName() {
if (bidMethodDict.indexOf("procurement_mode_4") !== -1) {
@ -108,12 +110,14 @@ const LookingForBusinessOpportunitiesList: React.FC<{}> = () => {
useEffect(() => {
setTableLoading(true);
if (bidMethodDict.indexOf("procurement_mode_4") > -1) {
lookingForBussinessOther(bussinessParams).then(res => {
lookingForBussinessOther(isNotEmpty(ebpProjectNumber) ? { ...bussinessParams, ebpProjectNumber } : bussinessParams).then(res => {
isNotEmpty(window.location.search) && history.push(window.location.pathname);
setTableList(res.data);
setTableLoading(false);
})
} else {
lookingForBussiness(bussinessParams).then(res => {
lookingForBussiness(isNotEmpty(ebpProjectNumber) ? { ...bussinessParams, ebpProjectNumber } : bussinessParams).then(res => {
isNotEmpty(window.location.search) && history.push(window.location.pathname);
setTableList(res.data);
setTableLoading(false);
})
@ -132,6 +136,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 +159,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 +178,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>