|
@@ -378,21 +378,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if (this.cycles && this.cycles.length) {
|
|
|
- if (this.paymentAmountDisabled) {
|
|
|
- this.cycles = this.cycles.map((item, index) => {
|
|
|
- return {
|
|
|
- ...item,
|
|
|
- paymentAmount: (index === 0 ? first / 100 : (other / 100))
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.cycles = this.cycles.map((item, index) => {
|
|
|
- return {
|
|
|
- ...item,
|
|
|
- paymentAmount: (index === 0 && !item.changeed ? money : item.paymentAmount)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ this.cycles = this.cycles.map((item, index) => {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ paymentAmount: (index === 0 ? first / 100 : (other / 100))
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
// if (!money) {
|
|
|
// this.$set(this.cycle, "paymentAmount", undefined);
|