mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
配置充电停车优惠
This commit is contained in:
@@ -205,8 +205,8 @@
|
||||
<el-col :span="12">
|
||||
<el-form-item label="条件类型:" prop="conditionType">
|
||||
<el-radio-group v-model="chargeParkingDiscount.conditionType">
|
||||
<el-radio :label="1">固定电量</el-radio>
|
||||
<el-radio :label="2">固定时长</el-radio>
|
||||
<el-radio label="1">固定电量</el-radio>
|
||||
<el-radio label="2">固定时长</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -227,8 +227,8 @@
|
||||
<el-col :span="12">
|
||||
<el-form-item label="优惠类型:" prop="discountType">
|
||||
<el-radio-group v-model="chargeParkingDiscount.discountType">
|
||||
<el-radio :label="1">减时间(分钟)</el-radio>
|
||||
<el-radio :label="2">减金额(元)</el-radio>
|
||||
<el-radio label="1">减时间(分钟)</el-radio>
|
||||
<el-radio label="2">减金额(元)</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -364,7 +364,7 @@ import {
|
||||
getParkingInfoList,
|
||||
bindParkingPlatform,
|
||||
getRelationByStationId,
|
||||
updateThirdPartyStationRelation, saveChargeParkingDiscount,
|
||||
updateThirdPartyStationRelation, saveChargeParkingDiscount, getChargeParkingDiscount,
|
||||
} from "@/api/pile/station";
|
||||
import Whitelist from "@/views/pile/station/stationWhiteList";
|
||||
import OrderReport from "./orderReport.vue";
|
||||
@@ -430,6 +430,7 @@ export default {
|
||||
this.getRelationByStationId();
|
||||
this.getParkingList();
|
||||
this.queryStationInfo();
|
||||
this.getChargeParkingDiscount();
|
||||
},
|
||||
mounted() {
|
||||
this.initializeData(this.activeName);
|
||||
@@ -614,11 +615,19 @@ export default {
|
||||
saveChargeParkingDiscount() {
|
||||
this.chargeParkingDiscount.stationId = this.stationId;
|
||||
saveChargeParkingDiscount(this.chargeParkingDiscount).then((response) => {
|
||||
console.log("response", response);
|
||||
console.log("saveChargeParkingDiscount.response", response);
|
||||
this.$message.success(response.msg);
|
||||
})
|
||||
},
|
||||
|
||||
// 查询充电停车优惠配置
|
||||
getChargeParkingDiscount() {
|
||||
getChargeParkingDiscount(this.stationId).then((response) => {
|
||||
console.log("getChargeParkingDiscount.response", response);
|
||||
this.chargeParkingDiscount = response.data;
|
||||
})
|
||||
},
|
||||
|
||||
// 绑定站点与停车平台配置
|
||||
saveParkingSetting(parkingId) {
|
||||
console.log("parkingId", parkingId, this.stationId);
|
||||
|
||||
Reference in New Issue
Block a user