update 企标稽查计划
This commit is contained in:
+17
-20
@@ -61,7 +61,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 新增/编辑稽查计划 -->
|
||||
<inspection-plan-drawer ref="modalForm" @ok="addOrEditOk"/>
|
||||
<inspection-plan-drawer ref="modalForm" @ok="modalFormOk" :project-id="projectId"/>
|
||||
<!-- 填写意见、意见回显 -->
|
||||
<write-opinion-modal ref="writeOpinionModal" @ok="modalFormOk"/>
|
||||
<!-- 节点3:所属部门意见-查看 -->
|
||||
@@ -86,6 +86,11 @@ export default {
|
||||
currentNode: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
// 项目id
|
||||
projectId: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data () {
|
||||
@@ -93,7 +98,10 @@ export default {
|
||||
EsInspectionPlan,
|
||||
disableMixinCreated: true,
|
||||
url: {
|
||||
list: '/process/processEsInspectPlan/page'
|
||||
list: '/process/processEsInspectPlan/page',
|
||||
delete: '/process/processEsInspectPlan/delete',
|
||||
importExcelUrl: '/process/processEsInspectPlan/importExcel',
|
||||
deleteBatch: '/process/processEsInspectPlan/deleteBatch'
|
||||
},
|
||||
model: {},
|
||||
dataSource: [],
|
||||
@@ -168,7 +176,7 @@ export default {
|
||||
title: this.$t('workCenter.esInspectionPlan.departmentPersonnel'),
|
||||
align: 'center',
|
||||
width: 120,
|
||||
dataIndex: 'departmentPersonnel',
|
||||
dataIndex: 'objectOfConsultation',
|
||||
showCodeList: [EsInspectionPlan.initiate.value],
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
@@ -217,6 +225,12 @@ export default {
|
||||
]
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
// 列表查询带上项目id
|
||||
projectId () {
|
||||
this.filters.projectId = this.projectId
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
// 是否发起节点和联络人汇总节点
|
||||
isInitiateOrLiaisonCollect () {
|
||||
@@ -242,23 +256,6 @@ export default {
|
||||
getData () {
|
||||
return this.dataSource
|
||||
},
|
||||
// 表单提交
|
||||
addOrEditOk (formData) {
|
||||
console.log(formData)
|
||||
if (formData.id) {
|
||||
// 编辑
|
||||
for (let i = 0; i < this.dataSource.length; i++) {
|
||||
if (this.dataSource[i].id === formData.id) {
|
||||
this.dataSource.splice(i, 1, formData)
|
||||
return
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 添加
|
||||
formData.id = this.dataSource.length
|
||||
this.dataSource.push(formData)
|
||||
}
|
||||
},
|
||||
// 更新表格数据
|
||||
updateData (list) {
|
||||
this.dataSource = list || []
|
||||
|
||||
Reference in New Issue
Block a user