update 稽查流程完善
This commit is contained in:
+6
@@ -248,6 +248,8 @@ export default {
|
|||||||
const processAll = data.processAll || {}
|
const processAll = data.processAll || {}
|
||||||
const processApprovalRecord = data.processApprovalRecord || {}
|
const processApprovalRecord = data.processApprovalRecord || {}
|
||||||
this.info = data
|
this.info = data
|
||||||
|
// 回显表格
|
||||||
|
this.$refs.extensionRequestTable.setData(data.processEsInspectDelayApplyVOList)
|
||||||
// 页面回显
|
// 页面回显
|
||||||
this.processInfoForm && this.processInfoForm.setFieldsValue({
|
this.processInfoForm && this.processInfoForm.setFieldsValue({
|
||||||
prcName: processAll.prcName,
|
prcName: processAll.prcName,
|
||||||
@@ -306,6 +308,10 @@ export default {
|
|||||||
throw new Error('base')
|
throw new Error('base')
|
||||||
}
|
}
|
||||||
const params = {}
|
const params = {}
|
||||||
|
// 收集表格信息
|
||||||
|
params.processEsInspectDelayApplyList = this.$refs.extensionRequestTable.dataSource || []
|
||||||
|
// 获取删除业务信息的ids列表
|
||||||
|
params.processAllDelIds = this.$refs.extensionRequestTable.getDelIds()
|
||||||
// 收集所有表单信息
|
// 收集所有表单信息
|
||||||
let formDataList = []
|
let formDataList = []
|
||||||
if (isValidate) {
|
if (isValidate) {
|
||||||
|
|||||||
+21
-2
@@ -46,7 +46,7 @@
|
|||||||
<!-- 节点1,显示申请延期和删除,后续不显示操作列 -->
|
<!-- 节点1,显示申请延期和删除,后续不显示操作列 -->
|
||||||
<a @click="handleRequestExtension(record, index)" >{{ $t('workCenter.incExtensionRequest.requestExtension') }}</a>
|
<a @click="handleRequestExtension(record, index)" >{{ $t('workCenter.incExtensionRequest.requestExtension') }}</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="handleDelete(record.id)" >{{ $t('delete') }}</a>
|
<a @click="handleDelete(index)" >{{ $t('delete') }}</a>
|
||||||
</template>
|
</template>
|
||||||
</j-table>
|
</j-table>
|
||||||
</div>
|
</div>
|
||||||
@@ -181,7 +181,9 @@ export default {
|
|||||||
width: 180,
|
width: 180,
|
||||||
scopedSlots: { customRender: 'action' }
|
scopedSlots: { customRender: 'action' }
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
// 删除的ids
|
||||||
|
delIds: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -219,6 +221,23 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
handleAddCallback (rows) {
|
||||||
this.dataSource.push(...rows)
|
this.dataSource.push(...rows)
|
||||||
|
|||||||
+2
@@ -141,6 +141,8 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
const data = this.selectionRows.map(item => {
|
const data = this.selectionRows.map(item => {
|
||||||
|
item.inspectId = item.id
|
||||||
|
delete item.id
|
||||||
return item
|
return item
|
||||||
})
|
})
|
||||||
this.$emit('ok', data)
|
this.$emit('ok', data)
|
||||||
|
|||||||
Reference in New Issue
Block a user