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