From 1df50fce4fc59480f9f450b75069165363d25b3c Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Thu, 10 Sep 2026 05:06:32 +0000
Subject: [PATCH] 新增合同付款时日期无法填写问题修改(补充)
---
eladmin-web-master/src/views/contract/contractPayment/index.vue | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/eladmin-web-master/src/views/contract/contractPayment/index.vue b/eladmin-web-master/src/views/contract/contractPayment/index.vue
index ac720c2..59a97d9 100644
--- a/eladmin-web-master/src/views/contract/contractPayment/index.vue
+++ b/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
- // 款项开始日期
- 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)
+ if (!that.crud.form.id) {
+ // 款项开始日期
+ that.crud.form.fundBelongStart = that.crud.form.fundBelongYear + that.crud.toDate(that.currentContract.serviceStartsDate).substring(4, 10)
+ }
}
}
}
--
Gitblit v1.9.3