浏览代码

fix:额度支用bug修复

jiand 5 月之前
父节点
当前提交
202cb0fc68
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/financingManage/limitExpenditure/components/FinancingInfo.vue

+ 3 - 3
src/views/financingManage/limitExpenditure/components/FinancingInfo.vue

@@ -231,7 +231,7 @@ export default {
       default: false
     },
     detailsInfo: {
-      type: Object,
+      type: Object,  
       default: () => {}
     },
     endDate: {
@@ -441,9 +441,9 @@ export default {
       const { repaymentAdjustment, startingDate, interestCalculate } = this.ruleForm
       if (repaymentAdjustment === 'fixed_repayment_date') {
         if (interestCalculate) {
-          this.ruleForm.financingPeriod = startAndEndValue(startingDate, this.endDate)
+          this.ruleForm.financingPeriod = startAndEndValue(startingDate, this.endDate) + 1
         } else {
-          this.ruleForm.financingPeriod = startAndEndValue(startingDate, this.endDate) - 1
+          this.ruleForm.financingPeriod = startAndEndValue(startingDate, this.endDate)
         }
       }
     },