fix 79554
This commit is contained in:
@@ -251,11 +251,18 @@ export default {
|
|||||||
// 去除备注必填
|
// 去除备注必填
|
||||||
this.validatorRules.remarks.rules[0].required = false
|
this.validatorRules.remarks.rules[0].required = false
|
||||||
const params = {}
|
const params = {}
|
||||||
|
// 记录验证是否报错
|
||||||
|
let err = null
|
||||||
// 收集所有表单信息
|
// 收集所有表单信息
|
||||||
let formDataList = []
|
let formDataList = []
|
||||||
if (isValidate) {
|
if (isValidate) {
|
||||||
formDataList = await this.validateFormList(this.processInfoForm, this.approvalInfoForm)
|
formDataList = await this.validateFormList(this.processInfoForm, this.approvalInfoForm).catch(() => {
|
||||||
formDataList[2] = await this.$refs.baseInfoForm.getDataValidate()
|
err = 'base'
|
||||||
|
return []
|
||||||
|
})
|
||||||
|
formDataList[2] = await this.$refs.baseInfoForm.getDataValidate().catch(() => {
|
||||||
|
err = 'base'
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
formDataList = [
|
formDataList = [
|
||||||
this.processInfoForm.getFieldsValue(),
|
this.processInfoForm.getFieldsValue(),
|
||||||
@@ -287,7 +294,10 @@ export default {
|
|||||||
projectId: this.projectId,
|
projectId: this.projectId,
|
||||||
id: this.formInfo.id
|
id: this.formInfo.id
|
||||||
})
|
})
|
||||||
|
// 如果有错误就跳转对应页面
|
||||||
|
if (err !== null) {
|
||||||
|
throw new Error(err)
|
||||||
|
}
|
||||||
return params
|
return params
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -76,6 +76,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="item-model" prop="mainDepart">
|
<a-form-model-item class="item-model" prop="mainDepart">
|
||||||
<a-input v-model="formInline.mainDepart"
|
<a-input v-model="formInline.mainDepart"
|
||||||
|
@change="event => formInline.mainDepart = event.target.value.trim()"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
:placeholder="$t('pleaseEnter')+$t('workCenter.standardPromotionProcess.mainDeliveryDepart')" />
|
:placeholder="$t('pleaseEnter')+$t('workCenter.standardPromotionProcess.mainDeliveryDepart')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -90,6 +91,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="item-model" prop="declareTopic">
|
<a-form-model-item class="item-model" prop="declareTopic">
|
||||||
<a-input v-model="formInline.declareTopic"
|
<a-input v-model="formInline.declareTopic"
|
||||||
|
@change="event => formInline.declareTopic = event.target.value.trim()"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
:placeholder="$t('pleaseEnter')+$t('workCenter.standardPromotionProcess.subject')" />
|
:placeholder="$t('pleaseEnter')+$t('workCenter.standardPromotionProcess.subject')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -210,38 +212,86 @@ export default {
|
|||||||
// 是否禁用联络人
|
// 是否禁用联络人
|
||||||
disabledInitiator: true,
|
disabledInitiator: true,
|
||||||
rules: {
|
rules: {
|
||||||
// 操作类型
|
// 紧急程度
|
||||||
operationType: [
|
emergencyDegree: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('workCenter.esInspectionRectification.operationType') + this.$t('cannotEmpty'),
|
message: this.$t('pleaseSelect') + this.$t('workCenter.standardPromotionProcess.urgency'),
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
// 整改结果
|
// 企标编号
|
||||||
rectificationResults: [
|
standardNo: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('workCenter.esInspectionRectification.rectificationResults') + this.$t('cannotEmpty'),
|
message: this.$t('pleaseSelect') + this.$t('workCenter.standardPromotionProcess.esNumber'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
// 宣贯人
|
||||||
|
declareUser: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('pleaseSelect') + this.$t('workCenter.standardPromotionProcess.promoter'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
// 主送部门
|
||||||
|
mainDepart: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('pleaseEnter') + this.$t('workCenter.standardPromotionProcess.mainDeliveryDepart'),
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
// 申请延期日期
|
// 主题
|
||||||
requestExtensionDate: [
|
declareTopic: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('workCenter.esInspectionRectification.requestExtensionDate') + this.$t('cannotEmpty'),
|
message: this.$t('pleaseEnter') + this.$t('workCenter.standardPromotionProcess.subject'),
|
||||||
|
trigger: 'blur'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
// 宣贯日期
|
||||||
|
declareDate: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('pleaseSelect') + this.$t('workCenter.standardPromotionProcess.promotionDate'),
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
// 延期说明
|
// 参宣单位
|
||||||
extensionDescription: [
|
attendUnit: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('workCenter.esInspectionRectification.extensionDescription') + this.$t('cannotEmpty'),
|
message: this.$t('pleaseSelect') + this.$t('workCenter.standardPromotionProcess.participatingUnits'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
// 联络人
|
||||||
|
initiator: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('pleaseEnter') + this.$t('workCenter.standardPromotionProcess.contactPerson'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
// 内容
|
||||||
|
declareContent: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('pleaseEnter') + this.$t('workCenter.standardPromotionProcess.content'),
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
// 宣贯材料
|
||||||
|
// declareFile: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t('pleaseEnter') + this.$t('workCenter.standardPromotionProcess.promotionalMaterials'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user