update 稽查流程完善

This commit is contained in:
danshihao
2024-01-07 11:56:12 +08:00
parent d526a1c4e3
commit 25451fd6c0
5 changed files with 65 additions and 39 deletions
@@ -330,7 +330,22 @@ export default {
}
const params = {}
// 收集表格数据
params.processEsInspectList = this.$refs.inspectionProcessTable.dataSource
params.processEsInspectList = this.$refs.inspectionProcessTable.dataSource.map(item => {
// 如果没有子表格数据,就默认空数组,否则后端报错
// 稽查内容
if (!item.enterpriseStandardInspectContentList) {
item.enterpriseStandardInspectContentList = []
}
// 稽查报告
if (!item.enterpriseStandardInspectReportList) {
item.enterpriseStandardInspectReportList = []
}
// 整改计划
if (!item.enterpriseStandardInspectRectifyPlanList) {
item.enterpriseStandardInspectRectifyPlanList = []
}
return item
})
// 获取删除业务信息的ids列表
params.processAllDelIds = this.$refs.inspectionProcessTable.getDelIds()
// 收集所有表单信息