4.6 代理增加供应商查阅回复字段,供应商增加已回复状态点击查看更新查阅回复字段接口

This commit is contained in:
jl-zhoujl2
2022-04-06 21:19:03 +08:00
parent fd1cfa84f2
commit 8aef96ef42
3 changed files with 33 additions and 7 deletions

View File

@ -121,6 +121,15 @@ const MentionDoubtReply: React.FC<{}> = () => {
3: { text: '已回复' } 3: { text: '已回复' }
} }
}, },
{
title: '供应商查阅回复',
dataIndex: 'replyReadStatus',
width: 150,
valueEnum: {
0: { text: '未查看' },
1: { text: '已查看' },
}
},
{ {
title: '操作', title: '操作',
width: 150, width: 150,

View File

@ -4,7 +4,7 @@ import { Button, Input, Select, Form, Upload, Modal, Checkbox, Card, message, Sp
import { UploadOutlined } from '@ant-design/icons'; import { UploadOutlined } from '@ant-design/icons';
import ProTable from '@ant-design/pro-table'; import ProTable from '@ant-design/pro-table';
import { queryingPagingData } from '@/utils/PageUtils'; 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 InquiryBox from '@/utils/InquiryBox';
import { commonMessage, deleteMessage, saveMessage } from '@/utils/MessageUtils'; import { commonMessage, deleteMessage, saveMessage } from '@/utils/MessageUtils';
import { getURLInformation, isEmpty } from '@/utils/CommonUtils'; import { getURLInformation, isEmpty } from '@/utils/CommonUtils';
@ -197,13 +197,20 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
* 查看 * 查看
* @param data * @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); setWhetherReadonly(true);
setVisible(true);
setBid(data.dissentDatasetId); setBid(data.dissentDatasetId);
setResultsDatasetId(data.resultsDatasetId); setResultsDatasetId(data.resultsDatasetId);
setWhetherToDisplayTheReply(String(data.dissentStatus) === '3'); setWhetherToDisplayTheReply(String(data.dissentStatus) === '3');
form.setFieldsValue(data); form.setFieldsValue(data);
setVisible(true);
} }
/** /**

View File

@ -29,10 +29,10 @@ export function saveDissent(data: any) {
* 修改数据 * 修改数据
* @param data * @param data
*/ */
export function updateDissent(data:any){ export function updateDissent(data: any) {
return request('/api/biz-service-ebtp-tender/v1/clarifydissent/update_dissent', { return request('/api/biz-service-ebtp-tender/v1/clarifydissent/update_dissent', {
method:'post', method: 'post',
data:data data: data
}); });
} }
@ -50,6 +50,16 @@ export function submitDissent(data: any) {
* 选择 标段 * 选择 标段
* @param projectId * @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); 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',
});
}