Commit 37ef5bfe authored by 沈翠玲's avatar 沈翠玲

分期申请

parent 39408f6c
......@@ -410,7 +410,7 @@
).toSignificantDigits(2);
for (let i = 1; i < form.totalPeriod; i++) {
const playApplyDate = dayjs(form.firstApplyDate)
.add(i + 1, 'month')
.add(i, 'month')
.format('YYYY-MM-DD');
if (i === form.totalPeriod - 1) {
const other = list.reduce((pre, cur) => {
......@@ -454,9 +454,8 @@
Decimal(form.totalRepayAmount).div(Decimal(form.totalPeriod))
).toSignificantDigits(2);
for (let i = 0; i < form.totalPeriod; i++) {
console.log('i', i);
const playApplyDate = dayjs(form.firstApplyDate)
.add(i + 1, 'month')
.add(i, 'month')
.format('YYYY-MM-DD');
if (i === form.totalPeriod - 1) {
const other = list.reduce((pre, cur) => {
......
......@@ -266,7 +266,7 @@
).toSignificantDigits(2);
for (let i = 1; i < form.totalPeriod; i++) {
const playApplyDate = dayjs(form.firstApplyDate)
.add(i + 1, 'month')
.add(i, 'month')
.format('YYYY-MM-DD');
if (i === form.totalPeriod - 1) {
const other = list.reduce((pre, cur) => {
......@@ -310,7 +310,7 @@
for (let i = 0; i < form.totalPeriod; i++) {
console.log('i', i);
const playApplyDate = dayjs(form.firstApplyDate)
.add(i + 1, 'month')
.add(i, 'month')
.format('YYYY-MM-DD');
if (i === form.totalPeriod - 1) {
const other = list.reduce((pre, cur) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment