6.17 询价修改
This commit is contained in:
@ -4,7 +4,7 @@ import { Button, Card, message, Spin } from 'antd';
|
||||
import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table';
|
||||
import { getOfferUrl, getPage, getProjectById } from './service';
|
||||
import { getURLInformation } from '@/utils/CommonUtils';
|
||||
import { getSessionUserData } from '@/utils/session';
|
||||
import { getSessionRoleData } from '@/utils/session';
|
||||
|
||||
const Sing: React.FC<{}> = () => {
|
||||
//表格控制
|
||||
@ -13,24 +13,25 @@ const Sing: React.FC<{}> = () => {
|
||||
const reviewTurnId = getURLInformation('turnId') == undefined ? '' : getURLInformation('turnId');
|
||||
//loading
|
||||
const [loading, setLoading] = useState<boolean>(false)
|
||||
//当前登录人账号
|
||||
const userId = getSessionUserData()?.userId;
|
||||
//当前登录人角色
|
||||
const roleCode = getSessionRoleData()?.roleCode;
|
||||
const toViewOffer = async (record: any) => {
|
||||
if (record.decryptStatus == "1") {
|
||||
message.info("应答文件未解密,无法查看报价详情,请先到【应答文件查看】中进行解密")
|
||||
message.info("应答文件未解密,无法查看报价详情,请先到【应答文件查看】中进行解密");
|
||||
} else {
|
||||
setLoading(true)
|
||||
await getProjectById(record?.projectId).then((res) => {
|
||||
if (res?.code == 200 && res?.success == true) {
|
||||
const data = res?.data;
|
||||
const url = `${REACT_APP_XUNJIA_REDIRECT}/inquiryoffer/ztbViewOffer.do?inquiry_no=${data?.ebpProjectNumber}&offer_no=${record?.offerOrderNo}`
|
||||
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);
|
||||
// }
|
||||
// })
|
||||
// const url = `${REACT_APP_XUNJIA_REDIRECT}/inquiryoffer/ztbViewOffer.do?inquiry_no=${data?.ebpProjectNumber}&offer_no=${record?.offerOrderNo}`
|
||||
// window.open(url);
|
||||
const page = `quote-ztbIndex&inqueryNo=${data?.ebpProjectNumber}&offNo=${record?.offerOrderNo}`;
|
||||
const userId = roleCode == "ebtp-supplier" ? record.bidUserId : REACT_APP_XUNJIA_UID;
|
||||
getOfferUrl({ userId, page }).then(response => {
|
||||
if (response?.code == 200) {
|
||||
window.open(response?.data);
|
||||
}
|
||||
})
|
||||
}
|
||||
}).finally(() => {
|
||||
setLoading(false)
|
||||
|
Reference in New Issue
Block a user