3.10 工程代码同步master
This commit is contained in:
1613
src/pages/ZZhaoMu/JudgingPanel/index.tsx
Normal file
1613
src/pages/ZZhaoMu/JudgingPanel/index.tsx
Normal file
File diff suppressed because it is too large
Load Diff
40
src/pages/ZZhaoMu/JudgingPanel/judgList.less
Normal file
40
src/pages/ZZhaoMu/JudgingPanel/judgList.less
Normal file
@ -0,0 +1,40 @@
|
||||
@import '~antd/lib/style/themes/default.less';
|
||||
|
||||
.headerDiv{
|
||||
// padding: 16px 24px 0px 0px;
|
||||
margin-left: 0px;
|
||||
width:100%;
|
||||
// border-bottom: solid;
|
||||
// border-bottom-color: rgb(187,16,39);
|
||||
// border-width: 1px;
|
||||
height:32px;
|
||||
}
|
||||
.leftDiv{
|
||||
font-size: middle;
|
||||
font-weight: normal;
|
||||
background-color: rgb(187,16,39);
|
||||
padding: 3px 8px;
|
||||
width: 130px;
|
||||
float: left;
|
||||
height:30px;
|
||||
text-align: center;
|
||||
}
|
||||
.rightDiv{
|
||||
float: right;
|
||||
height:30px;
|
||||
text-align: center;
|
||||
}
|
||||
.mt15{
|
||||
margin-top: 15px;
|
||||
}
|
||||
.pl24{
|
||||
padding-left: 24px;
|
||||
}
|
||||
.pr16{
|
||||
padding-right: 16px;
|
||||
}
|
||||
.xsy-collapse{
|
||||
.ant-collapse-content-box{
|
||||
padding:0px 0px 16px 0px
|
||||
}
|
||||
}
|
98
src/pages/ZZhaoMu/JudgingPanel/service.ts
Normal file
98
src/pages/ZZhaoMu/JudgingPanel/service.ts
Normal file
@ -0,0 +1,98 @@
|
||||
import request from '@/utils/request';
|
||||
import { message } from 'antd';
|
||||
|
||||
//列表查询
|
||||
export async function getList(roomId?: any) {
|
||||
return request(`/api/biz-service-ebtp-rsms/v1/jury/zmmulti/list?roomId=${roomId}`,{
|
||||
method:'GET',
|
||||
});
|
||||
}
|
||||
//查询标包
|
||||
export async function getSecs(params?: any) {
|
||||
return request(`/api/biz-service-ebtp-rsms/v1/jury/section/list/${params.tpId}`,{
|
||||
params,
|
||||
});
|
||||
}
|
||||
//删除
|
||||
export async function delOne(params?: any) {
|
||||
return request(`/api/biz-service-ebtp-rsms/v1/jury/info/${params.id}`,{
|
||||
method:'DELETE'
|
||||
});
|
||||
}
|
||||
//创建评审小组
|
||||
export async function saveGroup(params?: any) {
|
||||
return request(`/api/biz-service-ebtp-rsms/v1/jury/info/save`,{
|
||||
method:'POST',
|
||||
data:{
|
||||
...params,
|
||||
},
|
||||
});
|
||||
}
|
||||
//添加成员
|
||||
export async function saveMember(params?: any) {
|
||||
return request(`/api/biz-service-ebtp-rsms/v1/jury/member/save`,{
|
||||
method:'POST',
|
||||
data:{
|
||||
...params,
|
||||
},
|
||||
});
|
||||
}
|
||||
//更换专家
|
||||
export async function changeEx(params?: any) {
|
||||
return request(`/api/biz-service-ebtp-rsms/v1/jury/change/apply/save`,{
|
||||
method:'POST',
|
||||
data:{
|
||||
...params,
|
||||
},
|
||||
});
|
||||
}
|
||||
//更换专家重新查volist
|
||||
export async function queryVoList(params?: any) {
|
||||
return request(`/api/biz-service-ebtp-rsms/v1/jury/detail/${params.id}`);
|
||||
}
|
||||
//更换专家
|
||||
export async function changeMember(params?: any) {
|
||||
return request(`/api/biz-service-ebtp-rsms/v1/jury/change/member`,{
|
||||
method:'PUT',
|
||||
data:{
|
||||
...params
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//提交申请
|
||||
export async function applyFor(params?: any) {
|
||||
return request(`/api/biz-service-ebtp-rsms/v1/jury/extract/apply/${params.id}`,{
|
||||
method:'POST',
|
||||
});
|
||||
}
|
||||
//查是否开启评标
|
||||
export async function roomStatus(id?: any) {
|
||||
return request(`/api/biz-service-ebtp-rsms/v1/jury/check/roomStatus/${id}`);
|
||||
}
|
||||
//下载模板
|
||||
export async function juryTem() {
|
||||
return request(`/api/biz-service-ebtp-extend/v1/template/warehouse/juryTemp`);
|
||||
};
|
||||
//重置密码接口
|
||||
export async function rePW(id: any) {
|
||||
return request(`/api/biz-service-ebtp-rsms/v1/jury/reset/password/${id}`, { method: 'POST' });
|
||||
};
|
||||
//重置密码
|
||||
export const rePassWord = async (id: any) => {
|
||||
const hide = message.loading('正在重置');
|
||||
try {
|
||||
const success = await rePW(id).then(res => { return res.success });
|
||||
hide();
|
||||
if (success) {
|
||||
message.success('重置成功');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} catch (error) {
|
||||
hide();
|
||||
message.error('重置失败请重试,或联系管理员!');
|
||||
return false;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user