手动结算订单支持自定义输入金额和充电度数

This commit is contained in:
2023-03-18 16:57:08 +08:00
parent 7966386ee2
commit 15bae72411
2 changed files with 7 additions and 1 deletions

View File

@@ -836,7 +836,7 @@ public class OrderService {
String chargingAmount = dto.getChargingAmount();
String chargingDegree = dto.getChargingDegree();
if (StringUtils.isBlank(chargingAmount) || StringUtils.isBlank(chargingDegree)) {
if (StringUtils.equals(chargingAmount, Constants.ZERO) || StringUtils.equals(chargingDegree, Constants.ZERO)) {
// 获取最后一次实时数据
List<RealTimeMonitorData> chargingRealTimeData = orderBasicInfoService.getChargingRealTimeData(orderBasicInfo.getTransactionCode());
if (CollectionUtils.isNotEmpty(chargingRealTimeData)) {

View File

@@ -234,6 +234,12 @@ export default {
this.dialogVisible = true;
},
confirmManualSettlement() {
if (this.manualSettlementParam.chargingAmount == null) {
return false;
}
if (this.manualSettlementParam.chargingDegree == null) {
return false;
}
this.manualSettlementParam.orderCode = this.orderInfo[0].orderCode;
console.log("确认手动结算订单param:", this.manualSettlementParam);
manualSettlementOrder(this.manualSettlementParam).then(response => {