diff --git a/src/pages/Tender/ProjectManager/MentionDoubtReply/components/MentionDoubtReply.tsx b/src/pages/Tender/ProjectManager/MentionDoubtReply/components/MentionDoubtReply.tsx index 31c7972..4939dbf 100644 --- a/src/pages/Tender/ProjectManager/MentionDoubtReply/components/MentionDoubtReply.tsx +++ b/src/pages/Tender/ProjectManager/MentionDoubtReply/components/MentionDoubtReply.tsx @@ -121,6 +121,15 @@ const MentionDoubtReply: React.FC<{}> = () => { 3: { text: '已回复' } } }, + { + title: '供应商查阅回复', + dataIndex: 'replyReadStatus', + width: 150, + valueEnum: { + 0: { text: '未查看' }, + 1: { text: '已查看' }, + } + }, { title: '操作', width: 150, diff --git a/src/pages/Tender/supplier/SupplierQuestionsOrObjections/components/SupplierQuestionsOrObjections.tsx b/src/pages/Tender/supplier/SupplierQuestionsOrObjections/components/SupplierQuestionsOrObjections.tsx index cba10d0..31efac2 100644 --- a/src/pages/Tender/supplier/SupplierQuestionsOrObjections/components/SupplierQuestionsOrObjections.tsx +++ b/src/pages/Tender/supplier/SupplierQuestionsOrObjections/components/SupplierQuestionsOrObjections.tsx @@ -4,7 +4,7 @@ import { Button, Input, Select, Form, Upload, Modal, Checkbox, Card, message, Sp import { UploadOutlined } from '@ant-design/icons'; import ProTable from '@ant-design/pro-table'; import { queryingPagingData } from '@/utils/PageUtils'; -import { deleteDissent, getSections, saveDissent, submitDissent, updateDissent } from '../service'; +import { changeSupStatus, deleteDissent, getSections, saveDissent, submitDissent, updateDissent } from '../service'; import InquiryBox from '@/utils/InquiryBox'; import { commonMessage, deleteMessage, saveMessage } from '@/utils/MessageUtils'; import { getURLInformation, isEmpty } from '@/utils/CommonUtils'; @@ -197,13 +197,20 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => { * 查看 * @param data */ - const view = (data: any) => { + const view = async (data: any) => { + if (data.dissentStatus == '3' && data.replyReadStatus != '1') {//已回复状态点击查看更新代理状态 + setSping(true); + const res = await changeSupStatus(data.id).finally(() => { + setSping(false); + }); + if (res) { } else { return } + } setWhetherReadonly(true); - setVisible(true); setBid(data.dissentDatasetId); setResultsDatasetId(data.resultsDatasetId); setWhetherToDisplayTheReply(String(data.dissentStatus) === '3'); form.setFieldsValue(data); + setVisible(true); } /** diff --git a/src/pages/Tender/supplier/SupplierQuestionsOrObjections/service.ts b/src/pages/Tender/supplier/SupplierQuestionsOrObjections/service.ts index e9ebce2..e4e1308 100644 --- a/src/pages/Tender/supplier/SupplierQuestionsOrObjections/service.ts +++ b/src/pages/Tender/supplier/SupplierQuestionsOrObjections/service.ts @@ -29,10 +29,10 @@ export function saveDissent(data: any) { * 修改数据 * @param data */ -export function updateDissent(data:any){ +export function updateDissent(data: any) { return request('/api/biz-service-ebtp-tender/v1/clarifydissent/update_dissent', { - method:'post', - data:data + method: 'post', + data: data }); } @@ -50,6 +50,16 @@ export function submitDissent(data: any) { * 选择 标段 * @param projectId */ -export function getSections (projectId:any) { +export function getSections(projectId: any) { return request('/api/biz-service-ebtp-tender/v1/supplier_register/packages/supplied/' + projectId); } + +/** + * 供应商查看已回复提疑 + * @param dissentId + */ +export function changeSupStatus(dissentId: any) { + return request('/api/biz-service-ebtp-tender/v1/clarifydissent/checkReply/' + dissentId, { + method: 'PUT', + }); +}