预约评标室
This commit is contained in:
@ -17,6 +17,11 @@ export default {
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: { '^': '' },
|
||||
// },
|
||||
'/v1/eval/room/reserve/list': {
|
||||
target: 'http://localhost:18017',//连接天宫的ng
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^': '' },
|
||||
},
|
||||
'/api/*': {
|
||||
target: 'http://10.242.31.158:18022',//连接天宫的ng
|
||||
changeOrigin: true,
|
||||
|
@ -109,6 +109,11 @@ export default [
|
||||
path: '/',
|
||||
redirect: '/userexpert/login',
|
||||
},
|
||||
{//委托撤回
|
||||
name: 'ElecEvalReserve',
|
||||
path: '/ElecEvalReserve',
|
||||
component: './ElecEvalReserve',
|
||||
},
|
||||
...home,//各角色主页
|
||||
...menuaZhaoBiao,//项目菜单所有路由
|
||||
{//问卷调查
|
||||
|
@ -26,11 +26,80 @@ const Index: React.FC<{}> = () => {
|
||||
dataIndex: 'index',
|
||||
valueType: 'index',
|
||||
search: false,
|
||||
width: 50,
|
||||
width: '2%',
|
||||
},
|
||||
{
|
||||
title: '评标室',
|
||||
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: '预约开始时间',
|
||||
@ -56,18 +125,6 @@ const Index: React.FC<{}> = () => {
|
||||
width: '10%',
|
||||
search: false
|
||||
},
|
||||
{
|
||||
title: '项目名称',
|
||||
dataIndex: 'projectName',
|
||||
search: false,
|
||||
width: '7%'
|
||||
},
|
||||
{
|
||||
title: '标段名称',
|
||||
dataIndex: 'sectionNames',
|
||||
search: false,
|
||||
width: '7%'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
width: '7%',
|
||||
@ -84,10 +141,6 @@ const Index: React.FC<{}> = () => {
|
||||
}
|
||||
},
|
||||
];
|
||||
const otherColumns: any[] = [ //会议室预约
|
||||
|
||||
|
||||
];
|
||||
|
||||
|
||||
|
||||
@ -105,10 +158,26 @@ const Index: React.FC<{}> = () => {
|
||||
actionRef={checkRelationRef}
|
||||
className="proSearch"
|
||||
columns={columns}
|
||||
params={{ }}
|
||||
params={{ "reserveType": "eval" }}
|
||||
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={{
|
||||
filterType: "query",
|
||||
@ -118,8 +187,7 @@ const Index: React.FC<{}> = () => {
|
||||
key="resetText"
|
||||
onClick={() => {
|
||||
form?.setFieldsValue({
|
||||
projectName: null,
|
||||
bidMethodDict: null,
|
||||
|
||||
current: 1,
|
||||
})
|
||||
form?.submit();
|
||||
@ -147,12 +215,28 @@ const Index: React.FC<{}> = () => {
|
||||
</TabPane>
|
||||
<TabPane tab="会议预约" key="2">
|
||||
<ProTable
|
||||
size='small'
|
||||
className="proSearch"
|
||||
columns={otherColumns}
|
||||
params={{ "procurementMode": proTypeCode }}
|
||||
request={async (params: any) =>
|
||||
{}
|
||||
params={{ "reserveType": "meeting" }}
|
||||
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 }}//默认显示条数
|
||||
toolBarRender={false}
|
16
src/pages/ElecEvalReserve/service.ts
Normal file
16
src/pages/ElecEvalReserve/service.ts
Normal 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
|
||||
});
|
||||
}
|
@ -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
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user