update 稽查流程完善

This commit is contained in:
danshihao
2024-01-07 19:12:57 +08:00
parent 3240e0d4c2
commit 090070f242
3 changed files with 29 additions and 2 deletions
@@ -248,6 +248,8 @@ export default {
const processAll = data.processAll || {}
const processApprovalRecord = data.processApprovalRecord || {}
this.info = data
// 回显表格
this.$refs.extensionRequestTable.setData(data.processEsInspectDelayApplyVOList)
// 页面回显
this.processInfoForm && this.processInfoForm.setFieldsValue({
prcName: processAll.prcName,
@@ -306,6 +308,10 @@ export default {
throw new Error('base')
}
const params = {}
// 收集表格信息
params.processEsInspectDelayApplyList = this.$refs.extensionRequestTable.dataSource || []
// 获取删除业务信息的ids列表
params.processAllDelIds = this.$refs.extensionRequestTable.getDelIds()
// 收集所有表单信息
let formDataList = []
if (isValidate) {
@@ -46,7 +46,7 @@
<!-- 节点1显示申请延期和删除后续不显示操作列 -->
<a @click="handleRequestExtension(record, index)" >{{ $t('workCenter.incExtensionRequest.requestExtension') }}</a>
<a-divider type="vertical" />
<a @click="handleDelete(record.id)" >{{ $t('delete') }}</a>
<a @click="handleDelete(index)" >{{ $t('delete') }}</a>
</template>
</j-table>
</div>
@@ -181,7 +181,9 @@ export default {
width: 180,
scopedSlots: { customRender: 'action' }
}
]
],
// 删除的ids
delIds: []
}
},
computed: {
@@ -219,6 +221,23 @@ export default {
}
},
methods: {
// 父组件获取删除的ids
getDelIds () {
return Array.from(new Set(this.delIds)).filter(item => item).join(',')
},
// 删除
handleDelete (index) {
this.$confirm({
title: this.$t('confirmDeletion'),
content: this.$t('areYouSure'),
onOk: () => {
if (this.dataSource[index].id) {
this.delIds.push(this.dataSource[index].id)
}
this.dataSource.splice(index, 1)
}
})
},
// 添加回调
handleAddCallback (rows) {
this.dataSource.push(...rows)
@@ -141,6 +141,8 @@ export default {
return
}
const data = this.selectionRows.map(item => {
item.inspectId = item.id
delete item.id
return item
})
this.$emit('ok', data)