|
@@ -186,11 +186,14 @@ export default {
|
|
rechargeDate: [],
|
|
rechargeDate: [],
|
|
fullCarNoStr: '',
|
|
fullCarNoStr: '',
|
|
residentId: '',
|
|
residentId: '',
|
|
- ruleId: ''
|
|
|
|
|
|
+ ruleId: '',
|
|
|
|
+ ruleNamed: '',
|
|
|
|
+ credit: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
rechargeDates (item) {
|
|
rechargeDates (item) {
|
|
|
|
+ debugger
|
|
this.rechargeDays = '';
|
|
this.rechargeDays = '';
|
|
this.valueselect = '';
|
|
this.valueselect = '';
|
|
this.valueselectName = '';
|
|
this.valueselectName = '';
|
|
@@ -213,8 +216,9 @@ export default {
|
|
idType: this.rechargeDate[item.nameId].rechargeType,
|
|
idType: this.rechargeDate[item.nameId].rechargeType,
|
|
name: this.rechargeDate[item.nameId].sentAmount * (this.rechargeDate[item.nameId].sentType == 0 ? (1 * 1 / 100) : this.rechargeDate[item.nameId].sentType == 1 ? (1 * 1) : this.rechargeDate[item.nameId].sentType == 2 ? (1 * 1) : this.rechargeDate[item.nameId].sentType == 3 ? (1 * 1) : (1 * 1)),
|
|
name: this.rechargeDate[item.nameId].sentAmount * (this.rechargeDate[item.nameId].sentType == 0 ? (1 * 1 / 100) : this.rechargeDate[item.nameId].sentType == 1 ? (1 * 1) : this.rechargeDate[item.nameId].sentType == 2 ? (1 * 1) : this.rechargeDate[item.nameId].sentType == 3 ? (1 * 1) : (1 * 1)),
|
|
label: this.rechargeDate[item.nameId].sentAmount * (this.rechargeDate[item.nameId].sentType == 0 ? (1 * 1 / 100) : this.rechargeDate[item.nameId].sentType == 1 ? (1 * 1) : this.rechargeDate[item.nameId].sentType == 2 ? (1 * 1) : this.rechargeDate[item.nameId].sentType == 3 ? (1 * 1) : (1 * 1)) + (this.rechargeDate[item.nameId].sentType == 0 ? '元' : this.rechargeDate[item.nameId].sentType == 1 ? '月' : this.rechargeDate[item.nameId].sentType == 2 ? '天' : this.rechargeDate[item.nameId].sentType == 3 ? '小时' : '次'),
|
|
label: this.rechargeDate[item.nameId].sentAmount * (this.rechargeDate[item.nameId].sentType == 0 ? (1 * 1 / 100) : this.rechargeDate[item.nameId].sentType == 1 ? (1 * 1) : this.rechargeDate[item.nameId].sentType == 2 ? (1 * 1) : this.rechargeDate[item.nameId].sentType == 3 ? (1 * 1) : (1 * 1)) + (this.rechargeDate[item.nameId].sentType == 0 ? '元' : this.rechargeDate[item.nameId].sentType == 1 ? '月' : this.rechargeDate[item.nameId].sentType == 2 ? '天' : this.rechargeDate[item.nameId].sentType == 3 ? '小时' : '次'),
|
|
- chargeAmount: this.rechargeDate[item.nameId].basicMoney
|
|
|
|
|
|
+ chargeAmount: this.rechargeDate[item.nameId].basicMoney,
|
|
})
|
|
})
|
|
|
|
+
|
|
},
|
|
},
|
|
datePicker () {
|
|
datePicker () {
|
|
|
|
|
|
@@ -270,6 +274,7 @@ export default {
|
|
.catch(() => { });
|
|
.catch(() => { });
|
|
},
|
|
},
|
|
recharges (item) {
|
|
recharges (item) {
|
|
|
|
+ debugger
|
|
this.id = item.id;
|
|
this.id = item.id;
|
|
this.valueselect = this.complimentaryDays[0].label;
|
|
this.valueselect = this.complimentaryDays[0].label;
|
|
this.valueselectName = this.complimentaryDays[0].name;
|
|
this.valueselectName = this.complimentaryDays[0].name;
|
|
@@ -279,7 +284,7 @@ export default {
|
|
},
|
|
},
|
|
submit () {
|
|
submit () {
|
|
this.$http.post('/sc-community-web/parkingCar/carCharge', {
|
|
this.$http.post('/sc-community-web/parkingCar/carCharge', {
|
|
- amount: this.chargeAmount,
|
|
|
|
|
|
+ amount: this.chargeAmount * 100,
|
|
carType: this.cardType,
|
|
carType: this.cardType,
|
|
cardId: this.cardId,
|
|
cardId: this.cardId,
|
|
chargeMethod: this.idType,
|
|
chargeMethod: this.idType,
|
|
@@ -288,13 +293,19 @@ export default {
|
|
// orderNo: '',
|
|
// orderNo: '',
|
|
parkId: this.parkId,
|
|
parkId: this.parkId,
|
|
payChannel: this.paymentMethod,
|
|
payChannel: this.paymentMethod,
|
|
- payType: this.paymentMethod,
|
|
|
|
|
|
+ payMethod: this.paymentMethod,
|
|
remark: this.inputText,
|
|
remark: this.inputText,
|
|
validFrom: this.timeValue1,
|
|
validFrom: this.timeValue1,
|
|
validTo: this.timeValue2,
|
|
validTo: this.timeValue2,
|
|
platNo: this.fullCarNoStr,
|
|
platNo: this.fullCarNoStr,
|
|
userId: this.residentId,
|
|
userId: this.residentId,
|
|
|
|
+ ruleName: '',
|
|
|
|
+ credit: this.valueselectName,//充值月份
|
|
|
|
+ payStatus: this.paymentMethod
|
|
}).then(({ data, status, msg }) => {
|
|
}).then(({ data, status, msg }) => {
|
|
|
|
+ if (status == 0) {
|
|
|
|
+ this.$message.success('成功');
|
|
|
|
+ }
|
|
})
|
|
})
|
|
this.$emit('close');
|
|
this.$emit('close');
|
|
},
|
|
},
|