update 稽查流程完善
This commit is contained in:
+1
@@ -139,6 +139,7 @@ export default {
|
||||
this.$refs.form.validate(valid => {
|
||||
if (valid) {
|
||||
const params = Object.assign({}, this.model, this.form)
|
||||
params.baseClause = this.sectionClauseList.find(item => item.id === params.inspectContentId).clause
|
||||
if (!params.createTime) {
|
||||
params.createTime = moment().format('YYYY-MM-DD HH:mm:ss')
|
||||
}
|
||||
|
||||
+6
-17
@@ -255,19 +255,6 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
// 列表查询带上项目id
|
||||
projectId: {
|
||||
immediate: true,
|
||||
handler (val) {
|
||||
if (!val) {
|
||||
return
|
||||
}
|
||||
this.filters.projectId = this.projectId
|
||||
this.loadData()
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
if (this.isInputInspectionReport) {
|
||||
this.getUserList()
|
||||
@@ -303,6 +290,7 @@ export default {
|
||||
standardInspectContentCount: data.length
|
||||
})
|
||||
},
|
||||
// 稽查报告回调
|
||||
handleReportCallback (data, index) {
|
||||
console.log('稽查报告回调', data, index)
|
||||
this.dataSource.splice(index, 1, {
|
||||
@@ -310,6 +298,7 @@ export default {
|
||||
enterpriseStandardInspectReportList: data
|
||||
})
|
||||
},
|
||||
// 整改计划回调
|
||||
handleRectificationCallback (data, index) {
|
||||
console.log('整改计划回调', data, index)
|
||||
this.dataSource.splice(index, 1, {
|
||||
@@ -342,12 +331,12 @@ export default {
|
||||
this.getTableList()
|
||||
},
|
||||
// 稽查报告
|
||||
handleInspectionReport (record) {
|
||||
this.$refs.inspectionProcessReport.show(record)
|
||||
handleInspectionReport (record, index) {
|
||||
this.$refs.inspectionProcessReport.show(record, index)
|
||||
},
|
||||
// 整改计划
|
||||
handleRectificationPlan (record) {
|
||||
this.$refs.inspectionProcessRectificationPlan.show(record)
|
||||
handleRectificationPlan (record, index) {
|
||||
this.$refs.inspectionProcessRectificationPlan.show(record, index)
|
||||
},
|
||||
// 获取向上第n个父节点
|
||||
getNumParentNode (el, n) {
|
||||
|
||||
+2
-4
@@ -57,7 +57,6 @@
|
||||
<script>
|
||||
import JTable from '@comp/jero/JTable'
|
||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||
import moment from 'moment'
|
||||
|
||||
export default {
|
||||
name: 'InspectionProcessTableModal',
|
||||
@@ -153,9 +152,8 @@ export default {
|
||||
const data = this.selectionRows.map(item => {
|
||||
item.inspectId = item.id
|
||||
delete item.id
|
||||
if (!item.createTime) {
|
||||
item.createTime = moment().format('YYYY-MM-DD HH:mm:ss')
|
||||
}
|
||||
// 去掉创建时间
|
||||
delete item.createTime
|
||||
return item
|
||||
})
|
||||
this.$emit('ok', data)
|
||||
|
||||
Reference in New Issue
Block a user