Merge branch '20221017-算数错误调整优化' into 'release_20221028'
10.28 算数错误调整优化 See merge request eshop/fe_service_ebtp_frontend!36
This commit is contained in:
@ -3,7 +3,7 @@ import { Table, Button, Space, Form, Radio, Select, Input, InputNumber, Upload,
|
|||||||
import { TableListItem } from './data';
|
import { TableListItem } from './data';
|
||||||
import ExtendUpload from "@/utils/ExtendUpload";
|
import ExtendUpload from "@/utils/ExtendUpload";
|
||||||
import '@/assets/ld_style.less';
|
import '@/assets/ld_style.less';
|
||||||
import { findArithmeticError, getList, getRoomType, savePrice } from './service';
|
import { findArithmeticError, getList, getResponseTitle, getRoomType, savePrice } from './service';
|
||||||
import { getProMethod, getRoomId, getSessionRoleData, getSessionUserData } from '@/utils/session';
|
import { getProMethod, getRoomId, getSessionRoleData, getSessionUserData } from '@/utils/session';
|
||||||
import ProTable from '@ant-design/pro-table';
|
import ProTable from '@ant-design/pro-table';
|
||||||
|
|
||||||
@ -45,6 +45,7 @@ const Index: React.FC<{}> = () => {
|
|||||||
let roomId = getRoomId();//sessionStorage.getItem('roomId');//sessionStorage.getItem('roomId')
|
let roomId = getRoomId();//sessionStorage.getItem('roomId');//sessionStorage.getItem('roomId')
|
||||||
var roleId = getSessionUserData().roleIds;//操作员角色
|
var roleId = getSessionUserData().roleIds;//操作员角色
|
||||||
const [dateList, setDateList] = useState([]);
|
const [dateList, setDateList] = useState([]);
|
||||||
|
const [dataListTitle, setDataListTitle] = useState<string>("");
|
||||||
const [adjustForm] = Form.useForm();
|
const [adjustForm] = Form.useForm();
|
||||||
const [whetherReadonly, setWhetherReadonly] = useState<boolean>(false);
|
const [whetherReadonly, setWhetherReadonly] = useState<boolean>(false);
|
||||||
const [editState, setEditState] = useState<boolean>(false);
|
const [editState, setEditState] = useState<boolean>(false);
|
||||||
@ -66,7 +67,7 @@ const Index: React.FC<{}> = () => {
|
|||||||
}
|
}
|
||||||
const columns: any[] = [ // 列表数据
|
const columns: any[] = [ // 列表数据
|
||||||
{ title: `${showNameT.tbr}名称`, dataIndex: 'tendererName', key: 'tendererName' },
|
{ title: `${showNameT.tbr}名称`, dataIndex: 'tendererName', key: 'tendererName' },
|
||||||
{ title: '最新不含税总价', dataIndex: 'evaluatingContent', key: 'evaluatingContent' },
|
{ title: dataListTitle, dataIndex: 'evaluatingContent', key: 'evaluatingContent' },
|
||||||
{
|
{
|
||||||
title: '调整类别', dataIndex: 'type', key: 'type', render: (text: any, record: any, index: any) => {
|
title: '调整类别', dataIndex: 'type', key: 'type', render: (text: any, record: any, index: any) => {
|
||||||
let a = "";
|
let a = "";
|
||||||
@ -142,7 +143,12 @@ const Index: React.FC<{}> = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
await getResponseTitle(roomId).then(res => {
|
||||||
|
if (res.success == true) {
|
||||||
|
const data = res?.data;
|
||||||
|
setDataListTitle(data?.name);
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const setSelectChange = async (list: any) => {
|
const setSelectChange = async (list: any) => {
|
||||||
|
@ -3,18 +3,25 @@ import request from '@/utils/request';
|
|||||||
export async function getList(assessRoomId: any) { // 算数错误报价调整
|
export async function getList(assessRoomId: any) { // 算数错误报价调整
|
||||||
return request('/api/biz-service-ebtp-resps/v1/tfiletendererprice/getlist', {
|
return request('/api/biz-service-ebtp-resps/v1/tfiletendererprice/getlist', {
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {"assessRoomId": assessRoomId}
|
data: { "assessRoomId": assessRoomId }
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function getResponseTitle(assessRoomId: any) { // 算数错误报价调整-获取应答格式报价项名称
|
||||||
|
return request('/api/biz-service-ebtp-resps/v1/tfiletendererprice/getTitle', {
|
||||||
|
method: 'post',
|
||||||
|
data: { "assessRoomId": assessRoomId }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getRoomType(assessRoomId: any) { // 查询评审室数据
|
export async function getRoomType(assessRoomId: any) { // 查询评审室数据
|
||||||
return request('/api/biz-service-ebtp-process/v1/bizassessroom/'+`${assessRoomId}`, {
|
return request('/api/biz-service-ebtp-process/v1/bizassessroom/' + `${assessRoomId}`, {
|
||||||
method: 'get',
|
method: 'get',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function findArithmeticError(assessRoomId: any) { // 查询评审室数据
|
export async function findArithmeticError(assessRoomId: any) { // 查询评审室数据
|
||||||
return request('/api/biz-service-ebtp-rsms/v1/review/config/findArithmeticError/'+`${assessRoomId}`, {
|
return request('/api/biz-service-ebtp-rsms/v1/review/config/findArithmeticError/' + `${assessRoomId}`, {
|
||||||
method: 'get',
|
method: 'get',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user