mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-14 15:00:14 +08:00
手动结算不能重复操作
This commit is contained in:
@@ -301,6 +301,7 @@ export default {
|
|||||||
chargingDegree: null,
|
chargingDegree: null,
|
||||||
},
|
},
|
||||||
tableData: [],
|
tableData: [],
|
||||||
|
isRequesting: false, // 手动结算请求状态
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -308,7 +309,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getSummaries(param) {
|
getSummaries(param) {
|
||||||
console.log(param, '添加调试输出');
|
console.log(param, '添加调试输出');
|
||||||
const { columns, data } = param;
|
const { columns, data } = param;
|
||||||
// console.log(data, 'data');
|
// console.log(data, 'data');
|
||||||
const sums = [];
|
const sums = [];
|
||||||
@@ -349,6 +350,16 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
confirmManualSettlement() {
|
confirmManualSettlement() {
|
||||||
|
if (this.isRequesting) {
|
||||||
|
this.$message({
|
||||||
|
showClose: true,
|
||||||
|
message: '手动结算订单已经提交,请勿重复操作',
|
||||||
|
type: 'warning'
|
||||||
|
});
|
||||||
|
return; // 如果正在请求中,则不再继续发送请求
|
||||||
|
}
|
||||||
|
this.isRequesting = true;
|
||||||
|
console.log('点击了手动结算按钮');
|
||||||
if (this.manualSettlementParam.chargingAmount == null) {
|
if (this.manualSettlementParam.chargingAmount == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user