BAOLH
2026-09-10 1df50fce4fc59480f9f450b75069165363d25b3c
新增合同付款时日期无法填写问题修改(补充)
1 files modified
11 ■■■■■ changed files
eladmin-web-master/src/views/contract/contractPayment/index.vue 11 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/contract/contractPayment/index.vue
@@ -296,8 +296,6 @@
            if (res[i].contractId === Number(that.$route.query.contractId)) {
              // 当前合同信息
              that.currentContract = res[i]
              // 当前合同信息 - 服务结束日期
              that.currentContract.serviceEndDate = new Date(res[i].serviceStartsDate).getTime() - 24 * 60 * 60 * 1000
            }
          }
        }
@@ -339,8 +337,11 @@
      that.contractInvoiceList = []
      // 判断所属合同是否为空
      if (that.crud.form.contractId != null && that.crud.form.contractId !== '') {
        that.currentContract = that.contractList.filter(item => item.contractId === that.crud.form.contractId)[0] || {}
        // 获取发票数据
        that.getContractInvoice()
      } else {
        that.currentContract = {}
      }
    },
    // 获取发票数据
@@ -375,12 +376,10 @@
    // 所属年度变更
    changeFundBelongYear() {
      const that = this
      if (!that.crud.form.id) {
      // 款项开始日期
      that.crud.form.fundBelongStart = that.crud.form.fundBelongYear + that.crud.toDate(that.currentContract.serviceStartsDate).substring(4, 10)
      // 款项结束日期
      that.crud.form.fundBelongEnd = that.crud.toDate(that.currentContract.serviceEndDate).substring(4, 10) === '-12-31'
        ? Number(that.crud.form.fundBelongYear) + that.crud.toDate(that.currentContract.serviceEndDate).substring(4, 10)
        : (Number(that.crud.form.fundBelongYear) + 1) + that.crud.toDate(that.currentContract.serviceEndDate).substring(4, 10)
      }
    }
  }
}