[update] 企标制修订流程部门联络人下发节点的征求意见截止日期要早于标准化设置的征求意见截止日期
This commit is contained in:
+29
@@ -54,6 +54,23 @@
|
|||||||
type="checkbox"/>
|
type="checkbox"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 征求意见计划截止日期 -->
|
||||||
|
<div v-if="formInline.adviceFlag === '1'" class="box-title-text form-flex-item">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="required">*</span>
|
||||||
|
<span class="title-text-text" :title="$t('workCenter.enStandardRevision.deadlineForComments')">
|
||||||
|
{{ $t('workCenter.enStandardRevision.deadlineForComments') }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="item-model" prop="totalAdviceDeadline">
|
||||||
|
<a-date-picker
|
||||||
|
v-model="formInline.totalAdviceDeadline"
|
||||||
|
:showTime="false"
|
||||||
|
:disabled="disabled"
|
||||||
|
value-format="YYYY-MM-DD">
|
||||||
|
</a-date-picker>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</div>
|
</div>
|
||||||
@@ -84,6 +101,14 @@ export default {
|
|||||||
message: this.$t('workCenter.enStandardRevision.departmentalLiaison') + this.$t('cannotEmpty'),
|
message: this.$t('workCenter.enStandardRevision.departmentalLiaison') + this.$t('cannotEmpty'),
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
// 征求意见截止日期
|
||||||
|
totalAdviceDeadline: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('workCenter.enStandardRevision.deadlineForComments') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
onEditFile: '' // 在线编辑的文件id
|
onEditFile: '' // 在线编辑的文件id
|
||||||
@@ -159,4 +184,8 @@ export default {
|
|||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/deep/ .ant-form-item-children > * {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+10
-4
@@ -28,6 +28,7 @@
|
|||||||
<a-form-model-item class="item-model" prop="adviceDeadline">
|
<a-form-model-item class="item-model" prop="adviceDeadline">
|
||||||
<a-date-picker
|
<a-date-picker
|
||||||
v-model="formInline.adviceDeadline"
|
v-model="formInline.adviceDeadline"
|
||||||
|
:disabled-date="adviceDeadlineDisabledDate"
|
||||||
:showTime="false"
|
:showTime="false"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
value-format="YYYY-MM-DD">
|
value-format="YYYY-MM-DD">
|
||||||
@@ -122,10 +123,10 @@ export default {
|
|||||||
let data = {}
|
let data = {}
|
||||||
await this.$refs.ruleForm.validate(valid => {
|
await this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
// 有征求意见稿计划完成日期和征求意见截止日期,需要征求意见截止日期比计划完成日期早可以等于
|
// 有标准化确认是否开启征求意见节点的征求意见截止日期和征求意见截止日期,需要征求意见截止日期比标准化确认是否开启征求意见节点的征求意见截止日期早可以等于
|
||||||
// if (JSON.parse(this.formInline.businessJson).solicitationDraftPlanCompleteDate && this.formInline.adviceDeadline) {
|
// if (this.formInline.totalAdviceDeadline && this.formInline.adviceDeadline) {
|
||||||
// console.log('征求意见稿计划完成日期', JSON.parse(this.formInline.businessJson).solicitationDraftPlanCompleteDate)
|
// console.log('征求意见稿计划完成日期', this.formInline.totalAdviceDeadline)
|
||||||
// const planDate = new Date(Date.parse(JSON.parse(this.formInline.businessJson).solicitationDraftPlanCompleteDate))
|
// const planDate = new Date(Date.parse(this.formInline.totalAdviceDeadline))
|
||||||
// const deadlineDate = new Date(Date.parse(this.formInline.adviceDeadline))
|
// const deadlineDate = new Date(Date.parse(this.formInline.adviceDeadline))
|
||||||
// if (deadlineDate <= planDate) {
|
// if (deadlineDate <= planDate) {
|
||||||
// // 截止日期比完成日期早
|
// // 截止日期比完成日期早
|
||||||
@@ -144,6 +145,11 @@ export default {
|
|||||||
})
|
})
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
|
// 征求意见截止日期,不可选的日期,标准化设置的截止日期之前可选
|
||||||
|
adviceDeadlineDisabledDate (current) {
|
||||||
|
const totalAdviceDeadline = new Date(this.formInline.totalAdviceDeadline + ' 23:59:59')
|
||||||
|
return current && current > totalAdviceDeadline
|
||||||
|
},
|
||||||
// 选择用户得到用户名
|
// 选择用户得到用户名
|
||||||
userSelectNameChange (value, fieldName) {
|
userSelectNameChange (value, fieldName) {
|
||||||
this.formInline[fieldName + '_dictText'] = value
|
this.formInline[fieldName + '_dictText'] = value
|
||||||
|
|||||||
Reference in New Issue
Block a user