diff --git a/src/views/workCenter/enterpriseStandardRevision/modules/ConfirmWhetherCommentBaseInfo.vue b/src/views/workCenter/enterpriseStandardRevision/modules/ConfirmWhetherCommentBaseInfo.vue index 4cbbf094..cc2826e0 100644 --- a/src/views/workCenter/enterpriseStandardRevision/modules/ConfirmWhetherCommentBaseInfo.vue +++ b/src/views/workCenter/enterpriseStandardRevision/modules/ConfirmWhetherCommentBaseInfo.vue @@ -54,6 +54,23 @@ type="checkbox"/> + +
+
+ * + + {{ $t('workCenter.enStandardRevision.deadlineForComments') }} + +
+ + + + +
@@ -84,6 +101,14 @@ export default { message: this.$t('workCenter.enStandardRevision.departmentalLiaison') + this.$t('cannotEmpty'), trigger: 'change' } + ], + // 征求意见截止日期 + totalAdviceDeadline: [ + { + required: true, + message: this.$t('workCenter.enStandardRevision.deadlineForComments') + this.$t('cannotEmpty'), + trigger: 'change' + } ] }, onEditFile: '' // 在线编辑的文件id @@ -159,4 +184,8 @@ export default { margin-right: 20px; } } + +/deep/ .ant-form-item-children > * { + width: 100%; +} diff --git a/src/views/workCenter/enterpriseStandardRevision/modules/DepartLiaisonIssueBaseInfo.vue b/src/views/workCenter/enterpriseStandardRevision/modules/DepartLiaisonIssueBaseInfo.vue index c4b46557..727b25cf 100644 --- a/src/views/workCenter/enterpriseStandardRevision/modules/DepartLiaisonIssueBaseInfo.vue +++ b/src/views/workCenter/enterpriseStandardRevision/modules/DepartLiaisonIssueBaseInfo.vue @@ -28,6 +28,7 @@ @@ -122,10 +123,10 @@ 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)) + // 有标准化确认是否开启征求意见节点的征求意见截止日期和征求意见截止日期,需要征求意见截止日期比标准化确认是否开启征求意见节点的征求意见截止日期早可以等于 + // if (this.formInline.totalAdviceDeadline && this.formInline.adviceDeadline) { + // console.log('征求意见稿计划完成日期', this.formInline.totalAdviceDeadline) + // const planDate = new Date(Date.parse(this.formInline.totalAdviceDeadline)) // const deadlineDate = new Date(Date.parse(this.formInline.adviceDeadline)) // if (deadlineDate <= planDate) { // // 截止日期比完成日期早 @@ -144,6 +145,11 @@ export default { }) return data }, + // 征求意见截止日期,不可选的日期,标准化设置的截止日期之前可选 + adviceDeadlineDisabledDate (current) { + const totalAdviceDeadline = new Date(this.formInline.totalAdviceDeadline + ' 23:59:59') + return current && current > totalAdviceDeadline + }, // 选择用户得到用户名 userSelectNameChange (value, fieldName) { this.formInline[fieldName + '_dictText'] = value