[update] 修改企标流程bug
This commit is contained in:
+6
-9
@@ -785,23 +785,20 @@ export default {
|
||||
this.model = Object.assign({}, record)
|
||||
this.formInline = Object.assign({}, record)
|
||||
// 三个日期,如果标准化填写了,主起草人不能修改,标准化未填写,联络人必填
|
||||
// 找出最初的这条表格数据
|
||||
const dItem = this.initDataSource.find(item => item.id === this.formInline.id)
|
||||
console.log(dItem)
|
||||
if ([6].includes(this.currentNode)) {
|
||||
// 是主起草人的编辑
|
||||
// 草稿计划完成日期的处理
|
||||
if (dItem.draftPlannedCompleteDate) {
|
||||
if (this.formInline.draftPlannedCompleteDateEditFlag === '0') {
|
||||
// 草稿计划完成日期已经填写了, 主起草人不能修改
|
||||
this.draftPlanFinishDateDisabled = true
|
||||
}
|
||||
// 征求意见稿计划完成日期
|
||||
if (dItem.solicitationDraftPlanCompleteDate) {
|
||||
if (this.formInline.solicitationDraftPlanCompleteDateEditFlag === '0') {
|
||||
// 征求意见稿计划完成日期已经填写了, 主起草人不能修改
|
||||
this.exposureDraftPlanFinishDateDisabled = true
|
||||
}
|
||||
// 计划报批日期
|
||||
if (dItem.planApprovalDate) {
|
||||
if (this.formInline.planApprovalDateEditFlag === '0') {
|
||||
// 计划报批日期已经填写了, 主起草人不能修改
|
||||
this.planSubmissionDateDisabled = true
|
||||
}
|
||||
@@ -813,7 +810,7 @@ export default {
|
||||
// 是联络人的编辑,只能编辑3个日期,如果标准化填过了不能修改,未填的话必填
|
||||
this.disabled = true
|
||||
// 草稿计划完成日期的处理
|
||||
if (!dItem.draftPlannedCompleteDate) {
|
||||
if (this.formInline.draftPlannedCompleteDateEditFlag !== '0') {
|
||||
// 草稿计划完成日期没有填写, 联络人必填
|
||||
this.rules.draftPlannedCompleteDate[0].required = true
|
||||
} else {
|
||||
@@ -821,7 +818,7 @@ export default {
|
||||
this.draftPlanFinishDateDisabled = true
|
||||
}
|
||||
// 征求意见稿计划完成日期
|
||||
if (!dItem.solicitationDraftPlanCompleteDate) {
|
||||
if (this.formInline.solicitationDraftPlanCompleteDateEditFlag !== '0') {
|
||||
// 征求意见稿计划完成日期没有填写, 联络人必填
|
||||
this.rules.solicitationDraftPlanCompleteDate[0].required = true
|
||||
} else {
|
||||
@@ -829,7 +826,7 @@ export default {
|
||||
this.exposureDraftPlanFinishDateDisabled = true
|
||||
}
|
||||
// 计划报批日期
|
||||
if (!dItem.planApprovalDate) {
|
||||
if (this.formInline.planApprovalDateEditFlag !== '0') {
|
||||
// 计划报批日期没有填写, 联络人必填
|
||||
this.rules.planApprovalDate[0].required = true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user