fix 79363、79372
This commit is contained in:
+5
@@ -285,6 +285,11 @@ export default {
|
||||
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
||||
throw new Error('base')
|
||||
}
|
||||
// fix 79372 稽查内容条数不能为空或0
|
||||
if (this.$refs.inspectionProcessTable.dataSource.some(item => (!item.standardInspectContentCount || item.standardInspectContentCount === '0'))) {
|
||||
this.$message.warning(this.$t('workCenter.esInspectionProcess.pleaseFillInspectionContent'))
|
||||
throw new Error('base')
|
||||
}
|
||||
const params = {}
|
||||
// 收集所有表单信息
|
||||
let formDataList = []
|
||||
|
||||
+3
@@ -172,6 +172,9 @@ export default {
|
||||
// 是否需要整改(布尔值或null)
|
||||
isNeedRectification: null,
|
||||
rules: {
|
||||
inspectContentId: [
|
||||
{ required: true, message: this.$t('pleaseSelect') + this.$t('workCenter.esInspectionProcess.sectionClause'), trigger: 'change' }
|
||||
],
|
||||
// 是否需要整改
|
||||
isRectify: [
|
||||
{ required: true, message: this.$t('pleaseSelect') + this.$t('workCenter.esInspectionProcess.isNeedRectification'), trigger: 'change' }
|
||||
|
||||
+1
-1
@@ -104,7 +104,7 @@ export default {
|
||||
{ required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.esInspectionProcess.sectionClause'), trigger: 'change' }
|
||||
],
|
||||
// 执行情况
|
||||
implementation: [
|
||||
executionStatus: [
|
||||
{ required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.esInspectionProcess.implementation'), trigger: 'blur' }
|
||||
],
|
||||
// 评分
|
||||
|
||||
Reference in New Issue
Block a user