Merge branch '20220406-zjl-提疑回复,增加供应商查阅提疑回复状态' into 'master-0422-合并'
4.22 提疑回复,增加供应商查阅提疑回复状态 See merge request eshop/fe_service_ebtp_frontend!23
This commit is contained in:
@ -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,
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -53,3 +53,13 @@ export function submitDissent(data: any) {
|
|||||||
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',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user