6.16 询价修改新的外网平台地址
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { Button, Table, Tabs, Space, Progress, Radio, Input, Checkbox, Select, Modal, Pagination, Spin, Form, message, Upload } from 'antd';
|
import { Button, Table, Tabs, Space, Progress, Radio, Input, Checkbox, Select, Modal, Pagination, Spin, Form, message, Upload } from 'antd';
|
||||||
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, findPriceScoreList, getEval, getFile, calculationPriceScore, saveOffer, getPage, getProjectById } from './service';
|
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, findPriceScoreList, getEval, getFile, calculationPriceScore, saveOffer, getPage, getProjectById, getOfferUrl } from './service';
|
||||||
import '@/assets/ld_style.less'
|
import '@/assets/ld_style.less'
|
||||||
import FirstTrialTableDetailed from '../BidDetailedManager/module/FirstTrialTableDetailed';
|
import FirstTrialTableDetailed from '../BidDetailedManager/module/FirstTrialTableDetailed';
|
||||||
import { getSessionUserData, getRoomId, getUserToken, getProMethod, getProId, getSectionQuot } from '@/utils/session';
|
import { getSessionUserData, getRoomId, getUserToken, getProMethod, getProId, getSectionQuot } from '@/utils/session';
|
||||||
@ -439,22 +439,22 @@ const Index: React.FC<{}> = () => {
|
|||||||
bidEvalDetailDTOList = []
|
bidEvalDetailDTOList = []
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
let date = {
|
let date = {
|
||||||
bidEvalId: bidEvalId,
|
bidEvalId: bidEvalId,
|
||||||
reviewTurnId: reviewTurnId,
|
reviewTurnId: reviewTurnId,
|
||||||
category: typeCategory,
|
category: typeCategory,
|
||||||
assessRoomId: assessRoomId,
|
assessRoomId: assessRoomId,
|
||||||
reviewType: '2'
|
reviewType: '2'
|
||||||
}
|
}
|
||||||
getProgress({ ...date }).then((res) => {
|
getProgress({ ...date }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
if(res.data == 100){
|
if (res.data == 100) {
|
||||||
submitApi()
|
submitApi()
|
||||||
} else {
|
} else {
|
||||||
message.error("您有未完成的打分项,请完成后再提交!")
|
message.error("您有未完成的打分项,请完成后再提交!")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1021,8 +1021,14 @@ const Index: React.FC<{}> = () => {
|
|||||||
}
|
}
|
||||||
await getProjectById(getProId()).then(response => {
|
await getProjectById(getProId()).then(response => {
|
||||||
if (response?.code == 200 && response?.success == true) {
|
if (response?.code == 200 && response?.success == true) {
|
||||||
const resData = response?.data
|
const data = response?.data
|
||||||
window.open(`${REACT_APP_XUNJIA_REDIRECT}/inquiryoffer/ztbViewOffer.do?inquiry_no=${resData?.ebpProjectNumber}&offer_no=${offerId}`)
|
// window.open(`${REACT_APP_XUNJIA_REDIRECT}/inquiryoffer/ztbViewOffer.do?inquiry_no=${resData?.ebpProjectNumber}&offer_no=${offerId}`)
|
||||||
|
const page = `quote-ztbIndex%26inqueryNo=${data?.ebpProjectNumber}%26offNo=${record?.offerOrderNo}`
|
||||||
|
getOfferUrl({ userId: JwtToken, page }).then(response => {
|
||||||
|
if (response?.code == 200) {
|
||||||
|
window.open(response?.data);
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ export async function getEval(params: any) { // 获取页面接口数据
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function getFile(id: any) { // 查找是否有应答文件
|
export async function getFile(id: any) { // 查找是否有应答文件
|
||||||
return request('/api/biz-service-ebtp-rsms/v1/review/config/detail/doc/list?detailId='+id, {
|
return request('/api/biz-service-ebtp-rsms/v1/review/config/detail/doc/list?detailId=' + id, {
|
||||||
method: 'get',
|
method: 'get',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -136,8 +136,8 @@ export async function saveOffer(data: any) { // 自动报价保存
|
|||||||
* 查询已报名的供应商
|
* 查询已报名的供应商
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
export async function getPage(params?: any) {
|
export async function getPage(params?: any) {
|
||||||
return request(`/api/biz-service-ebtp-tender/v1/supplier_register/get_register/${params}`,{
|
return request(`/api/biz-service-ebtp-tender/v1/supplier_register/get_register/${params}`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -146,6 +146,17 @@ export async function saveOffer(data: any) { // 自动报价保存
|
|||||||
* 根据id查询项目信息
|
* 根据id查询项目信息
|
||||||
* @param id
|
* @param id
|
||||||
*/
|
*/
|
||||||
export function getProjectById(id: any) {
|
export function getProjectById(id: any) {
|
||||||
return request('/api/biz-service-ebtp-project/v1/projectRecord/' + id);
|
return request('/api/biz-service-ebtp-project/v1/projectRecord/' + id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 加密后的查看报价详情跳转地址
|
||||||
|
* @param params
|
||||||
|
*/
|
||||||
|
export function getOfferUrl(params: any) {
|
||||||
|
return request('/api/biz-service-ebtp-extend/v1/singlePoint/getSsoUrlByPage', {
|
||||||
|
method: 'GET',
|
||||||
|
params: params,
|
||||||
|
});
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
import React, { useEffect, useRef, useState } from 'react';
|
import React, { useEffect, useRef, useState } from 'react';
|
||||||
import { Button, Table, Tabs, Space, Progress, Radio, Input, Checkbox, Select, Modal, Menu, Pagination, Spin, Form, message, Collapse, Upload } from 'antd';
|
import { Button, Table, Tabs, Space, Progress, Radio, Input, Checkbox, Select, Modal, Menu, Pagination, Spin, Form, message, Collapse, Upload } from 'antd';
|
||||||
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, findPriceScoreList, getMemberInfo, getEval, getUnlock, getCheckData, isStatus, getFile, calculationPriceScore, saveOffer, getPage, getProjectById } from './service';
|
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, findPriceScoreList, getMemberInfo, getEval, getUnlock, getCheckData, isStatus, getFile, calculationPriceScore, saveOffer, getPage, getProjectById, getOfferUrl } from './service';
|
||||||
import '@/assets/ld_style.less'
|
import '@/assets/ld_style.less'
|
||||||
import FirstTrialTableDetailed from '../BidDetailedManager/module/FirstTrialTableDetailed';
|
import FirstTrialTableDetailed from '../BidDetailedManager/module/FirstTrialTableDetailed';
|
||||||
import { getExperts } from '../BidDetailedManager/service';
|
import { getExperts } from '../BidDetailedManager/service';
|
||||||
@ -466,22 +466,22 @@ const Index: React.FC<{}> = () => {
|
|||||||
bidEvalDetailDTOList = []
|
bidEvalDetailDTOList = []
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
let date = {
|
let date = {
|
||||||
bidEvalId: bidEvalId,
|
bidEvalId: bidEvalId,
|
||||||
reviewTurnId: reviewTurnId,
|
reviewTurnId: reviewTurnId,
|
||||||
category: typeCategory,
|
category: typeCategory,
|
||||||
assessRoomId: assessRoomId,
|
assessRoomId: assessRoomId,
|
||||||
reviewType: '2'
|
reviewType: '2'
|
||||||
}
|
}
|
||||||
getProgress({ ...date }).then((res) => {
|
getProgress({ ...date }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
if(res.data == 100){
|
if (res.data == 100) {
|
||||||
submitApi()
|
submitApi()
|
||||||
} else {
|
} else {
|
||||||
message.error("您有未完成的打分项,请完成后再提交!")
|
message.error("您有未完成的打分项,请完成后再提交!")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1052,8 +1052,14 @@ const Index: React.FC<{}> = () => {
|
|||||||
}
|
}
|
||||||
await getProjectById(getProId()).then(response => {
|
await getProjectById(getProId()).then(response => {
|
||||||
if (response?.code == 200 && response?.success == true) {
|
if (response?.code == 200 && response?.success == true) {
|
||||||
const resData = response?.data
|
const data = response?.data
|
||||||
window.open(`${REACT_APP_XUNJIA_REDIRECT}/inquiryoffer/ztbViewOffer.do?inquiry_no=${resData?.ebpProjectNumber}&offer_no=${offerId}`)
|
// window.open(`${REACT_APP_XUNJIA_REDIRECT}/inquiryoffer/ztbViewOffer.do?inquiry_no=${resData?.ebpProjectNumber}&offer_no=${offerId}`)
|
||||||
|
const page = `quote-ztbIndex%26inqueryNo=${data?.ebpProjectNumber}%26offNo=${record?.offerOrderNo}`
|
||||||
|
getOfferUrl({ userId: JwtToken, page }).then(response => {
|
||||||
|
if (response?.code == 200) {
|
||||||
|
window.open(response?.data);
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -215,8 +215,8 @@ export async function saveOffer(data: any) { // 自动报价保存
|
|||||||
* 查询已报名的供应商
|
* 查询已报名的供应商
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
export async function getPage(params?: any) {
|
export async function getPage(params?: any) {
|
||||||
return request(`/api/biz-service-ebtp-tender/v1/supplier_register/get_register/${params}`,{
|
return request(`/api/biz-service-ebtp-tender/v1/supplier_register/get_register/${params}`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -225,6 +225,17 @@ export async function saveOffer(data: any) { // 自动报价保存
|
|||||||
* 根据id查询项目信息
|
* 根据id查询项目信息
|
||||||
* @param id
|
* @param id
|
||||||
*/
|
*/
|
||||||
export function getProjectById(id: any) {
|
export function getProjectById(id: any) {
|
||||||
return request('/api/biz-service-ebtp-project/v1/projectRecord/' + id);
|
return request('/api/biz-service-ebtp-project/v1/projectRecord/' + id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 加密后的查看报价详情跳转地址
|
||||||
|
* @param params
|
||||||
|
*/
|
||||||
|
export function getOfferUrl(params: any) {
|
||||||
|
return request('/api/biz-service-ebtp-extend/v1/singlePoint/getSsoUrlByPage', {
|
||||||
|
method: 'GET',
|
||||||
|
params: params,
|
||||||
|
});
|
||||||
|
}
|
@ -2,8 +2,9 @@ import React, { useRef, useState } from 'react';
|
|||||||
import '@/assets/xsy_style.less';
|
import '@/assets/xsy_style.less';
|
||||||
import { Button, Card, message, Spin } from 'antd';
|
import { Button, Card, message, Spin } from 'antd';
|
||||||
import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table';
|
import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table';
|
||||||
import { getPage, getProjectById } from './service';
|
import { getOfferUrl, getPage, getProjectById } from './service';
|
||||||
import { getURLInformation } from '@/utils/CommonUtils';
|
import { getURLInformation } from '@/utils/CommonUtils';
|
||||||
|
import { getSessionUserData } from '@/utils/session';
|
||||||
|
|
||||||
const Sing: React.FC<{}> = () => {
|
const Sing: React.FC<{}> = () => {
|
||||||
//表格控制
|
//表格控制
|
||||||
@ -12,17 +13,24 @@ const Sing: React.FC<{}> = () => {
|
|||||||
const reviewTurnId = getURLInformation('turnId') == undefined ? '' : getURLInformation('turnId');
|
const reviewTurnId = getURLInformation('turnId') == undefined ? '' : getURLInformation('turnId');
|
||||||
//loading
|
//loading
|
||||||
const [loading, setLoading] = useState<boolean>(false)
|
const [loading, setLoading] = useState<boolean>(false)
|
||||||
|
//当前登录人账号
|
||||||
|
const userId = getSessionUserData()?.userId;
|
||||||
const toViewOffer = async (record: any) => {
|
const toViewOffer = async (record: any) => {
|
||||||
if(record.decryptStatus == "1") {
|
if (record.decryptStatus == "1") {
|
||||||
message.info("应答文件未解密,无法查看报价详情,请先到【应答文件查看】中进行解密")
|
message.info("应答文件未解密,无法查看报价详情,请先到【应答文件查看】中进行解密")
|
||||||
} else {
|
} else {
|
||||||
setLoading(true)
|
setLoading(true)
|
||||||
await getProjectById(record?.projectId).then((res) => {
|
await getProjectById(record?.projectId).then((res) => {
|
||||||
if (res?.code == 200 && res?.success == true) {
|
if (res?.code == 200 && res?.success == true) {
|
||||||
const data = res?.data;
|
const data = res?.data;
|
||||||
const url = `${REACT_APP_XUNJIA_REDIRECT}/inquiryoffer/ztbViewOffer.do?inquiry_no=${data?.ebpProjectNumber}&offer_no=${record?.offerOrderNo}`
|
// const url = `${REACT_APP_XUNJIA_REDIRECT}/inquiryoffer/ztbViewOffer.do?inquiry_no=${data?.ebpProjectNumber}&offer_no=${record?.offerOrderNo}`
|
||||||
window.open(url);
|
// window.open(url);
|
||||||
|
const page = `quote-ztbIndex%26inqueryNo=${data?.ebpProjectNumber}%26offNo=${record?.offerOrderNo}`
|
||||||
|
getOfferUrl({ userId, page }).then(response => {
|
||||||
|
if (response?.code == 200) {
|
||||||
|
window.open(response?.data);
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
@ -68,25 +76,25 @@ const Sing: React.FC<{}> = () => {
|
|||||||
return (
|
return (
|
||||||
<Card bordered={false} bodyStyle={{ padding: '24px 64px 24px 0px' }}>
|
<Card bordered={false} bodyStyle={{ padding: '24px 64px 24px 0px' }}>
|
||||||
<Spin spinning={loading} delay={300}>
|
<Spin spinning={loading} delay={300}>
|
||||||
<ProTable
|
<ProTable
|
||||||
columns={columns}
|
columns={columns}
|
||||||
actionRef={actionRef}
|
actionRef={actionRef}
|
||||||
search={false}
|
search={false}
|
||||||
options={false}
|
options={false}
|
||||||
size="small"
|
size="small"
|
||||||
pagination={false}
|
pagination={false}
|
||||||
request={async () =>
|
request={async () =>
|
||||||
await getPage(reviewTurnId).then((res) => {
|
await getPage(reviewTurnId).then((res) => {
|
||||||
// 表单搜索项会从 params 传入,传递给后端接口。
|
// 表单搜索项会从 params 传入,传递给后端接口。
|
||||||
return {
|
return {
|
||||||
data: res?.data,
|
data: res?.data,
|
||||||
success: res?.success,
|
success: res?.success,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
dateFormatter="string"
|
dateFormatter="string"
|
||||||
/>
|
/>
|
||||||
</Spin>
|
</Spin>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
@ -4,7 +4,7 @@ import request from '@/utils/request';
|
|||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
export async function getPage(params?: any) {
|
export async function getPage(params?: any) {
|
||||||
return request(`/api/biz-service-ebtp-tender/v1/supplier_register/get_register/${params}`,{
|
return request(`/api/biz-service-ebtp-tender/v1/supplier_register/get_register/${params}`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -13,6 +13,16 @@ export async function getPage(params?: any) {
|
|||||||
* 根据id查询项目信息
|
* 根据id查询项目信息
|
||||||
* @param id
|
* @param id
|
||||||
*/
|
*/
|
||||||
export function getProjectById(id: any) {
|
export function getProjectById(id: any) {
|
||||||
return request('/api/biz-service-ebtp-project/v1/projectRecord/' + id);
|
return request('/api/biz-service-ebtp-project/v1/projectRecord/' + id);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 加密后的查看报价详情跳转地址
|
||||||
|
* @param params
|
||||||
|
*/
|
||||||
|
export function getOfferUrl(params: any) {
|
||||||
|
return request('/api/biz-service-ebtp-extend/v1/singlePoint/getSsoUrlByPage', {
|
||||||
|
method: 'GET',
|
||||||
|
params: params,
|
||||||
|
});
|
||||||
|
}
|
Reference in New Issue
Block a user