From 8aef96ef42fab6a1c6b5bf8706ae3581168cc5fd Mon Sep 17 00:00:00 2001 From: jl-zhoujl2 Date: Wed, 6 Apr 2022 21:19:03 +0800 Subject: [PATCH] =?UTF-8?q?4.6=20=E4=BB=A3=E7=90=86=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E6=9F=A5=E9=98=85=E5=9B=9E=E5=A4=8D?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=EF=BC=8C=E4=BE=9B=E5=BA=94=E5=95=86=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=B7=B2=E5=9B=9E=E5=A4=8D=E7=8A=B6=E6=80=81=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=9F=A5=E7=9C=8B=E6=9B=B4=E6=96=B0=E6=9F=A5=E9=98=85?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E5=AD=97=E6=AE=B5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/MentionDoubtReply.tsx | 9 +++++++++ .../SupplierQuestionsOrObjections.tsx | 13 ++++++++++--- .../SupplierQuestionsOrObjections/service.ts | 18 ++++++++++++++---- 3 files changed, 33 insertions(+), 7 deletions(-) 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', + }); +}