预约评标室

This commit is contained in:
517612449@qq.com
2022-08-11 17:32:15 +08:00
parent 114a434dce
commit a7ff7ccd9d
5 changed files with 130 additions and 28 deletions

View File

@ -17,6 +17,11 @@ export default {
// changeOrigin: true, // changeOrigin: true,
// pathRewrite: { '^': '' }, // pathRewrite: { '^': '' },
// }, // },
'/v1/eval/room/reserve/list': {
target: 'http://localhost:18017',//连接天宫的ng
changeOrigin: true,
pathRewrite: { '^': '' },
},
'/api/*': { '/api/*': {
target: 'http://10.242.31.158:18022',//连接天宫的ng target: 'http://10.242.31.158:18022',//连接天宫的ng
changeOrigin: true, changeOrigin: true,

View File

@ -109,6 +109,11 @@ export default [
path: '/', path: '/',
redirect: '/userexpert/login', redirect: '/userexpert/login',
}, },
{//委托撤回
name: 'ElecEvalReserve',
path: '/ElecEvalReserve',
component: './ElecEvalReserve',
},
...home,//各角色主页 ...home,//各角色主页
...menuaZhaoBiao,//项目菜单所有路由 ...menuaZhaoBiao,//项目菜单所有路由
{//问卷调查 {//问卷调查

View File

@ -26,11 +26,80 @@ const Index: React.FC<{}> = () => {
dataIndex: 'index', dataIndex: 'index',
valueType: 'index', valueType: 'index',
search: false, search: false,
width: 50, width: '2%',
}, },
{ {
title: '评标室', title: '评标室',
dataIndex: 'areaName', dataIndex: 'areaName',
search: true,
width: '15%',
},
{
title: '预约开始时间',
dataIndex: 'reserveStartDate',
search: true,
valueType: 'dateTime',
width: '15%',
},
{
title: '预约结束时间',
dataIndex: 'reserveEndDate',
search: true,
valueType: 'dateTime',
width: '15%',
},
{
title: '预约人',
dataIndex: 'reserveBy',
width: '5%',
search: false
},
{
title: '预约人联系方式',
dataIndex: 'reserveContactNumber',
width: '5%',
search: false
},
{
title: '项目名称',
dataIndex: 'projectName',
search: false,
width: '10%'
},
{
title: '标段名称',
dataIndex: 'sectionNames',
search: false,
width: '10%'
},
{
title: '操作',
width: '7%',
search: false,
render: (text: any, record: any) => {
return (
<>
<Button hidden={btnAuthority(['ebtp-supplier'])} type="text" onClick={() => {}} danger></Button>
</>
)
}
},
];
const otherColumns: any[] = [ //会议室预约
{
title: '序号',
dataIndex: 'index',
valueType: 'index',
search: false,
width: 50,
},
{
title: '会议室名称',
dataIndex: 'areaName',
}, },
{ {
title: '预约开始时间', title: '预约开始时间',
@ -56,18 +125,6 @@ const Index: React.FC<{}> = () => {
width: '10%', width: '10%',
search: false search: false
}, },
{
title: '项目名称',
dataIndex: 'projectName',
search: false,
width: '7%'
},
{
title: '标段名称',
dataIndex: 'sectionNames',
search: false,
width: '7%'
},
{ {
title: '操作', title: '操作',
width: '7%', width: '7%',
@ -84,10 +141,6 @@ const Index: React.FC<{}> = () => {
} }
}, },
]; ];
const otherColumns: any[] = [ //会议室预约
];
@ -105,10 +158,26 @@ const Index: React.FC<{}> = () => {
actionRef={checkRelationRef} actionRef={checkRelationRef}
className="proSearch" className="proSearch"
columns={columns} columns={columns}
params={{ }} params={{ "reserveType": "eval" }}
size='small' size='small'
request={async (params: any) => request={async (params) =>
{} await reserveList(params).then((res) => {
if (res.code == 200) {
let data = res.data;
return Promise.resolve({
data: data.records,
success: res.success,
total: res.data.total,
current: res.data.current,
});
}
return Promise.resolve({
data: [],
success: false,
total: 0,
current: 1,
});
})
} }
search={{ search={{
filterType: "query", filterType: "query",
@ -118,8 +187,7 @@ const Index: React.FC<{}> = () => {
key="resetText" key="resetText"
onClick={() => { onClick={() => {
form?.setFieldsValue({ form?.setFieldsValue({
projectName: null,
bidMethodDict: null,
current: 1, current: 1,
}) })
form?.submit(); form?.submit();
@ -147,12 +215,28 @@ const Index: React.FC<{}> = () => {
</TabPane> </TabPane>
<TabPane tab="会议预约" key="2"> <TabPane tab="会议预约" key="2">
<ProTable <ProTable
size='small'
className="proSearch" className="proSearch"
columns={otherColumns} columns={otherColumns}
params={{ "procurementMode": proTypeCode }} params={{ "reserveType": "meeting" }}
request={async (params: any) => size='small'
{} request={async (params) =>
await reserveList(params).then((res) => {
if (res.code == 200) {
let data = res.data;
return Promise.resolve({
data: data.records,
success: res.success,
total: res.data.total,
current: res.data.current,
});
}
return Promise.resolve({
data: [],
success: false,
total: 0,
current: 1,
});
})
} }
pagination={{ defaultPageSize: 10, showSizeChanger: false }}//默认显示条数 pagination={{ defaultPageSize: 10, showSizeChanger: false }}//默认显示条数
toolBarRender={false} toolBarRender={false}

View File

@ -0,0 +1,16 @@
import request from '@/utils/request';
export async function reserveList(data: any) { // 查询会议室/评标室预约情况
return request('/v1/eval/room/reserve/list', {
method: 'post',
data: {...data,pageNo: data.current}
});
}
export async function roomList(data: any) { // 查询评标室列表
///api/biz-service-ebtp-evaluation
return request('http://localhost:18017/v1/elec/eval/room/list', {
method: 'get',
params: data
});
}

View File

@ -1,8 +0,0 @@
import request from '@/utils/request';
export async function reserveList(data: any) { // 查询会议室/评标室
return request('/api/biz-service-ebtp-evaluation/v1/eval/room/reserve/list', {
method: 'get',
data: data
});
}