7.7 取消内拍出价价格校验

This commit is contained in:
jl-zhoujl2
2022-07-07 09:51:25 +08:00
parent fc9e58fd1e
commit 1e21cbe512
2 changed files with 11 additions and 11 deletions

View File

@ -324,11 +324,11 @@ const AuctionViewAuctions: React.FC = () => {
return;
}
// let differ = (Number(value) - Number(currentPrice)) % range
let differ = (value * 1000 - currentPrice * 1000) % (range * 1000)
if (differ !== 0) {
message.info('请增加加价幅度整数倍的金额!');
return;
}
// let differ = (value * 1000 - currentPrice * 1000) % (range * 1000)
// if (differ !== 0) {
// message.info('请增加加价幅度整数倍的金额!');
// return;
// }
//出价
confirmBidOrNot(tpId, value);
}

View File

@ -303,11 +303,11 @@ const AuctionViewAuctions: React.FC = () => {
return;
}
// let differ = (Number(value) - Number(currentPrice)) % range
let differ = (value * 1000 - currentPrice * 1000) % (range * 1000)
if (differ !== 0) {
message.info('请增加加价幅度整数倍的金额!');
return;
}
// let differ = (value * 1000 - currentPrice * 1000) % (range * 1000)
// if (differ !== 0) {
// message.info('请增加加价幅度整数倍的金额!');
// return;
// }
//出价
confirmBidOrNot(tpId, value);
}