[update] 法规符合性排查流程
This commit is contained in:
+21
-19
@@ -69,7 +69,7 @@
|
||||
<j-expand-table
|
||||
:can-drag="true"
|
||||
:scroll="{x: '100%'}"
|
||||
ref="table"
|
||||
ref="expandTable"
|
||||
rowKey="standardNumber"
|
||||
:columns="columnsEvaluate"
|
||||
:dataSource="dataSourceEvaluate"
|
||||
@@ -525,7 +525,11 @@ export default {
|
||||
// 把数据抛出,在线编辑不知道要不要抛
|
||||
const data = {}
|
||||
data.standardInfo = Object.assign({}, this.formInline)
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||
if (this.formInline.distributeFlag === YesOrNoEnum.YES.value) {
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||
} else {
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSourceEvaluate))
|
||||
}
|
||||
return data
|
||||
},
|
||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||
@@ -533,27 +537,25 @@ export default {
|
||||
let data = {}
|
||||
await this.$refs.ruleForm.validate(async valid => {
|
||||
if (valid) {
|
||||
if (!this.$refs.personRuleForm) {
|
||||
this.$message.warning(this.$t('workCenter.regulatoryComplianceCheckProcess.pleaseClickNext'))
|
||||
data = false
|
||||
if (this.formInline.distributeFlag === YesOrNoEnum.YES.value) {
|
||||
// 排查任务是否下发选了是
|
||||
if (valid) {
|
||||
data.standardInfo = Object.assign({}, this.formInline)
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||
} else {
|
||||
data = false
|
||||
}
|
||||
} else {
|
||||
if (this.formInline.distributeFlag === YesOrNoEnum.YES.value) {
|
||||
if (valid) {
|
||||
data.standardInfo = Object.assign({}, this.formInline)
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||
// 排查任务是否下发选了否
|
||||
await this.$refs.personRuleForm.validate(personValid => {
|
||||
const expandTableValid = this.$refs.expandTable.submit()
|
||||
if (valid && personValid && expandTableValid) {
|
||||
data.standardInfo = Object.assign({}, this.formInline, this.personFormInline)
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSourceEvaluate))
|
||||
} else {
|
||||
data = false
|
||||
}
|
||||
} else {
|
||||
await this.$refs.personRuleForm.validate(personValid => {
|
||||
if (valid && personValid) {
|
||||
data.standardInfo = Object.assign({}, this.formInline, this.personFormInline)
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||
} else {
|
||||
data = false
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
data = false
|
||||
|
||||
Reference in New Issue
Block a user