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