[update] 法规符合性排查流程主排查人分批下发节点校验
This commit is contained in:
+15
-1
@@ -539,9 +539,23 @@ export default {
|
||||
if (valid) {
|
||||
if (this.formInline.distributeFlag === YesOrNoEnum.YES.value) {
|
||||
// 排查任务是否下发选了是
|
||||
if (valid) {
|
||||
// 校验设计工程师是否全部填写
|
||||
let hasErr = false
|
||||
for (const i in this.dataSource) {
|
||||
if (!this.dataSource[i].designEngineer) {
|
||||
// 需要选设计工程师,但是没有选择
|
||||
hasErr = true
|
||||
// 根据下标跳转到第一个没有填的的这一页表格
|
||||
this.ipagination.current = Math.floor(i / Number(this.ipagination.pageSize)) + 1
|
||||
break
|
||||
}
|
||||
}
|
||||
if (valid && !hasErr) {
|
||||
data.standardInfo = Object.assign({}, this.formInline)
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||
} else if (hasErr) {
|
||||
this.$message.warning(this.$t('workCenter.regulatoryComplianceCheckProcess.pleaseSelectDesignEngineer'))
|
||||
data = false
|
||||
} else {
|
||||
data = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user