mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-12 05:50:16 +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>
|
||||
@@ -215,7 +215,7 @@
|
||||
<el-form-item label="条件值:" prop="conditionValue">
|
||||
<el-input
|
||||
v-model="chargeParkingDiscount.conditionValue"
|
||||
placeholder="请输入数值"
|
||||
placeholder="请输入门槛电量或者门槛时长"
|
||||
type="number"
|
||||
min="0"
|
||||
/>
|
||||
@@ -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>
|
||||
@@ -237,7 +237,7 @@
|
||||
<el-form-item label="优惠值:" prop="discountValue">
|
||||
<el-input
|
||||
v-model="chargeParkingDiscount.discountValue"
|
||||
placeholder="请输入数值"
|
||||
placeholder="请输入优惠时间或者优惠金额"
|
||||
type="number"
|
||||
min="0"
|
||||
/>
|
||||
@@ -246,7 +246,7 @@
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="生效时间:" prop="timeRange">
|
||||
<!-- 开始时间 -->
|
||||
<el-time-select
|
||||
@@ -277,6 +277,17 @@
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12">
|
||||
<el-form-item label="停车平台类型:" prop="parkingPlatformId">
|
||||
<el-input
|
||||
v-model="chargeParkingDiscount.parkingPlatformId"
|
||||
placeholder="请输入停车平台类型(1-路通云停; 2-软杰; 3-深圳qcyun)"
|
||||
type="number"
|
||||
min="0"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
@@ -394,10 +405,12 @@ export default {
|
||||
},
|
||||
parkingInfo: {},
|
||||
chargeParkingDiscount:{
|
||||
id: "",
|
||||
stationId: "",
|
||||
conditionType: "",
|
||||
parkingPlatformId: 0,
|
||||
conditionType: 0,
|
||||
conditionValue: "",
|
||||
discountType: "",
|
||||
discountType: 0,
|
||||
discountValue: "",
|
||||
startTime: "",
|
||||
endTime: ""
|
||||
@@ -624,7 +637,13 @@ export default {
|
||||
getChargeParkingDiscount() {
|
||||
getChargeParkingDiscount(this.stationId).then((response) => {
|
||||
console.log("getChargeParkingDiscount.response", response);
|
||||
this.chargeParkingDiscount = response.data;
|
||||
// 如果存在数据,则赋值给chargeParkingDiscount
|
||||
if (response.data !== undefined) {
|
||||
// 将response.data中的时间转换为分钟数
|
||||
this.chargeParkingDiscount = response.data;
|
||||
// response.data.startTime = this.timeToMinutes(response.data.startTime);
|
||||
// response.data.endTime = this.timeToMinutes(response.data.endTime);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user