5.17 增加寻找商机中间页和供应商项目跟进跳转页

This commit is contained in:
jl-zhoujl2
2022-05-17 16:48:28 +08:00
parent 300b5a34d6
commit 60c6c254c4
10 changed files with 266 additions and 134 deletions

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);
})