update 稽查流程完善

This commit is contained in:
danshihao
2024-01-06 20:44:41 +08:00
parent 9d3704fade
commit d526a1c4e3
4 changed files with 13 additions and 22 deletions
@@ -351,7 +351,10 @@ export default {
} }
const params = {} const params = {}
// 业务表信息 // 业务表信息
params.processEsInspectPlanList = this.$refs.inspectionPlanTable.dataSource params.processEsInspectPlanList = this.$refs.inspectionPlanTable.dataSource.map(item => {
delete item.createTime
return item
})
// 获取删除业务信息的ids列表 // 获取删除业务信息的ids列表
params.processAllDelIds = this.$refs.inspectionPlanTable.getDelIds() params.processAllDelIds = this.$refs.inspectionPlanTable.getDelIds()
// 收集所有表单信息 // 收集所有表单信息
@@ -139,6 +139,7 @@ export default {
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
const params = Object.assign({}, this.model, this.form) const params = Object.assign({}, this.model, this.form)
params.baseClause = this.sectionClauseList.find(item => item.id === params.inspectContentId).clause
if (!params.createTime) { if (!params.createTime) {
params.createTime = moment().format('YYYY-MM-DD HH:mm:ss') params.createTime = moment().format('YYYY-MM-DD HH:mm:ss')
} }
@@ -255,19 +255,6 @@ export default {
}) })
} }
}, },
watch: {
// 列表查询带上项目id
projectId: {
immediate: true,
handler (val) {
if (!val) {
return
}
this.filters.projectId = this.projectId
this.loadData()
}
}
},
mounted () { mounted () {
if (this.isInputInspectionReport) { if (this.isInputInspectionReport) {
this.getUserList() this.getUserList()
@@ -303,6 +290,7 @@ export default {
standardInspectContentCount: data.length standardInspectContentCount: data.length
}) })
}, },
// 稽查报告回调
handleReportCallback (data, index) { handleReportCallback (data, index) {
console.log('稽查报告回调', data, index) console.log('稽查报告回调', data, index)
this.dataSource.splice(index, 1, { this.dataSource.splice(index, 1, {
@@ -310,6 +298,7 @@ export default {
enterpriseStandardInspectReportList: data enterpriseStandardInspectReportList: data
}) })
}, },
// 整改计划回调
handleRectificationCallback (data, index) { handleRectificationCallback (data, index) {
console.log('整改计划回调', data, index) console.log('整改计划回调', data, index)
this.dataSource.splice(index, 1, { this.dataSource.splice(index, 1, {
@@ -342,12 +331,12 @@ export default {
this.getTableList() this.getTableList()
}, },
// 稽查报告 // 稽查报告
handleInspectionReport (record) { handleInspectionReport (record, index) {
this.$refs.inspectionProcessReport.show(record) this.$refs.inspectionProcessReport.show(record, index)
}, },
// 整改计划 // 整改计划
handleRectificationPlan (record) { handleRectificationPlan (record, index) {
this.$refs.inspectionProcessRectificationPlan.show(record) this.$refs.inspectionProcessRectificationPlan.show(record, index)
}, },
// 获取向上第n个父节点 // 获取向上第n个父节点
getNumParentNode (el, n) { getNumParentNode (el, n) {
@@ -57,7 +57,6 @@
<script> <script>
import JTable from '@comp/jero/JTable' import JTable from '@comp/jero/JTable'
import { JeroListMixin } from '@/mixins/JeroListMixin' import { JeroListMixin } from '@/mixins/JeroListMixin'
import moment from 'moment'
export default { export default {
name: 'InspectionProcessTableModal', name: 'InspectionProcessTableModal',
@@ -153,9 +152,8 @@ export default {
const data = this.selectionRows.map(item => { const data = this.selectionRows.map(item => {
item.inspectId = item.id item.inspectId = item.id
delete item.id delete item.id
if (!item.createTime) { // 去掉创建时间
item.createTime = moment().format('YYYY-MM-DD HH:mm:ss') delete item.createTime
}
return item return item
}) })
this.$emit('ok', data) this.$emit('ok', data)