[update] 修改bug80507
This commit is contained in:
@@ -154,7 +154,7 @@ module.exports = {
|
||||
releaseDate: '发布日期',
|
||||
implementationDate: '实施日期',
|
||||
esPlan: '企标计划',
|
||||
deadlineNeedGreaterThan: '征求意见截止日期需要比征求意见稿计划完成日期早'
|
||||
deadlineNeedGreaterThan: '征求意见截止日期需要比征求意见稿计划完成日期晚'
|
||||
},
|
||||
// 企标更改流程
|
||||
enStandardChange: {
|
||||
|
||||
+9
-8
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 征求意见截止日期,限制要比计划的时间早?? -->
|
||||
<!-- 征求意见截止日期,限制要比计划的时间晚 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text title-text-long">
|
||||
<span class="required">*</span>
|
||||
@@ -116,12 +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'))
|
||||
@@ -146,10 +147,6 @@ export default {
|
||||
|
||||
<style scoped lang="less">
|
||||
@import '~@assets/less/common.less';
|
||||
.collapsible-content-no-head {
|
||||
border-top: 1px solid #E5E6EB;
|
||||
border-radius: 8px 8px 8px 8px;
|
||||
}
|
||||
|
||||
.online-edit-wrapper {
|
||||
height: 100%;
|
||||
@@ -168,4 +165,8 @@ export default {
|
||||
.title-text-long {
|
||||
width: 200px !important;
|
||||
}
|
||||
|
||||
/deep/ .ant-form-item-children > * {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user