Merge branch 'master' of https://gitlab.jlcucc.com:52302/coscoshipping/fe_service_ebtp_frontend
This commit is contained in:
@ -526,7 +526,7 @@ const Index: React.FC<{}> = () => {
|
||||
if (res.data.priceScoreMap.priceConfig.effectiveType == '1') {
|
||||
setTit1('全部报价')
|
||||
} else if (res.data.priceScoreMap.priceConfig.effectiveType == '2') {
|
||||
setTit1('去掉最高和最低各一家后的报价')
|
||||
setTit1('去掉最高'+res.data.priceScoreMap.priceConfig.removeMaxNumber + '家 和 最低' + res.data.priceScoreMap.priceConfig.removeMinNumber + '家的报价')
|
||||
} else if (res.data.priceScoreMap.priceConfig.effectiveType == '3') {
|
||||
setTit1('去掉最两家高和最低各一家后的报价')
|
||||
} else if (res.data.priceScoreMap.priceConfig.effectiveType == '4') {
|
||||
|
@ -563,7 +563,8 @@ const Index: React.FC<{}> = () => {
|
||||
if (res.data.priceScoreMap.priceConfig.effectiveType == '1') {
|
||||
setTit1('全部报价')
|
||||
} else if (res.data.priceScoreMap.priceConfig.effectiveType == '2') {
|
||||
setTit1('去掉最高和最低各一家后的报价')
|
||||
setTit1('去掉最高'+res.data.priceScoreMap.priceConfig.removeMaxNumber + '家 和 最低' + res.data.priceScoreMap.priceConfig.removeMinNumber + '家的报价')
|
||||
// setTit1('去掉最高和最低各一家后的报价')
|
||||
} else if (res.data.priceScoreMap.priceConfig.effectiveType == '3') {
|
||||
setTit1('去掉最两家高和最低各一家后的报价')
|
||||
} else if (res.data.priceScoreMap.priceConfig.effectiveType == '4') {
|
||||
|
@ -285,7 +285,7 @@ const ClarifyTheList: React.FC<{}> = () => {
|
||||
|
||||
/**
|
||||
* 供应商回执
|
||||
* @param record
|
||||
* @param record
|
||||
*/
|
||||
const supplierReviewReceipt = (record: any) => {
|
||||
setVisibleModalReceipt(true);
|
||||
@ -339,7 +339,7 @@ const ClarifyTheList: React.FC<{}> = () => {
|
||||
const [form] = Form.useForm();
|
||||
/**
|
||||
* 查看回执
|
||||
* @param data
|
||||
* @param data
|
||||
*/
|
||||
const viewReceipt = (data: any) => {
|
||||
setVisibleReceipt(true);
|
||||
@ -394,7 +394,7 @@ const ClarifyTheList: React.FC<{}> = () => {
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @param data
|
||||
* @param data
|
||||
*/
|
||||
const del = (id: any) => {
|
||||
setModalDelete(true);
|
||||
@ -411,7 +411,7 @@ const ClarifyTheList: React.FC<{}> = () => {
|
||||
|
||||
/**
|
||||
* 查看
|
||||
* @param data
|
||||
* @param data
|
||||
*/
|
||||
const examine = (data: any) => {
|
||||
setBid(data.attDatasetId);
|
||||
@ -615,7 +615,7 @@ const ClarifyTheList: React.FC<{}> = () => {
|
||||
/**
|
||||
*与原时间的校验
|
||||
*
|
||||
* @return {*}
|
||||
* @return {*}
|
||||
*/
|
||||
const verification = () => {
|
||||
//开标时间
|
||||
@ -644,7 +644,7 @@ const ClarifyTheList: React.FC<{}> = () => {
|
||||
|
||||
/**
|
||||
* 澄清保存
|
||||
* @param data
|
||||
* @param data
|
||||
*/
|
||||
const onFinish = (data: any) => {
|
||||
setButtonLoading(true);
|
||||
@ -704,6 +704,9 @@ const ClarifyTheList: React.FC<{}> = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const modTenderDocumentRadio = (data: any) => {
|
||||
}
|
||||
|
||||
const bidOpeningTimeRadio = (data: any) => {
|
||||
let value = data.target.value;
|
||||
setBidOpeningTimeFlag(value === '1');
|
||||
@ -763,9 +766,9 @@ const ClarifyTheList: React.FC<{}> = () => {
|
||||
setActiveKey(key);
|
||||
}
|
||||
|
||||
const [filterTimes, filterTimesSet] = useState<any>({});//根据传入标段筛选做为校验时间的标准时间
|
||||
const [filterTimes, filterTimesSet] = useState<any>({});//根据传入标段筛选做为校验时间的标准时间
|
||||
/**
|
||||
*根据传入标段筛选做为校验时间的标准时间
|
||||
*根据传入标段筛选做为校验时间的标准时间
|
||||
*开标时间-startTime;
|
||||
*招标文件获取截止时间-payEndTime;
|
||||
*应答截止时间-tenderEndTime;
|
||||
@ -854,6 +857,16 @@ const ClarifyTheList: React.FC<{}> = () => {
|
||||
{
|
||||
fieldCheck && (
|
||||
<>
|
||||
<Form.Item
|
||||
label={`是否修改招标文件`}
|
||||
name="modTenderDocument"
|
||||
rules={[{ required: true }]}
|
||||
>
|
||||
<Radio.Group onChange={modTenderDocumentRadio} disabled={whetherReadonly}>
|
||||
<Radio value="0">否</Radio>
|
||||
<Radio value="1">是</Radio>
|
||||
</Radio.Group>
|
||||
</Form.Item>
|
||||
{
|
||||
(bidMethodDict === 'procurement_mode_5' || bidMethodDict === 'procurement_mode_6') ? (
|
||||
<Form.Item
|
||||
@ -997,7 +1010,7 @@ const ClarifyTheList: React.FC<{}> = () => {
|
||||
label="澄清文件附件"
|
||||
name="attDatasetId"
|
||||
rules={[{
|
||||
required: true,
|
||||
// required: true,
|
||||
message: '请上传澄清文件!'
|
||||
}]}
|
||||
>
|
||||
@ -1117,4 +1130,4 @@ const ClarifyTheList: React.FC<{}> = () => {
|
||||
)
|
||||
}
|
||||
|
||||
export default ClarifyTheList;
|
||||
export default ClarifyTheList;
|
||||
|
@ -5,8 +5,8 @@ import ProTable from '@ant-design/pro-table';
|
||||
import { digitalConversionAmount } from '@/utils/NumberUtils';
|
||||
import { nowExceedSpecifiedTime } from '@/utils/DateUtils';
|
||||
import { getURLInformation, isNotEmpty } from '@/utils/CommonUtils';
|
||||
import { cancelOrder, getByOrderId, paySuccess, payTenderFile, saveGenerateOrder, woPay } from '../service';
|
||||
import { getProMethod, getSessionProjectData } from '@/utils/session';
|
||||
import { cancelOrder, getByOrderId, paySuccess, payTenderFile, saveGenerateOrder, woPay ,queryMarginFees} from '../service';
|
||||
import { getProMethod, getSessionProjectData} from '@/utils/session';
|
||||
import { isEmpty } from 'lodash';
|
||||
import { getAllFlowName, getAllFlowNameByRoomType, getbidQualification, moduleName } from '@/utils/FlowUtils';
|
||||
import { btnAuthority } from '@/utils/authority';
|
||||
@ -64,6 +64,8 @@ const IParticipate: React.FC = () => {
|
||||
//沃支付遮罩
|
||||
const [spinningModelLoading, setSpinningModelLoading] = useState<boolean>(false);
|
||||
const [form] = Form.useForm();
|
||||
// 存储sectionId列表的状态
|
||||
let sectionIds = '';
|
||||
useEffect(() => {
|
||||
init();
|
||||
}, []);
|
||||
@ -260,7 +262,17 @@ const IParticipate: React.FC = () => {
|
||||
*/
|
||||
const settlementOnOk = async () => {
|
||||
setSpinningModelLoading(true);
|
||||
if (Number(totalOrderAmount) === 0) {
|
||||
let zeroAmountItems = "";
|
||||
//查询biz_bid_expenses表 根据projectId和sectionIds 查询保证金费用是否为0
|
||||
queryMarginFees({ projectId: projectId, sectionIds: sectionIds }).then(res => {
|
||||
if (res.code === 200) {
|
||||
if (res.data) {
|
||||
//amount 为0的数据
|
||||
zeroAmountItems = res.data.filter(item => item.amount === 0);
|
||||
}
|
||||
}
|
||||
})
|
||||
if (Number(totalOrderAmount) === 0 || zeroAmountItems !== null) {
|
||||
paySuccess(orderNumber).then(res => {
|
||||
if (res.data) {
|
||||
message.success('支付成功!');
|
||||
@ -298,7 +310,7 @@ const IParticipate: React.FC = () => {
|
||||
}
|
||||
}).finally(() => setSpinningModelLoading(false));
|
||||
setOrderSpinning(false);
|
||||
}
|
||||
};
|
||||
Modal.confirm({
|
||||
title: '告知',
|
||||
content: <div>即将离开本系统跳转至【沃钱包-收银台】进行支付,在【沃钱包-收银台】支付前请仔细核对支付信息(包括:<span style={{ color: 'red', fontSize: 30 }}>商品名称、商户名称、订单号、订单金额</span>)是否与本系统订单信息一致。如若需要更改订单,请<span style={{ color: 'red', fontSize: 30 }}>关闭</span>【沃钱包-收银台】页面。</div>,
|
||||
@ -482,7 +494,7 @@ const IParticipate: React.FC = () => {
|
||||
}
|
||||
/**
|
||||
* 勾选计算金额
|
||||
* @param selectedRows
|
||||
* @param selectedRows
|
||||
*/
|
||||
const calculate = (selectedRows: any) => {
|
||||
let num = 0;
|
||||
@ -524,4 +536,4 @@ const IParticipate: React.FC = () => {
|
||||
</>
|
||||
)
|
||||
}
|
||||
export default IParticipate
|
||||
export default IParticipate
|
||||
|
@ -7,11 +7,11 @@
|
||||
* @FilePath: \ebtp-cloud-frontend\src\pages\IParticipate\service.ts
|
||||
*/
|
||||
|
||||
import request from "@/utils/request";
|
||||
import request from '@/utils/request';
|
||||
|
||||
/**
|
||||
* 获取购标信息
|
||||
* @param id
|
||||
* @param id
|
||||
*/
|
||||
export async function payTenderFile(id: string | null, roomType:any) {
|
||||
return request('/api/biz-service-ebtp-tender/v1/supplier_register/pay_tender_file/' + id + '?roomType=' + roomType);
|
||||
@ -41,7 +41,7 @@ export async function woPay(orderId: any) {
|
||||
}
|
||||
/**
|
||||
* 取消订单
|
||||
* @param id
|
||||
* @param id
|
||||
*/
|
||||
export async function cancelOrder(id: any) {
|
||||
return request('/api/biz-service-ebtp-expenses/v1/bizbidorder/cancelOrder/' + id, {
|
||||
@ -61,4 +61,10 @@ export function paySuccess (id:any){
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//保证金费用查询
|
||||
export async function queryMarginFees(params?: any) {
|
||||
return request(`/api/biz-service-ebtp-expenses/v1/bizbidexpenses/queryMarginFees`,{
|
||||
method:'POST',
|
||||
data:{...params,},
|
||||
});
|
||||
}
|
||||
|
@ -80,11 +80,24 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
||||
const proceedingTypeByBidMethodDict = getProceedingTypeByBidMethodDict(bidMethodDict);
|
||||
const proceedingTypeByDefId = getProceedingTypeByDefId(getDefId())
|
||||
const [spinning, setSping] = useState<boolean>(false);//加载遮罩
|
||||
const type = window.location.pathname.includes("SupplierQuestionsOrObjectionsDing");//获取url判断投标、定标提疑
|
||||
|
||||
const [proceedingTypeSelect] = useState(() => {
|
||||
let arr = proceedingTypeByDefId.map((item: any) =>
|
||||
<Option key={item.id} value={item.id}>{item.name}</Option>
|
||||
);
|
||||
return arr;
|
||||
//根据浏览器rul获取type值false为招标阶段提疑 true为定标阶段提疑
|
||||
//招标阶段 事项类别对应 招标文件异议、招标文件疑问 定标阶段事项类别对应 中标公示疑问、中标公示异议、中标结果疑问、中标结果异议
|
||||
if (!type) {
|
||||
let arr = proceedingTypeByDefId.slice(-2) // 截取最后两个元素
|
||||
.map((item: any) =>
|
||||
<Option key={item.id} value={item.id}>{item.name}</Option>
|
||||
);
|
||||
return arr;
|
||||
}else {
|
||||
let arr = proceedingTypeByDefId.slice(0, 4) // 截取前四个元素
|
||||
.map((item: any) =>
|
||||
<Option key={item.id} value={item.id}>{item.name}</Option>
|
||||
);
|
||||
return arr;
|
||||
}
|
||||
});
|
||||
const [proceedingTypeColumns] = useState(() => {
|
||||
let obj = {};
|
||||
@ -191,8 +204,6 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
||||
})
|
||||
}, []);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 查看
|
||||
* @param data
|
||||
@ -235,7 +246,7 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
||||
}
|
||||
/**
|
||||
* 根据id删除数据
|
||||
* @param id
|
||||
* @param id
|
||||
*/
|
||||
const deleteDataBasedOnId = (id: any) => {
|
||||
setVisibleDelete(false);
|
||||
@ -246,7 +257,7 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
||||
}
|
||||
/**
|
||||
* 提交
|
||||
* @param data 数据
|
||||
* @param data 数据
|
||||
*/
|
||||
const submit = (data: any) => {
|
||||
setVisibleSubmit(true);
|
||||
@ -254,7 +265,7 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
||||
}
|
||||
/**
|
||||
* 提交
|
||||
* @param data
|
||||
* @param data
|
||||
*/
|
||||
const submitDataBasedOnId = (data: any) => {
|
||||
setVisibleSubmit(false);
|
||||
@ -278,7 +289,7 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
||||
|
||||
/**
|
||||
* 弹出层关闭
|
||||
* @param data
|
||||
* @param data
|
||||
*/
|
||||
const handleCancel = () => {
|
||||
setVisible(false);
|
||||
@ -291,7 +302,7 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
||||
}
|
||||
/**
|
||||
* 表单提交
|
||||
* @param data
|
||||
* @param data
|
||||
*/
|
||||
const onFinish = (data: any) => {
|
||||
setVisible(false);
|
||||
@ -484,14 +495,16 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
||||
rowKey="id"
|
||||
size="small"
|
||||
pagination={{ defaultPageSize: 10 }}
|
||||
params={{ projectId: projectId, roomType: roomType, dissentType: "1" }}
|
||||
params={{ projectId: projectId, roomType: roomType, dissentType: "1" ,type:type}}
|
||||
actionRef={actionRef}
|
||||
columns={columns}
|
||||
request={params => queryingPagingData('/api/biz-service-ebtp-tender/v1/clarifydissent/supplier_dissents', 'post', params)}
|
||||
search={false}
|
||||
options={false}
|
||||
toolBarRender={() => [
|
||||
<Button key="added" onClick={added} type="primary" hidden={btnAuthority(["ebtp-supplier"])}>
|
||||
<Button key="added" onClick={added} type="primary"
|
||||
hidden={btnAuthority(["ebtp-supplier"])}
|
||||
>
|
||||
新增
|
||||
</Button>,
|
||||
]}
|
||||
@ -516,4 +529,4 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
||||
)
|
||||
}
|
||||
|
||||
export default SupplierQuestionsOrObjections;
|
||||
export default SupplierQuestionsOrObjections;
|
||||
|
@ -19,12 +19,12 @@ export function getProceedingTypeByBidMethodDict(bidMethodDict: string): any[] {
|
||||
case 'procurement_mode_1':
|
||||
case 'procurement_mode_2':
|
||||
arr = [
|
||||
getProceedingType('1', '异议评标结果'),
|
||||
getProceedingType('2', '异议开标过程'),
|
||||
getProceedingType('3', '异议中标公示'),
|
||||
getProceedingType('4', '异议中标结果'),
|
||||
getProceedingType('5', '提疑资格预审文件'),
|
||||
getProceedingType('6', '提疑招标文件'),
|
||||
getProceedingType('1', '中标公示疑问'),
|
||||
getProceedingType('2', '中标公示异议'),
|
||||
getProceedingType('3', '中标结果疑问'),
|
||||
getProceedingType('4', '中标结果异议'),
|
||||
getProceedingType('5', '招标文件异议'),
|
||||
getProceedingType('6', '招标文件疑问'),
|
||||
]
|
||||
break;
|
||||
case 'procurement_mode_3':
|
||||
@ -78,11 +78,12 @@ export function getProceedingTypeByDefId(defId: string): any[] {
|
||||
case 'bid_centralized_prequalification_bid':
|
||||
case 'bid_invitation':
|
||||
arr = [
|
||||
getProceedingType('1', '异议评标结果'),
|
||||
getProceedingType('2', '异议开标结果'),
|
||||
getProceedingType('3', '异议中标公示'),
|
||||
getProceedingType('4', '异议中标结果'),
|
||||
getProceedingType('6', '提疑招标文件'),
|
||||
getProceedingType('1', '中标公示疑问'),
|
||||
getProceedingType('2', '中标公示异议'),
|
||||
getProceedingType('3', '中标结果疑问'),
|
||||
getProceedingType('4', '中标结果异议'),
|
||||
getProceedingType('5', '招标文件异议'),
|
||||
getProceedingType('6', '招标文件疑问'),
|
||||
]
|
||||
break;
|
||||
case 'comparison_one_prequalification':
|
||||
|
Reference in New Issue
Block a user