diff --git a/src/common/lang/workCenter/zh.js b/src/common/lang/workCenter/zh.js index 7557294a..4b22ae25 100644 --- a/src/common/lang/workCenter/zh.js +++ b/src/common/lang/workCenter/zh.js @@ -156,7 +156,7 @@ module.exports = { releaseDate: '发布日期', implementationDate: '实施日期', esPlan: '企标计划', - deadlineNeedGreaterThan: '征求意见截止日期需要比征求意见稿计划完成日期晚' + deadlineNeedGreaterThan: '征求意见截止日期需要比征求意见稿计划完成日期早' }, // 企标更改流程 enStandardChange: { diff --git a/src/views/workCenter/enterpriseStandardRevision/modules/DepartLiaisonIssueBaseInfo.vue b/src/views/workCenter/enterpriseStandardRevision/modules/DepartLiaisonIssueBaseInfo.vue index e7ef3036..775e6ba8 100644 --- a/src/views/workCenter/enterpriseStandardRevision/modules/DepartLiaisonIssueBaseInfo.vue +++ b/src/views/workCenter/enterpriseStandardRevision/modules/DepartLiaisonIssueBaseInfo.vue @@ -18,7 +18,7 @@ - +
* @@ -116,13 +116,13 @@ export default { let data = {} await this.$refs.ruleForm.validate(valid => { if (valid) { - // 有征求意见稿计划完成日期和征求意见截止日期,需要征求意见截止日期比计划完成日期晚 + // 有征求意见稿计划完成日期和征求意见截止日期,需要征求意见截止日期比计划完成日期早 if (JSON.parse(this.formInline.businessJson).solicitationDraftPlanCompleteDate && this.formInline.adviceDeadline) { console.log('征求意见稿计划完成日期', JSON.parse(this.formInline.businessJson).solicitationDraftPlanCompleteDate) const planDate = new Date(Date.parse(JSON.parse(this.formInline.businessJson).solicitationDraftPlanCompleteDate)) const deadlineDate = new Date(Date.parse(this.formInline.adviceDeadline)) - if (deadlineDate > planDate) { - // 截止日期比完成日期晚 + if (deadlineDate < planDate) { + // 截止日期比完成日期早 data = Object.assign({}, this.formInline) } else { this.$message.warning(this.$t('workCenter.enStandardRevision.deadlineNeedGreaterThan'))